build: let bootstrap resort to wget for downloading .po files
[gnulib.git] / ChangeLog
1 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
2
3         build: let bootstrap resort to wget when downloading .po files
4         * build-aux/bootstrap (download_po_files): Fallback to wget when
5         downloading the .po files via rsync fails.  This is necessary to
6         bootstrap from behind a strict firewall.
7
8 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9
10         stdint: don't assume C++11 when compiling with g++
11         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
12         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
13         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
14         work also in C++ before C++11, as that improperly inhibits
15         generating a substitute stdint.h for that case.
16
17 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
18
19         alloca: protect comment from gnulib-tool
20         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
21         that gnulib-tool doesn't think it's a license, and munge it to
22         say "GCC version 3".
23
24 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
25
26         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
27         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
28         $(abs_top_builddir) instead of $(top_builddir).
29
30 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
31
32         strftime-tests: also test nanoseconds
33         * tests/test-strftime.c (T): Add a test of %N.
34
35 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
36
37         inttypes, stdint: add C++11 support
38         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
39         when including inttypes.h and stdint.h.  Support this change to
40         the standard.
41         * doc/posix-headers/inttypes.texi (inttypes.h):
42         * doc/posix-headers/stdint.texi (stdint.h): Document this.
43         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
44         Define if not defined already, for the benefit of pre-C++11 hosts.
45         Define the standard format macros (e.g., PRId8) always.
46         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
47         Likewise, if __cpluspus.  Define the standard constant and limit
48         macros (e.g., INT8_C, INT8_MAX) always.
49         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
50         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
51         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
52         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
53         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
54         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
55         Likewise.
56
57 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
58
59         nonblocking tests: Fix test failure on Linux/PPC.
60         Suggested by Prerna Saxena in
61         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
62         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
63         Set to 1100000.
64
65 2011-12-12  Jim Meyering  <meyering@redhat.com>
66
67         argmatch: don't hard-code `' when listing valid option arguments
68         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
69         use the quote function to add quotes.  Use fputs rather than
70         fprintf for the format string with no format directive.
71
72 2011-12-07  Eric Blake  <eblake@redhat.com>
73
74         bootstrap: detect tools required by gnulib-tool
75         * build-aux/bootstrap (buildreq): Provide minimum implicit
76         dependencies.
77         * DEPENDENCIES: Mention patch as a prereq.
78
79 2011-12-04  Bruno Haible  <bruno@clisp.org>
80
81         sethostname: Port to Windows platforms.
82         * lib/sethostname.c: Provide an alternate implementation for Windows
83         platforms.
84         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
85         (main): Skip the test if sethostname() fails with EPERM. On Windows
86         platforms, don't check the result of gethostname().
87
88 2011-12-04  Bruno Haible  <bruno@clisp.org>
89             Jim Meyering  <meyering@redhat.com>
90
91         tests: Avoid spurious error message on platforms without mktemp program.
92         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
93
94 2011-12-04  Bruno Haible  <bruno@clisp.org>
95
96         sethostname: Fix documentation.
97         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
98         "not fixed" section.
99
100 2011-12-03  Bruno Haible  <bruno@clisp.org>
101
102         gnulib-tool: Verify that the License field is present and non-empty.
103         * gnulib-tool (func_get_license_raw): New function, extracted from
104         func_get_license.
105         (func_get_license): Use it. Warn if the module is not a test module and
106         has no license.
107         Suggested by Jim Meyering.
108
109 2011-12-03  Bruno Haible  <bruno@clisp.org>
110
111         sethostname tests: Fix link error on mingw.
112         * tests/test-sethostname1.c: New file, extracted from
113         tests/test-sethostname.c.
114         * tests/test-sethostname2.c: New file, extracted from
115         tests/test-sethostname.c.
116         * tests/test-sethostname.c: Remove file.
117         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
118         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
119         (Depends-on): Add gethostname.
120         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
121         Link the latter with $(GETHOSTNAME_LIB).
122
123         sethostname tests: Fix compilation error on mingw.
124         * tests/test-sethostname.c: Don't include <sys/types.h>.
125         (geteuid): Use a dummy value without uid_t.
126         * modules/sethostname-tests (Depends-on): Remove sys_types.
127
128         sethostname tests: Avoid a gcc warning.
129         * tests/test-sethostname.c (main): Remove an unused variable.
130
131         Tweak last commit.
132         * modules/sethostname-tests (Files): Sort by decreasing importance.
133         (configure.ac): Check for geteuid.
134         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
135         the test when there's nothing to test. Drop an unnecessary cast.
136         Improve an error message. Verify that the final sethostname() call
137         succeeds.
138
139 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
140
141         Add a test suite for the sethostname module.
142         * modules/sethostname-tests: New file.  A test program
143         for the sethostname module.
144         * tests/test-sethostname.c: Likewise.
145
146 2011-12-03  Bruno Haible  <bruno@clisp.org>
147
148         Tweak last commit.
149         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
150         Fix preprocessor directives indentation. Fix typos.
151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
152         * modules/unistd (Makefile): Likewise.
153
154 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
155
156         Integrate the sethostname module into unistd.
157         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
158         into the unistd.h header.
159         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
160         preprocessor directives.
161         * modules/unistd: Setup the Makefile substitutions of the
162         SETHOSTNAME preprocessor directives.
163
164 2011-12-03  Bruno Haible  <bruno@clisp.org>
165
166         Tweak last commit.
167         * lib/sethostname.c: Don't include <string.h>.
168         (sethostname): No need to copy the argument string to the stack. Don't
169         call clearerr. Preserve errno when fprintf failed.
170         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
171         Don't invoke AC_REPLACE_FUNCS.
172         * modules/sethostname (Link): Remove empty section.
173         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
174         failure problem.
175
176 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
177
178         New module 'sethostname'.
179         * lib/sethostname.c (sethostname): New file.  Provide sethostname
180         for systems that lack it.
181         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
182         sethostname declaration and function.
183         * modules/sethostname: New file.  Define the sethostname module.
184
185 2011-12-03  Bruno Haible  <bruno@clisp.org>
186
187         Tweak last commit.
188         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
189
190 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
191
192         Split the HOST_NAME_MAX detection into a separate m4 macro.
193         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
194         macro so it can be used by the pending sethostname module.
195
196 2011-12-03  Bruno Haible  <bruno@clisp.org>
197
198         Fix module descriptions syntax.
199         * modules/argv-iter (License): Fix syntax.
200         * modules/di-set (License): Likewise.
201         * modules/ino-map (License): Likewise.
202         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
203
204 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
205
206         stdalign: port to Clang 3.0
207         Problem reported by Simon Josefsson in
208         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
209         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
210         which has <stdalign.h> but which does not define alignof.
211         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
212
213 2011-12-01  Eric Blake  <eblake@redhat.com>
214
215         mktempd: silence dd usage
216         * build-aux/mktempd (rand_bytes): Silence dd.
217
218 2011-11-30  Simon Josefsson  <simon@josefsson.org>
219
220         manywarnings: Don't mention gcc version in docstring.
221         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
222         Jim Meyering <meyering@redhat.com>.
223
224 2011-11-30  Jim Meyering  <meyering@redhat.com>
225
226         hash: mark a few floating point constants with "f" suffix
227         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
228         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
229         floating point constants with "f", since they're destined to be
230         saved/used as "float"s.
231
232 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
233
234         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
235         * tests/test-float.c (test_long_double): Correct and re-enable the
236         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
237
238 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
239
240         Avoid subtracting two pointers that don't point into the same block.
241         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
242         only pointers into the same memory block are subtracted. We cannot
243         assume that sizeof (ptrdiff_t) == sizeof (void *).
244
245 2011-11-29  Eric Blake  <eblake@redhat.com>
246
247         maint.mk: add syntax check for use of compare from init.sh
248         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
249         moved here from coreutils.
250
251         manywarnings: drop -Wunsuffixed-float-constants
252         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
253         '1.0D', which is the only way to silence this warning for 'double'.
254
255 2011-11-29  Jim Meyering  <meyering@redhat.com>
256
257         hash: mark compute_bucket_size with the pure attribute
258         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
259
260         quotearg, propername: correct pragma guard expression
261         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
262         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
263
264 2011-11-28  Jim Meyering  <meyering@redhat.com>
265
266         propername: do not mark proper_name with the const attribute
267         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
268         since it examines data pointed to by its parameter.
269         * lib/propername.c (proper_name): Instead, add a pragma to suppress
270         the suggestion from -Wsuggest-attribute=const.
271
272         propername: mark one more function as const
273         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
274
275 2011-11-27  Jim Meyering  <meyering@redhat.com>
276
277         mark functions with const and pure attributes
278
279         Mark functions per suggestions from gcc-4.6 when using these options:
280         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
281         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
282         Follow these guidelines: when possible, apply the attribute to
283         an extern declaration, not to its definition.  Apply it to the
284         definition only when the definition is static.
285         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
286         * lib/argv-iter.h (argv_iter_n_args): Likewise.
287         * lib/base64.h (isbase64): Likewise.
288         * lib/basename-lgpl.c (last_component, base_len): Likewise.
289         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
290         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
291         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
292         (c_tolower, c_toupper): Likewise.
293         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
294         * lib/chdir-long.c (find_non_slash): Likewise.
295         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
296         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
297         * lib/file-type.h (file_type): Likewise.
298         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
299         * lib/filevercmp.c (verrevcmp): Likewise.
300         * lib/freadahead.h (freadahead): Likewise.
301         * lib/fts.c (fts_maxarglen): Likewise.
302         * lib/hash-pjw.h (hash_pjw): Likewise.
303         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
304         * lib/hash.c (is_prime, next_prime): Likewise.
305         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
306         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
307         (hash_table_ok, hash_get_first, hash_string): Likewise.
308         (compute_bucket_size): Likewise.
309         * lib/i-ring.h (i_ring_empty): Likewise.
310         * lib/isnan.c (isnanl): Likewise.
311         * lib/math.h (isnanl, rpl_isnanl): Likewise.
312         * lib/memcasecmp.h (memcasecmp): Likewise.
313         * lib/memchr2.h (memchr2): Likewise.
314         * lib/memcmp2.h (memcmp2): Likewise.
315         * lib/parse-datetime.y (lookup_zone): Likewise.
316         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
317         [!WINDOWS_SOCKETS]: Likewise.
318         * lib/strnlen1.h (strnlen1): Likewise.
319         * lib/uniwidth.in.h (uc_width): Likewise.
320         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
321         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
322         (quoting_options_from_style): Add a comment.
323         * lib/propername.h (proper_name): Add a comment.
324
325 2011-11-27  Bruno Haible  <bruno@clisp.org>
326
327         Remove unused macros from !_LIBC code in glibc-borrowed files.
328         * lib/fnmatch.c (STRCOLL): Remove macro.
329         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
330         * lib/glob.c (__stat, __readdir64): Remove macros.
331         * lib/tempname.c (__open64, __xstat64): Remove macros.
332         Suggested by Paul Eggert.
333
334 2011-11-27  Bruno Haible  <bruno@clisp.org>
335
336         getcwd: Fix link error on MSVC 9.
337         * modules/getcwd (Depends-on): Add readdir, rewinddir.
338
339 2011-11-27  Bruno Haible  <bruno@clisp.org>
340
341         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
342         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
343         HAVE_OPENDIR is 0.
344         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
345         HAVE_CLOSEDIR is 0.
346         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
347         is 0.
348         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
349
350 2011-11-27  Bruno Haible  <bruno@clisp.org>
351
352         getcwd: Fix bug from 2011-08-17.
353         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
354         platforms that need it.
355         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
356         code of 4 to be a failure, not a success. This ensures that
357         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
358
359 2011-11-27  Bruno Haible  <bruno@clisp.org>
360
361         binary-io tests: Avoid test failure on mingw when libtool is used.
362         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
363         Don't verify the size of t-bin-out1.tmp here.
364         * tests/test-binary-io.sh: Verify it here.
365         Reported by Simon Josefsson.
366
367 2011-11-26  Bruno Haible  <bruno@clisp.org>
368
369         Fix conflict between two instantiations of module 'unistd'.
370         * gnulib-tool (func_emit_autoconf_snippet): Substitute
371         ${include_guard_prefix} also in the autoconf snippet.
372         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
374         GNULIB_UNISTD_H_GETOPT.
375         * modules/getopt-posix (configure.ac): Set the
376         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
377         * modules/getopt-gnu (configure.ac): Likewise.
378         * modules/unistd (Makefile.am): Change the substitution value of
379         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
380         Reported by Simon Josefsson.
381
382 2011-11-25  Bruno Haible  <bruno@clisp.org>
383
384         pagealign_alloc: Doc and comments.
385         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
386         module.
387         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
388
389 2011-11-25  Jim Meyering  <meyering@redhat.com>
390
391         test-update-copyright.sh: avoid false-positive failure
392         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
393         around false positive failure on Cygwin/Windows.  The latter was
394         matching erroneously-created files with names like
395         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
396
397 2011-11-25  Simon Josefsson  <simon@josefsson.org>
398
399         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
400         * m4/valgrind-tests.m4: Check that the parameters that will be
401         used works, not just a subset of them.  Reported by Bruno Haible
402         <bruno@clisp.org>.
403
404 2011-11-24  Jim Meyering  <meyering@redhat.com>
405
406         test-stdalign.c: comment out long double tests
407         * tests/test-stdalign.c: Don't try to reduce alignment of long double
408         variables.  That provokes errors like this from gcc-4.7.0 20111124:
409         error: '_Alignas' specifiers cannot reduce alignment of \
410         'static_longdouble_alignas'.
411
412 2011-11-22  Jim Meyering  <meyering@redhat.com>
413
414         init.sh: make "compare /dev/null FILE" output more readable
415         * tests/init.sh (compare_): Document the preferred order of arguments.
416         (emit_diff_u_header_): New function.
417         (compare_dev_null_): Emit a simulated diff, rather than just the
418         contents of the unexpected file.  Suggestion from Bruno Haible.
419
420 2011-11-21  Jim Meyering  <meyering@redhat.com>
421             Eric Blake  <eblake@redhat.com>
422
423         init.sh: work around OSF/1 5.1's mishandling of /dev/null
424         * tests/init.sh: Make our compare function slightly more portable.
425         Reported by Bruno Haible in
426         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
427
428 2011-11-21  Simon Josefsson  <simon@josefsson.org>
429
430         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
431         before using it, in code that ends up in config.h.
432
433 2011-11-20  Bruno Haible  <bruno@clisp.org>
434
435         getcwd: Work around getcwd bug on AIX 5..7.
436         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
437         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
438         Use a different value for gl_cv_func_getcwd_path_max. Move the
439         definition of HAVE_PARTLY_WORKING_GETCWD from here...
440         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
441         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
442         Define HAVE_MINIMALLY_WORKING_GETCWD.
443         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
444         where it is not even minimally working, that is, on AIX.
445         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
446         m4/getcwd-path-max.m4.
447         (main): Update exit code computation.
448         * doc/posix-functions/getcwd.texi: Mention list of platforms where
449         getcwd does not handle long file names.
450
451 2011-11-20  Bruno Haible  <bruno@clisp.org>
452
453         getcwd: Fix bug from 2009-09-10.
454         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
455         like "no".
456
457 2011-11-20  Simon Josefsson  <simon@josefsson.org>
458
459         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
460
461 2011-11-20  Bruno Haible  <bruno@clisp.org>
462
463         fma tests: Avoid shadowing local variables.
464         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
465         expected.
466
467 2011-11-20  Bruno Haible  <bruno@clisp.org>
468
469         copysignf tests: Fix.
470         * tests/test-copysignf.c: Fix signature check.
471
472 2011-11-20  Bruno Haible  <bruno@clisp.org>
473
474         fma: Remove unused code.
475         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
476         unused macros.
477
478 2011-11-20  Bruno Haible  <bruno@clisp.org>
479
480         sethostname: Fix doc about AIX.
481         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
482         sethostname; it has it.
483
484         sethostname: Mention more portability problems.
485         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
486         problem.
487         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
488
489 2011-11-19  Bruno Haible  <bruno@clisp.org>
490
491         Depend on module fcntl-h when AT_FDCWD is used.
492         * modules/utimens (Depends-on): Add fcntl-h.
493         * modules/areadlinkat (Depends-on): Likewise.
494         * modules/areadlinkat-with-size (Depends-on): Likewise.
495         * modules/faccessat (Depends-on): Likewise.
496         * modules/fchmodat (Depends-on): Likewise.
497         * modules/fchownat (Depends-on): Likewise.
498         * modules/getcwd (Depends-on): Likewise.
499         * modules/mkdirat (Depends-on): Likewise.
500         * modules/mkfifoat (Depends-on): Likewise.
501         * modules/readlinkat (Depends-on): Likewise.
502         * modules/symlinkat (Depends-on): Likewise.
503         * modules/dup2-tests (Depends-on): Likewise.
504         * modules/fdutimensat-tests (Depends-on): Likewise.
505         * modules/futimens-tests (Depends-on): Likewise.
506
507 2011-11-19  Bruno Haible  <bruno@clisp.org>
508
509         euidaccess: Update a comment.
510         * lib/euidaccess.c: Update comment about platforms with faccessat.
511
512 2011-11-19  Bruno Haible  <bruno@clisp.org>
513
514         openat: Fix file list.
515         * modules/openat (Files): Remove lib/at-func.c.
516
517 2011-11-19  Bruno Haible  <bruno@clisp.org>
518
519         fstatat: Simplify.
520         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
521         gnulib should define rpl_fstatat, there is a
522         "#define fstatat rpl_fstatat" in <sys/stat.h>.
523
524 2011-11-19  Bruno Haible  <bruno@clisp.org>
525
526         Ensure 'inline' can be used in tests/test-utimens-common.h.
527         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
528         * modules/futimens-tests (configure.ac): Likewise.
529         * modules/utimens-tests (configure.ac): Likewise.
530         * modules/utimensat-tests (configure.ac): Likewise.
531
532 2011-11-19  Simon Josefsson  <simon@josefsson.org>
533
534         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
535         not hash_insert0.
536         (hash_insert_if_absent): Doc fix.
537
538 2011-11-19  Simon Josefsson  <simon@josefsson.org>
539
540         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
541
542 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
543
544         test-getcwd: disambiguate exit status
545         * tests/test-getcwd.c (test_long_name): Return 0..7.
546         (main): Exit with an unambiguous exit status.  The old
547         code yielded a mysterious mixture of two failure codes.
548
549         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
550         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
551         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
552         rpl_fstatat or fstatat.  This should fix the other problem
553         reported by Kai Habel in
554         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
555         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
556         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
557         and I reproduced it on a Solaris 8 host we still have in production.
558
559 2011-11-18  Jim Meyering  <meyering@redhat.com>
560
561         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
562         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
563         Add a sentence to the comment.
564         (hash_insert0): New function that simply calls hash_insert_if_absent.
565         * lib/hash.h (hash_insert_if_absent): Declare it.
566         (hash_insert0): Add deprecation attribute.
567         (_GL_ATTRIBUTE_DEPRECATED): Define.
568         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
569         not hash_insert0.
570         * NEWS: Mention it, even though it's not really an incompatible change.
571
572 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
573
574         openat: avoid compilation failure due to lack of <errno.h> inclusion
575         * lib/openat.c: Include <errno.h>.
576
577 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
578
579         * modules/getcwd (Depends-on): Add fdopendir.
580         This fixes one of the two problems reported by Kai Habel in
581         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
582
583         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
584         stdalign problem reported by Ian Beckwith in
585         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
586         * modules/crypto/gc-arcfour (Depends-on):
587         Depend conditionally on crypto/arcfour.
588         * modules/crypto/gc-arctwo (Depends-on):
589         Depend conditionally on crypto/arctwo.
590         * modules/crypto/gc-des (Depends-on):
591         Depend conditionally on crypto/des.
592         * modules/crypto/gc-hmac-md5 (Depends-on):
593         Depend conditionally on crypto/hmac-md5.
594         * modules/crypto/gc-hmac-sha1 (Depends-on):
595         Depend conditionally on crypto/hmac-sha1.
596         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
597         * modules/crypto/gc-md4 (Depends-on):
598         Depend conditionally on crypto/md4.
599         * modules/crypto/gc-md5 (Depends-on):
600         Depend conditionally on crypto/md5.
601         * modules/crypto/gc-rijndael (Depends-on):
602         Depend conditionally on crypto/rijndael.
603         * modules/crypto/gc-sha1 (Depends-on):
604         Depend conditionally on crypto/sha1.
605         * modules/crypto/gc-arcfour:
606         * modules/crypto/gc-arctwo:
607         * modules/crypto/gc-des:
608         * modules/crypto/gc-hmac-md5:
609         * modules/crypto/gc-hmac-sha1:
610         * modules/crypto/gc-md2:
611         * modules/crypto/gc-md4:
612         * modules/crypto/gc-md5:
613         * modules/crypto/gc-rijndael:
614         * modules/crypto/gc-sha1:
615         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
616         now that the conditional dependencies do the work for us.
617
618 2011-11-17  Jim Meyering  <meyering@redhat.com>
619
620         tests: factor st_ctime-comparison out of two headers
621         * tests/test-utimens-common.h (ctime_compare): Define.
622         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
623         * tests/test-lutimens.h (test_lutimens): Likewise.
624         * tests/test-utimens.h (test_utimens): Likewise.
625
626         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
627         Invoke the test program via an init.sh-using wrapper.
628         * tests/test-getcwd.sh: New file.
629         * modules/getcwd-tests (Files): Add it.
630         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
631
632 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
633
634         gitlog-to-changelog: support multi-author commits.
635         The FSF cares about keeping track of all authors of patches to its
636         projects, but Git doesn't provide obvious support for multi-author
637         changesets. Consensus seems to be forming around the use of extra
638         Signed-off-by inspired lines in the log message formatted as
639         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
640         multi-author commits between version control systems.
641         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
642         log message and output in standard ChangeLog multi-author format.
643         Reported by Peter Rosin <peda@lysator.liu.se>
644
645 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
646             Bruno Haible  <bruno@clisp.org>
647
648         Fix some modules' file list.
649         * modules/fstatat (Files): Add m4/lstat.m4.
650         * modules/openat (Files): Likewise.
651         * modules/unlinkat (Files): Likewise.
652
653 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
654
655         maint.mk: fix tight-scope.mk generation in VPATH builds.
656         * top/maint.mk (tight-scope.mk): Make sure to prefix file
657         reference with $(srcdir) so that the file is found correctly even
658         when running `make syntax-check' in a VPATH build.
659
660 2011-11-13  Bruno Haible  <bruno@clisp.org>
661             Jim Meyering  <meyering@redhat.com>
662
663         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
664         * tests/init.sh (compare): Remove "No differences encountered" or
665         synonymous output from the 'diff' program.
666
667 2011-11-13  Bruno Haible  <bruno@clisp.org>
668
669         Makefile: Tweak indentation.
670         * Makefile: Use tab as first character in every line that contains rule
671         commands.
672
673 2011-11-13  Bruno Haible  <bruno@clisp.org>
674
675         Syntax check for copyright statements.
676         * check-copyright: New file.
677         * Makefile (sc_check_copyright): New rule.
678
679 2011-11-13  Simon Josefsson  <simon@josefsson.org>
680
681         * build-aux/git-version-gen: Add --prefix to configure the tag
682         match string.
683
684 2011-11-13  Simon Josefsson  <simon@josefsson.org>
685
686         * build-aux/git-version-gen: Add --help and --version.
687
688 2011-11-12  Jim Meyering  <meyering@redhat.com>
689
690         revamp the other test-exclude?.sh scripts to use init.sh, too
691         * tests/test-exclude1.sh: Use init.sh.
692         * tests/test-exclude2.sh: Likewise.
693         * tests/test-exclude3.sh: Likewise.
694         * tests/test-exclude4.sh: Likewise.
695         * tests/test-exclude5.sh: Likewise.
696         * tests/test-exclude6.sh: Likewise.
697         * tests/test-exclude7.sh: Likewise.
698         * tests/test-exclude8.sh: Likewise.
699         * modules/exclude-tests (Files): List init.sh.
700
701         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
702         These shell scripts ignored failure of the binary test-exclude,
703         so making the latter return 77 didn't cause them to be skipped.
704         * tests/test-exclude5.sh: Exit with test-exclude's error status
705         when that program fails.  Revamp to use init.sh.
706         * tests/test-exclude2.sh: Likewise.
707
708         test-exclude: fix a typo
709         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
710
711 2011-11-11  Bruno Haible  <bruno@clisp.org>
712
713         obstack: Fix compilation error on MSVC 9.
714         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
715
716 2011-11-11  Jim Meyering  <meyering@redhat.com>
717
718         test-exclude: skip tests rather than failing on deficient systems
719         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
720         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
721         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
722         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
723
724 2011-11-10  Bruno Haible  <bruno@clisp.org>
725
726         ptsname_r test: Avoid gcc warning on glibc systems.
727         * tests/test-ptsname_r.c (null_ptr): New function.
728         (test_errors): Use it.
729
730 2011-11-10  Bruno Haible  <bruno@clisp.org>
731
732         ptsname_r: Avoid compilation error on OSF/1 5.1.
733         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
735         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
736         function is not declared or incompatibly declared.
737         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
738         * modules/ptsname_r (Depends-on, configure.ac): Update.
739         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
740
741 2011-11-10  Bruno Haible  <bruno@clisp.org>
742
743         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
744         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
745         When cross-compiling, guess yes on all platforms except AIX.
746         Reported by Ludovic Courtès <ludo@gnu.org>.
747
748 2011-11-09  Bruno Haible  <bruno@clisp.org>
749
750         ptsname_r tests: Fix bugs.
751         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
752         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
753
754 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
755
756         fstatat: work with cross-compilation
757         Problem reported by Ludovic Courtès in
758         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
759         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
760         "cross-compiling" and assume the bug is present.  Replace
761         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
762         an inverted sense, to be more conservative about our assumptions.
763         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
764
765 2011-11-09  Bruno Haible  <bruno@clisp.org>
766
767         Improve MODULES.html output.
768         * modules/mkfifoat (Description): Use the word "function".
769         * modules/readlinkat (Description): Likewise.
770         * modules/symlinkat (Description): Likewise.
771
772 2011-11-09  Eric Blake  <eblake@redhat.com>
773
774         ptsname_r-tests: new test module
775         * modules/ptsname_r-tests: New module.
776         * tests/test-ptsname_r.c: New file.
777
778         ptsname_r: new module
779         * modules/ptsname_r: New module.
780         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
781         * lib/ptsname.c (__ptsname_r): Split...
782         * lib/ptsname_r.c: ...into new file.
783         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
784         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
785         * modules/stdlib (Makefile.am): Substitute witnesses.
786         * lib/stdlib.in.h (ptsname_r): Declare it.
787         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
788         * MODULES.html.sh (Misc): Likewise.
789         * modules/ptsname (Depends-on): Alter dependency.
790         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
791
792 2011-11-09  Jim Meyering  <meyering@redhat.com>
793
794         announce-gen: be more concise when there's only one URL+tarball
795         * build-aux/announce-gen (get_tool_versions): When you distribute
796         only one type of tarball, combine the first two "Here are..."
797         sections and make the key-checking grammar independent of
798         how many tarballs there are.
799
800 2011-11-09  Eric Blake  <eblake@redhat.com>
801
802         openpty: provide a stub on mingw
803         * lib/pty.in.h (includes): Provide forward declarations.
804         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
805
806         raise: fix mingw handling of SIGPIPE
807         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
808
809 2011-11-08  Bruno Haible  <bruno@clisp.org>
810
811         More conditional dependencies.
812         * modules/faccessat (Depends-on): Add conditions.
813         * modules/fchmodat (Depends-on): Likewise.
814         * modules/fchownat (Depends-on): Likewise.
815         * modules/fstatat (Depends-on): Likewise.
816         * modules/mkfifoat (Depends-on): Likewise.
817         * modules/readlinkat (Depends-on): Likewise.
818         * modules/symlinkat (Depends-on): Likewise.
819         * modules/unlinkat (Depends-on): Likewise.
820         * modules/utimensat (Depends-on): Likewise.
821         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
822         * modules/linkat (Depends-on): Refine the conditions.
823         * modules/renameat (Depends-on): Likewise.
824
825 2011-11-08  Bruno Haible  <bruno@clisp.org>
826
827         faccessat: Move AC_LIBOBJ invocation to module description.
828         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
829         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
830         invocation from here...
831         * modules/faccessat (configure.ac): ... to here. Invoke
832         gl_PREREQ_FACCESSAT.
833
834 2011-11-08  Bruno Haible  <bruno@clisp.org>
835
836         faccessat: Simplify autoconf macro.
837         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
838         gl_FUNC_EUIDACCESS.
839
840 2011-11-08  Bruno Haible  <bruno@clisp.org>
841
842         renameat: Fix dependencies.
843         * modules/renameat (Depends-on): Add stdbool.
844
845 2011-11-08  Bruno Haible  <bruno@clisp.org>
846
847         mkfifoat: Fix module description.
848         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
849         not gl_UNISTD_MODULE_INDICATOR.
850
851 2011-11-08  Bruno Haible  <bruno@clisp.org>
852
853         fstatat: Remove unused dependency.
854         * modules/fstatat (Depends-on): Remove fstat.
855
856 2011-11-08  Simon Josefsson  <simon@josefsson.org>
857
858         GNUmakefile: behave when Makefile is missing.
859         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
860
861 2011-11-08  Bruno Haible  <bruno@clisp.org>
862
863         openat: Conditionalize dependencies.
864         * lib/openat.c: Reduce the scope of some #includes.
865         * modules/openat (Depends-on): Add conditions.
866
867 2011-11-07  Jim Meyering  <meyering@redhat.com>
868
869         maint.mk: extract GPG key ID without using a temporary file
870         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
871         without using a temporary file.  Based on a suggestion from Werner Koch
872         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
873
874 2011-11-07  Eric Blake  <eblake@redhat.com>
875
876         grantpt: fix typo
877         * lib/stdlib.in.h (grantpt): Check correct function.
878
879         maint.mk: silence new syntax check
880         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
881
882 2011-11-06  Bruno Haible  <bruno@clisp.org>
883
884         Doc about floating-point and math API.
885         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
886         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
887
888 2011-11-06  Bruno Haible  <bruno@clisp.org>
889
890         stdalign tests: Skip the test when compiled by Sun C.
891         * tests/test-stdalign.c (main): Skip the test on Sun C.
892
893 2011-11-06  Bruno Haible  <bruno@clisp.org>
894
895         ansi-c++-opt: Complete the 2011-06-05 change.
896         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
897         does not support namespaces, set the variable to "no", not to ":".
898
899 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
900
901         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
902
903 2011-11-06  Bruno Haible  <bruno@clisp.org>
904
905         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
906         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
907         (minus_zerol) [HP-UX]: New macro.
908         (unary_minus) [HP-UX]: New function.
909         (copysignl) [HP-UX]: Use unary_minus function.
910
911 2011-11-06  Bruno Haible  <bruno@clisp.org>
912
913         ldexp, ldexpf, ldexpl: Enhance tests.
914         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
915         and tests/test-ldexpl.c.
916         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
917         LDEXP, MIN_EXP, MAX_EXP): New macros.
918         Include test-ldexp.h.
919         (main): Just call test_function.
920         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
921         infinity.h, nan.h.
922         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
923         MAX_EXP): New macros.
924         Include test-ldexp.h.
925         (x, y): Remove variables.
926         (main): Just call test_function.
927         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
928         infinity.h, nan.h.
929         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
930         MAX_EXP): New macros.
931         Include test-ldexp.h.
932         (x, y): Remove variables.
933         (main): Just call test_function.
934         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
935         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
936         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
937         (Depends-on): Add isnand-nolibm, signbit, float.
938         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
939         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
940         (Depends-on): Add isnanf-nolibm, signbit, float.
941
942 2011-11-06  Bruno Haible  <bruno@clisp.org>
943
944         math tests: Cosmetics.
945         * tests/test-math-c++.cc: Reorder declarations.
946
947 2011-11-05  Bruno Haible  <bruno@clisp.org>
948
949         fma*: Simplify test.
950         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
951         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
952
953         Tests for module 'fmal'.
954         * modules/fmal-tests: New file.
955         * tests/test-fmal1.c: New file.
956         * tests/test-fmal2.c: New file.
957
958         New module 'fmal'.
959         * lib/math.in.h (fmal): New declaration.
960         * lib/fmal.c: New file.
961         * m4/fmal.m4: New file.
962         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
963         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
964         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
965         REPLACE_FMAL.
966         * modules/fmal: New file.
967         * doc/posix-functions/fmal.texi: Mention the new module and the various
968         bugs.
969
970         Tests for module 'fmaf'.
971         * modules/fmaf-tests: New file.
972         * tests/test-fmaf1.c: New file.
973         * tests/test-fmaf2.c: New file.
974
975         New module 'fmaf'.
976         * lib/math.in.h (fmaf): New declaration.
977         * lib/fmaf.c: New file.
978         * m4/fmaf.m4: New file.
979         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
980         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
981         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
982         REPLACE_FMAF.
983         * modules/fmaf: New file.
984         * doc/posix-functions/fmaf.texi: Mention the new module and the various
985         bugs.
986
987         Tests for module 'fma'.
988         * modules/fma-tests: New file.
989         * tests/test-fma1.c: New file.
990         * tests/test-fma1.h: New file.
991         * tests/test-fma2.c: New file.
992         * tests/test-fma2.h: New file.
993
994         New module 'fma'.
995         * lib/math.in.h (fma): New declaration.
996         * lib/fma.c: New file.
997         * m4/fma.m4: New file.
998         * m4/fegetround.m4: New file.
999         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
1000         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
1001         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
1002         REPLACE_FMA.
1003         * modules/fma: New file.
1004         * doc/posix-functions/fma.texi: Mention the new module and the various
1005         bugs.
1006
1007         Extend gl_MATHFUNC.
1008         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
1009         Support 'void' as argument type.
1010         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
1011
1012 2011-11-05  Jim Meyering  <meyering@redhat.com>
1013
1014         maint.mk: also prohibit inclusion of dirent.h without use
1015         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
1016
1017 2011-11-05  Bruno Haible  <bruno@clisp.org>
1018
1019         ldexpl tests: Avoid test failure on MSVC 9.
1020         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
1021         value. Needed in order to enforce the conversion from a value greater
1022         than LDBL_MAX to Infinity.
1023
1024 2011-11-05  Bruno Haible  <bruno@clisp.org>
1025
1026         New modules 'at-internal', 'openat-h', split off from module 'openat'.
1027         * modules/at-internal: New file, extracted from modules/openat.
1028         * modules/openat-h: New file.
1029         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
1030         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
1031         * modules/openat (Description): Add reference to POSIX function.
1032         (Files): Remove lib/openat.h, lib/openat-proc.c.
1033         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
1034         intprops, unistd.
1035         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
1036         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
1037         gl_FCNTL_MODULE_INDICATOR.
1038         (Include): Remove unistd.h, openat.h.
1039         * modules/areadlinkat (Files): Add lib/at-func.c.
1040         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1041         openat-die, openat-h, save-cwd.
1042         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
1043         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1044         openat-die, openat-h, save-cwd, unistd.
1045         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
1046         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1047         openat-h, save-cwd. Remove fcntl-h, openat.
1048         * modules/fchmodat (Files): Remove lib/openat.h.
1049         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1050         openat, stdbool, unistd.
1051         * modules/fchownat (Files): Remove lib/openat.h.
1052         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1053         openat, stdbool, sys_stat.
1054         * modules/fdopendir (Files): Remove lib/openat-priv.h,
1055         lib/openat-proc.c.
1056         (Depends-on): Add at-internal.
1057         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
1058         * modules/fstatat (Files): Remove lib/openat.h.
1059         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1060         stdbool, unistd.
1061         * modules/fts (Depends-on): Add openat-h.
1062         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
1063         openat.
1064         * modules/mkdirat (Files): Remove lib/openat.h.
1065         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1066         openat, stdbool, sys_stat.
1067         * modules/mkfifoat (Files): Add lib/at-func.c.
1068         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1069         openat-h, save-cwd. Remove fcntl-h, openat.
1070         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
1071         * modules/readlinkat (Files): Add lib/at-func.c.
1072         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1073         openat-h, save-cwd. Remove fcntl-h, openat.
1074         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
1075         openat.
1076         * modules/selinux-at (Files): Add lib/at-func.c.
1077         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1078         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
1079         * modules/symlinkat (Files): Add lib/at-func.c.
1080         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1081         openat-h, save-cwd. Remove fcntl-h, openat.
1082         * modules/unlinkat (Files): Remove lib/openat.h.
1083         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1084         stdbool.
1085         * modules/utimensat (Files): Add lib/at-func.c.
1086         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
1087         openat-die, openat-h, save-cwd.
1088         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
1089         * modules/fdutimensat-tests (Depends-on): Add openat.
1090         * modules/fstatat-tests (Depends-on): Add openat-h.
1091         * modules/readlinkat-tests (Depends-on): Add openat.
1092         * modules/symlinkat-tests (Depends-on): Add openat.
1093
1094 2011-11-05  Bruno Haible  <bruno@clisp.org>
1095
1096         openat: Include <stdbool.h>.
1097         * lib/openat.c: Include <stdbool.h>.
1098
1099 2011-11-04  Bruno Haible  <bruno@clisp.org>
1100
1101         fchownat, renameat, unlinkat: Fix dependencies.
1102         * modules/fchownat (Depends-on): Add fstatat.
1103         * modules/renameat (Depends-on): Likewise.
1104         * modules/unlinkat (Depends-on): Likewise.
1105
1106 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1107
1108         openat: remove direct dependency on dirent
1109         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
1110         and hasn't been needed ever since fdopendir was split into its own
1111         module on 2009-08-31.
1112         * modules/openat (Depends-on): Remove dirent.
1113
1114 2011-11-04  Bruno Haible  <bruno@clisp.org>
1115
1116         renameat: Optimize code size.
1117         * modules/renameat (configure.ac): Don't compile at-func2.c if
1118         REPLACE_RENAMEAT is 1.
1119
1120 2011-11-04  Bruno Haible  <bruno@clisp.org>
1121
1122         openat tests: Fix file list.
1123         * modules/openat-tests (Files): Add tests/test-open.h.
1124
1125 2011-11-04  Bruno Haible  <bruno@clisp.org>
1126
1127         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
1128         * modules/fchmodat (Depends-on): Add openat-die.
1129         * modules/fchownat (Depends-on): Likewise.
1130         * modules/linkat (Depends-on): Likewise.
1131         * modules/renameat (Depends-on): Likewise.
1132         * modules/openat (Depends-on): Add dirent.
1133
1134 2011-11-04  Jim Meyering  <meyering@redhat.com>
1135
1136         at-func*.c: fix comments
1137         * lib/at-func2.c: Correct/improve first-line comment.
1138         * lib/at-func.c: Correct grammar in first-line comment.
1139
1140 2011-11-04  Bruno Haible  <bruno@clisp.org>
1141
1142         New module 'mkdirat', split off from module 'openat'.
1143         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
1144         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
1145         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
1146         * modules/mkdirat: New file, extracted from modules/openat.
1147         * modules/openat (Files): Remove lib/mkdirat.c.
1148         (Depends-on): Remove mkdir.
1149         (configure.ac): Remove AC_LIBOBJ of mkdirat.
1150         (Include): Remove <sys/stat.h>.
1151         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
1152         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
1153         tests/test-mkdir.h.
1154         (Depends-on): Remove ignore-value.
1155         (Makefile.am): Remove rules for test-mkdirat.
1156         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
1157         of module 'openat'.
1158         * NEWS: Mention the change.
1159
1160 2011-11-04  Bruno Haible  <bruno@clisp.org>
1161
1162         closedir: Avoid warning on mingw.
1163         * lib/closedir.c: Include <unistd.h>.
1164
1165 2011-11-04  Bruno Haible  <bruno@clisp.org>
1166
1167         New module 'fstatat', split off from module 'openat'.
1168         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
1169         defined.
1170         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
1171         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
1172         gl_FUNC_FSTATAT.
1173         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
1174         * modules/fstatat: New file, extracted from modules/openat.
1175         * modules/openat (Files): Remove lib/fstatat.c.
1176         (Depends-on): Remove lstat.
1177         (configure.ac): Remove AC_LIBOBJ of fstatat.
1178         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
1179         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
1180         tests/test-lstat.h, tests/test-stat.h.
1181         (Depends-on): Remove getcwd-lgpl.
1182         (Makefile.am): Remove rules for test-fstatat.
1183         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
1184         of module 'openat'.
1185         * NEWS: Mention the change.
1186         * modules/getcwd (Depends-on): Add fstatat.
1187         * modules/linkat (Depends-on): Likewise.
1188         * modules/mkfifoat-tests (Depends-on): Likewise.
1189         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
1190
1191 2011-11-03  Bruno Haible  <bruno@clisp.org>
1192
1193         New module 'unlinkat', split off from module 'openat'.
1194         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
1195         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
1196         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
1197         * modules/unlinkat: New file, extracted from modules/openat. Correct
1198         the dependency conditions.
1199         * modules/openat (Files): Remove lib/unlinkat.c.
1200         (Depends-on): Remove rmdir, unlink.
1201         (configure.ac): Remove AC_LIBOBJ of unlinkat.
1202         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
1203         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
1204         tests/test-rmdir.h, tests/test-unlink.h.
1205         (Depends-on): Remove unlinkdir.
1206         (Makefile.am): Remove rules for test-unlinkat.
1207         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
1208         of module 'openat'.
1209         * NEWS: Mention the change.
1210         * modules/linkat-tests (Depends-on): Add unlinkat.
1211         * modules/mkfifoat-tests (Depends-on): Likewise.
1212         * modules/readlinkat-tests (Depends-on): Likewise.
1213
1214 2011-11-02  Bruno Haible  <bruno@clisp.org>
1215
1216         New module 'fchmodat', split off from module 'openat'.
1217         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
1218         defined.
1219         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
1220         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
1221         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
1222         * modules/fchmodat: New file, extracted from modules/openat.
1223         * modules/openat (Files): Remove lib/fchmodat.c.
1224         (configure.ac): Remove AC_LIBOBJ of fchmodat.
1225         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
1226         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
1227         (Makefile.am): Remove rules for test-fchmodat.
1228         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
1229         of module 'openat'.
1230         * NEWS: Mention the change.
1231
1232 2011-11-02  Jim Meyering  <meyering@redhat.com>
1233
1234         putenv: indent #definition of "environ" to placate cppi
1235         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
1236
1237         gitlog-to-changelog: provide a ChangeLog-repair mechanism
1238         Git logs are often treated as immutable, because editing them
1239         changes the SHA1 checksums of all descendants.  Thus, errors in
1240         git logs tend to stay there forever.  However, when we generate
1241         a ChangeLog file -- typically for distribution -- from that git log,
1242         we can actually make corrections in the generated file.  The key
1243         lies in recording in machine-readable/applicable form the desired
1244         corrections.  See --help for description and an example.
1245         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
1246         (usage): Describe it; alphabetize option descriptions.
1247         (main): Honor the new option, carefully.
1248
1249 2011-11-01  Jim Meyering  <meyering@redhat.com>
1250
1251         gitlog-to-changelog: avoid an infloop
1252         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
1253         that ends up being empty.
1254
1255 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1256
1257         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
1258         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
1259         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
1260         contains (possibly-quoted) backslashes.  This should avoid
1261         all-too-common shell bugs if COMPLICATED contains backslashes in
1262         the "wrong" places.  Reported by David Evans in
1263         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
1264         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
1265         because we want ASCII ranges.  Is there some reason we don't use
1266         the C locale everywhere in this script?
1267         (func_module, top level): Avoid unwanted pathname expansion when
1268         $repo_url_prefix or $repo_url_suffix_repl contain shell
1269         metacharacters like '?' and '*'.
1270
1271 2011-11-01  Bruno Haible  <bruno@clisp.org>
1272
1273         fchownat: Improve description.
1274         * modules/fchownat (Description): Add link to function.
1275
1276 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1277
1278         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
1279         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
1280         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
1281         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1282
1283 2011-11-01  Bruno Haible  <bruno@clisp.org>
1284
1285         alignof: Avoid collision with stdalign module.
1286         * lib/alignof.h (alignof): Remove macro.
1287         * NEWS: Mention the change.
1288         Reported by Paul Eggert.
1289
1290 2011-11-01  Bruno Haible  <bruno@clisp.org>
1291
1292         New module 'fchownat', split off from module 'openat'.
1293         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
1294         defined.
1295         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
1296         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
1297         invoke gl_FUNC_FCHOWNAT.
1298         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
1299         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
1300         * modules/fchownat: New file, extracted from modules/openat.
1301         * modules/openat (Files): Remove lib/fchownat.c.
1302         (Depends-on): Remove lchown.
1303         (configure.ac): Remove AC_LIBOBJ of fchownat.
1304         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
1305         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
1306         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
1307         (Depends-on): Remove mgetgroups, usleep, stat-time.
1308         (configure.ac): Remove test for getegid.
1309         (Makefile.am): Remove rules for test-fchownat.
1310         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
1311         of module 'openat'.
1312         * NEWS: Mention the change.
1313
1314 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1315
1316         stdalign: port better to MSVC and to Sun C 5.11
1317         This fixes some of the problems reported by Bruno Haible in
1318         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
1319         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
1320         shortcomings of MSVC and of Sun C 5.11.
1321         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
1322         around __declspec arg.
1323         * modules/stdalign-tests (Files): Add tests/macros.h.
1324         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
1325         Include macros.h, for ASSERT.
1326         (DECLARE_ALIGNED): Remove.
1327         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
1328         to catch bug), and to 1 if not (simplifies the rest of the code).
1329         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
1330         (CHECK_AUTO): Remove.
1331         (CHECK_ALIGNED): Check only the alignment of the static vars,
1332         since auto var alignment isn't supported by Sun C 5.11.
1333         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
1334         ASSERT failures are easier to diagnose.
1335
1336 2011-10-31  Bruno Haible  <bruno@clisp.org>
1337
1338         doc about some IRIX 5.3 problems.
1339         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
1340         on IRIX 5.3.
1341         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
1342         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
1343         5.3.
1344         * doc/posix-functions/grantpt.texi: Likewise.
1345         * doc/posix-functions/unlockpt.texi: Likewise.
1346         * doc/posix-functions/lgamma.texi: Likewise.
1347         * doc/posix-functions/nextafter.texi: Likewise.
1348         * doc/posix-functions/remainder.texi: Likewise.
1349         * doc/posix-functions/select.texi: Mention misplaced declaration on
1350         IRIX 5.3.
1351         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1352
1353 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
1354
1355         gitlog-to-changelog: fix git-log invocation.
1356         git-log mishandles date strings before 1970-01-01 UTC, and there is
1357         no use to specify --since=1970-01-01 by default anyway.
1358         * build-aux/gitlog-to-changelog: By default, when no --since option
1359         was given, do not specify explicit --since option to git-log.
1360
1361 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1362
1363         gitlog-to-changelog: new option --append-dot.
1364         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1365         first non-blank line of each commit message terminated with a dot.
1366
1367 2011-10-30  Bruno Haible  <bruno@clisp.org>
1368
1369         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1370         * lib/ffsl.h: Include <config.h>.
1371         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1372
1373 2011-10-30  Jim Meyering  <meyering@redhat.com>
1374
1375         GNUmakefile: reenable "make syntax-check" for most projects
1376         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1377         build-aux variable", "syntax-check" would do nothing but succeed with
1378         the "No version control files detected..." diagnostic (unless you
1379         happened to override _build-aux via cfg.mk).
1380         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1381         to precede inclusion of maint.mk.  Otherwise, these variables would
1382         be used undefined in any project that does not override the default.
1383
1384 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1385
1386         gitlog-to-changelog: treat a message with only blank lines as empty.
1387         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1388         trailing blank lines before the code that issues a warning about an
1389         empty commit message.
1390
1391 2011-10-30  Jim Meyering  <meyering@redhat.com>
1392
1393         test-parse-datetime.c: avoid new DST-related false positive test failure
1394         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
1395         based on the time/date we'll convert, not the current time.
1396         Otherwise, the moment we cross a DST boundary like today's in
1397         Europe, (CEST to CET), that offset ends up being one hour off.
1398
1399 2011-10-27  Bruno Haible  <bruno@clisp.org>
1400
1401         fstat: Tweak documentation.
1402         * modules/fstat (Description): More precise description.
1403
1404 2011-10-27  Bruno Haible  <bruno@clisp.org>
1405
1406         Update documentation regarding 'largefile' module.
1407         * doc/posix-functions/fstat.texi: Tweak wording.
1408         * doc/posix-functions/opendir.texi: Mention that the module fixes the
1409         problems with huge directories and/or small ino_t types.
1410         * doc/posix-functions/readdir.texi: Likewise.
1411         * doc/posix-functions/rewinddir.texi: Likewise.
1412
1413 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
1414
1415         maint.mk: don't maintain a second build-aux variable.
1416         * maint.mk (build_aux): Removed.  The maintainer-makefile module
1417         depends on GNUmakefile, which already maintains a cfg.mk
1418         overridable $(_build-aux) for projects with a non-standard
1419         build-aux directory location, although without the $(srcdir)
1420         prefix.  Use that variable consistently instead of introducing a
1421         second one.  Adjust all call sites.
1422
1423 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1424
1425         Add stdalign module and use it in other modules.
1426         This is based on a previous proposal by Bruno Haible
1427         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
1428
1429         stdalign: new module
1430         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
1431         * modules/stdalign: New files.
1432         * MODULES.html.sh (c1x_core_properties): Add stdalign.
1433         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
1434
1435         stdalign-tests: new module
1436         * modules/stdalign-tests, tests/test-stdalign.c: New files.
1437
1438         argp: use stdalign
1439         * lib/argp-parse.c: Include <stdalign.h>.
1440         (alignof): Remove.
1441         * modules/argp (Depends-on): Add stdalign.
1442
1443         crypto libraries: use stdalign
1444         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1445         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
1446         Do not include <stdlib.h> twice, in md4.c.
1447         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
1448         because we are accessing a pointer's bit-pattern, not a size.
1449         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
1450         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
1451         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1452         * modules/crypto/sha512: Likewise.
1453
1454         sys_socket: use stdalign, not alignof
1455         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
1456         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
1457
1458 2011-10-27  Bruno Haible  <bruno@clisp.org>
1459
1460         raise test: Avoid a test failure on Linux/MIPS.
1461         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
1462         because 99 is a valid signal on Linux/MIPS.
1463
1464 2011-10-27  Bruno Haible  <bruno@clisp.org>
1465
1466         nonblocking tests: Fix test failure on Linux/MIPS.
1467         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
1468         Set to 270000.
1469
1470 2011-10-27  Bruno Haible  <bruno@clisp.org>
1471
1472         utimensat: Work around problem on Linux/hppa.
1473         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1474         values.
1475         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1476
1477 2011-10-25  Jim Meyering  <meyering@redhat.com>
1478
1479         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1480         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1481         after symbols like NULL, size_t, etc.
1482         Reported by Alfred M. Szmidt.
1483
1484         maint.mk: exempt ENODATA from a syntax-check rule
1485         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1486         from the sc_prohibit_always-defined_macros syntax-check rule.
1487         Add a comment.  See this for more details:
1488         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1489
1490 2011-10-23  Jim Meyering  <meyering@redhat.com>
1491
1492         fts: close parent dir FD before returning from post-traversal fts_read
1493         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1494         unlink A, even though an FD open on A remained.  This is suboptimal
1495         (holding a file descriptor open longer than needed), but otherwise not
1496         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1497         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1498         that represents a real problem: it causes the removal of A to fail
1499         with e.g., "rm: cannot remove `A': Device or resource busy"
1500
1501         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1502         directory file descriptors.  After completing the final, FTS_DP,
1503         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1504         cache, but then proceeded to add a new FD to it via the subsequent
1505         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1506         final file descriptor would be closed only via fts_close's call to
1507         fd_ring_clear.  Now, it is usually closed earlier, via the final
1508         FTS_DP-returning fts_read call.
1509         * lib/fts.c (restore_initial_cwd): New function, converted from
1510         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1511         Update callers.
1512         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1513         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1514
1515 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1516             Bruno Haible  <bruno@clisp.org>
1517             Jim Meyering  <jim@meyering.net>
1518
1519         readme-release: improve safety of release prep instructions.
1520         * README-release: Don't git pull all branches when only master
1521         is needed for the release process.
1522         Run make maintainer-clean before changing trees and merging.
1523         Don't try to run ./configure right after git pull in case files
1524         that influence the bootstrap process have changed, move the
1525         ./configure step to after running ./bootstrap.
1526         Don't bootstrap "one last time"... it's the first time!
1527
1528 2011-10-22  Bruno Haible  <bruno@clisp.org>
1529
1530         errno, strerror-override: Support for MSVC 10.
1531         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1532         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1533         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1534         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1535         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1536         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1537         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1538         Assign values compatible with MSVC 10.
1539         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1540         New macros.
1541         (GNULIB_defined_EWINSOCK): New macro.
1542         * lib/strerror-override.c (strerror_override): Update accordingly.
1543         * lib/strerror-override.h: Likewise.
1544         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1545         longer equal to the corresponding errno value.
1546         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1547
1548 2011-10-22  Bruno Haible  <bruno@clisp.org>
1549
1550         perror: Recognize when test program crashes.
1551         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1552         strerror, set gl_cv_func_perror_works to no.
1553         Reported by Daniel Richard G. <skunk@iskunk.org>.
1554
1555         perror: Fix indentation.
1556         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1557
1558 2011-10-22  Bruno Haible  <bruno@clisp.org>
1559
1560         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1561         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1562         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1563         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1564         functions, not as a macro.
1565         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1566         macros.
1567         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1568         absence of macro.
1569         Suggested by Eric Blake.
1570         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1571
1572 2011-10-21  Bruno Haible  <bruno@clisp.org>
1573
1574         relocatable-prog-wrapper: Don't leave object files behind.
1575         * build-aux/install-reloc: Re-synchronize list of .o files to be
1576         removed with list of compilation units.
1577
1578 2011-10-20  Bruno Haible  <bruno@clisp.org>
1579
1580         openpty, posix_openpt: Remove code duplication.
1581         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1582         * lib/openpty.c: Include <stdlib.h>.
1583         (openpty): Use posix_openpt on all platforms except IRIX.
1584         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1585
1586 2011-10-20  Bruno Haible  <bruno@clisp.org>
1587
1588         unlockpt: Detect invalid argument.
1589         * lib/unlockpt.c: Include <fcntl.h>.
1590         (unlockpt): Check whether fd is valid, using fcntl().
1591         * modules/unlockpt (Depends-on): Add fcntl-h.
1592
1593 2011-10-20  Bruno Haible  <bruno@clisp.org>
1594
1595         openpty: Avoid compilation error on AIX 6.1.
1596         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1597
1598 2011-10-20  Bruno Haible  <bruno@clisp.org>
1599
1600         posix_openpt: Support for OpenBSD.
1601         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1602         (posix_openpt) [OpenBSD]: New code.
1603         * lib/grantpt.c: Include <fcntl.h>.
1604         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1605         * modules/grantpt (Depends-on): Add fcntl-h.
1606
1607 2011-10-20  Bruno Haible  <bruno@clisp.org>
1608
1609         posix_openpt test: Coding style.
1610         * tests/test-posix_openpt.c: Use GNU coding style.
1611
1612 2011-10-20  Bruno Haible  <bruno@clisp.org>
1613
1614         grantpt: Support --avoid=pt_chown.
1615         * modules/grantpt (Files): Add lib/pty-private.h.
1616
1617 2011-10-20  Bruno Haible  <bruno@clisp.org>
1618
1619         posix_openpt: Fix autoconf macro.
1620         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1621         unneeded check for _getpty.
1622
1623 2011-10-20  Bruno Haible  <bruno@clisp.org>
1624
1625         openpty: Update comments.
1626         * lib/openpty.c: Add comments about Minix.
1627
1628 2011-10-19  Eric Blake  <eblake@redhat.com>
1629
1630         openpty: relax license
1631         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1632
1633         pt_chown: use configmake to simplify build
1634         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1635
1636         ptsname and others: relax license
1637         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1638         * modules/unlockpt (License): Likewise.
1639         * modules/pt_chown (License): Likewise.
1640         * modules/ptsname (License): Likewise.
1641         * modules/ttyname_r (License): Likewise.
1642
1643 2011-10-19  Jim Meyering  <meyering@redhat.com>
1644
1645         posix_openpt: remove spurious #endif
1646         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1647
1648 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1649
1650         maint.mk: Respect $(build_aux) in web-manual rule.
1651         * top/maint.mk (web-manual): Find gen-announce script in user's
1652         $(build_aux) directory instead of hard-coding 'build-aux'.
1653
1654 2011-10-19  Bruno Haible  <bruno@clisp.org>
1655
1656         posix_openpt: Fix compilation error.
1657         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1658         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1659         Mention the openpty module as an alternative.
1660
1661 2011-10-19  Bruno Haible  <bruno@clisp.org>
1662
1663         Support for old NeXTstep 3.3 frexp().
1664         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1665         execution time of the test to 5 seconds.
1666         Reported by Daniel Richard G. <skunk@iskunk.org>.
1667
1668 2011-10-19  Bruno Haible  <bruno@clisp.org>
1669
1670         Support for old NeXTstep 3.3 sed.
1671         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1672         part, use /.../, not \|...|. Escape periods in the header file name.
1673         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1674         Reported by Daniel Richard G. <skunk@iskunk.org>.
1675
1676 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1677
1678         Support for old NeXTstep 3.3 gcc.
1679         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1680         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1681         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1682         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1683         * lib/regex.h (_Restrict_arr_): Likewise.
1684         * lib/regex_internal.h (re_token_t): Likewise.
1685         * lib/regexec.c (check_node_accept_bytes): Likewise.
1686         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1687
1688 2011-10-18  Eric Blake  <eblake@redhat.com>
1689
1690         posix_openpt: new module
1691         * modules/posix_openpt: New module.
1692         * m4/posix_openpt.m4: New file.
1693         * lib/posix_openpt.c: Likewise.
1694         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1695         (gl_STDLIB_H_DEFAULTS): Set defaults.
1696         * modules/stdlib (Makefile.am): Substitute macros.
1697         * lib/stdlib.in.h (posix_openpt): Declare.
1698         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1699         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1700         * modules/posix_openpt-tests: New test module.
1701         * tests/test-posix_openpt.c: New test.
1702
1703 2011-10-15  Bruno Haible  <bruno@clisp.org>
1704
1705         xstrtoll: Fix compilation failure.
1706         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1707         from lib/strtol.c.
1708         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1709         some platforms.
1710         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1711
1712 2011-10-15  Bruno Haible  <bruno@clisp.org>
1713
1714         vasnprintf: Optimize bit search operation.
1715         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1716         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1717         gl_DOUBLE_EXPONENT_LOCATION.
1718         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1719         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1720         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1721         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1722         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1723         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1724         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1725         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1726         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1727
1728 2011-10-15  Bruno Haible  <bruno@clisp.org>
1729
1730         vasnprintf: Fix comments.
1731         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1732
1733 2011-10-14  Bruno Haible  <bruno@clisp.org>
1734
1735         Tests for module 'integer_length_ll'.
1736         * modules/integer_length_ll-tests: New file.
1737         * tests/test-integer_length_ll.c: New file.
1738
1739         New module 'integer_length_ll'.
1740         * lib/integer_length_ll.c: New file.
1741         * modules/integer_length_ll: New file.
1742
1743 2011-10-14  Bruno Haible  <bruno@clisp.org>
1744
1745         Tests for module 'integer_length_l'.
1746         * modules/integer_length_l-tests: New file.
1747         * tests/test-integer_length_l.c: New file.
1748
1749         New module 'integer_length_l'.
1750         * lib/integer_length_l.c: New file.
1751         * modules/integer_length_l: New file.
1752
1753 2011-10-14  Bruno Haible  <bruno@clisp.org>
1754
1755         Tests for module 'integer_length'.
1756         * modules/integer_length-tests: New file.
1757         * tests/test-integer_length.c: New file.
1758
1759         New module 'integer_length'.
1760         * lib/integer_length.h: New file.
1761         * lib/integer_length.c: New file.
1762         * modules/integer_length: New file.
1763
1764 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1765
1766         popen: Fix dependency conditions.
1767         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1768
1769 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1770
1771         perror: Fix autoconf test.
1772         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1773         <stdlib.h> and <string.h>.
1774
1775 2011-10-14  Bruno Haible  <bruno@clisp.org>
1776
1777         ffsl: Optimize on 64-bit platforms.
1778         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1779         unrolling.
1780
1781 2011-10-13  Bruno Haible  <bruno@clisp.org>
1782
1783         ffsl: Optimize on 32-bit platforms.
1784         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1785         use ffs() without a loop.
1786
1787         ffsl, ffsll: Optimize for GCC.
1788         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1789         * lib/ffsl.c (GCC_BUILTIN): New macro.
1790         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1791
1792 2011-10-13  Bruno Haible  <bruno@clisp.org>
1793
1794         ffs, bcopy, memset: Support symbol renaming via config.h.
1795         * lib/ffs.c: Include <config.h>.
1796         * lib/bcopy.c: Likewise.
1797         * lib/memset.c: Likewise.
1798
1799 2011-10-10  Bruno Haible  <bruno@clisp.org>
1800
1801         atanl: Simplify for platforms where 'long double' == 'double'.
1802         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1803         alternative implementation.
1804         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1805         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1806         * modules/atanl (Depends-on): Add atan. Update conditions.
1807
1808 2011-10-10  Bruno Haible  <bruno@clisp.org>
1809
1810         acosl: Simplify for platforms where 'long double' == 'double'.
1811         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1812         alternative implementation.
1813         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1814         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1815         * modules/acosl (Depends-on): Add acos. Update conditions.
1816
1817 2011-10-10  Bruno Haible  <bruno@clisp.org>
1818
1819         asinl: Simplify for platforms where 'long double' == 'double'.
1820         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1821         alternative implementation.
1822         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1823         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1824         * modules/asinl (Depends-on): Add asin. Update conditions.
1825
1826 2011-10-10  Bruno Haible  <bruno@clisp.org>
1827
1828         tanl: Simplify for platforms where 'long double' == 'double'.
1829         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1830         implementation.
1831         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1832         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1833         * modules/tanl (Depends-on): Add tan. Update conditions.
1834         (configure.ac): Don't compile trigl.c if
1835         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1836
1837 2011-10-10  Bruno Haible  <bruno@clisp.org>
1838
1839         cosl: Simplify for platforms where 'long double' == 'double'.
1840         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1841         implementation.
1842         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1843         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1844         * modules/cosl (Depends-on): Add cos. Update conditions.
1845         (configure.ac): Don't compile sincosl.c and trigl.c if
1846         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1847
1848 2011-10-10  Bruno Haible  <bruno@clisp.org>
1849
1850         sinl: Simplify for platforms where 'long double' == 'double'.
1851         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1852         implementation.
1853         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1854         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1855         * modules/sinl (Depends-on): Add sin. Update conditions.
1856         (configure.ac): Don't compile sincosl.c and trigl.c if
1857         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1858
1859 2011-10-10  Bruno Haible  <bruno@clisp.org>
1860
1861         logl: Simplify for platforms where 'long double' == 'double'.
1862         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1863         implementation.
1864         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1865         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1866         * modules/logl (Depends-on): Add log. Update conditions.
1867
1868 2011-10-10  Bruno Haible  <bruno@clisp.org>
1869
1870         expl: Simplify for platforms where 'long double' == 'double'.
1871         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1872         implementation.
1873         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1874         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1875         * modules/expl (Depends-on): Add exp. Update conditions.
1876
1877 2011-10-10  Bruno Haible  <bruno@clisp.org>
1878
1879         sqrtl: Simplify for platforms where 'long double' == 'double'.
1880         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1881         alternative implementation.
1882         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1883         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1884         * modules/sqrtl (Depends-on): Update conditions.
1885
1886 2011-10-10  Bruno Haible  <bruno@clisp.org>
1887
1888         ldexpl: Simplify for platforms where 'long double' == 'double'.
1889         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1890         alternative implementation.
1891         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1892         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1893         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1894
1895 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1896
1897         ffsll: set correct witness
1898         * modules/ffsll (configure.ac): Fix typo.
1899
1900 2011-10-10  Bruno Haible  <bruno@clisp.org>
1901
1902         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1903         * lib/printf-frexpl.c: Include <config.h>.
1904         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1905         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1906         second time.
1907         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1908         gl_LONG_DOUBLE_VS_DOUBLE.
1909         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1910         conditions.
1911
1912 2011-10-10  Bruno Haible  <bruno@clisp.org>
1913
1914         frexpl: Simplify for platforms where 'long double' == 'double'.
1915         * lib/frexpl.c: Include <config.h>.
1916         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1917         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1918         time.
1919         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1920         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1921         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1922         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1923         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1924         conditions.
1925
1926 2011-10-10  Jim Meyering  <meyering@redhat.com>
1927
1928         test-renameat: don't leave behind a temporary file
1929         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1930           ERROR: files left in build directory after distclean:
1931           ./gltests/test-renameat.too
1932           make[1]: *** [distcleancheck] Error 1
1933         Reported by Tom G. Christensen.
1934
1935 2011-10-09  Bruno Haible  <bruno@clisp.org>
1936
1937         rint: Determine RINT_LIBM correctly on AIX 7.
1938         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1939         directly, not only through a function pointer. Also accept an optional
1940         4th argument with extra code.
1941         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1942         rintf() call by gcc when optimizing.
1943
1944         mathfunc.m4: Refactor.
1945         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1946         m4 variable.
1947
1948 2011-10-09  Bruno Haible  <bruno@clisp.org>
1949
1950         rintl: Simplify for platforms where 'long double' == 'double'.
1951         * lib/rintl.c: Include <config.h>.
1952         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1953         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1954         time.
1955         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1956         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1957         * modules/rintl (Depends-on): Add rint. Update conditions.
1958
1959 2011-10-09  Bruno Haible  <bruno@clisp.org>
1960
1961         roundl: Simplify for platforms where 'long double' == 'double'.
1962         * lib/roundl.c: Include <config.h>.
1963         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1964         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1965         time.
1966         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1967         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1968         * modules/roundl (Depends-on): Add round. Update conditions.
1969
1970 2011-10-09  Bruno Haible  <bruno@clisp.org>
1971
1972         truncl: Simplify for platforms where 'long double' == 'double'.
1973         * lib/truncl.c: Include <config.h>.
1974         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1975         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1976         time.
1977         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1978         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1979         * modules/truncl (Depends-on): Add trunc. Update conditions.
1980
1981 2011-10-09  Bruno Haible  <bruno@clisp.org>
1982
1983         ceill: Simplify for platforms where 'long double' == 'double'.
1984         * lib/ceill.c: Include <config.h>.
1985         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1986         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1987         time.
1988         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1989         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1990         * modules/ceill (Depends-on): Add ceil. Update conditions.
1991
1992 2011-10-09  Bruno Haible  <bruno@clisp.org>
1993
1994         floorl: Simplify for platforms where 'long double' == 'double'.
1995         * lib/floorl.c: Include <config.h>.
1996         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1997         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1998         time.
1999         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2000         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2001         * modules/floorl (Depends-on): Add floor. Update conditions.
2002
2003 2011-10-09  Bruno Haible  <bruno@clisp.org>
2004
2005         rint: Fix ordering constraints.
2006         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
2007         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2008         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2009
2010 2011-10-09  Bruno Haible  <bruno@clisp.org>
2011
2012         copysignl: Simplify for platforms where 'long double' == 'double'.
2013         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2014         alternative.
2015         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2016         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2017         * modules/copysignl (Depends-on): Add copysign. Update conditions.
2018
2019 2011-10-09  Bruno Haible  <bruno@clisp.org>
2020
2021         Tests for module 'rintl'.
2022         * modules/rintl-tests: New file.
2023         * tests/test-rintl.c: New file.
2024
2025         New module 'rintl'.
2026         * lib/math.in.h (rintl): New declaration.
2027         * lib/rintl.c: New file.
2028         * m4/rintl.m4: New file.
2029         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
2030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
2031         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
2032         * modules/rintl: New file.
2033         * tests/test-math-c++.cc: Check the declaration of rintl.
2034         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2035         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
2036         * doc/posix-functions/rintl.texi: Mention the new module.
2037
2038 2011-10-09  Bruno Haible  <bruno@clisp.org>
2039
2040         Tests for module 'rintf'.
2041         * modules/rintf-tests: New file.
2042         * tests/test-rintf.c: New file.
2043
2044         New module 'rintf'.
2045         * lib/math.in.h (rintf): New declaration.
2046         * lib/rintf.c: New file.
2047         * m4/rintf.m4: New file.
2048         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
2049         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
2050         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
2051         * modules/rintf: New file.
2052         * tests/test-math-c++.cc: Check the declaration of rintf.
2053         * doc/posix-functions/rintf.texi: Mention the new module.
2054
2055 2011-10-09  Bruno Haible  <bruno@clisp.org>
2056
2057         rint: Support for MSVC.
2058         * lib/math.in.h (rint): New declaration.
2059         * lib/rint.c: New file.
2060         * m4/rint.m4: New file.
2061         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
2062         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
2063         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
2064         * modules/rint (Description): Fix.
2065         (Files): Add lib/rint.c, m4/rint.m4.
2066         (Depends-on): Add math.
2067         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
2068         gl_MATH_MODULE_INDICATOR.
2069         * tests/test-math-c++.cc: Check the declaration of rint.
2070         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2071         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
2072         * doc/posix-functions/rint.texi: Mention the replacement provided by
2073         the module.
2074
2075         rint tests: More tests.
2076         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
2077         minus-zero.h, infinity.h, nan.h.
2078         (main): Skip the test if the current rounding mode is not standard. Add
2079         tests for negative numbers, minus zero, infinity, NaN.
2080         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
2081         tests/nan.h.
2082         (Depends-on): Add isnand-nolibm.
2083
2084 2011-10-09  Bruno Haible  <bruno@clisp.org>
2085
2086         Tests for module 'copysignl'.
2087         * modules/copysignl-tests: New file.
2088         * tests/test-copysignl.c: New file.
2089
2090         New module 'copysignl'.
2091         * lib/math.in.h (copysignl): New declaration.
2092         * lib/copysignl.c: New file.
2093         * m4/copysignl.m4: New file.
2094         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
2095         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
2096         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
2097         HAVE_COPYSIGNL.
2098         * modules/copysignl: New file.
2099         * tests/test-math-c++.cc: Check the declaration of copysignl.
2100         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2101         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
2102         * doc/posix-functions/copysignl.texi: Mention the new module.
2103
2104 2011-10-09  Bruno Haible  <bruno@clisp.org>
2105
2106         Tests for module 'copysignf'.
2107         * modules/copysignf-tests: New file.
2108         * tests/test-copysignf.c: New file.
2109
2110         New module 'copysignf'.
2111         * lib/math.in.h (copysignf): New declaration.
2112         * lib/copysignf.c: New file.
2113         * m4/copysignf.m4: New file.
2114         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
2115         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
2116         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
2117         HAVE_COPYSIGNF.
2118         * modules/copysignf: New file.
2119         * tests/test-math-c++.cc: Check the declaration of copysignf.
2120         * doc/posix-functions/copysignf.texi: Mention the new module.
2121
2122 2011-10-09  Bruno Haible  <bruno@clisp.org>
2123
2124         Ensure that HAVE_* variables are set to 1 before they are set to 0.
2125         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
2126         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
2127         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2128         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
2129         gl_SIGNAL_H_DEFAULTS.
2130
2131 2011-10-09  Bruno Haible  <bruno@clisp.org>
2132
2133         poll: Make macro safer.
2134         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
2135         ac_cv_header_poll_h is not set.
2136
2137 2011-10-09  Bruno Haible  <bruno@clisp.org>
2138
2139         copysign: Provide replacement.
2140         * lib/math.in.h (copysign): New declaration.
2141         * lib/copysign.c: New file.
2142         * m4/copysign.m4: New file.
2143         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
2144         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
2145         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
2146         HAVE_COPYSIGN.
2147         * modules/copysign (Description): Clarify.
2148         (Files): Add lib/copysign.c, m4/copysign.m4.
2149         (Depends-on): Add math, signbit.
2150         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
2151         gl_MATH_MODULE_INDICATOR.
2152         * tests/test-math-c++.cc: Check the declaration of copysign.
2153         * doc/posix-functions/copysign.texi: Mention the effects of the module
2154         on Minix and MSVC.
2155
2156 2011-10-09  Bruno Haible  <bruno@clisp.org>
2157
2158         isinf: Ensure macro on AIX 5.1.
2159         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
2160         macro.
2161         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
2162
2163 2011-10-09  Bruno Haible  <bruno@clisp.org>
2164
2165         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
2166         * modules/snprintf-posix-tests (configure.ac): Require
2167         gl_LONG_DOUBLE_VS_DOUBLE.
2168         * modules/sprintf-posix-tests (configure.ac): Likewise.
2169         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
2170         * modules/vasprintf-posix-tests (configure.ac): Likewise.
2171         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
2172         * modules/vsprintf-posix-tests (configure.ac): Likewise.
2173         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
2174         tests on platforms where 'long double' is the same as 'double'.
2175         * tests/test-sprintf-posix.h (test_function): Likewise.
2176         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2177         * tests/test-vasprintf-posix.c (test_function): Likewise.
2178
2179         *printf: Fix for platforms where 'long double' == 'double'.
2180         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2181         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
2182         * modules/dprintf-posix (Files): Add m4/math_h.m4.
2183         * modules/fprintf-posix (Files): Likewise.
2184         * modules/obstack-printf-posix (Files): Likewise.
2185         * modules/snprintf-posix (Files): Likewise.
2186         * modules/sprintf-posix (Files): Likewise.
2187         * modules/vasnprintf (Files): Likewise.
2188         * modules/vasnprintf-posix (Files): Likewise.
2189         * modules/vasprintf-posix (Files): Likewise.
2190         * modules/vdprintf-posix (Files): Likewise.
2191         * modules/vfprintf-posix (Files): Likewise.
2192         * modules/vsnprintf-posix (Files): Likewise.
2193         * modules/vsprintf-posix (Files): Likewise.
2194         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2195         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2196         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2197         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2198         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2199         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2200         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2201
2202         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
2203         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
2204         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2205         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
2206         'long double'.
2207         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
2208
2209         isinf: Fix for platforms where 'long double' == 'double'.
2210         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2211         Don't blindly assume 80-bit 'long double'.
2212
2213         isfinite: Fix for platforms where 'long double' == 'double'.
2214         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2215         Don't blindly assume 80-bit 'long double'.
2216
2217         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
2218         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
2219         * modules/isfinite-tests (configure.ac): Require
2220         gl_LONG_DOUBLE_VS_DOUBLE.
2221         * modules/isinf-tests (configure.ac): Likewise.
2222         * modules/isnan-tests (configure.ac): Likewise.
2223         * modules/isnanl-tests (configure.ac): Likewise.
2224         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
2225         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
2226         tests on platforms where 'long double' is the same as 'double'.
2227         * tests/test-isinf.c (test_isinfl): Likewise.
2228         * tests/test-isnan.c (test_long_double): Likewise.
2229         * tests/test-isnanl.h (main): Likewise.
2230
2231 2011-10-08  Bruno Haible  <bruno@clisp.org>
2232
2233         Tests for module 'tanhf'.
2234         * modules/tanhf-tests: New file.
2235         * tests/test-tanhf.c: New file.
2236
2237         New module 'tanhf'.
2238         * lib/math.in.h (tanhf): New declaration.
2239         * lib/tanhf.c: New file.
2240         * m4/tanhf.m4: New file.
2241         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
2242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
2243         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
2244         * modules/tanhf: New file.
2245         * tests/test-math-c++.cc: Check the declaration of tanhf.
2246         * doc/posix-functions/tanhf.texi: Mention the new module.
2247
2248         tanh: Use a .m4 file.
2249         * m4/tanh.m4: New file.
2250         * modules/tanh (Files): Add it.
2251         (configure.ac): Just invoke gl_FUNC_TANH.
2252
2253 2011-10-08  Bruno Haible  <bruno@clisp.org>
2254
2255         Tests for module 'coshf'.
2256         * modules/coshf-tests: New file.
2257         * tests/test-coshf.c: New file.
2258
2259         New module 'coshf'.
2260         * lib/math.in.h (coshf): New declaration.
2261         * lib/coshf.c: New file.
2262         * m4/coshf.m4: New file.
2263         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
2264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
2265         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
2266         * modules/coshf: New file.
2267         * tests/test-math-c++.cc: Check the declaration of coshf.
2268         * doc/posix-functions/coshf.texi: Mention the new module.
2269
2270         cosh: Use a .m4 file.
2271         * m4/cosh.m4: New file.
2272         * modules/cosh (Files): Add it.
2273         (configure.ac): Just invoke gl_FUNC_COSH.
2274
2275 2011-10-08  Bruno Haible  <bruno@clisp.org>
2276
2277         Tests for module 'sinhf'.
2278         * modules/sinhf-tests: New file.
2279         * tests/test-sinhf.c: New file.
2280
2281         New module 'sinhf'.
2282         * lib/math.in.h (sinhf): New declaration.
2283         * lib/sinhf.c: New file.
2284         * m4/sinhf.m4: New file.
2285         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
2286         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
2287         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
2288         * modules/sinhf: New file.
2289         * tests/test-math-c++.cc: Check the declaration of sinhf.
2290         * doc/posix-functions/sinhf.texi: Mention the new module.
2291
2292         sinh: Use a .m4 file.
2293         * m4/sinh.m4: New file.
2294         * modules/sinh (Files): Add it.
2295         (configure.ac): Just invoke gl_FUNC_SINH.
2296
2297 2011-10-08  Bruno Haible  <bruno@clisp.org>
2298
2299         Tests for module 'atan2f'.
2300         * modules/atan2f-tests: New file.
2301         * tests/test-atan2f.c: New file.
2302
2303         New module 'atan2f'.
2304         * lib/math.in.h (atan2f): New declaration.
2305         * lib/atan2f.c: New file.
2306         * m4/atan2f.m4: New file.
2307         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
2308         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
2309         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
2310         * modules/atan2f: New file.
2311         * tests/test-math-c++.cc: Check the declaration of atan2f.
2312         * doc/posix-functions/atan2f.texi: Mention the new module.
2313
2314         atan2: Use a .m4 file.
2315         * m4/atan2.m4: New file.
2316         * modules/atan2 (Files): Add it.
2317         (configure.ac): Just invoke gl_FUNC_ATAN2.
2318
2319 2011-10-08  Bruno Haible  <bruno@clisp.org>
2320
2321         Tests for module 'atanf'.
2322         * modules/atanf-tests: New file.
2323         * tests/test-atanf.c: New file.
2324
2325         New module 'atanf'.
2326         * lib/math.in.h (atanf): New declaration.
2327         * lib/atanf.c: New file.
2328         * m4/atanf.m4: New file.
2329         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
2330         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
2331         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
2332         * modules/atanf: New file.
2333         * tests/test-math-c++.cc: Check the declaration of atanf.
2334         * doc/posix-functions/atanf.texi: Mention the new module.
2335
2336         atan: Use a .m4 file.
2337         * m4/atan.m4: New file.
2338         * modules/atan (Files): Add it.
2339         (configure.ac): Just invoke gl_FUNC_ATAN.
2340
2341 2011-10-08  Bruno Haible  <bruno@clisp.org>
2342
2343         Tests for module 'acosf'.
2344         * modules/acosf-tests: New file.
2345         * tests/test-acosf.c: New file.
2346
2347         New module 'acosf'.
2348         * lib/math.in.h (acosf): New declaration.
2349         * lib/acosf.c: New file.
2350         * m4/acosf.m4: New file.
2351         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
2352         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
2353         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
2354         * modules/acosf: New file.
2355         * tests/test-math-c++.cc: Check the declaration of acosf.
2356         * doc/posix-functions/acosf.texi: Mention the new module.
2357
2358         acos: Use a .m4 file.
2359         * m4/acos.m4: New file.
2360         * modules/acos (Files): Add it.
2361         (configure.ac): Just invoke gl_FUNC_ACOS.
2362
2363 2011-10-08  Bruno Haible  <bruno@clisp.org>
2364
2365         Tests for module 'asinf'.
2366         * modules/asinf-tests: New file.
2367         * tests/test-asinf.c: New file.
2368
2369         New module 'asinf'.
2370         * lib/math.in.h (asinf): New declaration.
2371         * lib/asinf.c: New file.
2372         * m4/asinf.m4: New file.
2373         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2374         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2375         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2376         * modules/asinf: New file.
2377         * tests/test-math-c++.cc: Check the declaration of asinf.
2378         * doc/posix-functions/asinf.texi: Mention the new module.
2379
2380         asin: Use a .m4 file.
2381         * m4/asin.m4: New file.
2382         * modules/asin (Files): Add it.
2383         (configure.ac): Just invoke gl_FUNC_ASIN.
2384
2385 2011-10-08  Bruno Haible  <bruno@clisp.org>
2386
2387         Tests for module 'tanf'.
2388         * modules/tanf-tests: New file.
2389         * tests/test-tanf.c: New file.
2390
2391         New module 'tanf'.
2392         * lib/math.in.h (tanf): New declaration.
2393         * lib/tanf.c: New file.
2394         * m4/tanf.m4: New file.
2395         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
2396         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
2397         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
2398         * modules/tanf: New file.
2399         * tests/test-math-c++.cc: Check the declaration of tanf.
2400         * doc/posix-functions/tanf.texi: Mention the new module.
2401
2402         tan: Use a .m4 file.
2403         * m4/tan.m4: New file.
2404         * modules/tan (Files): Add it.
2405         (configure.ac): Just invoke gl_FUNC_TAN.
2406
2407 2011-10-08  Bruno Haible  <bruno@clisp.org>
2408
2409         Tests for module 'cosf'.
2410         * modules/cosf-tests: New file.
2411         * tests/test-cosf.c: New file.
2412
2413         New module 'cosf'.
2414         * lib/math.in.h (cosf): New declaration.
2415         * lib/cosf.c: New file.
2416         * m4/cosf.m4: New file.
2417         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
2418         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
2419         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
2420         * modules/cosf: New file.
2421         * tests/test-math-c++.cc: Check the declaration of cosf.
2422         * doc/posix-functions/cosf.texi: Mention the new module.
2423
2424         cos: Use a .m4 file.
2425         * m4/cos.m4: New file.
2426         * modules/cos (Files): Add it.
2427         (configure.ac): Just invoke gl_FUNC_COS.
2428
2429 2011-10-08  Bruno Haible  <bruno@clisp.org>
2430
2431         Tests for module 'sinf'.
2432         * modules/sinf-tests: New file.
2433         * tests/test-sinf.c: New file.
2434
2435         New module 'sinf'.
2436         * lib/math.in.h (sinf): New declaration.
2437         * lib/sinf.c: New file.
2438         * m4/sinf.m4: New file.
2439         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
2440         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
2441         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
2442         * modules/sinf: New file.
2443         * tests/test-math-c++.cc: Check the declaration of sinf.
2444         * doc/posix-functions/sinf.texi: Mention the new module.
2445
2446         sin: Use a .m4 file.
2447         * m4/sin.m4: New file.
2448         * modules/sin (Files): Add it.
2449         (configure.ac): Just invoke gl_FUNC_SIN.
2450
2451 2011-10-08  Bruno Haible  <bruno@clisp.org>
2452
2453         Tests for module 'powf'.
2454         * modules/powf-tests: New file.
2455         * tests/test-powf.c: New file.
2456
2457         New module 'powf'.
2458         * lib/math.in.h (powf): New declaration.
2459         * lib/powf.c: New file.
2460         * m4/powf.m4: New file.
2461         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
2462         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
2463         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
2464         * modules/powf: New file.
2465         * tests/test-math-c++.cc: Check the declaration of powf.
2466         * doc/posix-functions/powf.texi: Mention the new module.
2467
2468         pow: Use a .m4 file.
2469         * m4/pow.m4: New file.
2470         * modules/pow (Files): Add it.
2471         (configure.ac): Just invoke gl_FUNC_POW.
2472
2473 2011-10-08  Bruno Haible  <bruno@clisp.org>
2474
2475         Tests for module 'log10f'.
2476         * modules/log10f-tests: New file.
2477         * tests/test-log10f.c: New file.
2478
2479         New module 'log10f'.
2480         * lib/math.in.h (log10f): New declaration.
2481         * lib/log10f.c: New file.
2482         * m4/log10f.m4: New file.
2483         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2484         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2485         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2486         * modules/log10f: New file.
2487         * tests/test-math-c++.cc: Check the declaration of log10f.
2488         * doc/posix-functions/log10f.texi: Mention the new module.
2489
2490         log10: Use a .m4 file.
2491         * m4/log10.m4: New file.
2492         * modules/log10 (Files): Add it.
2493         (configure.ac): Just invoke gl_FUNC_LOG10.
2494
2495 2011-10-08  Bruno Haible  <bruno@clisp.org>
2496
2497         Tests for module 'logf'.
2498         * modules/logf-tests: New file.
2499         * tests/test-logf.c: New file.
2500
2501         New module 'logf'.
2502         * lib/math.in.h (logf): New declaration.
2503         * lib/logf.c: New file.
2504         * m4/logf.m4: New file.
2505         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2506         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2507         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2508         * modules/logf: New file.
2509         * tests/test-math-c++.cc: Check the declaration of logf.
2510         * doc/posix-functions/logf.texi: Mention the new module.
2511
2512         log: Use a .m4 file.
2513         * m4/log.m4: New file.
2514         * modules/log (Files): Add it.
2515         (configure.ac): Just invoke gl_FUNC_LOG.
2516
2517 2011-10-08  Bruno Haible  <bruno@clisp.org>
2518
2519         Tests for module 'expf'.
2520         * modules/expf-tests: New file.
2521         * tests/test-expf.c: New file.
2522
2523         New module 'expf'.
2524         * lib/math.in.h (expf): New declaration.
2525         * lib/expf.c: New file.
2526         * m4/expf.m4: New file.
2527         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2528         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2529         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2530         * modules/expf: New file.
2531         * tests/test-math-c++.cc: Check the declaration of expf.
2532         * doc/posix-functions/expf.texi: Mention the new module.
2533
2534         exp: Use a .m4 file.
2535         * m4/exp.m4: New file.
2536         * modules/exp (Files): Add it.
2537         (configure.ac): Just invoke gl_FUNC_EXP.
2538
2539 2011-10-08  Bruno Haible  <bruno@clisp.org>
2540
2541         Tests for module 'sqrtf'.
2542         * modules/sqrtf-tests: New file.
2543         * tests/test-sqrtf.c: New file.
2544
2545         New module 'sqrtf'.
2546         * lib/math.in.h (sqrtf): New declaration.
2547         * lib/sqrtf.c: New file.
2548         * m4/sqrtf.m4: New file.
2549         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2550         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2551         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2552         * modules/sqrtf: New file.
2553         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2554         * doc/posix-functions/sqrtf.texi: Mention the new module.
2555
2556 2011-10-08  Bruno Haible  <bruno@clisp.org>
2557
2558         Tests: Avoid link failures w.r.t. libintl.
2559         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2560         $(LIBINTL).
2561         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2562         $(LIBINTL).
2563         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2564         against $(LIBINTL).
2565         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2566         $(LIBINTL).
2567         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2568         $(LIBINTL).
2569         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2570
2571 2011-10-08  Bruno Haible  <bruno@clisp.org>
2572
2573         pow tests: Defeat compiler optimizations.
2574         * tests/test-pow.c (main): Assign arguments to x and y before use.
2575
2576 2011-10-08  Bruno Haible  <bruno@clisp.org>
2577
2578         gnulib-tool: Improve last commit.
2579         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2580         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2581         ignore dependencies that are not among the modules list.
2582
2583 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2584
2585         gnulib-tool: don't follow dependencies to avoided modules
2586         This fixes a bug that is related to the previous one.
2587         * gnulib-tool (func_modules_transitive_closure)
2588         (func_emit_autoconf_snippets):
2589         Check whether a dependency is acceptable before using it.
2590         (--extract-dependencies): Report an error if --avoid is also used,
2591         since this combination of options is not yet supported.
2592
2593         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2594         Problem reported by Peter Dyballa in
2595         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2596         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2597         when echoing "$condition".
2598
2599 2011-10-07  Bruno Haible  <bruno@clisp.org>
2600
2601         Fix documentation about math functions on MacOS X.
2602         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2603         MacOS X 10.5.
2604         * doc/posix-functions/fdim.texi: Likewise.
2605         * doc/posix-functions/feclearexcept.texi: Likewise.
2606         * doc/posix-functions/fegetenv.texi: Likewise.
2607         * doc/posix-functions/fegetround.texi: Likewise.
2608         * doc/posix-functions/feholdexcept.texi: Likewise.
2609         * doc/posix-functions/feraiseexcept.texi: Likewise.
2610         * doc/posix-functions/fesetenv.texi: Likewise.
2611         * doc/posix-functions/fesetround.texi: Likewise.
2612         * doc/posix-functions/fetestexcept.texi: Likewise.
2613         * doc/posix-functions/feupdateenv.texi: Likewise.
2614         * doc/posix-functions/fmax.texi: Likewise.
2615         * doc/posix-functions/fmin.texi: Likewise.
2616         * doc/posix-functions/log2.texi: Likewise.
2617         * doc/posix-functions/modff.texi: Likewise.
2618         * doc/posix-functions/nan.texi: Likewise.
2619         * doc/posix-functions/nanf.texi: Likewise.
2620         * doc/posix-functions/nextafterf.texi: Likewise.
2621         * doc/posix-functions/remquo.texi: Likewise.
2622
2623 2011-10-07  Bruno Haible  <bruno@clisp.org>
2624
2625         modff: Drop assumption about library that defines modff.
2626         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2627         AC_CHECK_FUNCS.
2628         * modules/modff (Files): Add m4/mathfunc.m4.
2629
2630 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2631
2632         raise tests: Avoid a GCC warning.
2633         * tests/test-raise.c (handler): Use _Noreturn.
2634
2635 2011-10-07  Bruno Haible  <bruno@clisp.org>
2636
2637         Tests for module 'ldexpf'.
2638         * modules/ldexpf-tests: New file.
2639         * tests/test-ldexpf.c: New file.
2640
2641         New module 'ldexpf'.
2642         * lib/math.in.h (ldexpf): New declaration.
2643         * lib/ldexpf.c: New file.
2644         * m4/ldexpf.m4: New file.
2645         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2646         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2647         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2648         * modules/ldexpf: New file.
2649         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2650         * doc/posix-functions/ldexpf.texi: Mention the new module.
2651
2652 2011-10-06  Bruno Haible  <bruno@clisp.org>
2653
2654         frexpf: Work around problems on IRIX and mingw.
2655         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2657         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2658         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2659         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2660         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2661         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2662
2663 2011-10-06  Bruno Haible  <bruno@clisp.org>
2664
2665         fabsf: Drop assumption about library that defines fabsf.
2666         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2667         AC_CHECK_FUNCS.
2668         * modules/fabsf (Files): Add m4/mathfunc.m4.
2669
2670 2011-10-06  Bruno Haible  <bruno@clisp.org>
2671
2672         frexpf: Drop assumption about library that defines frexpf.
2673         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2674         'int *', 'float *', 'long double *', 'float', 'long double'.
2675         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2676         AC_CHECK_FUNCS.
2677         * modules/frexpf (Files): Add m4/mathfunc.m4.
2678
2679         Tests for module 'frexpf'.
2680         * modules/frexpf-tests: New file.
2681         * tests/test-frexpf.c: New file.
2682
2683         New module 'frexpf'.
2684         * lib/math.in.h (frexpf): New declaration.
2685         * lib/frexpf.c: New file.
2686         * m4/frexpf.m4: New file.
2687         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2688         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2689         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2690         * modules/frexpf: New file.
2691         * tests/test-math-c++.cc: Check the declaration of frexpf.
2692         * doc/posix-functions/frexpf.texi: Mention the new module.
2693
2694 2011-10-06  Bruno Haible  <bruno@clisp.org>
2695
2696         math: Sort function declarations of math.in.h.
2697         * lib/math.in.h (frexp, logb): Move declarations.
2698
2699 2011-10-05  Bruno Haible  <bruno@clisp.org>
2700
2701         Tests for module 'modff'.
2702         * modules/modff-tests: New file.
2703         * tests/test-modff.c: New file.
2704
2705         New module 'modff'.
2706         * lib/math.in.h (modff): New declaration.
2707         * lib/modff.c: New file.
2708         * m4/modff.m4: New file.
2709         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2710         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2711         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2712         * modules/modff: New file.
2713         * tests/test-math-c++.cc: Check the declaration of modff.
2714         * doc/posix-functions/modff.texi: Mention the new module.
2715
2716         modf tests: Make test sharper.
2717         * tests/test-modf.c (main): Strengthen upper bound.
2718
2719         modf: Use a .m4 file.
2720         * m4/modf.m4: New file.
2721         * modules/modf (Files): Add it.
2722         (configure.ac): Just invoke gl_FUNC_MODF.
2723
2724 2011-10-05  Bruno Haible  <bruno@clisp.org>
2725
2726         Tests for module 'fmodf'.
2727         * modules/fmodf-tests: New file.
2728         * tests/test-fmodf.c: New file.
2729
2730         New module 'fmodf'.
2731         * lib/math.in.h (fmodf): New declaration.
2732         * lib/fmodf.c: New file.
2733         * m4/fmodf.m4: New file.
2734         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2735         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2736         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2737         * modules/fmodf: New file.
2738         * tests/test-math-c++.cc: Check the declaration of fmodf.
2739         * doc/posix-functions/fmodf.texi: Mention the new module.
2740
2741         fmod: Use a .m4 file.
2742         * m4/fmod.m4: New file.
2743         * modules/fmod (Files): Add it.
2744         (configure.ac): Just invoke gl_FUNC_FMOD.
2745
2746 2011-10-05  Bruno Haible  <bruno@clisp.org>
2747
2748         Tests for module 'fabsf'.
2749         * modules/fabsf-tests: New file.
2750         * tests/test-fabsf.c: New file.
2751
2752         New module 'fabsf'.
2753         * lib/math.in.h (fabsf): New declaration.
2754         * lib/fabsf.c: New file.
2755         * m4/fabsf.m4: New file.
2756         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2758         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2759         * modules/fabsf: New file.
2760         * tests/test-math-c++.cc: Check the declaration of fabsf.
2761         * doc/posix-functions/fabsf.texi: Mention the new module.
2762
2763         fabs: Use a .m4 file.
2764         * m4/fabs.m4: New file.
2765         * modules/fabs (Files): Add it.
2766         (configure.ac): Just invoke gl_FUNC_FABS.
2767
2768 2011-10-05  Jim Meyering  <meyering@redhat.com>
2769
2770         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2771         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2772         ls -lL regression introduced in coreutils-8.12, it does so at the
2773         cost of an additional stat call in the common case.  Besides, now
2774         that the kernel change that prompted commit 95f7c57f has been reverted
2775         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2776         we have no use for commit 95f7c57f, "file-has-acl: use
2777         acl_extended_file_nofollow if available".
2778
2779 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2780
2781         file-has-acl: revert unintended change in behavior of ls -L
2782         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2783         derived from...
2784         (file_has_acl): ...code here.  Call it.
2785         This problem was introduced with 2011-07-22 commit 95f7c57f,
2786         "file-has-acl: use acl_extended_file_nofollow if available".
2787         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2788
2789 2011-10-03  Bruno Haible  <bruno@clisp.org>
2790
2791         poll: Avoid link errors on MSVC.
2792         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2793         * modules/poll (Depends-on): Add sockets.
2794         (Link): New section.
2795         * NEWS: Mention the change.
2796         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2797         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2798         $(LIB_POLL) instead of $(LIBSOCKET).
2799
2800 2011-10-03  Bruno Haible  <bruno@clisp.org>
2801
2802         sys_select tests: Fix link error on MSVC 9.
2803         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2804         with $(LIB_SELECT) instead of $(LIBSOCKET).
2805
2806 2011-10-03  Bruno Haible  <bruno@clisp.org>
2807
2808         sys_select: Fix compilation error on mingw.
2809         * lib/sys_select.in.h: On native Windows, include <io.h>.
2810
2811 2011-10-03  Bruno Haible  <bruno@clisp.org>
2812
2813         wmemset: Support for MSVC.
2814         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2815         whether wmemset() exists.
2816
2817 2011-10-03  Bruno Haible  <bruno@clisp.org>
2818
2819         wmemmove: Support for MSVC.
2820         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2821         whether wmemmove() exists.
2822
2823 2011-10-03  Bruno Haible  <bruno@clisp.org>
2824
2825         wmemcpy: Support for MSVC.
2826         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2827         whether wmemcpy() exists.
2828
2829 2011-10-03  Bruno Haible  <bruno@clisp.org>
2830
2831         wmemcmp: Support for MSVC.
2832         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2833         whether wmemcmp() exists.
2834
2835 2011-10-03  Bruno Haible  <bruno@clisp.org>
2836
2837         wmemchr: Support for MSVC.
2838         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2839         whether wmemchr() exists.
2840
2841 2011-10-03  Bruno Haible  <bruno@clisp.org>
2842
2843         glthread/*, strsignal: Support for MSVC.
2844         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2845         including <winsock.h> on MSVC 9.
2846         * lib/glthread/lock.h: Likewise.
2847         * lib/glthread/thread.h: Likewise.
2848         * lib/glthread/tls.h: Likewise.
2849         * lib/glthread/yield.h: Likewise.
2850         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2851         if HAVE_UNISTD_H is false.
2852         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2853
2854 2011-10-03  Bruno Haible  <bruno@clisp.org>
2855
2856         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2857         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2858         Set to 100000.
2859
2860 2011-10-03  Bruno Haible  <bruno@clisp.org>
2861
2862         acl: Fix specification.
2863         * lib/file-has-acl.c (file_has_acl): Fix specification.
2864
2865 2011-10-03  Bruno Haible  <bruno@clisp.org>
2866
2867         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2868         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2869         (compute_curr_prefix, shared_library_fullname,
2870         find_shared_library_fullname, get_shared_library_fullname, relocate):
2871         Use it together with PIC && INSTALLDIR.
2872         Reported by <jojelino@gmail.com>
2873         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2874
2875 2011-10-01  Jim Meyering  <meyering@redhat.com>
2876
2877         maint.mk: adjust a release-related rule not to require use of gzip
2878         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2879         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2880         projects that build only .tar.xz files.  Also fix an erroneous test.
2881
2882         test-linkat: don't leave behind a temporary file
2883         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2884         Otherwise, coreutils' "make distcheck" would fail with this:
2885           Only in /c/cu/tests/torture/coreutils/test/\
2886             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2887           make[2]: *** [my-distcheck] Error 1
2888
2889         float, math: add omitted file
2890         * lib/itold.c: Add file, required for yesterday's float change.
2891
2892 2011-10-01  Bruno Haible  <bruno@clisp.org>
2893
2894         isinf: Fix for OpenBSD/x86.
2895         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2896         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2897         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2898
2899 2011-10-01  Bruno Haible  <bruno@clisp.org>
2900
2901         isfinite: Fix syntax error in configure test.
2902         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2903
2904         isfinite: Fix typo.
2905         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2906         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2907
2908 2011-10-01  Bruno Haible  <bruno@clisp.org>
2909
2910         nonblocking tests: Fix test failure on Linux/IA-64.
2911         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2912         Set to 270000.
2913
2914 2011-10-01  Bruno Haible  <bruno@clisp.org>
2915
2916         mkfifoat tests: Fix a test failure on mingw.
2917         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2918         with error ENOSYS.
2919
2920 2011-09-30  Bruno Haible  <bruno@clisp.org>
2921
2922         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2923         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2924         'long double'. Set REPLACE_ITOLD.
2925         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2926         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2927         * lib/itold.c: New file.
2928         * modules/float (Files): Add lib/itold.c.
2929         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2930         (Makefile.am): Substitute REPLACE_ITOLD.
2931         * modules/math (Depends-on): Add float.
2932         (Makefile.am): Substitute REPLACE_ITOLD.
2933         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2934         * doc/posix-headers/math.texi: Likewise.
2935         * doc/posix-functions/logl.texi: Likewise.
2936
2937 2011-09-30  Bruno Haible  <bruno@clisp.org>
2938
2939         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2940         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2941         Set to 140000.
2942
2943 2011-09-30  Bruno Haible  <bruno@clisp.org>
2944
2945         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2946         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2947         invocation, say "right after AC_PROG_CC_STDC", not "right after
2948         AC_PROG_CC".
2949         Reported by Gary V. Vaughan <gary@gnu.org>.
2950
2951 2011-09-30  Bruno Haible  <bruno@clisp.org>
2952
2953         Centralize C99 requirement.
2954         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2955         * modules/stdarg (configure.ac-early): Invoke it instead of
2956         AC_PROG_CC_STDC.
2957         Reported by Gary V. Vaughan and Paul Eggert.
2958
2959 2011-09-29  Bruno Haible  <bruno@clisp.org>
2960
2961         float: Fix LDBL_MAX value on Linux/PowerPC.
2962         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2963         on Linux/PowerPC.
2964         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2965         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2966         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2967         platform.
2968         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2969
2970 2011-09-29  Bruno Haible  <bruno@clisp.org>
2971
2972         doc: Improve doc about gl_EARLY.
2973         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2974         AC_PROG_CC_STDC invocation.
2975         Reported by Gary V. Vaughan <gary@gnu.org>.
2976
2977 2011-09-28  Bruno Haible  <bruno@clisp.org>
2978
2979         fgetc, fputc, fread, fwrite tests: Fix link error.
2980         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2981         on non-MSVC platforms.
2982         * tests/test-fputc.c (main): Likewise.
2983         * tests/test-fread.c (main): Likewise.
2984         * tests/test-fwrite.c (main): Likewise.
2985         Reported by Jim Meyering.
2986
2987 2011-09-27  Bruno Haible  <bruno@clisp.org>
2988
2989         fputc, fwrite tests: Avoid test failure on MSVC.
2990         * tests/test-fgetc.c: Include msvc-inval.h.
2991         (main): Invoke gl_msvc_inval_ensure_handler.
2992         * tests/test-fputc.c: Include msvc-inval.h.
2993         (main): Invoke gl_msvc_inval_ensure_handler.
2994         * tests/test-fread.c: Include msvc-inval.h.
2995         (main): Invoke gl_msvc_inval_ensure_handler.
2996         * tests/test-fwrite.c: Include msvc-inval.h.
2997         (main): Invoke gl_msvc_inval_ensure_handler.
2998         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2999         * modules/fputc-tests (Depends-on): Likewise.
3000         * modules/fread-tests (Depends-on): Likewise.
3001         * modules/fwrite-tests (Depends-on): Likewise.
3002
3003 2011-09-27  Bruno Haible  <bruno@clisp.org>
3004
3005         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
3006         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
3007         (raise): Remove older, duplicated declaration.
3008         (_gl_raise_SIGPIPE): New declaration.
3009         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
3010         (rpl_raise): Remove function.
3011         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
3012         a gnulib-defined SIGPIPE here.
3013         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
3014         'sigprocmask' has detected missing signal-blocking and the module
3015         'sigpipe' is enabled.
3016         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3017
3018 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
3019
3020         base64-tests: avoid memory leak
3021         * tests/test-base64.c (main): Plug memory leak.
3022
3023         base32: new module
3024         * modules/base32: New module.
3025         * lib/base32.c: New file.
3026         * lib/base32.h: Likewise.
3027         * m4/base32.m4: Likewise.
3028         * modules/base32-tests: New test.
3029         * tests/test-base32.c: Likewise.
3030         * MODULES.html.sh (Misc): Mention it.
3031
3032 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3033
3034         gnulib: use more-standard license notice wording
3035         * gnulib-tool (func_emit_copyright_notice): When emitting a
3036         license notice into a file, use the standard wording as suggested
3037         by the current information for GNU maintainers, except say "file"
3038         rather than "program".  The new wording gives a license version
3039         number, which addresses an issue raised by Glenn Morris in
3040         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
3041         * m4/onceonly.m4: Use that same wording here, too.
3042
3043         dup2: minor simplification
3044         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
3045         as lib/dup2.c no longer uses 'inline'.
3046
3047 2011-09-25  Bruno Haible  <bruno@clisp.org>
3048
3049         strings: Fix compilation error on MSVC.
3050         * lib/strings.in.h: Include <stddef.h> for size_t.
3051
3052 2011-09-25  Bruno Haible  <bruno@clisp.org>
3053
3054         fflush et al.: Document limitation on MSVC.
3055         * doc/posix-functions/fflush.texi: Document possible crash in handling
3056         mode other than DEFAULT_HANDLING.
3057         * doc/posix-functions/fgetc.texi: Likewise.
3058         * doc/posix-functions/fputc.texi: Likewise.
3059         * doc/posix-functions/fread.texi: Likewise.
3060         * doc/posix-functions/fwrite.texi: Likewise.
3061
3062 2011-09-25  Bruno Haible  <bruno@clisp.org>
3063
3064         msvc-inval: Allow three invalid parameter handling modes.
3065         * lib/msvc-inval.h: Don't include <stdlib.h> here.
3066         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
3067         macros.
3068         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
3069         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
3070         SANE_LIBRARY_HANDLING as a no-op.
3071         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
3072         <stdlib.h>.
3073         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
3074
3075 2011-09-25  Bruno Haible  <bruno@clisp.org>
3076
3077         msvc-inval: Make handler multithread-safe.
3078         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
3079         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
3080         declarations.
3081         (gl_msvc_inval_current): New declaration.
3082         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3083         Operate on the structure returned by gl_msvc_inval_current().
3084         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
3085         Remove varaiables.
3086         (tls_index, tls_initialized): New variables.
3087         (not_per_thread): New variable.
3088         (gl_msvc_inval_current): New function.
3089         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
3090         returned by gl_msvc_inval_current().
3091
3092 2011-09-25  Bruno Haible  <bruno@clisp.org>
3093
3094         msvc-inval: Install handler globally.
3095         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
3096         !_MSC_VER.
3097         (gl_msvc_invalid_parameter_handler): Remove declaration.
3098         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
3099         declarations.
3100         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3101         Install the handler globally, don't uninstall it.
3102         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
3103         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
3104         currently valid, call RaiseException instead.
3105         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
3106         for !_MSC_VER.
3107
3108 2011-09-25  Bruno Haible  <bruno@clisp.org>
3109
3110         strerror_r-posix: Fix for MSVC 9.
3111         * lib/strerror_r.c (local_snprintf): New function.
3112         (snprintf): Define to local_snprintf, not to _snprintf.
3113
3114 2011-09-25  Bruno Haible  <bruno@clisp.org>
3115
3116         ftruncate: Support for MSVC 9.
3117         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
3118         (chsize_nothrow): New function.
3119         (chsize): Redefine as a macro.
3120         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
3121         * modules/ftruncate (Depends-on): Add msvc-inval.
3122
3123 2011-09-25  Bruno Haible  <bruno@clisp.org>
3124
3125         New module 'fstat'.
3126         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
3127         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
3128         * lib/fchdir.c (rpl_fstat): Remove function.
3129         * m4/fstat.m4: New file.
3130         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
3131         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
3132         declared.
3133         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
3134         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
3135         * modules/fstat: New file.
3136         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
3137         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
3138         is set.
3139         * doc/posix-functions/fstat.texi: Mention the new module and the
3140         problem on MSVC.
3141         * NEWS: Mention the change.
3142         * modules/acl (Depends-on): Add fstat.
3143         * modules/chdir-safer (Depends-on): Likewise.
3144         * modules/chown (Depends-on): Likewise.
3145         * modules/copy-file (Depends-on): Likewise.
3146         * modules/fchdir (Depends-on): Likewise.
3147         * modules/fdopendir (Depends-on): Likewise.
3148         * modules/fopen (Depends-on): Likewise.
3149         * modules/fts (Depends-on): Likewise.
3150         * modules/getcwd (Depends-on): Likewise.
3151         * modules/isapipe (Depends-on): Likewise.
3152         * modules/linkat (Depends-on): Likewise.
3153         * modules/lseek (Depends-on): Likewise.
3154         * modules/mkdir-p (Depends-on): Likewise.
3155         * modules/open (Depends-on): Likewise.
3156         * modules/openat (Depends-on): Likewise.
3157         * modules/read-file (Depends-on): Likewise.
3158         * modules/renameat (Depends-on): Likewise.
3159         * modules/utimens (Depends-on): Likewise.
3160
3161 2011-09-25  Bruno Haible  <bruno@clisp.org>
3162
3163         linkat: Fix compilation on MSVC 9.
3164         * lib/linkat.c: Don't include <stdint.h>.
3165
3166 2011-09-25  Bruno Haible  <bruno@clisp.org>
3167
3168         fclose: Support for MSVC 9.
3169         * lib/fclose.c: Include msvc-inval.h.
3170         (fclose_nothrow): New function.
3171         (rpl_fclose): Use it.
3172         * modules/fclose (Depends-on): Add msvc-inval.
3173         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
3174
3175 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3176
3177         dup2: minor simplifications
3178         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
3179         that it's a performance win.
3180         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
3181         ! defined __CYGWIN__)" to "ifdef F_GETFL".
3182
3183 2011-09-24  Jim Meyering  <meyering@redhat.com>
3184
3185         test-futimens: avoid a warning from gcc -Wshadow
3186         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
3187         to avoid a shadowing warning.
3188
3189 2011-09-24  Bruno Haible  <bruno@clisp.org>
3190
3191         fdopen: Support for MSVC 9.
3192         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
3193         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
3194         * lib/fdopen.c: Include msvc-inval.h.
3195         (fdopen_nothrow): New function.
3196         (rpl_fdopen): Use it.
3197         * modules/fdopen (Depends-on): Add msvc-inval.
3198         * modules/fclose-tests (Depends-on): Add fdopen.
3199         * modules/fflush-tests (Depends-on): Likewise.
3200         * modules/fgetc-tests (Depends-on): Likewise.
3201         * modules/fputc-tests (Depends-on): Likewise.
3202         * modules/fread-tests (Depends-on): Likewise.
3203         * modules/freopen-tests (Depends-on): Likewise.
3204         * modules/fseeko-tests (Depends-on): Likewise.
3205         * modules/ftello-tests (Depends-on): Likewise.
3206         * modules/fwrite-tests  (Depends-on): Likewise.
3207         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
3208
3209 2011-09-24  Bruno Haible  <bruno@clisp.org>
3210
3211         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
3212         * modules/fgetc-tests (Depends-on): Add unistd.
3213         * modules/fputc-tests (Depends-on): Likewise.
3214         * modules/fread-tests (Depends-on): Likewise.
3215         * modules/fwrite-tests (Depends-on): Likewise.
3216
3217 2011-09-24  Bruno Haible  <bruno@clisp.org>
3218
3219         dup: Simplify autoconf test.
3220         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
3221         on gl_MSVC_INVAL's result.
3222
3223 2011-09-24  Bruno Haible  <bruno@clisp.org>
3224
3225         Tests for function fwrite().
3226         * modules/fwrite-tests: New file.
3227         * tests/test-fwrite.c: New file.
3228         * modules/stdio-tests (Depends-on): Add fwrite-tests.
3229
3230         Tests for function fread().
3231         * modules/fread-tests: New file.
3232         * tests/test-fread.c: New file.
3233         * modules/stdio-tests (Depends-on): Add fread-tests.
3234
3235         Activate fputc tests.
3236         * modules/stdio-tests (Depends-on): Add fputc-tests.
3237
3238         Enhance fgetc, fputc tests.
3239         * tests/test-fgetc.c (main): Also test the stream's error indicator.
3240         * tests/test-fputc.c (main): Likewise.
3241
3242 2011-09-24  Bruno Haible  <bruno@clisp.org>
3243
3244         write: Support for MSVC 9.
3245         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3246         is not 1.
3247         * lib/write.c (write_nothrow): New function.
3248         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
3249         not 1. Use write_nothrow.
3250         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
3251         invalid parameter handler.
3252         (gl_PREREQ_WRITE): New macro.
3253         * modules/write (Depends-on): Add msvc-inval.
3254         (configure.ac): Invoke gl_PREREQ_WRITE.
3255         * doc/posix-functions/write.texi: Mention the problem on MSVC.
3256
3257 2011-09-24  Bruno Haible  <bruno@clisp.org>
3258
3259         read: Fix last commit.
3260         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
3261
3262 2011-09-24  Bruno Haible  <bruno@clisp.org>
3263
3264         dup2: Fix last commit.
3265         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
3266         (rpl_dup2): Disable fcntl workaround on native Windows.
3267
3268         sigprocmask: Make code safer.
3269         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
3270         section that changes macro definitions for this compilation unit.
3271
3272 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3273
3274         dup2: clarify by coalescing Windows-specific material
3275         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
3276         "msvc-nothrow.h"' to the Windows-specific section, so that the
3277         Emacs source need not contain these include files.
3278         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
3279         Windows-specific fixes into this function rather than just the
3280         nothrow fix, as this shortens and clarifies the code.  Always
3281         define as a function, as that's a bit cleaner than having it be
3282         sometimes a function and sometimes a macro.
3283         (rpl_dup2): Move the Windows-specific stuff out of here and into
3284         ms_windows_dup2.  Don't protect the Haiku-related fix with
3285         "#if !defined __linux__", as the same code also works around
3286         a Linux kernel bug, and it doesn't add any system calls on any
3287         platform.  Add comment about FreeBSD 6.1.
3288
3289         sigprocmask: move #include directive
3290         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
3291         Windows-specific section, so that the Emacs source need not
3292         contain msvc-inval.h.
3293
3294 2011-09-23  Bruno Haible  <bruno@clisp.org>
3295
3296         read: Support for MSVC 9.
3297         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3298         is not 1.
3299         * lib/read.c (read_nothrow): New function.
3300         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
3301         read_nothrow.
3302         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
3303         invalid parameter handler.
3304         (gl_PREREQ_READ): New macro.
3305         * modules/read (Depends-on): Add msvc-inval.
3306         (configure.ac): Invoke gl_PREREQ_READ.
3307         * doc/posix-functions/read.texi: Mention the problem on MSVC.
3308
3309 2011-09-23  Bruno Haible  <bruno@clisp.org>
3310
3311         close: Support for MSVC 9.
3312         * lib/close.c: Include <errno.h>, msvc-inval.h.
3313         (close_nothrow): New function.
3314         (rpl_close): Use it.
3315         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
3316         invalid parameter handler.
3317         * modules/close (Depends-on): Add msvc-inval.
3318         * modules/dup2-tests (Depends-on): Add close.
3319         * modules/dup3-tests (Depends-on): Likewise.
3320         * modules/fcntl-tests (Depends-on): Likewise.
3321         * modules/spawn-pipe-tests (Depends-on): Likewise.
3322         * modules/unistd-safer-tests (Depends-on): Likewise.
3323         * doc/posix-functions/close.texi: Mention the problem on MSVC.
3324
3325 2011-09-23  Bruno Haible  <bruno@clisp.org>
3326
3327         New module 'dup'.
3328         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
3329         Allow replacement.
3330         * lib/dup.c: New file.
3331         * lib/fchdir.c (rpl_dup): Remove function.
3332         * m4/dup.m4: New file.
3333         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
3334         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
3335         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
3336         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
3337         * modules/dup: New file.
3338         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
3339         'dup' module is in use.
3340         * modules/fdopendir (Depends-on): Add dup.
3341         * modules/fdutimensat-tests (Depends-on): Likewise.
3342         * modules/fts (Depends-on): Likewise.
3343         * modules/futimens-tests (Depends-on): Likewise.
3344         * modules/posix_spawnp-tests (Depends-on): Likewise.
3345         * modules/unistd-safer-tests (Depends-on): Likewise.
3346         * modules/utimens-tests (Depends-on): Likewise.
3347         * doc/posix-functions/dup.texi: Mention the new module and the problem
3348         on MSVC.
3349
3350 2011-09-23  Bruno Haible  <bruno@clisp.org>
3351
3352         getdtablesize: Support for MSVC 9.
3353         * lib/getdtablesize.c: Include msvc-inval.h.
3354         (_setmaxstdio_nothrow): New function.
3355         (_setmaxstdio): Redefine it.
3356         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
3357         * modules/getdtablesize (Depends-on): Add msvc-inval.
3358         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3359
3360 2011-09-23  Bruno Haible  <bruno@clisp.org>
3361
3362         signal-h: Rename from signal.
3363         * modules/signal-h: Renamed from modules/signal.
3364         * modules/pthread_sigmask (Depends-on): Update.
3365         * modules/raise (Depends-on): Likewise.
3366         * modules/sigaction (Depends-on): Likewise.
3367         * modules/sigpipe (Depends-on): Likewise.
3368         * modules/sigprocmask (Depends-on): Likewise.
3369         * modules/sys_select (Depends-on): Likewise.
3370         * modules/signal-h-tests: Renamed from modules/signal-tests.
3371         (Files, Depends-on, Makefile.am): Update.
3372         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3373         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3374         (Files, Makefile.am): Update.
3375         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3376         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3377         * modules/signal: New placeholder file.
3378         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3379         * doc/posix-headers/signal.texi: Update.
3380         * NEWS: Mention the change.
3381
3382 2011-09-23  Bruno Haible  <bruno@clisp.org>
3383
3384         sigprocmask: Avoid crashes through signal() on MSVC 9.
3385         * lib/sigprocmask.c: Include msvc-inval.h.
3386         (signal_nothrow): New function.
3387         (signal): Redefine it.
3388         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3389         * modules/sigprocmask (Depends-on): Add msvc-inval.
3390         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3391
3392 2011-09-23  Bruno Haible  <bruno@clisp.org>
3393
3394         Tests for module 'raise'.
3395         * modules/raise-tests: New file.
3396         * tests/test-raise.c: New file.
3397
3398         raise: Support for MSVC.
3399         * lib/signal.in.h (raise): New declaration.
3400         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
3401         for native Windows platforms.
3402         * m4/raise.m4: New file.
3403         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
3404         HAVE_RAISE, REPLACE_RAISE.
3405         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
3406         REPLACE_RAISE.
3407         * modules/raise (Status, Notice): Remove fields.
3408         (Files): Add m4/raise.m4.
3409         (Depends-on): Add signal, msvc-inval.
3410         (configure.ac): Use the common idioms.
3411         (Maintainer): Add me.
3412         * tests/test-signal-c++.cc: Check the signature of raise.
3413         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
3414
3415 2011-09-23  Bruno Haible  <bruno@clisp.org>
3416
3417         pipe2: Fix compilation on pre-C99 compilers.
3418         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
3419
3420 2011-09-23  Bruno Haible  <bruno@clisp.org>
3421
3422         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
3423         * lib/msvc-nothrow.h: New file.
3424         * lib/msvc-nothrow.c: New file.
3425         * m4/msvc-nothrow.m4: New file.
3426         * modules/msvc-nothrow: New file.
3427         * lib/dup2.c: Include msvc-nothrow.h.
3428         (rpl_dup2): No need to protect _get_osfhandle call here.
3429         * lib/accept4.c: Include msvc-nothrow.h.
3430         * lib/error.c: Likewise.
3431         * lib/fcntl.c: Likewise.
3432         * lib/lseek.c: Likewise.
3433         * lib/nonblocking.c: Likewise.
3434         * lib/poll.c: Likewise.
3435         * lib/read.c: Likewise.
3436         * lib/select.c: Likewise.
3437         * lib/sockets.h: Likewise.
3438         * lib/sockets.c: Likewise.
3439         * lib/stdio-read.c: Likewise.
3440         * lib/stdio-write.c: Likewise.
3441         * lib/write.c: Likewise.
3442         * lib/w32sock.h: Likewise.
3443         * lib/w32spawn.h: Likewise.
3444         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
3445         * lib/fsync.c: Likewise.
3446         * lib/isapipe.c: Likewise.
3447         * modules/dup2 (Depends-on): Add msvc-nothrow.
3448         * modules/accept4 (Depends-on): Likewise.
3449         * modules/error (Depends-on): Likewise.
3450         * modules/fcntl (Depends-on): Likewise.
3451         * modules/lseek (Depends-on): Likewise.
3452         * modules/nonblocking (Depends-on): Likewise.
3453         * modules/poll (Depends-on): Likewise.
3454         * modules/read (Depends-on): Likewise.
3455         * modules/select (Depends-on): Likewise.
3456         * modules/sockets (Depends-on): Likewise.
3457         * modules/sigpipe (Depends-on): Likewise.
3458         * modules/write (Depends-on): Likewise.
3459         * modules/accept (Depends-on): Likewise.
3460         * modules/bind (Depends-on): Likewise.
3461         * modules/connect (Depends-on): Likewise.
3462         * modules/gethostname (Depends-on): Likewise.
3463         * modules/getpeername (Depends-on): Likewise.
3464         * modules/getsockname (Depends-on): Likewise.
3465         * modules/getsockopt (Depends-on): Likewise.
3466         * modules/ioctl (Depends-on): Likewise.
3467         * modules/listen (Depends-on): Likewise.
3468         * modules/recv (Depends-on): Likewise.
3469         * modules/recvfrom (Depends-on): Likewise.
3470         * modules/send (Depends-on): Likewise.
3471         * modules/sendto (Depends-on): Likewise.
3472         * modules/setsockopt (Depends-on): Likewise.
3473         * modules/shutdown (Depends-on): Likewise.
3474         * modules/socket (Depends-on): Likewise.
3475         * modules/execute (Depends-on): Likewise.
3476         * modules/spawn-pipe (Depends-on): Likewise.
3477         * modules/flock (Depends-on): Likewise.
3478         * modules/fsync (Depends-on): Likewise.
3479         * modules/isapipe (Depends-on): Likewise.
3480         * tests/test-cloexec.c: Include msvc-nothrow.h.
3481         * tests/test-dup-safer.c: Likewise.
3482         * tests/test-dup2.c: Likewise.
3483         * tests/test-dup3.c: Likewise.
3484         * tests/test-fcntl.c: Likewise.
3485         * tests/test-pipe.c: Likewise.
3486         * tests/test-pipe2.c: Likewise.
3487         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3488         * modules/unistd-safer-tests (Depends-on): Likewise.
3489         * modules/dup2-tests (Depends-on): Likewise.
3490         * modules/dup3-tests (Depends-on): Likewise.
3491         * modules/fcntl-tests (Depends-on): Likewise.
3492         * modules/pipe-posix-tests (Depends-on): Likewise.
3493         * modules/pipe2-tests (Depends-on): Likewise.
3494
3495 2011-09-23  Bruno Haible  <bruno@clisp.org>
3496
3497         dup2: Make code more maintainable.
3498         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3499         (rpl_dup2): Use it.
3500         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3501         * modules/dup2 (configure.ac): Invoke it.
3502         Reported by Paul Eggert.
3503
3504 2011-09-23  Bruno Haible  <bruno@clisp.org>
3505
3506         msvc-inval: Fix compilation error.
3507         * lib/msvc-inval.h: Include <excpt.h>.
3508
3509 2011-09-23  Bruno Haible  <bruno@clisp.org>
3510
3511         mkdir: Tweak for MSVC 9.
3512         * lib/sys_stat.in.h: Update comments.
3513         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3514
3515         Tests for module 'chdir'.
3516         * modules/chdir-tests: New file.
3517         * tests/test-chdir.c: New file.
3518
3519         New module 'chdir'.
3520         * modules/chdir: New file.
3521         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3522         (chdir): New declaration.
3523         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3524         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3525         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3526         * tests/test-unistd-c++.cc: Check signature of chdir.
3527         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3528         * modules/chdir-long (Depends-on): Add chdir.
3529         * modules/fchdir (Depends-on): Likewise.
3530         * modules/rename (Depends-on): Likewise.
3531         * modules/savewd (Depends-on): Likewise.
3532
3533         rmdir: Support for mingw, MSVC 9.
3534         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3535         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3536
3537         getcwd: Tweak for MSVC 9.
3538         * lib/unistd.in.h: Update comments.
3539         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3540
3541 2011-09-22  Bruno Haible  <bruno@clisp.org>
3542
3543         strerror_r-posix: Avoid a link error on MSVC.
3544         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3545         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3546
3547 2011-09-22  Bruno Haible  <bruno@clisp.org>
3548
3549         select: Avoid link errors on MSVC.
3550         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3551         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3552         * modules/pselect (Link): Likewise.
3553         * NEWS: Mention the change.
3554         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3555         test-select-stdin against $(LIB_SELECT).
3556         * modules/pselect-tests (Makefile.am): Link test-pselect against
3557         $(LIB_SELECT).
3558
3559 2011-09-22  Bruno Haible  <bruno@clisp.org>
3560
3561         select: Avoid compilation error on MSVC.
3562         * lib/select.c: Don't include <stdbool.h>.
3563
3564 2011-09-21  Bruno Haible  <bruno@clisp.org>
3565
3566         Consolidate all uses of PATH_MAX in *.m4 files.
3567         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3568         macros.
3569         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3570         and gl_PATHMAX_SNIPPET.
3571         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3572         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3573         * modules/chdir-long (Files): Add m4/pathmax.m4.
3574         * modules/getcwd (Files): Likewise.
3575
3576 2011-09-21  Bruno Haible  <bruno@clisp.org>
3577
3578         ftruncate: Un-deprecate, concentrate on Win32 support.
3579         * modules/ftruncate (Status, Notice): Remove sections.
3580         (Depends-on): Add largefile.
3581         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3582         non-mingw platforms.
3583         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3584         include <io.h>.
3585         * modules/perror-tests (Depends-on): Add ftruncate.
3586         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3587         'ftruncate' module.
3588
3589 2011-09-21  Bruno Haible  <bruno@clisp.org>
3590
3591         Add dependencies to new dirent related modules.
3592         * modules/opendir (Depends-on): Add closedir.
3593         * modules/getcwd (Depends-on): Add opendir, closedir.
3594         * modules/dirent-safer-tests (Depends-on): Likewise.
3595         * modules/fdopendir-tests (Depends-on): Likewise.
3596         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3597         * modules/renameat-tests (Depends-on): Likewise.
3598
3599 2011-09-21  Bruno Haible  <bruno@clisp.org>
3600
3601         opendir: Avoid compilation error on mingw.
3602         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3603         * modules/opendir (Depends-on): Add unistd.
3604
3605 2011-09-21  Bruno Haible  <bruno@clisp.org>
3606
3607         ftruncate tests: Avoid a test failure on mingw.
3608         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3609
3610 2011-09-21  Bruno Haible  <bruno@clisp.org>
3611
3612         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3613         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3614         native Windows.
3615
3616 2011-09-21  Bruno Haible  <bruno@clisp.org>
3617
3618         New module 'fdopen'.
3619         * lib/stdio.in.h (fdopen): New declaration.
3620         * lib/fdopen.c: New file.
3621         * m4/fdopen.m4: New file.
3622         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3623         REPLACE_FDOPEN.
3624         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3625         REPLACE_FDOPEN.
3626         * modules/fdopen: New file.
3627         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3628         * tests/test-stdio-c++.cc: Check signature of fdopen.
3629         * doc/posix-functions/fdopen.texi: Mention the new module.
3630
3631 2011-09-21  Bruno Haible  <bruno@clisp.org>
3632
3633         unlockpt tests: Avoid test failure on NetBSD 5.1.
3634         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3635         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3636
3637 2011-09-21  Bruno Haible  <bruno@clisp.org>
3638
3639         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3640         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3641         * tests/test-getlogin_r.c (main): Likewise.
3642
3643 2011-09-20  Bruno Haible  <bruno@clisp.org>
3644
3645         time tests: Don't require pid_t.
3646         * doc/posix-headers/time.texi: Revert last change.
3647         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3648         * tests/test-time.c: Comment out the check for pid_t.
3649
3650 2011-09-20  Bruno Haible  <bruno@clisp.org>
3651
3652         fsync tests: Avoid a test failure on mingw.
3653         * tests/test-fsync.c (main): Allow a failure with EIO.
3654
3655 2011-09-20  Bruno Haible  <bruno@clisp.org>
3656
3657         euidaccess: Update comments.
3658         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3659
3660 2011-09-20  Bruno Haible  <bruno@clisp.org>
3661
3662         Ensure EBADF returns for socket functions on mingw.
3663         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3664         descriptor is invalid.
3665         * lib/bind.c (rpl_bind): Likewise.
3666         * lib/connect.c (rpl_connect): Likewise.
3667         * lib/getpeername.c (rpl_getpeername): Likewise.
3668         * lib/getsockname.c (rpl_getsockname): Likewise.
3669         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3670         * lib/listen.c (rpl_listen): Likewise.
3671         * lib/recv.c (rpl_recv): Likewise.
3672         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3673         * lib/send.c (rpl_send): Likewise.
3674         * lib/sendto.c (rpl_sendto): Likewise.
3675         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3676         * lib/shutdown.c (rpl_shutdown): Likewise.
3677
3678 2011-09-20  Bruno Haible  <bruno@clisp.org>
3679
3680         select tests: EBADF tests.
3681         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3682         test_bad_fd): New functions.
3683         (test_function): Invoke also test_bad_fd.
3684
3685 2011-09-20  Bruno Haible  <bruno@clisp.org>
3686
3687         Tests for module 'posix_spawn_file_actions_addopen.
3688         * modules/posix_spawn_file_actions_addopen-tests: New file.
3689         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3690
3691         Tests for module 'posix_spawn_file_actions_adddup2'.
3692         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3693         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3694
3695         Tests for module 'posix_spawn_file_actions_addclose'.
3696         * modules/posix_spawn_file_actions_addclose-tests: New file.
3697         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3698
3699 2011-09-20  Bruno Haible  <bruno@clisp.org>
3700
3701         Tests for module 'unlockpt'.
3702         * modules/unlockpt-tests: New file.
3703         * tests/test-unlockpt.c: New file.
3704         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3705
3706         Tests for module 'grantpt'.
3707         * modules/grantpt-tests: New file.
3708         * tests/test-grantpt.c: New file.
3709         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3710
3711 2011-09-20  Bruno Haible  <bruno@clisp.org>
3712
3713         freopen tests: EBADF tests.
3714         * tests/test-freopen.c: Include errno.h, unistd.h.
3715         (main): Add tests for EBADF, commented out for the moment.
3716
3717         fclose tests: EBADF tests.
3718         * tests/test-fclose.c (main): Add tests for EBADF.
3719
3720         fflush tests: EBADF tests.
3721         * tests/test-fflush.c: Include errno.h, macros.h.
3722         (main): Add tests for EBADF.
3723
3724         ftello tests: EBADF tests.
3725         * tests/test-ftello4.sh: New file.
3726         * tests/test-ftello4.c: New file.
3727         * modules/ftello-tests (Files): Add them.
3728         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3729
3730         fseeko tests: EBADF tests.
3731         * tests/test-fseeko4.sh: New file.
3732         * tests/test-fseeko4.c: New file.
3733         * modules/fseeko-tests (Files): Add them.
3734         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3735
3736         Tests for function fputc().
3737         * modules/fputc-tests: New file.
3738         * tests/test-fputc.c: New file.
3739         * modules/stdio-tests (Depends-on): Add fputc-tests.
3740
3741         Tests for function fgetc().
3742         * modules/fgetc-tests: New file.
3743         * tests/test-fgetc.c: New file.
3744         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3745
3746         Tests for function fdopen().
3747         * modules/fdopen-tests: New file.
3748         * tests/test-fdopen.c: New file.
3749         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3750
3751         Tests for module 'vdprintf'.
3752         * modules/vdprintf-tests: New file.
3753         * tests/test-vdprintf.c: New file.
3754
3755         Tests for module 'dprintf'.
3756         * modules/dprintf-tests: New file.
3757         * tests/test-dprintf.c: New file.
3758
3759 2011-09-20  Bruno Haible  <bruno@clisp.org>
3760
3761         Tests for module 'ioctl'.
3762         * modules/ioctl-tests: New file.
3763         * tests/test-ioctl.c: New file.
3764
3765 2011-09-20  Bruno Haible  <bruno@clisp.org>
3766
3767         fcntl tests: EBADF tests.
3768         * tests/test-fcntl.c (main): Add more tests for EBADF.
3769
3770 2011-09-20  Bruno Haible  <bruno@clisp.org>
3771
3772         utimensat tests: EBADF tests.
3773         * tests/test-utimensat.c (main): Add tests for EBADF.
3774
3775         renameat tests: EBADF tests.
3776         * tests/test-renameat.c (main): Add tests for EBADF.
3777
3778         mkfifoat tests: EBADF tests.
3779         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3780
3781         readlinkat tests: EBADF tests.
3782         * tests/test-readlinkat.c (main): Add tests for EBADF.
3783
3784         symlinkat tests: EBADF tests.
3785         * tests/test-symlinkat.c (main): Add tests for EBADF.
3786
3787         linkat tests: EBADF tests.
3788         * tests/test-linkat.c (main): Add tests for EBADF.
3789
3790         Tests for module 'faccessat'.
3791         * modules/faccessat-tests: New file.
3792         * tests/test-faccessat.c: New file.
3793
3794         fdopendir tests: EBADF tests.
3795         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3796
3797         openat tests: EBADF tests.
3798         * tests/test-fchownat.c (main): Add tests for EBADF.
3799         * tests/test-fstatat.c (main): Likewise.
3800         * tests/test-mkdirat.c (main): Likewise.
3801         * tests/test-openat.c (main): Likewise.
3802         * tests/test-unlinkat.c (main): Likewise.
3803         * tests/test-fchmodat.c: New file.
3804         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3805         (Makefile.am): Also run 'test-fchmodat'.
3806
3807 2011-09-20  Bruno Haible  <bruno@clisp.org>
3808
3809         utimens, futimens, fdutimensat tests: EBADF tests.
3810         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3811
3812         Tests for function fstat().
3813         * modules/fstat-tests: New file.
3814         * tests/test-fstat.c: New file.
3815         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3816
3817 2011-09-20  Bruno Haible  <bruno@clisp.org>
3818
3819         test-ttyname_r tests: EBADF tests.
3820         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3821
3822         Tests for module 'isatty'.
3823         * modules/isatty-tests: New file.
3824         * tests/test-isatty.c: New file.
3825
3826         Tests for module 'write'.
3827         * modules/write-tests: New file.
3828         * tests/test-write.c: New file.
3829
3830         Tests for module 'read'.
3831         * modules/read-tests: New file.
3832         * tests/test-read.c: New file.
3833
3834         pwrite tests: EBADF tests.
3835         * tests/test-pwrite.c (main): Add tests for EBADF.
3836
3837         pread tests: EBADF tests.
3838         * tests/test-pread.c (main): Add tests for EBADF.
3839
3840         lseek tests: EBADF tests.
3841         * tests/test-lseek.c (main): Add more tests for EBADF.
3842
3843         Tests for module 'ftruncate'.
3844         * modules/ftruncate-tests: New file.
3845         * tests/test-ftruncate.sh: New file.
3846         * tests/test-ftruncate.c: New file.
3847
3848         fsync tests: EBADF tests.
3849         * tests/test-fsync.c (main): Add more tests for EBADF.
3850
3851         fdatasync tests: EBADF tests.
3852         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3853
3854         Tests for module 'fchown'.
3855         * modules/fchown-tests: New file.
3856         * tests/test-fchown.c: New file.
3857
3858         Tests for module 'fchmod'.
3859         * modules/fchmod-tests: New file.
3860         * tests/test-fchmod.c: New file.
3861
3862         fchdir tests: EBADF tests.
3863         * tests/test-fchdir.c (main): Add more tests for EBADF.
3864
3865         dup2 tests: EBADF tests.
3866         * tests/test-dup2.c (main): Add more tests for EBADF.
3867
3868         Tests for module 'dup'.
3869         * modules/dup-tests: New file.
3870         * tests/test-dup.c: New file.
3871
3872         Tests for module 'close'.
3873         * modules/close-tests: New file.
3874         * tests/test-close.c: New file.
3875
3876 2011-09-20  Bruno Haible  <bruno@clisp.org>
3877
3878         Tests for module 'shutdown'.
3879         * modules/shutdown-tests: New file.
3880         * tests/test-shutdown.c: New file.
3881
3882         Tests for module 'setsockopt'.
3883         * modules/setsockopt-tests: New file.
3884         * tests/test-setsockopt.c: New file.
3885
3886         Tests for module 'sendto'.
3887         * modules/sendto-tests: New file.
3888         * tests/test-sendto.c: New file.
3889
3890         Tests for module 'send'.
3891         * modules/send-tests: New file.
3892         * tests/test-send.c: New file.
3893
3894         Tests for module 'recvfrom'.
3895         * modules/recvfrom-tests: New file.
3896         * tests/test-recvfrom.c: New file.
3897
3898         Tests for module 'recv'.
3899         * modules/recv-tests: New file.
3900         * tests/test-recv.c: New file.
3901
3902         Tests for module 'listen'.
3903         * modules/listen-tests: New file.
3904         * tests/test-listen.c: New file.
3905
3906         Tests for module 'getsockopt'.
3907         * modules/getsockopt-tests: New file.
3908         * tests/test-getsockopt.c: New file.
3909
3910         Tests for module 'getsockname'.
3911         * modules/getsockname-tests: New file.
3912         * tests/test-getsockname.c: New file.
3913
3914         Tests for module 'getpeername'.
3915         * modules/getpeername-tests: New file.
3916         * tests/test-getpeername.c: New file.
3917
3918         Tests for module 'connect'.
3919         * modules/connect-tests: New file.
3920         * tests/test-connect.c: New file.
3921
3922         Tests for module 'bind'.
3923         * modules/bind-tests: New file.
3924         * tests/test-bind.c: New file.
3925
3926         accept4 tests: Fix for native Windows.
3927         * tests/test-accept4.c: Include sockets.h.
3928         (main): Invoke gl_sockets_startup.
3929         * modules/accept4-tests (Depends-on): Add sockets.
3930
3931         accept tests: Fix for native Windows.
3932         * tests/test-accept.c: Include sockets.h.
3933         (main): Invoke gl_sockets_startup.
3934         * modules/accept-tests (Depends-on): Add sockets.
3935
3936 2011-09-19  Bruno Haible  <bruno@clisp.org>
3937
3938         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3939         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3940         do...while(0).
3941         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3942         Suggested by Paul Eggert.
3943
3944 2011-09-19  Bruno Haible  <bruno@clisp.org>
3945
3946         sched: Ensure pid_t is defined.
3947         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3948         not define pid_t.
3949         * lib/sched.in.h: Include <sys/types.h>.
3950         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3951         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3952
3953 2011-09-19  Bruno Haible  <bruno@clisp.org>
3954
3955         msvc-inval: Ensure the entire expansion is a single statement.
3956         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3957         of braces.
3958
3959 2011-09-19  Jim Meyering  <meyering@redhat.com>
3960
3961         tests: use printf, not echo in init.sh's warn_ function
3962         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3963         misbehave when given strings containing a backslash or starting
3964         with e.g., -n.  James Youngman suggested setting IFS.
3965
3966 2011-09-19  Eric Blake  <eblake@redhat.com>
3967
3968         futimens: enhance test
3969         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3970         closed non-negative fd.
3971
3972         date: accept 'hence' as opposite of 'ago'
3973         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3974         * tests/test-parse-datetime.c (main): Enhance test.
3975         Suggested by Jesse Wilson.
3976
3977 2011-09-19  Jim Meyering  <meyering@redhat.com>
3978
3979         getcwd: don't fail in a deep directory on a system without openat
3980         Before this change, getcwd would fail when called from a directory
3981         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3982         the non-openat implementation used "..", "../..", "../../..", etc.
3983         to access ancestor directories.  With too many, that string would
3984         be longer than PATH_MAX.
3985         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3986         using gnulib's openat replacement.
3987         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3988         we're using the replacement function.
3989
3990 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3991
3992         maint.mk: avoid warnings from perl about missing files
3993         * top/maint.mk (def_sym_regex): Ignore files listed in
3994         $(gl_other_headers_) that do not exist, say because a project
3995         does not use a corresponding module.
3996
3997 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3998
3999         stat: use pathmax.h only if needed
4000         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
4001         This is better for Emacs, which does not have a mingw port and
4002         therefore can avoid the pathmax module.
4003
4004         utimens: remove dependency on dup2
4005         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
4006         to work around the Linux kernel bug.
4007         * modules/utimens (Depends-on): Remove dup2.
4008
4009 2011-09-18  Bruno Haible  <bruno@clisp.org>
4010
4011         inet_ntop, inet_pton: Look for it also in libresolv.
4012         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
4013         libnsl, search for it in libresolv.
4014         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4015         Needed on Solaris 7.
4016
4017 2011-09-18  Bruno Haible  <bruno@clisp.org>
4018
4019         accept, accept4 tests: Avoid link error on Solaris.
4020         * modules/accept-tests (Makefile.am): Link test-accept against
4021         $(LIBSOCKET).
4022         * modules/accept4-tests (Makefile.am): Link test-accept4 against
4023         $(LIBSOCKET).
4024
4025         accept4: Avoid link error on Solaris.
4026         * modules/accept4 (Link): New section.
4027
4028         socket functions: Avoid link errors on Solaris.
4029         * modules/accept (Depends-on): Add socketlib.
4030         (Link): New section.
4031         * modules/bind (Depends-on): Add socketlib.
4032         (Link): New section.
4033         * modules/connect (Depends-on): Add socketlib.
4034         (Link): New section.
4035         * modules/getpeername (Depends-on): Add socketlib.
4036         (Link): New section.
4037         * modules/getsockname (Depends-on): Add socketlib.
4038         (Link): New section.
4039         * modules/getsockopt (Depends-on): Add socketlib.
4040         (Link): New section.
4041         * modules/listen (Depends-on): Add socketlib.
4042         (Link): New section.
4043         * modules/recv (Depends-on): Add socketlib.
4044         (Link): New section.
4045         * modules/recvfrom (Depends-on): Add socketlib.
4046         (Link): New section.
4047         * modules/send (Depends-on): Add socketlib.
4048         (Link): New section.
4049         * modules/sendto (Depends-on): Add socketlib.
4050         (Link): New section.
4051         * modules/setsockopt (Depends-on): Add socketlib.
4052         (Link): New section.
4053         * modules/shutdown (Depends-on): Add socketlib.
4054         (Link): New section.
4055         * modules/socket (Depends-on): Add socketlib.
4056         (Link): New section.
4057
4058 2011-09-18  Bruno Haible  <bruno@clisp.org>
4059
4060         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
4061         * tests/test-ptsname.c (main): Terminate the test if it takes longer
4062         than 5 seconds.
4063         * modules/ptsname-tests (configure.ac): Test for alarm.
4064
4065 2011-09-18  Bruno Haible  <bruno@clisp.org>
4066
4067         posix_spawn_file_actions_add*: Fix module dependencies.
4068         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
4069         posix_spawn_file_actions_init.
4070         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
4071         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
4072
4073 2011-09-18  Bruno Haible  <bruno@clisp.org>
4074
4075         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
4076         * tests/test-rename.h (test_rename): Allow error code EEXIST.
4077         * tests/test-renameat.c (main): Likewise.
4078
4079 2011-09-18  Bruno Haible  <bruno@clisp.org>
4080
4081         Tests for module 'accept4'.
4082         * modules/accept4-tests: New file.
4083         * tests/test-accept4.c: New file.
4084
4085 2011-09-18  Bruno Haible  <bruno@clisp.org>
4086
4087         Tests for module 'accept'.
4088         * modules/accept-tests: New file.
4089         * tests/test-accept.c: New file.
4090
4091 2011-09-18  Bruno Haible  <bruno@clisp.org>
4092
4093         dup2: Support for MSVC.
4094         * lib/dup2.c: Include msvc-inval.h.
4095         (rpl_dup2): Handle invalid parameter notifications during dup2 and
4096         _get_osfhandle calls.
4097         * modules/dup2 (Depends-on): Add msvc-inval.
4098         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
4099
4100         New module 'msvc-inval'.
4101         * lib/msvc-inval.h: New file.
4102         * lib/msvc-inval.c: New file.
4103         * m4/msvc-inval.m4: New file.
4104         * modules/msvc-inval: New file.
4105
4106 2011-09-17  Bruno Haible  <bruno@clisp.org>
4107
4108         Tests for module 'pclose'.
4109         * modules/pclose-tests: New file.
4110
4111         New module 'pclose'.
4112         * lib/stdio.in.h (pclose): New declaration.
4113         * lib/pclose.c: New file.
4114         * m4/pclose.m4: New file.
4115         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
4116         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
4117         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
4118         * modules/pclose: New file.
4119         * modules/popen-tests (Depends-on): Add pclose.
4120         * modules/popen-safer-tests (Depends-on): Likewise.
4121         * doc/posix-functions/pclose.texi: Mention the new module.
4122
4123 2011-09-17  Bruno Haible  <bruno@clisp.org>
4124
4125         popen: Support for MSVC.
4126         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
4127         * lib/popen.c (popen): Provide alternate definition for native Windows.
4128         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
4129         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
4130         * modules/popen (Depends-on, configure.ac): Update condition.
4131         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
4132         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
4133         fixed.
4134
4135 2011-09-17  Bruno Haible  <bruno@clisp.org>
4136
4137         isnanl, isnand, isnanf: Work around MSVC bug.
4138         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
4139
4140 2011-09-17  Bruno Haible  <bruno@clisp.org>
4141
4142         sys_socket tests: Fix recent mistake.
4143         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
4144
4145 2011-09-17  Bruno Haible  <bruno@clisp.org>
4146
4147         putenv: Support for MSVC.
4148         * modules/putenv (Depends-on): Add environ.
4149         * lib/putenv.c (environ): Disable declaration.
4150         * lib/unistd.in.h: Update comment.
4151
4152 2011-09-17  Bruno Haible  <bruno@clisp.org>
4153
4154         math: Avoid macro redefinition warnings on MSVC.
4155         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
4156         Undefine before redefining.
4157
4158 2011-09-17  Bruno Haible  <bruno@clisp.org>
4159
4160         doc: Mention functions which are declared as macros.
4161         * doc/posix-functions/*[fl].texi: Mention that some functions are
4162         defined as macros with arguments only.
4163
4164 2011-09-17  Bruno Haible  <bruno@clisp.org>
4165
4166         Add dependencies to new dirent related modules.
4167         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
4168         * modules/fts (Depends-on): Likewise.
4169         * modules/glob (Depends-on): Likewise.
4170         * modules/savedir (Depends-on): Likewise.
4171         * modules/scandir (Depends-on): Likewise.
4172         * modules/dirent-safer (Depends-on): Add opendir, closedir.
4173         * modules/fdopendir (Depends-on): Add opendir.
4174
4175 2011-09-17  Bruno Haible  <bruno@clisp.org>
4176
4177         inet_pton: Support for MSVC on Windows Vista or newer.
4178         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
4179         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
4180         HAVE_DECL_INET_PTON is defined.
4181         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4182         On platforms with <winsock2.h>, test whether inet_pton is declared in
4183         <ws2tcpip.h>. If so, arrange to replace it.
4184         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4185         REPLACE_INET_PTON.
4186         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
4187         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
4188         (Depends-on, configure.ac): Update condition.
4189         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
4190
4191 2011-09-17  Bruno Haible  <bruno@clisp.org>
4192
4193         inet_ntop: Support for MSVC on Windows Vista or newer.
4194         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
4195         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
4196         HAVE_DECL_INET_NTOP is defined.
4197         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4198         On platforms with <winsock2.h>, test whether inet_ntop is declared in
4199         <ws2tcpip.h>. If so, arrange to replace it.
4200         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4201         REPLACE_INET_NTOP.
4202         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
4203         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
4204         (Depends-on, configure.ac): Update condition.
4205         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
4206
4207 2011-09-16  Eric Blake  <eblake@redhat.com>
4208
4209         test-fsync: yet another enhancement
4210         * tests/test-fsync.c (main): Also test behavior on read-only text
4211         file.
4212
4213 2011-09-16  Bruno Haible  <bruno@clisp.org>
4214
4215         Enhance fsync, fdatasync tests.
4216         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
4217         * tests/test-fdatasync.c (main): Likewise.
4218
4219 2011-09-16  Bruno Haible  <bruno@clisp.org>
4220
4221         Support for MSVC compiler: Ensure mode_t gets defined.
4222         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
4223         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4224         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4225         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
4226         * tests/test-fcntl-h.c: Check that mode_t is defined.
4227         * tests/test-sys_stat.c: Likewise.
4228         * tests/test-sys_types.c: Likewise.
4229         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
4230         * doc/posix-headers/sys_stat.texi: Likewise.
4231         * doc/posix-headers/sys_types.texi: Likewise.
4232
4233 2011-09-16  Bruno Haible  <bruno@clisp.org>
4234
4235         sys_stat: Support for MSVC.
4236         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
4237         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
4238         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
4239         MSVC.
4240
4241 2011-09-16  Bruno Haible  <bruno@clisp.org>
4242
4243         Support for MSVC compiler: Ensure off_t gets defined.
4244         * lib/unistd.in.h: Include <sys/types.h>.
4245         * tests/test-fcntl-h.c: Check that off_t is defined.
4246         * tests/test-sys_stat.c: Likewise.
4247         * tests/test-sys_types.c: Likewise.
4248
4249 2011-09-16  Eric Blake  <eblake@redhat.com>
4250
4251         fdatasync: port to Solaris
4252         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
4253         * modules/fdatasync (Link): Document it.
4254         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
4255
4256         fdatasync: port to MacOS X 10.7
4257         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
4258         declared.
4259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
4260         * modules/unistd (Makefile.am): Substitute it.
4261         * lib/unistd.in.h (fdatasync): Declare on MacOS.
4262         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
4263
4264         fdatasync: minor improvements
4265         * modules/fdatasync (Depends-on): Add condition for fsync.
4266         * lib/fdatasync.c (fdatasync): Add comment.
4267         * tests/test-unistd-c++.cc: Test fdatasync.
4268
4269         unistd: update refs to newer POSIX
4270         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
4271         Suggested by Bruno Haible.
4272
4273         fdatasync: new module
4274         * modules/fsync (Description): Document difference to fdatasync.
4275         * modules/fdatasync: New module.
4276         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
4277         * lib/fdatasync.c (fdatasync): Likewise.
4278         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
4279         defaults.
4280         * modules/unistd (Makefile.am): Set witnesses.
4281         * lib/unistd.in.h (fdatasync): Declare.
4282         * MODULES.html.sh: Document it.
4283         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
4284         * modules/fdatasync-tests: New test.
4285         * tests/test-fdatasync.c: Likewise.
4286
4287 2011-09-16  Eric Blake  <eblake@redhat.com>
4288
4289         test-fsync: enhance tests
4290         * modules/fsync-tests (Depends-on): Add errno, for mingw.
4291         * tests/test-fsync.c (main): Enhance test.
4292
4293 2011-09-15  Bruno Haible  <bruno@clisp.org>
4294
4295         Support for MSVC compiler: Ensure ssize_t gets defined.
4296         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
4297         * doc/posix-headers/stdio.texi: Likewise.
4298         * modules/stdio (Depends-on): Add ssize_t.
4299         * modules/sys_socket (Depends-on): Likewise.
4300         * modules/sys_types (Depends-on): Likewise.
4301         * modules/sys_uio (Depends-on): Likewise.
4302         * modules/unistd (Depends-on): Likewise.
4303         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
4304         * tests/test-sys_types.c: Check that ssize_t is defined.
4305
4306 2011-09-14  Bruno Haible  <bruno@clisp.org>
4307
4308         Avoid using #, the m4 comment starter character, near brackets.
4309         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
4310         delimiter character in sed expressions.
4311         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4312         Suggested by Eric Blake.
4313
4314         Properly quote AC_CHECK_DECLS' 4th argument.
4315         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
4316         argument.
4317         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4318         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4319         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4320         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4321         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4322         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
4323         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
4324         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
4325         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
4326         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4327         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
4328         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4329         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4330         * m4/isinf.m4 (gl_ISINF): Likewise.
4331         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4332         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4333         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4334         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4335         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4336         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4337         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4338         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4339         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
4340         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4341         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4342         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4343         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
4344         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4345         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4346         Reported by Eric Blake.
4347
4348         Properly quote AC_CHECK_DECL's 4th argument.
4349         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
4350         argument.
4351         * m4/argp.m4 (gl_ARGP): Likewise.
4352         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4353         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4354         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4355         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4356         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
4357         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4358         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4359         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4360         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4361         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4362         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4363         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4364         Reported by Eric Blake.
4365
4366 2011-09-14  Eric Blake  <eblake@redhat.com>
4367
4368         opendir: avoid compile warning
4369         * lib/opendir.c (includes): Always include errno.h.
4370         Reported by Tatsuro MATSUOKA.
4371
4372 2011-09-14  Jim Meyering  <meyering@redhat.com>
4373
4374         maint.mk: sc_tight_scope: propagate failure from sub-make
4375         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4376         Reported by Martin von Gagern.
4377
4378 2011-09-13  Bruno Haible  <bruno@clisp.org>
4379
4380         tempname: Support for MSVC.
4381         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4382         MSVC.
4383         * modules/tempname (Depends-on): Add fcntl-h.
4384
4385 2011-09-13  Bruno Haible  <bruno@clisp.org>
4386
4387         sys_time: Support for MSVC.
4388         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4389         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4390         include <winsock2.h>.
4391         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
4392         function declarations that collide with POSIX.
4393         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
4394         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4395
4396 2011-09-13  Bruno Haible  <bruno@clisp.org>
4397
4398         stat: Support for MSVC.
4399         * lib/stat.c: Include pathmax.h.
4400         * modules/stat (Depends-on): Add pathmax.
4401
4402         pathmax: Support for native Windows.
4403         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
4404
4405 2011-09-12  Bruno Haible  <bruno@clisp.org>
4406
4407         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
4408         * lib/dirent.in.h (struct dirent): New type.
4409         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
4410         DT_WHT): New macros.
4411         (DIR): New type.
4412         (opendir, closedir): Declare only if the module 'opendir' is enabled.
4413         (readdir, rewinddir): New declarations.
4414         * lib/dirent-private.h: New file.
4415         * lib/opendir.c: New file.
4416         * lib/readdir.c: New file.
4417         * lib/rewinddir.c: New file.
4418         * lib/closedir.c: New file.
4419         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
4420         * m4/opendir.m4: New file.
4421         * m4/readdir.m4: New file.
4422         * m4/rewinddir.m4: New file.
4423         * m4/closedir.m4: New file.
4424         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
4425         REPLACE_CLOSEDIR here.
4426         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
4427         readdir, rewinddir are declared.
4428         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
4429         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
4430         HAVE_REWINDDIR, HAVE_CLOSEDIR.
4431         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
4432         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
4433         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
4434         * modules/opendir: New file.
4435         * modules/readdir: New file.
4436         * modules/rewinddir: New file.
4437         * modules/closedir: New file.
4438         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
4439         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
4440         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
4441         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
4442         * NEWS: Mention the 'fchdir' change.
4443
4444 2011-09-11  Bruno Haible  <bruno@clisp.org>
4445
4446         asm-underscore.m4: Support for MSVC.
4447         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
4448         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
4449
4450 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
4451
4452         Doc about crypt functions.
4453         * doc/posix-functions/crypt.texi: Expand range of glibc versions
4454         needing for _GNU_SOURCE to get crypt.
4455         * doc/posix-functions/encrypt.texi: Likewise.
4456         * doc/posix-functions/setkey.texi: Likewise.
4457
4458 2011-09-11  Bruno Haible  <bruno@clisp.org>
4459
4460         doc: Update regarding MSVC 9.
4461         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
4462         tested".
4463         * doc/posix-functions/*.texi: Update with info about MSVC 9.
4464         * doc/posix-headers/*.texi: Likewise.
4465         * doc/pastposix-functions/*.texi: Likewise.
4466         * doc/glibc-functions/*.texi: Likewise.
4467         * doc/glibc-headers/*.texi: Likewise.
4468
4469 2011-09-11  Bruno Haible  <bruno@clisp.org>
4470
4471         unistd et al.: Don't assume <unistd.h> exists.
4472         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4473         does not exist.
4474         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4475         exist. But include <stdlib.h>.
4476         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4477         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4478         symlink() does not exist.
4479         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4480         include <io.h> instead.
4481         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4482         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4483         include <direct.h> instead.
4484         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4485         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4486         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4487         <io.h> instead.
4488         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4489         correctly if the system does not have hard links.
4490         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4491         <direct.h> instead.
4492         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4493         it when looking for function declarations.
4494         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4495         <direct.h> and <io.h> instead.
4496         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4497
4498 2011-09-11  Bruno Haible  <bruno@clisp.org>
4499
4500         strcase: Support for MSVC.
4501         * modules/strcase (Status, Notice): Remove obsoletion mark.
4502         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4503         * doc/posix-functions/strncasecmp.texi: Likewise.
4504
4505         strings: Don't assume <strings.h> exists.
4506         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4507         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4508         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4509         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4510
4511 2011-09-11  Bruno Haible  <bruno@clisp.org>
4512
4513         dirent: Don't assume <dirent.h> exists.
4514         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4515         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4516         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4517         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4518
4519 2011-09-11  Bruno Haible  <bruno@clisp.org>
4520
4521         Fix wint_t on MSVC.
4522         * lib/wchar.in.h (wint_t): On MSVC, override it.
4523         * lib/wctype.in.h (wint_t): Likewise.
4524         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4525         MSVC.
4526         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4527         * doc/posix-headers/wctype.texi: Likewise.
4528
4529 2011-09-11  Bruno Haible  <bruno@clisp.org>
4530
4531         sys_types: Fix typo.
4532         * lib/sys_types.in.h: Fix typo in comment.
4533         Reported by Paul Eggert.
4534
4535         Support for MSVC compiler: Ensure size_t gets defined.
4536         * modules/strings (Depends-on): Add 'sys_types'.
4537         * modules/sys_uio (Depends-on): Likewise.
4538         * lib/sys_uio.in.h: Update comment.
4539
4540         C++ tests for module 'sys_types'.
4541         * modules/sys_types-c++-tests: New file.
4542         * tests/test-sys_types-c++.cc: New file.
4543
4544         Tests for module 'sys_types'.
4545         * modules/sys_types-tests: New file.
4546         * tests/test-sys_types.c: New file.
4547
4548         New module 'sys_types'.
4549         * lib/sys_types.in.h: New file.
4550         * m4/sys_types_h.m4: New file.
4551         * modules/sys_types: New file.
4552         * doc/posix-headers/sys_types.texi: Mention the new module and the
4553         size_t problem on MSVC 9.
4554
4555 2011-09-11  Bruno Haible  <bruno@clisp.org>
4556
4557         Support for MSVC compiler: Avoid division by a literal 0.
4558         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4559         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4560         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4561         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4562         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4563         * tests/infinity.h: New file.
4564         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4565         on MSVC.
4566         * tests/test-ceilf1.c: Include infinity.h.
4567         (main): Use Infinityf.
4568         * tests/test-ceil1.c: Include infinity.h.
4569         (main): Use Infinityd.
4570         * tests/test-ceill.c: Include infinity.h.
4571         (main): Use Infinityl.
4572         * tests/test-dprintf-posix.c: Include infinity.h.
4573         (test_function): Use Infinityd.
4574         * tests/test-floorf1.c: Include infinity.h.
4575         (main): Use Infinityf.
4576         * tests/test-floor1.c: Include infinity.h.
4577         (main): Use Infinityd.
4578         * tests/test-floorl.c: Include infinity.h.
4579         (main): Use Infinityl.
4580         * tests/test-fprintf-posix.c: Include infinity.h.
4581         (test_function): Use Infinityd.
4582         * tests/test-frexp.c: Include infinity.h.
4583         (main): Use Infinityd.
4584         * tests/test-frexpl.c: Include infinity.h.
4585         (main): Use Infinityl.
4586         * tests/test-isfinite.c: Include infinity.h.
4587         (test_isfinitef): Use Infinityf.
4588         (test_isfinited): Use Infinityd.
4589         (test_isfinitel): Use Infinityl.
4590         * tests/test-isinf.c: Include infinity.h.
4591         (test_isinff): Use Infinityf.
4592         (test_isinfd): Use Infinityd.
4593         (test_isinfl): Use Infinityl.
4594         * tests/test-isnan.c: Include infinity.h.
4595         (test_float): Use Infinityf.
4596         (test_double): Use Infinityd.
4597         (test_long_double): Use Infinityl.
4598         * tests/test-isnanf.h: Include infinity.h.
4599         (main): Use Infinityf.
4600         * tests/test-isnand.h: Include infinity.h.
4601         (main): Use Infinityd.
4602         * tests/test-isnanl.h: Include infinity.h.
4603         (main): Use Infinityl.
4604         * tests/test-ldexpl.c: Include infinity.h.
4605         (main): Use Infinityl.
4606         * tests/test-printf-posix.h: Include infinity.h.
4607         (test_function): Use Infinityd.
4608         * tests/test-roundf1.c: Include infinity.h.
4609         (main): Use Infinityf.
4610         * tests/test-round1.c: Include infinity.h.
4611         (main): Use Infinityd.
4612         * tests/test-roundl.c: Include infinity.h.
4613         (main): Use Infinityl.
4614         * tests/test-signbit.c: Include infinity.h.
4615         (test_signbitf): Use Infinityf.
4616         (test_signbitd): Use Infinityd.
4617         (test_signbitl): Use Infinityl.
4618         * tests/test-snprintf-posix.h: Include infinity.h.
4619         (test_function): Use Infinityd, Infinityl.
4620         * tests/test-sprintf-posix.h: Include infinity.h.
4621         (test_function): Use Infinityd, Infinityl.
4622         * tests/test-truncf1.c: Include infinity.h.
4623         (main): Use Infinityf.
4624         * tests/test-trunc1.c: Include infinity.h.
4625         (main): Use Infinityd.
4626         * tests/test-truncl.c: Include infinity.h.
4627         (main): Use Infinityl.
4628         * tests/test-vasnprintf-posix.c: Include infinity.h.
4629         (test_function): Use Infinityd, Infinityl.
4630         * tests/test-vasprintf-posix.c: Include infinity.h.
4631         (test_function): Use Infinityd, Infinityl.
4632         * modules/ceilf-tests (Files): Add tests/infinity.h.
4633         * modules/ceil-tests (Files): Likewise.
4634         * modules/ceill-tests (Files): Likewise.
4635         * modules/dprintf-posix-tests (Files): Likewise.
4636         * modules/floorf-tests (Files): Likewise.
4637         * modules/floor-tests (Files): Likewise.
4638         * modules/floorl-tests (Files): Likewise.
4639         * modules/fprintf-posix-tests (Files): Likewise.
4640         * modules/frexp-tests (Files): Likewise.
4641         * modules/frexp-nolibm-tests (Files): Likewise.
4642         * modules/frexpl-tests (Files): Likewise.
4643         * modules/frexpl-nolibm-tests (Files): Likewise.
4644         * modules/isfinite-tests (Files): Likewise.
4645         * modules/isinf-tests (Files): Likewise.
4646         * modules/isnan-tests (Files): Likewise.
4647         * modules/isnanf-tests (Files): Likewise.
4648         * modules/isnanf-nolibm-tests (Files): Likewise.
4649         * modules/isnand-tests (Files): Likewise.
4650         * modules/isnand-nolibm-tests (Files): Likewise.
4651         * modules/isnanl-tests (Files): Likewise.
4652         * modules/isnanl-nolibm-tests (Files): Likewise.
4653         * modules/ldexpl-tests (Files): Likewise.
4654         * modules/printf-posix-tests (Files): Likewise.
4655         * modules/roundf-tests (Files): Likewise.
4656         * modules/round-tests (Files): Likewise.
4657         * modules/roundl-tests (Files): Likewise.
4658         * modules/signbit-tests (Files): Likewise.
4659         * modules/snprintf-posix-tests (Files): Likewise.
4660         * modules/sprintf-posix-tests (Files): Likewise.
4661         * modules/truncf-tests (Files): Likewise.
4662         * modules/trunc-tests (Files): Likewise.
4663         * modules/truncl-tests (Files): Likewise.
4664         * modules/vasnprintf-posix-tests (Files): Likewise.
4665         * modules/vasprintf-posix-tests (Files): Likewise.
4666         * modules/vdprintf-posix-tests (Files): Likewise.
4667         * modules/vfprintf-posix-tests (Files): Likewise.
4668         * modules/vprintf-posix-tests (Files): Likewise.
4669         * modules/vsnprintf-posix-tests (Files): Likewise.
4670         * modules/vsprintf-posix-tests (Files): Likewise.
4671         * modules/xprintf-posix-tests (Files): Likewise.
4672
4673 2011-09-11  Bruno Haible  <bruno@clisp.org>
4674
4675         Ensure pid_t gets defined.
4676         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4677         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4678         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4679         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4680         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4681         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4682         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4683         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4684         * tests/test-fcntl-h.c: Check that pid_t is defined.
4685         * tests/test-sched.c: Likewise.
4686         * tests/test-termios.c: Likewise.
4687         * tests/test-time.c: Likewise.
4688         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4689         * doc/posix-headers/signal.texi: Likewise.
4690         * doc/posix-headers/sys_types.texi: Likewise.
4691         * doc/posix-headers/time.texi: Likewise.
4692
4693 2011-09-11  Bruno Haible  <bruno@clisp.org>
4694
4695         acl: Fix compilation on Solaris 10 (older version).
4696         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4697         of ACE_EVERYONE.
4698         * lib/set-mode-acl.c (qset_acl): Likewise.
4699         Reported by Christian Jullien <eligis@orange.fr>.
4700
4701 2011-09-10  Bruno Haible  <bruno@clisp.org>
4702
4703         iconv, unsetenv: Add support for MSVC compiler.
4704         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4705         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4706
4707 2011-09-10  Bruno Haible  <bruno@clisp.org>
4708
4709         *printf: Add support for MSVC compiler.
4710         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4711         handles the exception caused by the %n directive. When cross-compiling,
4712         guess no on native Windows.
4713         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4714         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4715         emulate it through vsnprintf.
4716         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4717         * doc/posix-functions/dprintf.texi: Update documentation regarding
4718         MSVC 9.
4719         * doc/posix-functions/fprintf.texi: Likewise.
4720         * doc/posix-functions/printf.texi: Likewise.
4721         * doc/posix-functions/snprintf.texi: Likewise.
4722         * doc/posix-functions/sprintf.texi: Likewise.
4723         * doc/posix-functions/swprintf.texi: Likewise.
4724         * doc/posix-functions/vdprintf.texi: Likewise.
4725         * doc/posix-functions/vfprintf.texi: Likewise.
4726         * doc/posix-functions/vprintf.texi: Likewise.
4727         * doc/posix-functions/vsnprintf.texi: Likewise.
4728         * doc/posix-functions/vsprintf.texi: Likewise.
4729         * doc/glibc-functions/asprintf.texi: Likewise.
4730         * doc/glibc-functions/obstack_printf.texi: Likewise.
4731         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4732         * doc/glibc-functions/vasprintf.texi: Likewise.
4733
4734 2011-09-10  Bruno Haible  <bruno@clisp.org>
4735
4736         nocrash: Add support for native Windows.
4737         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4738
4739 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4740             Bruno Haible  <bruno@clisp.org>
4741
4742         absolute-header, include-next: Add support for MSVC compiler.
4743         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4744         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4745         directory separator in #line directives.
4746         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4747         recognize also backslash as directory separator in #line directives.
4748
4749 2011-09-08  Jim Meyering  <meyering@redhat.com>
4750
4751         maint.mk: mark the post-release commit log with "maint: " prefix
4752         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4753         one-line commit-log summary.
4754
4755 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4756             Bruno Haible  <bruno@clisp.org>
4757
4758         Doc about crypt functions.
4759         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4760         systems.
4761         * doc/posix-functions/encrypt.texi: Likewise.
4762         * doc/posix-functions/setkey.texi: Likewise.
4763
4764 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4765
4766         * lib/gc.h: Fix copyright header.
4767
4768 2011-09-07  Bruno Haible  <bruno@clisp.org>
4769
4770         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4771         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4772         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4773
4774 2011-09-07  Bruno Haible  <bruno@clisp.org>
4775
4776         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4777         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4778         * lib/freopen.c: Likewise.
4779         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4780         * lib/lstat.c: Likewise.
4781         * lib/stat.c: Likewise.
4782         * lib/open.c: Use different syntax for include of <fcntl.h>.
4783         * lib/openat.c: Include fcntl.h again, explicitly.
4784
4785 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4786
4787         parse-datetime: document the newly accepted format
4788         * doc/parse-datetime.texi (Combined date and time of day items):
4789         New section.
4790
4791 2011-09-06  Bruno Haible  <bruno@clisp.org>
4792
4793         acl: Fix a test failure on newer Solaris 10 with ZFS.
4794         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4795         ENOSYS as no ACL.
4796         Reported by Jim Meyering.
4797
4798 2011-09-06  Bruno Haible  <bruno@clisp.org>
4799
4800         acl: Update for AIX >= 5.3 with NFS.
4801         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4802         ENOSYS as no ACL.
4803
4804         acl: Fix a test failure on AIX >= 5.3 with NFS.
4805         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4806         as no ACL.
4807
4808 2011-09-06  Bruno Haible  <bruno@clisp.org>
4809
4810         acl: Fix a test failure on IRIX 6.5 with NFS.
4811         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4812         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4813         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4814         * lib/copy-acl.c (qcopy_acl): Likewise.
4815
4816 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4817
4818         openat: port to AIX 7.1 with large files
4819         AIX 7.1 does a "#define openat open64at" if large files are in use,
4820         so we can't simply #undef openat.  Use the orig_openat trick (similar
4821         to orig_open in lib/open.c) to work around the problem.  Problem
4822         reported by Kevin Brott for GNU tar, in the thread containing
4823         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4824         * lib/openat.c (__need_system_fcntl_h): Define first.
4825         Include <fcntl.h> and <sys/types.h> before undefining.
4826         (orig_openat) [HAVE_OPENAT]: New inline function.
4827         (openat) [HAVE_OPENAT]: Do not undef.
4828         (rpl_openat): Use orig_openat, not openat.
4829
4830 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4831             Bruno Haible  <bruno@clisp.org>
4832
4833         acl: Avoid errors on NonStop Kernel.
4834         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4835         ENOTSUP errors.
4836
4837 2011-09-05  Bruno Haible  <bruno@clisp.org>
4838
4839         acl: Clean up Solaris code.
4840         * lib/acl-internal.h: Remove no-op #if.
4841         * lib/file-has-acl.c: Likewise.
4842         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4843         * lib/copy-acl.c (qcopy_acl): Likewise.
4844
4845 2011-09-05  Bruno Haible  <bruno@clisp.org>
4846
4847         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4848         binaries built on the original Solaris 10.
4849         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4850         trivial.
4851
4852 2011-09-05  Bruno Haible  <bruno@clisp.org>
4853
4854         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4855         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4856         10.
4857         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4858         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4859         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4860         instead of acl_get, facl_get, acl_set, facl_set.
4861
4862 2011-09-05  Bruno Haible  <bruno@clisp.org>
4863
4864         copy-file: Try unit tests on more file systems.
4865         * tests/test-copy-file-1.sh: New file.
4866         * tests/test-copy-file-2.sh: New file.
4867         * modules/copy-file-tests (Files): Add them.
4868         (Makefile.am): Add them to TESTS.
4869
4870         acl: Try unit tests on more file systems.
4871         * tests/test-file-has-acl-1.sh: New file.
4872         * tests/test-file-has-acl-2.sh: New file.
4873         * tests/test-set-mode-acl-1.sh: New file.
4874         * tests/test-set-mode-acl-2.sh: New file.
4875         * tests/test-copy-acl-1.sh: New file.
4876         * tests/test-copy-acl-2.sh: New file.
4877         * modules/acl-tests (Files): Add them.
4878         (Makefile.am): Add them to TESTS.
4879
4880 2011-09-04  Bruno Haible  <bruno@clisp.org>
4881
4882         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4883         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4884         10.
4885         (OLD_ALLOW, OLD_DENY): New macros.
4886         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4887         ACE_ACCESS_ALLOWED_ACE_TYPE.
4888         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4889         ACE_ACCESS_DENIED_ACE_TYPE.
4890         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4891         (NEW_ACE_EXECUTE): Fix value.
4892         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4893         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4894         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4895         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4896         NEW_ACE_SYNCHRONIZE): New macros.
4897         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4898         instead of acl_fromtext, acl_set, facl_set.
4899         Fixes a coreutils/tests/cp/perm failure.
4900
4901 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4902
4903         openat: test for fstatat (..., 0) bug
4904         Further testing with tar suggests that fstatat (..., 0)
4905         does not work in general, on AIX 7.1; see
4906         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4907         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4908         replacement fstatat (which is what older AIX releases were using
4909         anyway).
4910         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4911         use is now changed to orig_fstatat.  This was probably the right
4912         thing to do anyway.
4913         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4914         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4915         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4916         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4917         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4918         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4919         if the bug is found.
4920
4921         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4922         This tests for another fstatat bug on AIX 7.1:
4923         fstatat (AT_FDCWD, ..., 0) does not work.  See
4924         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4925         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4926         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4927         (rpl_fstatat): Adjust so that it works around either (or both)
4928         bugs if present.
4929         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4930
4931 2011-09-03  Karl Berry  <karl@gnu.org>
4932
4933         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4934         in index entries.
4935
4936 2011-09-02  Bruno Haible  <bruno@clisp.org>
4937
4938         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4939         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4940         values of AR, ARFLAGS, RANLIB.
4941         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4942
4943 2011-09-02  Bruno Haible  <bruno@clisp.org>
4944
4945         Find 'ar' program that fits with --host argument.
4946         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4947
4948 2011-09-02  Bruno Haible  <bruno@clisp.org>
4949
4950         tests: init.sh: Support any non-GNU diff.
4951         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4952         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4953         Solaris 8.
4954
4955 2011-09-02  Bruno Haible  <bruno@clisp.org>
4956
4957         tests: init.sh: work also with any non-GNU diff that supports -u
4958         * tests/init.sh: Relax check for diff -u support.
4959         Rather than checking for GNU diff via --version, simply check
4960         for support for -u itself.  Useful at least on OpenBSD 4.9,
4961         AIX 7.1, IRIX 6.5, and Solaris 10.
4962
4963 2011-09-01  Bruno Haible  <bruno@clisp.org>
4964
4965         strtoimax, strtoumax: Document problem on HP-UX 11.
4966         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4967         * doc/posix-functions/strtoumax.texi: Likewise.
4968
4969 2011-09-01  Bruno Haible  <bruno@clisp.org>
4970
4971         strtoumax: Avoid link error on OSF/1 with DTK cc.
4972         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4973         defined as a function.
4974         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4975         strtoumax is defined, not whether it is declared.
4976
4977 2011-09-01  Bruno Haible  <bruno@clisp.org>
4978
4979         strtoimax: Avoid link error on OSF/1 with DTK cc.
4980         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4981         defined as a function.
4982         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4983         strtoimax is defined, not whether it is declared.
4984
4985 2011-09-01  Bruno Haible  <bruno@clisp.org>
4986
4987         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4988         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4989         as a function.
4990         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4991         whether it is declared.
4992
4993 2011-09-01  Bruno Haible  <bruno@clisp.org>
4994
4995         imaxabs: Avoid link error on OSF/1 with DTK cc.
4996         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4997         as a function.
4998         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4999         whether it is declared.
5000
5001 2011-09-01  Bruno Haible  <bruno@clisp.org>
5002
5003         Tests for module 'strtoumax'.
5004         * modules/strtoumax-tests: New file.
5005         * tests/test-strtoumax.c: New file.
5006
5007         Tests for module 'strtoimax'.
5008         * modules/strtoimax-tests: New file.
5009         * tests/test-strtoimax.c: New file.
5010
5011         Tests for module 'imaxdiv'.
5012         * modules/imaxdiv-tests: New file.
5013         * tests/test-imaxdiv.c: New file.
5014
5015         Tests for module 'imaxabs'.
5016         * modules/imaxabs-tests: New file.
5017         * tests/test-imaxabs.c: New file.
5018
5019 2011-09-01  Bruno Haible  <bruno@clisp.org>
5020
5021         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
5022         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
5023         pthread_create.
5024
5025 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5026
5027         openat: work around AIX 7.1 fstatat issue
5028         This should fix the problem that was not properly fixed
5029         in the previous change, dated 2011-08-30.
5030         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
5031         __need_system_stat_h defined.
5032         (orig_fstatat) [HAVE_FSTATAT]: New function.
5033         (rpl_fstatat): Go back to the old way of doing things,
5034         except call orig_fstatat instead of fstatat.
5035         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
5036         Remove unnecessary check whether fstatat fills in st_size etc.
5037
5038 2011-09-01  Bruno Haible  <bruno@clisp.org>
5039
5040         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
5041         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
5042         just include the system's header.
5043
5044 2011-08-31  Jim Meyering  <meyering@redhat.com>
5045
5046         tests: avoid spurious assertion failure in test-float.c on ppc64
5047         * tests/test-float.c (test_long_double): Comment out an assertion,
5048         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
5049         with gcc-4.4.4.
5050
5051         maint: indent with spaces, not TABs
5052         I need to get in the habit of running gnulib's "make check".
5053         Both of these would have been caught.
5054         * m4/largefile.m4: Indent with spaces, not TABs.
5055         * lib/parse-datetime.y (iso_8601_time): Likewise.
5056         Spotted by Pádraig Brady.
5057
5058         test-parse-datetime.c: accommodate a relatively strict gcc warning
5059         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
5060         to avoid a warning from gcc's -Werror=missing-declarations.
5061         Insert a few spaces-before-funcall-parenthesis.
5062
5063 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
5064
5065         parse-datetime: accept ISO 8601 date and time rep with "T" separator
5066         The parser now accepts ISO 8601 date-time strings with "T" as the
5067         separator.  It has long parsed dates like "2004-02-29 16:21:42"
5068         with a space between the date and time strings.  Now it also parses
5069         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
5070         variants like "2004-02-29T16:21:42.333-07:00"
5071         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
5072         of day representation using the 'T' separator character.
5073         * doc/parse-datetime.texi (General date syntax): replace use of
5074         deprecated --iso-8601 option with --rfc-3339 in example of date
5075         command output formats that can be parsed.
5076         * tests/test-parse-datetime.c (tm_diff): New function, taken from
5077         lib/parse-datetime.y.
5078         (gmt_offset): New function.
5079         (main): Add additional test cases to validate ISO8601 extended
5080         date and time of day parsing.
5081
5082 2011-08-31  Bruno Haible  <bruno@clisp.org>
5083
5084         freopen: Documentation.
5085         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
5086         name.
5087         Reported by Claudio Bley <claudio.bley@gmail.com>.
5088
5089 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
5090
5091         freopen: Don't crash if the filename argument is NULL.
5092         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
5093         NULL.
5094
5095 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5096
5097         openat: work around AIX 7.1 fstatat bug
5098         Problem reported by Kevin Brott for GNU tar, in the thread containing
5099         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
5100         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
5101         FSTATAT_ST_SIZE_ETC_BROKEN.
5102         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
5103         rpl_fstatat.
5104         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
5105         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
5106         AC_CHECK_FUNCS_ONCE for fstatat.
5107         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
5108         fchmodat, mkdirat, openat and unlinkat.
5109
5110 2011-08-30  Bruno Haible  <bruno@clisp.org>
5111
5112         Avoid endless recursions if config.h includes some header files.
5113         * lib/fopen.c (__need_FILE): Define already before including config.h.
5114         * lib/freopen.c (__need_FILE): Likewise.
5115         * lib/open.c (__need_system_fcntl_h): Likewise.
5116         * lib/stat.c (__need_system_sys_stat_h): Likewise.
5117         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
5118         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5119
5120 2011-08-25  Karl Berry  <karl@gnu.org>
5121
5122         * config/srclist.txt (ylwrap): new try.
5123         * build-aux/ylwrap: new file.
5124
5125 2011-08-23  Bruno Haible  <bruno@clisp.org>
5126
5127         tmpdir: Use a good default directory on native Windows.
5128         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
5129         (P_tmpdir): Default to _P_tmpdir on native Windows.
5130         (path_search): On native Windows, try the value returned by GetTempPath
5131         before trying P_tmpdir.
5132         * modules/tmpdir (Depends-on): Add pathmax.
5133         Suggested by John Darrington <john@darrington.wattle.id.au>.
5134
5135 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
5136
5137         doc: fix typo in README-release
5138         * top/README-release: Capitalize first word of a sentence.
5139
5140 2011-08-19  Jim Meyering  <meyering@redhat.com>
5141
5142         fts: do not exhaust memory when processing million-entry directories
5143         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
5144         directory would require about 256*N bytes of memory.  Thus, it was
5145         easy to construct a directory too large to be processed by any of
5146         those tools.  With this change, fts' maximum memory utilization is
5147         now limited to around 30MB.
5148         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
5149         (fts_read): When we've processed the final entry (i.e., when
5150         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
5151         using the parent entry to read any remaining entries.  Dispatch
5152         depending on what fts_build returns:
5153         - NULL+stop, aka failure: stop
5154         - NULL otherwise: move up in the dir hierarchy
5155         - non-NULL: handle this new entry
5156         (fts_build): Declare and use new local, continue_readdir.
5157         Prepare to be called from fts_read, when the entries
5158         from a partially-read directory have just been exhausted.
5159         In that case, we'll skip the opendir and instead use the parent's
5160         fts_dirp and derive dir_fd from that.
5161         Finally, in the readdir loop, if we read max_entries entries,
5162         exit the loop ensuring *not* to call closedir.  This is required
5163         so that fts_dirp can be reused on a subsequent call.
5164         Prompted by Ben England's report of memory exhaustion in find
5165         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
5166
5167         maint: fts: move decl of `dp' down into while loop; split a long line
5168         * lib/fts.c (fts_build): No semantic change.
5169
5170         fts: add/use new struct member, fts_dirp
5171         We are about to use this to manage any directory with
5172         too many entries to read all of them into memory at once.
5173         To do that, we'll need to save the DIR* pointer in each
5174         affected FTSENT struct.
5175         * lib/fts_.h: Include <dirent.h>.
5176         (struct FTSENT) [fts_dirp]: New member.
5177         * lib/fts.c (closedir_and_clear): Define.
5178         Use it in place of closedir so that we are sure to
5179         clear the new fts_dirp member when done with it.
5180         (fts_alloc): Initialize the new member.
5181         (fts_lfree): Free, if needed.
5182
5183         maint: fts: give __opendir2 a new parameter and rename
5184         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
5185         than surreptitiously using sole caller's "dir_fd".
5186         (fts_opendir): Rename from __opendir2.
5187
5188         maint: fts.c: remove __opendir2's now-unused parameter, oflag
5189         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
5190
5191         maint: fts.c: correct off-by-one indentation
5192         * lib/fts.c (fts_build): Correct indentation, change style
5193         of a couple of block comments, and bracing style.
5194
5195         maint: fts.c: move __opendir2 #define "up" out of function body
5196         * lib/fts.c (__opendir2): Move "up".  No semantic change.
5197
5198         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
5199         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
5200         out for a long time and besides was useful only on BSD systems.
5201
5202 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5203
5204         regex: port to Stratus OpenVOS
5205         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
5206         define to empty, rather than attempting nonportable optimizations.
5207         Problem reported by Paul Green in:
5208         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
5209         and fix suggested by Eric Blake in:
5210         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
5211
5212 2011-08-17  Eric Blake  <eblake@redhat.com>
5213
5214         getcwd: fix test failures on mingw
5215         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
5216         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
5217         test if long directory cannot be created, and allow mingw errno.
5218
5219         getcwd-lgpl: fix m4 to match relaxed test for BSD
5220         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
5221         (gl_FUNC_GETCWD_SIGNATURE): New macro.
5222         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
5223         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
5224         signature problem.
5225
5226         getcwd: fix compilation on mingw64
5227         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
5228         getcwd.
5229         Reported by Marc-André Lureau.
5230
5231         pipe2: silence compiler warning
5232         * lib/pipe2.c (pipe2): Hide label if it is not used.
5233
5234 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
5235
5236         relocatable-prog: fix link error
5237         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
5238         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
5239         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
5240         into modules/relocatable-lib without noticing that
5241         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
5242         also needs to build relocatable.c.
5243
5244 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5245
5246         getaddrinfo: fix sh typo in gai_strerrorA decl checking
5247         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
5248         shell code: it contained a 'break' that was not in a loop.
5249         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
5250         via a shell-language loop; this may have been true in old Autoconf
5251         versions, but it's not true in Autoconf 2.68.  I found this bug
5252         when testing coreutils git on Solaris 8, whose shell complains
5253         about the syntax error.
5254
5255 2011-08-12  Simon Josefsson  <simon@josefsson.org>
5256
5257         * lib/base64.c: Fix comment to reference RFC 4648.
5258         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
5259         <gvtulder@gmail.com>.
5260
5261 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5262
5263         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
5264
5265         po/Makefile.in.in: fix make -q problem
5266         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
5267         rule, since there's no file named 'check-macro-version' and its
5268         use as a file breaks make -q.
5269         (all): Don't depend on check-macro-version.
5270         (CHECK_MACRO_VERSION): New macro.
5271         (stamp-po): Use it.
5272
5273         configmake: fix make -q problem
5274         * modules/configmake (configmake.h): Update configmake.h's time stamp
5275         even if the file does not change.  Otherwise, 'make -q' fails.
5276         Problem reported by Simon Josefsson in
5277         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
5278
5279 2011-08-11  Jim Meyering  <meyering@redhat.com>
5280
5281         git-version-gen: correct the advice in a comment
5282         * build-aux/git-version-gen: Correct comment.
5283         Don't recommend to list .tarball-version in .gitignore.
5284
5285 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5286
5287         base64: fix off-by-one buffer size bug
5288         Problem and (trivial) fix reported by Gijs van Tulder in
5289         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
5290         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
5291         * tests/test-base64.c (main): Catch the bug.
5292
5293 2011-08-10  Eric Blake  <eblake@redhat.com>
5294
5295         closein: correct comments
5296         * lib/closein.c (close_stdin): Improve comments.
5297
5298 2011-08-09  Bruno Haible  <bruno@clisp.org>
5299
5300         More tests for 'fseeko'.
5301         * tests/test-fseeko3.c: New file, from Eric Blake.
5302         * tests/test-fseeko3.sh: New file.
5303         * modules/fseeko-tests (Files): Add them.
5304         (TESTS): Add test-fseeko3.sh.
5305         (check_PROGRAMS): Add test-fseeko3.
5306
5307 2011-08-09  Eric Blake  <eblake@redhat.com>
5308
5309         fseeko: remove unneeded hack
5310         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
5311
5312         fseeko: fix bug on glibc
5313         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
5314         Reported by John W. Eaton.
5315
5316 2011-08-08  Bruno Haible  <bruno@clisp.org>
5317
5318         unictype/base: Fix interoperability with preinstalled libunistring.
5319         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
5320         Reported by Simon Josefsson.
5321
5322 2011-08-08  Bruno Haible  <bruno@clisp.org>
5323
5324         iswblank: Detect declaration correctly.
5325         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
5326         AC_CHECK_DECLS invocation.
5327
5328 2011-08-08  Bruno Haible  <bruno@clisp.org>
5329
5330         tcgetsid: Detect declaration correctly.
5331         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
5332         AC_CHECK_DECLS invocation.
5333         Reported by Simon Josefsson.
5334
5335 2011-08-08  Eric Blake  <eblake@redhat.com>
5336
5337         largefile: fix typo that regressed large file support
5338         * modules/largefile (configure.ac-early): Fix section name.
5339
5340 2011-08-06  Karl Berry  <karl@gnu.org>
5341
5342         * MODULES.html.sh (func_all_files): _Noreturn is no longer
5343         a separate module.
5344
5345 2011-08-05  Simon Josefsson  <simon@josefsson.org>
5346
5347         openat: Fix warnings and commens when building unlinkat.c on Hurd.
5348         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
5349         get prototype for free.
5350
5351 2011-08-04  Bruno Haible  <bruno@clisp.org>
5352
5353         Tests for module 'pathmax'.
5354         * modules/pathmax-tests: New file.
5355         * tests/test-pathmax.c: New file.
5356
5357         canonicalize-lgpl: Support larger filenames on the Hurd.
5358         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5359         Reported by Paul Eggert.
5360
5361         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5362         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5363         * lib/chdir-long.h: Include pathmax.h.
5364         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5365         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5366         (PATH_MAX): Remove code that is done by pathmax.h.
5367         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5368         * lib/tmpfile.c: Add a comment.
5369         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5370         * modules/chdir-long (Depends-on): Add pathmax.
5371         * modules/getcwd (Depends-on): Add pathmax.
5372         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5373         is not defined.
5374         * doc/posix-headers/limits.texi: Mention the pathmax module.
5375         * NEWS: Mention the change.
5376
5377 2011-08-02  Bruno Haible  <bruno@clisp.org>
5378
5379         pthread_sigmask: Actually use results of gl_THREADLIB.
5380         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5381         gl_THREADLIB, not gl_[]THREADLIB.
5382         Reported by Eric Blake.
5383
5384 2011-08-02  Jim Meyering  <meyering@redhat.com>
5385
5386         maint.mk: relax the default _gl_TS_function_match regexp
5387         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5388         space between function name and "(" in an "extern" declaration.
5389         That would fail to match a decl with no space there: extern void foo();
5390
5391 2011-07-31  Iain Nicol  <iain@thenicols.net>
5392
5393         git-version-gen: document that EXTRA_DIST must include .version
5394         * build-aux/git-version-gen: In the how-to-use comment, document
5395         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
5396         will fail when run from an unpacked distribution tarball.
5397
5398 2011-08-01  Bruno Haible  <bruno@clisp.org>
5399
5400         wctype-h: Fix last change.
5401         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5402         REPLACE_TOWLOWER to 0.
5403         Reported by Sam Steingold <sds@gnu.org>.
5404
5405 2011-07-31  Bruno Haible  <bruno@clisp.org>
5406
5407         frexpl: Update autoconf test.
5408         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
5409         according to changes of 2011-06-20.
5410
5411 2011-07-31  Bruno Haible  <bruno@clisp.org>
5412
5413         sys_utsname: Add support for Minix.
5414         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5415         <sys/utsname.h>.
5416         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5417         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
5418
5419 2011-07-31  Bruno Haible  <bruno@clisp.org>
5420
5421         strings: Add support for Minix.
5422         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
5423         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5424         * doc/posix-headers/strings.texi: Document the Minix problem.
5425
5426 2011-07-31  Bruno Haible  <bruno@clisp.org>
5427
5428         wctype-h: Add support for Minix.
5429         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
5430         REPLACE_TOWLOWER.
5431         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
5432         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
5433         REPLACE_ISWCNTRL.
5434
5435 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
5436
5437         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
5438         This is a performance improvement for 64-bit hosts: it causes the
5439         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
5440
5441 2011-07-31  Bruno Haible  <bruno@clisp.org>
5442
5443         stdioext: Add support for Minix.
5444         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
5445         * lib/fpurge.c (fpurge): Likewise.
5446         * lib/freadahead.c (freadahead): Likewise.
5447         * lib/freadable.c (freadable): Likewise.
5448         * lib/freading.c (freading): Likewise.
5449         * lib/freadptr.c (freadptr): Likewise.
5450         * lib/freadseek.c (freadptrinc): Likewise.
5451         * lib/fseeko.c (rpl_fseeko): Likewise.
5452         * lib/fseterr.c (fseterr): Likewise.
5453         * lib/fwritable.c (fwritable): Likewise.
5454         * lib/fwriting.c (fwriting): Likewise.
5455         * lib/fflush.c (clear_ungetc_buffer): Update comment.
5456         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
5457
5458 2011-07-31  Bruno Haible  <bruno@clisp.org>
5459
5460         errno: Port to Minix.
5461         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5462         ECONNABORTED are defined.
5463         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
5464         GNULIB_defined_ECONNABORTED): New macros.
5465         * lib/strerror-override.h (strerror_override): Test also
5466         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
5467         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
5468         ECONNABORTED.
5469         * doc/posix-headers/errno.texi: Mention the Minix problem.
5470
5471 2011-07-31  Bruno Haible  <bruno@clisp.org>
5472
5473         Work around declaration collisions on Minix.
5474         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5475         defined, set REPLACE_MBSINIT.
5476         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5477         defined, set REPLACE_MBRTOWC.
5478         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5479         set REPLACE_MBRLEN.
5480         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5481         defined, set REPLACE_MBSRTOWCS.
5482         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5483         defined, set REPLACE_WCRTOMB.
5484         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5485         defined, set REPLACE_WCSRTOMBS.
5486
5487 2011-07-31  Bruno Haible  <bruno@clisp.org>
5488
5489         Add support for Minix with ACK compiler.
5490         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5491         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5492         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5493
5494 2011-07-31  Bruno Haible  <bruno@clisp.org>
5495
5496         Documentation about Minix.
5497         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5498         * doc/glibc-headers/*.texi: Likewise.
5499         * doc/posix-functions/*.texi: Likewise.
5500         * doc/glibc-functions/*.texi: Likewise.
5501
5502 2011-07-31  Bruno Haible  <bruno@clisp.org>
5503
5504         snippet/warn-on-use: Fix indentation.
5505         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5506
5507 2011-07-25  Jim Meyering  <meyering@redhat.com>
5508
5509         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5510         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5511         commands.
5512
5513 2011-07-27  Jim Meyering  <meyering@redhat.com>
5514
5515         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5516         * top/maint.mk (gl_extract_significant_defines_): Now that
5517         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5518         gnulib/lib/signal.in.h, and now that we recommend to
5519         define-if-undefined those two symbols in application code,
5520         we must filter them out of the "significant" list.
5521         This avoids a "make syntax-check" failure in coreutils.
5522
5523 2011-07-26  Eric Blake  <eblake@redhat.com>
5524
5525         warnings: add comments about previous patch
5526         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5527         * m4/include_next.m4: Likewise.
5528         * m4/warn-on-use.m4: Likewise.
5529         * m4/warnings.m4: Likewise, and simplify use.
5530         Suggested by Stefano Lattarini.
5531
5532         include-next, warnings: support older autoconf
5533         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5534         AS_VAR_PUSHDEF in a way that works with older autoconf.
5535         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5536         Reported by Daniel P. Berrange.
5537
5538 2011-07-25  Bruno Haible  <bruno@clisp.org>
5539
5540         fseek, ftell: Fix doc.
5541         * doc/posix-functions/fseek.texi: Reword statement about
5542         AC_SYS_LARGEFILE.
5543         * doc/posix-functions/ftell.texi: Likewise.
5544
5545 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5546             Bruno Haible  <bruno@clisp.org>
5547
5548         Add dependencies to the 'largefile' module.
5549         * modules/fopen (Depends-on): Add 'largefile'.
5550         * modules/freopen (Depends-on): Likewise.
5551         * modules/fseeko (Depends-on): Likewise.
5552         * modules/ftello (Depends-on): Likewise.
5553         * modules/glob (Depends-on): Likewise.
5554         * modules/lseek (Depends-on): Likewise.
5555         * modules/lstat (Depends-on): Likewise.
5556         * modules/mkostemp (Depends-on): Likewise.
5557         * modules/mkostemps (Depends-on): Likewise.
5558         * modules/mkstemp (Depends-on): Likewise.
5559         * modules/mkstemps (Depends-on): Likewise.
5560         * modules/open (Depends-on): Likewise.
5561         * modules/openat (Depends-on): Likewise.
5562         * modules/pread (Depends-on): Likewise.
5563         * modules/pwrite (Depends-on): Likewise.
5564         * modules/scandir (Depends-on): Likewise.
5565         * modules/stat (Depends-on): Likewise.
5566         * modules/tmpfile (Depends-on): Likewise.
5567         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5568         since the containing module now depends on the largefile module.
5569         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5570         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5571         off_t is fixed by gnulib.
5572         * doc/posix-functions/freopen.texi: Likewise.
5573         * doc/posix-functions/fseeko.texi: Likewise.
5574         * doc/posix-functions/fstatat.texi: Likewise.
5575         * doc/posix-functions/ftello.texi: Likewise.
5576         * doc/posix-functions/glob.texi: Likewise.
5577         * doc/posix-functions/lseek.texi: Likewise.
5578         * doc/posix-functions/lstat.texi: Likewise.
5579         * doc/posix-functions/mkstemp.texi: Likewise.
5580         * doc/posix-functions/open.texi: Likewise.
5581         * doc/posix-functions/openat.texi: Likewise.
5582         * doc/posix-functions/pread.texi: Likewise.
5583         * doc/posix-functions/pwrite.texi: Likewise.
5584         * doc/posix-functions/scandir.texi: Likewise.
5585         * doc/posix-functions/stat.texi: Likewise.
5586         * doc/posix-functions/tmpfile.texi: Likewise.
5587         * doc/glibc-functions/mkostemp.texi: Likewise.
5588         * doc/glibc-functions/mkostemps.texi: Likewise.
5589         * doc/glibc-functions/mkstemps.texi: Likewise.
5590
5591 2011-07-25  Bruno Haible  <bruno@clisp.org>
5592
5593         fcntl: Move AC_LIBOBJ invocation to module description.
5594         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5595         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5596
5597         fcntl: Remove call-in from fchdir.m4.
5598         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5599         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5600
5601         dup3: Remove potential call-in from fchdir.m4.
5602         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5603         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5604
5605         dup2: Move AC_LIBOBJ invocation to module description.
5606         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5607         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5608         Don't invoke AC_LIBOBJ.
5609         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5610
5611         dup2: Remove call-in from fchdir.m4.
5612         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5613         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5614
5615         fclose: Move AC_LIBOBJ invocation to module description.
5616         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5617         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5618         to 1.
5619         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5620
5621         fclose: Remove call-in from close.m4.
5622         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5623         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5624
5625         close: Move AC_LIBOBJ invocation to module description.
5626         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5627         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5628         1.
5629         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5630
5631         close: Remove call-in from fchdir.m4.
5632         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5633         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5634
5635         open: Move AC_LIBOBJ invocation to module description.
5636         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5637         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5638         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5639
5640         open: Remove call-in from fchdir.m4.
5641         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5642         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5643
5644         fchdir: Start to remove gl_REPLACE_* idiom.
5645         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5646         (gl_FUNC_FCHDIR): Invoke it.
5647
5648 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5649
5650         * lib/ftell.c (ftell): Comment out cast.
5651
5652         close: use gl_REPLACE_FCLOSE only if defined
5653         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5654         is defined.  The close module doesn't depend on the fclose module
5655         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5656         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5657         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5658
5659 2011-07-24  Jim Meyering  <meyering@redhat.com>
5660
5661         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5662         * tests/test-select.h (test_function): Declare as "static".
5663
5664 2011-07-24  Bruno Haible  <bruno@clisp.org>
5665
5666         doc: Mention the effects of AC_SYS_LARGEFILE.
5667         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5668         on this function.
5669         * doc/posix-functions/aio_error.texi: Likewise.
5670         * doc/posix-functions/aio_fsync.texi: Likewise.
5671         * doc/posix-functions/aio_read.texi: Likewise.
5672         * doc/posix-functions/aio_return.texi: Likewise.
5673         * doc/posix-functions/aio_suspend.texi: Likewise.
5674         * doc/posix-functions/aio_write.texi: Likewise.
5675         * doc/posix-functions/fgetpos.texi: Likewise.
5676         * doc/posix-functions/fopen.texi: Likewise.
5677         * doc/posix-functions/freopen.texi: Likewise.
5678         * doc/posix-functions/fsetpos.texi: Likewise.
5679         * doc/posix-functions/fstatvfs.texi: Likewise.
5680         * doc/posix-functions/ftruncate.texi: Likewise.
5681         * doc/posix-functions/ftw.texi: Likewise.
5682         * doc/posix-functions/getrlimit.texi: Likewise.
5683         * doc/posix-functions/glob.texi: Likewise.
5684         * doc/posix-functions/lio_listio.texi: Likewise.
5685         * doc/posix-functions/lockf.texi: Likewise.
5686         * doc/posix-functions/mkstemp.texi: Likewise.
5687         * doc/posix-functions/mmap.texi: Likewise.
5688         * doc/posix-functions/nftw.texi: Likewise.
5689         * doc/posix-functions/openat.texi: Likewise.
5690         * doc/posix-functions/opendir.texi: Likewise.
5691         * doc/posix-functions/posix_fadvise.texi: Likewise.
5692         * doc/posix-functions/posix_fallocate.texi: Likewise.
5693         * doc/posix-functions/pread.texi: Likewise.
5694         * doc/posix-functions/pwrite.texi: Likewise.
5695         * doc/posix-functions/readdir.texi: Likewise.
5696         * doc/posix-functions/readdir_r.texi: Likewise.
5697         * doc/posix-functions/rewinddir.texi: Likewise.
5698         * doc/posix-functions/scandir.texi: Likewise.
5699         * doc/posix-functions/seekdir.texi: Likewise.
5700         * doc/posix-functions/setrlimit.texi: Likewise.
5701         * doc/posix-functions/statvfs.texi: Likewise.
5702         * doc/posix-functions/telldir.texi: Likewise.
5703         * doc/posix-functions/tmpfile.texi: Likewise.
5704         * doc/posix-functions/truncate.texi: Likewise.
5705         * doc/glibc-functions/fallocate.texi: Likewise.
5706         * doc/glibc-functions/fstatfs.texi: Likewise.
5707         * doc/glibc-functions/fts_children.texi: Likewise.
5708         * doc/glibc-functions/fts_read.texi: Likewise.
5709         * doc/glibc-functions/getdirentries.texi: Likewise.
5710         * doc/glibc-functions/mkostemp.texi: Likewise.
5711         * doc/glibc-functions/mkostemps.texi: Likewise.
5712         * doc/glibc-functions/mkstemps.texi: Likewise.
5713         * doc/glibc-functions/preadv.texi: Likewise.
5714         * doc/glibc-functions/pwritev.texi: Likewise.
5715         * doc/glibc-functions/sendfile.texi: Likewise.
5716         * doc/glibc-functions/statfs.texi: Likewise.
5717
5718 2011-07-24  Bruno Haible  <bruno@clisp.org>
5719
5720         doc: Fix typo.
5721         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5722
5723 2011-07-24  Bruno Haible  <bruno@clisp.org>
5724
5725         doc: Mention fsusage.
5726         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5727
5728 2011-07-24  Bruno Haible  <bruno@clisp.org>
5729
5730         doc: Mention new glibc headers and functions.
5731         * doc/glibc-headers/gshadow.texi: New file.
5732         * doc/glibc-functions/endsgent.texi: New file.
5733         * doc/glibc-functions/fgetsgent.texi: New file.
5734         * doc/glibc-functions/fgetsgent_r.texi: New file.
5735         * doc/glibc-functions/getsgent.texi: New file.
5736         * doc/glibc-functions/getsgent_r.texi: New file.
5737         * doc/glibc-functions/getsgnam.texi: New file.
5738         * doc/glibc-functions/getsgnam_r.texi: New file.
5739         * doc/glibc-functions/putsgent.texi: New file.
5740         * doc/glibc-functions/setsgent.texi: New file.
5741         * doc/glibc-functions/sgetsgent.texi: New file.
5742         * doc/glibc-functions/sgetsgent_r.texi: New file.
5743         * doc/glibc-functions/malloc_info.texi: New file.
5744         * doc/glibc-functions/preadv.texi: New file.
5745         * doc/glibc-functions/pwritev.texi: New file.
5746         * doc/glibc-functions/register_printf_modifier.texi: New file.
5747         * doc/glibc-functions/register_printf_specifier.texi: New file.
5748         * doc/glibc-functions/register_printf_type.texi: New file.
5749         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5750         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5751         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5752         * doc/glibc-functions/pthread_getname_np.texi: New file.
5753         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5754         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5755         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5756         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5757         * doc/glibc-functions/pthread_setname_np.texi: New file.
5758         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5759         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5760         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5761         * doc/glibc-functions/qsort_r.texi: New file.
5762         * doc/glibc-functions/quick_exit.texi: New file.
5763         * doc/glibc-functions/syncfs.texi: New file.
5764         * doc/gnulib.texi: Include them.
5765         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5766         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5767         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5768         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5769         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5770         * doc/glibc-functions/execvpe.texi: Likewise.
5771
5772 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5773
5774         ftell: don't include <unistd.h>
5775         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5776         guaranteed to define off_t, and the ftell module depends on the
5777         stdio module.
5778
5779         ftell: do not assume wraparound signed arithmetic
5780         * lib/ftell.c: Include <limits.h>.
5781         (ftell): Don't assume wraparound signed arithmetic.
5782
5783 2011-07-24  Bruno Haible  <bruno@clisp.org>
5784
5785         close: No longer depend on module 'fclose'.
5786         * modules/close (Depends-on): Remove fclose.
5787         * NEWS: Mention the change.
5788         Suggested by Sam Steingold <sds@gnu.org>.
5789
5790 2011-07-24  Bruno Haible  <bruno@clisp.org>
5791
5792         fsusage: Enable large volume support on AIX >= 5.2.
5793         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5794         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5795         instead of STAT_STATVFS.
5796         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5797
5798         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5799         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5800         f_blocks field only on MacOS X.
5801
5802         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5803         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5804         * modules/fsusage (Depends-on): Add largefile.
5805
5806 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5807
5808         * README: Modernize discussion of signed integers.
5809         Assuming overflow wraparound is no longer safe.
5810         Mention ones' complement and signed magnitude.
5811
5812 2011-07-22  Bruno Haible  <bruno@clisp.org>
5813
5814         select tests, pselect tests: Refactor.
5815         * tests/test-select.h: New file, extracted from tests/test-select.c.
5816         (select_fn): New type.
5817         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5818         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5819         test_pipe): Add my_select argument.
5820         (test_function): Renamed from main. Add my_select argument.
5821         * tests/test-select.c: Move most code to tests/test-select.h. Include
5822         test-select.h.
5823         * modules/select-tests (Files): Add tests/test-select.h.
5824         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5825         (my_select, main): New functions.
5826         * modules/pselect-tests (Files): Add tests/test-select.h,
5827         tests/macros.h, tests/signature.h.
5828         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5829         (configure.ac): Check for <sys/wait.h>.
5830
5831 2011-07-22  Bruno Haible  <bruno@clisp.org>
5832
5833         sys_select tests: Check the signature of FD_*.
5834         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5835         signature tests from here...
5836         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5837         here.
5838         * modules/sys_select-tests (Files): Add tests/signature.h.
5839
5840 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5841
5842         largefile: new module, replacing large-inode
5843         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5844         * MODULES.html.sh: Add largefile, remove large-inode.
5845         * modules/largefile, m4/largefile.m4: New files.
5846         * modules/large-inode, m4/large-inode.m4: Remove.
5847
5848         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5849         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5850         implementations that use only 32 bits to count blocks.
5851         On typical hosts with 1024-byte blocks, this fails with file
5852         systems as small as 4 TiB.  Problem reported by Herb Wartens
5853         <http://debbugs.gnu.org/9140> and this should also fix a similar
5854         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5855
5856         large-inode: New module
5857         * MODULES.html.sh: Add it.
5858         * modules/large-inode, m4/large-inode.m4: New files.
5859
5860         extensions: Enable extensions on MacOS X 10.5 and later.
5861         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5862
5863 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5864
5865         file-has-acl: use acl_extended_file_nofollow if available
5866         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5867         (acl_extended_file): New macro.
5868         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5869         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5870
5871 2011-07-21  Bruno Haible  <bruno@clisp.org>
5872
5873         Declare system functions in a way that works with C++.
5874         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5875         declare fdopendir as extern "C".
5876         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5877         declare frexpl as extern "C".
5878         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5879         declare gai_strerror as extern "C".
5880         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5881         programs, declare gai_strerror as extern "C".
5882         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5883         declare getlogin_r as extern "C".
5884         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5885         as extern "C".
5886         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5887         declare ldexpl as extern "C".
5888         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5889         as extern "C".
5890         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5891         program, declare getmntinfo as extern "C".
5892         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5893         stpncpy as extern "C".
5894         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5895         program, declare __xpg_strerror_r as extern "C".
5896         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5897         strndup as extern "C".
5898         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5899         declare memset and bzero as extern "C".
5900         Reported by Sam Steingold <sds@gnu.org>.
5901
5902 2011-07-12  Jim Meyering  <meyering@redhat.com>
5903
5904         maint.mk: prohibit inclusion of "verify.h" without use
5905         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5906
5907 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5908
5909         timer-time: A new module to check for timer_settime()
5910         * m4/timer_time.m4: Check for the posix function.
5911         * modules/timer-time: Add the new module.
5912         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5913         Mention it.
5914
5915 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5916             Bruno Haible  <bruno@clisp.org>
5917
5918         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5919         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5920         not defined, assume POSIX threads and look for pthread_sigmask in
5921         $LIBS, without changing $CPPFLAGS.
5922
5923 2011-07-19  Bruno Haible  <bruno@clisp.org>
5924
5925         strstr: Update cross-compilation guess.
5926         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5927         CPUs, guess no, in view of glibc
5928         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5929         Suggested by Eric Blake. Reported by Reuben Thomas.
5930
5931 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5932
5933         getopt-gnu: suppress core dumps from detection code
5934         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5935         to suppress core dumps that may well occur on glibc systems.
5936         * modules/getopt-gnu: Depend on nocrash.
5937
5938 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5939
5940         pthread_sigmask: ensure usleep is declared
5941         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5942         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5943
5944 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5945
5946         doc: Document NonStop portability issues.
5947         * doc/posix-functions/sigaction.texi (sigaction):
5948         * doc/posix-headers/signal.texi (signal.h):
5949         Document NonStop.  See Joachim Schmitz in
5950         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5951
5952 2011-07-15  Bruno Haible  <bruno@clisp.org>
5953
5954         ffsl, ffsll: Avoid unportable behaviour.
5955         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5956
5957 2011-07-15  Bruno Haible  <bruno@clisp.org>
5958
5959         ffs: More tests.
5960         * tests/test-ffs.c (NBITS): New macro.
5961         (main): Add more tests.
5962         * tests/test-ffsl.c (NBITS): New macro.
5963         (main): Add more tests.
5964         * tests/test-ffsll.c (NBITS): New macro.
5965         (main): Add more tests.
5966
5967 2011-07-15  Eric Blake  <eblake@redhat.com>
5968
5969         ffsl, ffsll: new modules
5970         * modules/ffsl: New file.
5971         * modules/ffsll: Likewise.
5972         * m4/ffsl.m4: Likewise.
5973         * m4/ffsll.m4: Likewise.
5974         * lib/ffsl.c: Likewise.
5975         * lib/ffsl.h: Likewise.
5976         * lib/ffsll.c: Likewise.
5977         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5978         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5979         * modules/string (Makefile.am): Substitute witnesses.
5980         * lib/strings.in.h (ffsl, ffsll): Declare.
5981         * modules/ffsl-tests: New test file.
5982         * modules/ffsll-tests: Likewise.
5983         * tests/test-ffsl.c: Likewise.
5984         * tests/test-ffsll.c: Likewise.
5985         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5986         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5987         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5988
5989         ffs: fix m4 prerequisite
5990         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5991
5992         ffs: avoid undefined behavior
5993         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5994         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5995         Reported by Bruno Haible.
5996
5997 2011-07-12  Bruno Haible  <bruno@clisp.org>
5998
5999         pthread_sigmask: Rely on module 'threadlib'.
6000         * modules/pthread_sigmask (Depends-on): Add threadlib.
6001         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
6002         is defined.
6003
6004 2011-07-12  Bruno Haible  <bruno@clisp.org>
6005
6006         regex: Depend on module 'strcase'.
6007         * modules/regex (Depends-on): Add strcase, for strcasecmp().
6008
6009 2011-07-12  Jim Meyering  <meyering@redhat.com>
6010
6011         warn-on-use: fix typo in file name
6012         * modules/snippet/warn-on-use (Files): Correct file name:
6013         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
6014
6015 2011-07-12  Bruno Haible  <bruno@clisp.org>
6016
6017         strings: Document module.
6018         * doc/posix-headers/strings.texi: Mention module 'strings'.
6019
6020 2011-07-12  Bruno Haible  <bruno@clisp.org>
6021
6022         Rename module '_Noreturn' to 'snippet/_Noreturn'.
6023         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
6024         (Files, Makefile.am): Update.
6025         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
6026         * modules/stdlib (Depends-on): Update.
6027
6028 2011-07-12  Bruno Haible  <bruno@clisp.org>
6029
6030         * NEWS: Mention the changes.
6031
6032         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
6033         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
6034         (Files, Makefile.am): Update.
6035         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
6036         * modules/arpa_inet (Depends-on): Update.
6037         * modules/ctype (Depends-on): Update.
6038         * modules/dirent (Depends-on): Update.
6039         * modules/fcntl-h (Depends-on): Update.
6040         * modules/glob (Depends-on): Update.
6041         * modules/iconv-h (Depends-on): Update.
6042         * modules/inttypes-incomplete (Depends-on): Update.
6043         * modules/langinfo (Depends-on): Update.
6044         * modules/locale (Depends-on): Update.
6045         * modules/math (Depends-on): Update.
6046         * modules/netdb (Depends-on): Update.
6047         * modules/poll-h (Depends-on): Update.
6048         * modules/pty (Depends-on): Update.
6049         * modules/search (Depends-on): Update.
6050         * modules/signal (Depends-on): Update.
6051         * modules/spawn (Depends-on): Update.
6052         * modules/stdio (Depends-on): Update.
6053         * modules/stdlib (Depends-on): Update.
6054         * modules/string (Depends-on): Update.
6055         * modules/strings (Depends-on): Update.
6056         * modules/sys_file (Depends-on): Update.
6057         * modules/sys_ioctl (Depends-on): Update.
6058         * modules/sys_select (Depends-on): Update.
6059         * modules/sys_socket (Depends-on): Update.
6060         * modules/sys_stat (Depends-on): Update.
6061         * modules/sys_time (Depends-on): Update.
6062         * modules/sys_times (Depends-on): Update.
6063         * modules/sys_utsname (Depends-on): Update.
6064         * modules/sys_wait (Depends-on): Update.
6065         * modules/termios (Depends-on): Update.
6066         * modules/time (Depends-on): Update.
6067         * modules/unistd (Depends-on): Update.
6068         * modules/wchar (Depends-on): Update.
6069         * modules/wctype-h (Depends-on): Update.
6070         * MODULES.html.sh (Support for building libraries and executables):
6071         Update.
6072
6073         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
6074         * modules/snippet/unused-parameter: Renamed from
6075         modules/unused-parameter.
6076         (Files, Makefile.am): Update.
6077         * build-aux/snippet/unused-parameter.h: Renamed from
6078         build-aux/unused-parameter.h.
6079         * modules/selinux-h (Depends-on): Update.
6080         * modules/unistr/base (Depends-on): Update.
6081         * MODULES.html.sh (Core language properties): Update.
6082
6083         Rename module 'link-warning' to 'snippet/link-warning'.
6084         * modules/snippet/link-warning: Renamed from modules/link-warning.
6085         (Files, Makefile.am): Update.
6086         * build-aux/snippet/link-warning.h: Renamed from
6087         build-aux/link-warning.h.
6088         * MODULES.html.sh (Support for building libraries and executables):
6089         Update.
6090
6091         Rename module 'c++defs' to 'snippet/c++defs'.
6092         * modules/snippet/c++defs: Renamed from modules/c++defs.
6093         (Files, Makefile.am): Update.
6094         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
6095         * modules/arpa_inet (Depends-on): Update.
6096         * modules/ctype (Depends-on): Update.
6097         * modules/dirent (Depends-on): Update.
6098         * modules/fcntl-h (Depends-on): Update.
6099         * modules/glob (Depends-on): Update.
6100         * modules/iconv-h (Depends-on): Update.
6101         * modules/langinfo (Depends-on): Update.
6102         * modules/locale (Depends-on): Update.
6103         * modules/math (Depends-on): Update.
6104         * modules/netdb (Depends-on): Update.
6105         * modules/poll-h (Depends-on): Update.
6106         * modules/pty (Depends-on): Update.
6107         * modules/search (Depends-on): Update.
6108         * modules/signal (Depends-on): Update.
6109         * modules/spawn (Depends-on): Update.
6110         * modules/stdio (Depends-on): Update.
6111         * modules/stdlib (Depends-on): Update.
6112         * modules/string (Depends-on): Update.
6113         * modules/strings (Depends-on): Update.
6114         * modules/sys_ioctl (Depends-on): Update.
6115         * modules/sys_select (Depends-on): Update.
6116         * modules/sys_socket (Depends-on): Update.
6117         * modules/sys_stat (Depends-on): Update.
6118         * modules/sys_time (Depends-on): Update.
6119         * modules/sys_wait (Depends-on): Update.
6120         * modules/termios (Depends-on): Update.
6121         * modules/time (Depends-on): Update.
6122         * modules/unistd (Depends-on): Update.
6123         * modules/wchar (Depends-on): Update.
6124         * modules/wctype-h (Depends-on): Update.
6125
6126         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
6127         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
6128         (Files, Makefile.am): Update.
6129         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
6130         * modules/argv-iter (Depends-on): Update.
6131         * modules/arpa_inet (Depends-on): Update.
6132         * modules/dirent (Depends-on): Update.
6133         * modules/fcntl-h (Depends-on): Update.
6134         * modules/fnmatch (Depends-on): Update.
6135         * modules/getopt-posix (Depends-on): Update.
6136         * modules/glob (Depends-on): Update.
6137         * modules/iconv-h (Depends-on): Update.
6138         * modules/inttypes-incomplete (Depends-on): Update.
6139         * modules/locale (Depends-on): Update.
6140         * modules/math (Depends-on): Update.
6141         * modules/netdb (Depends-on): Update.
6142         * modules/search (Depends-on): Update.
6143         * modules/signal (Depends-on): Update.
6144         * modules/spawn (Depends-on): Update.
6145         * modules/stdio (Depends-on): Update.
6146         * modules/stdlib (Depends-on): Update.
6147         * modules/string (Depends-on): Update.
6148         * modules/strings (Depends-on): Update.
6149         * modules/sys_socket (Depends-on): Update.
6150         * modules/sys_stat (Depends-on): Update.
6151         * modules/sys_time (Depends-on): Update.
6152         * modules/sys_times (Depends-on): Update.
6153         * modules/sys_utsname (Depends-on): Update.
6154         * modules/time (Depends-on): Update.
6155         * modules/unistd (Depends-on): Update.
6156         * modules/wchar (Depends-on): Update.
6157         * MODULES.html.sh (Support for building libraries and executables):
6158         Update.
6159
6160 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6161
6162         Improvements on _Noreturn and related modules.
6163
6164         modules/_Exit-tests: test _Noreturn too
6165         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
6166         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
6167         (main): Use them.
6168
6169         stdnoreturn, stdnoreturn-tests: remove modules
6170         They're not needed here and a bit premature for use elsewhere.  See
6171         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
6172         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6173         * tests/test-stdnoreturn.c: Remove files.
6174         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
6175         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
6176         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
6177         and using noreturn.
6178         * modules/openat, modules/sigpipe-die, modules/xalloc:
6179         * modules/xmemdup0, modules/xstrtol:
6180         Remove dependency on stdnoreturn.
6181
6182         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
6183         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
6184         Reparenthesize to avoid GCC warning.
6185         Support Microsoft's syntax.
6186         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
6187
6188         _Noreturn-tests: remove module
6189         * modules/_Noreturn-tests: Remove.
6190         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
6191         * tests/test-_Noreturn.c: Remove.
6192         * tests/test-stdnoreturn.c: Merge from the old
6193         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
6194
6195 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6196
6197         _Noreturn, stdnoreturn, and related modules.
6198
6199         * top/maint.mk: Adjust to new noreturn support.
6200         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
6201         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
6202
6203         xalloc: use stdnoreturn.h
6204         * lib/xalloc.h: Include <stdnoreturn.h>.
6205         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6206         * modules/xalloc (Depends-on): Add stdnoreturn.
6207
6208         xstrtol: use stdnoreturn.h
6209         * lib/xstrtol.h: Include <stdnoreturn.h>.
6210         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6211         * modules/xstrtol (Depends-on): Add stdnoreturn.
6212
6213         xmemdup0: use stdnoreturn.h
6214         * lib/xmemdup0.h: Include <stdnoreturn.h>.
6215         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6216         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
6217
6218         sigpipe-die: use stdnoreturn.h
6219         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
6220         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6221         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
6222
6223         openat: use stdnoreturn.h
6224         * lib/openat.h: Include <stdnoreturn.h>.
6225         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6226         * modules/openat (Depends-on): Add stdnoreturn.
6227
6228         * lib/openat-die.c (openat_save_fail): Modernize comment.
6229
6230         * lib/xalloc-die.c (xalloc_die): Modernize comment.
6231
6232         * lib/glthread/thread.h: Modernize comment.
6233
6234         obstack: use _Noreturn
6235         * lib/obstack.c (__attribute__): Remove macro.
6236         (print_and_abort): Use _Noreturn.
6237
6238         c-stack: use _Noreturn
6239         * lib/c-stack.c (die, overflow_handler, segv_handler):
6240         Use _Noreturn rather than __attribute__((noreturn)).
6241
6242         argmatch-tests, exclude_tests: use _Noreturn
6243         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
6244         Remove.
6245         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
6246
6247         stdlib: use _Noreturn
6248         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
6249         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
6250         * modules/stdlib (Depends-on): Add _Noreturn.
6251         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
6252
6253         stdnoreturn-tests: new module
6254         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
6255
6256         stdnoreturn: new module
6257         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
6258         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
6259
6260         _Noreturn-tests: new module
6261         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
6262
6263         _Noreturn: new module
6264         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
6265         New section, mentioning it.
6266         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
6267
6268         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
6269
6270 2011-07-11  Eric Blake  <eblake@redhat.com>
6271
6272         ffs: new module
6273         * modules/ffs: New file.
6274         * m4/ffs.m4: Likewise.
6275         * lib/ffs.c: Likewise.
6276         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
6277         * modules/strings (Makefile.am): Substitute witness.
6278         (Depends-on): Add c++defs.
6279         * lib/strings.in.h (ffs): Declare.
6280         * modules/ffs-tests: New test file.
6281         * tests/test-ffs.c: Test new module.
6282         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6283         * doc/posix-functions/ffs.texi (ffs): Likewise.
6284
6285         regex: avoid compiler warning
6286         * lib/regex.c (includes): Include <strings.h>, for use of
6287         strcasecmp in regcomp.c.
6288         Reported by Joachim Schmitz.
6289
6290 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6291
6292         stdint: respect system's intmax_t if INTMAX_MAX
6293         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
6294         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
6295         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
6296         long but int64_t is long long, and where we will clash with the
6297         system intmax_t if we override it.  See
6298         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
6299         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
6300         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
6301         similarly for UINTMAX_C.
6302
6303 2011-07-08  Bruno Haible  <bruno@clisp.org>
6304
6305         pthread_sigmask tests: Avoid a compiler warning.
6306         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
6307         non-zero.
6308
6309         sigprocmask tests: A better way to avoid a compiler warning.
6310         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
6311         (main): Complain if system() returns non-zero.
6312         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
6313
6314 2011-07-08  Bruno Haible  <bruno@clisp.org>
6315
6316         pthread_sigmask: Work around IRIX bug.
6317         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
6318         bug.
6319         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
6320         there may be unblocked pending signals.
6321         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
6322
6323 2011-07-08  Bruno Haible  <bruno@clisp.org>
6324
6325         pthread_sigmask: Work around Cygwin bug.
6326         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
6327         bug.
6328         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
6329         the system's pthread_sigmask function.
6330         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
6331
6332 2011-07-08  Bruno Haible  <bruno@clisp.org>
6333
6334         pthread_sigmask: Work around bug in single-threaded implementation.
6335         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
6336         FreeBSD, HP-UX, Solaris bug.
6337         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
6338         * lib/pthread_sigmask.c: Include <stddef.h>.
6339         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
6340         the system's pthread_sigmask function.
6341         * modules/pthread_sigmask (configure.ac): Invoke
6342         gl_PREREQ_PTHREAD_SIGMASK.
6343         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
6344         HP-UX, Solaris.
6345
6346 2011-07-08  Eric Blake  <eblake@redhat.com>
6347
6348         test-sigprocmask: avoid compiler warning
6349         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
6350         * tests/test-sigprocmask.c (main): Use it to silence warning.
6351         Reported by Jim Meyering.
6352
6353         test-snprintf: avoid compiler warning
6354         * tests/test-snprintf.c (main): Avoid shadowed declaration.
6355         * tests/test-vsnprintf.c (main): Likewise.
6356         Reported by Jim Meyering.
6357
6358 2011-07-08  Bruno Haible  <bruno@clisp.org>
6359
6360         Tests for module 'pthread_sigmask'.
6361         * modules/pthread_sigmask-tests: New file.
6362         * tests/test-pthread_sigmask1.c: New file, based on
6363         tests/test-sigprocmask.c.
6364         * tests/test-pthread_sigmask2.c: New file.
6365
6366 2011-07-08  Jim Meyering  <meyering@redhat.com>
6367
6368         test-getopt.h: avoid warning about an unused variable
6369         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6370
6371 2011-07-07  Jim Meyering  <meyering@redhat.com>
6372
6373         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6374         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6375         now that it no longer contains leading TABs.
6376         Remove unused "url=FIXME" statement.
6377
6378 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6379
6380         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6381         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6382         When gl_THREADLIB is not in use, assume that the POSIX sematics
6383         are desired.  This is better for Emacs, which uses POSIX semantics
6384         on GNUish and/or POSIXish platforms, and does not use threads at
6385         all otherwise.
6386
6387         pthread_sigmask: fix typo when testing for libraries
6388         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6389         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6390
6391 2011-07-08  Eric Blake  <eblake@redhat.com>
6392
6393         fts: introduce FTS_NOATIME
6394         * lib/fts_.h (FTS_NOATIME): New bit flag.
6395         (FTS_OPTIONMASK): Adjust.
6396         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
6397         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
6398
6399 2011-07-08  Bruno Haible  <bruno@clisp.org>
6400
6401         Tests for module 'thread'.
6402         * modules/thread-tests: New file.
6403         * tests/test-thread_self.c: New file.
6404         * tests/test-thread_create.cc: New file.
6405
6406 2011-07-08  Bruno Haible  <bruno@clisp.org>
6407
6408         thread: Avoid gcc warnings when using gl_thread_self().
6409         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
6410         'void *'.
6411         (gl_thread_self_pointer): Update.
6412
6413 2011-07-07  Bruno Haible  <bruno@clisp.org>
6414
6415         signal-c++-tests: Check declaration of pthread_sigmask.
6416         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
6417         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
6418         $(LIB_PTHREAD_SIGMASK).
6419
6420 2011-07-07  Bruno Haible  <bruno@clisp.org>
6421
6422         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
6423         * lib/signal.in.h (pthread_sigmask): Override if
6424         REPLACE_PTHREAD_SIGMASK is 1.
6425         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6426         REPLACE_PTHREAD_SIGMASK.
6427         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
6428         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
6429         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
6430         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6431         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
6432
6433 2011-07-07  Bruno Haible  <bruno@clisp.org>
6434
6435         pthread_sigmask: Ensure declaration in <signal.h>.
6436         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
6437         include <pthread.h>.
6438         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
6439         problem.
6440
6441 2011-07-07  Bruno Haible  <bruno@clisp.org>
6442
6443         pthread_sigmask: Document the module.
6444         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
6445
6446 2011-07-07  Bruno Haible  <bruno@clisp.org>
6447
6448         pthread_sigmask: Follow gnulib conventions.
6449         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
6450         gl_PTHREAD_SIGMASK.
6451         * modules/pthread_sigmask (configure.ac): Update.
6452
6453 2011-07-07  Bruno Haible  <bruno@clisp.org>
6454
6455         pthread_sigmask: Make declaration C++ safe.
6456         * lib/signal.in.h: In two special conditions, just do an #include_next.
6457         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6458         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
6459         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6460         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6461         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
6462         not REPLACE_PTHREAD_MASK.
6463         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
6464         not REPLACE_PTHREAD_MASK.
6465         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6466
6467 2011-07-07  Bruno Haible  <bruno@clisp.org>
6468
6469         pthread_sigmask: Fix return value.
6470         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6471         * lib/pthread_sigmask.c: New file.
6472         * modules/pthread_sigmask (Files): Add it.
6473         (configure.ac): Invoke AC_LIBOBJ.
6474
6475 2011-07-07  Eric Blake  <eblake@redhat.com>
6476
6477         getopt: more portable argv creation
6478         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6479         const, use char arrays rather than strings.
6480         Suggested by Paul Eggert.
6481
6482 2011-07-07  Bruno Haible  <bruno@clisp.org>
6483
6484         Tests for module 'sigprocmask'.
6485         * modules/sigprocmask-tests: New file.
6486         * tests/test-sigprocmask.c: New file.
6487
6488 2011-07-07  Bruno Haible  <bruno@clisp.org>
6489
6490         float tests: Tweak.
6491         * tests/test-float.c (main): Tweak skip message.
6492
6493 2011-07-07  Eric Blake  <eblake@redhat.com>
6494
6495         getopt: avoid compiler warning during configure
6496         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6497         assigning string literals to non-const pointer.
6498
6499         getopt-gnu: avoid crash in glibc getopt
6500         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6501         * tests/test-getopt.h (test_getopt): Enhance test.
6502         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6503         * doc/posix-functions/getopt.texi (getopt): Document it.
6504         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6505         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6506         Likewise.
6507
6508 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6509
6510         getopt: handle W; without long options in getopt [BZ #12922]
6511         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6512         but no long options are defined, just return 'W'.
6513
6514 2011-07-07  Bruno Haible  <bruno@clisp.org>
6515
6516         Avoid literal tabs.
6517         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6518         variable containing a tab instead of a literal tab.
6519         Reported by Jim Meyering.
6520
6521 2011-07-07  Bruno Haible  <bruno@clisp.org>
6522
6523         Comments.
6524         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6525
6526 2011-07-06  Bruno Haible  <bruno@clisp.org>
6527
6528         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6529         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6530         <winsock2.h>.
6531         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6532         lib/sys_socket.in.h.
6533         (close, gethostname): Hide declarations from <winsock2.h>.
6534         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6535         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6536         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6537         (select): Don't override if gnulib's <sys/select.h> was already
6538         included.
6539         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6540         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6541         setsockopt, shutdown, select): Tweak indentation.
6542
6543 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6544
6545         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6546         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6547         in an application that does not use the sys_select module.
6548
6549 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6550
6551         poll: do not return 0 on timeout=-1
6552         * lib/poll.c: Loop with yield if no events occured
6553
6554 2011-07-06  Eric Blake  <eblake@redhat.com>
6555
6556         pthread_sigmask: always replace when not using pthread
6557         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6558         replacement when using some threading other than pthread.  Fix
6559         logic bug.
6560
6561 2011-07-06  Bruno Haible  <bruno@clisp.org>
6562
6563         Comments.
6564         * m4/printf.m4: Update comments about mingw.
6565
6566 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6567
6568         sys_select: define sigset_t more portably
6569         * lib/sys_select.in.h: Always include <sys/types.h>, since
6570         we now need sigset_t and mingw defines it there.
6571         Include <signal.h> before split inclusion guard, to avoid
6572         mishaps on Solaris, whose <signal.h> eventually includes us.
6573         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6574         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6575         which come from ...
6576         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6577         gl_CHECK_TYPE_SIGSET_T.
6578         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6579         does the real work.
6580         * modules/sys_select (Depends-on): Add 'signal'.
6581
6582         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6583         Suggested by Bruno Haible.
6584
6585         pselect: Use pthread_sigmask, not sigprocmask.
6586         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6587         multithreaded apps better than sigprocmask does.
6588         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6589         sigprocmask directly.
6590
6591 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6592
6593         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6594         Don't #undef,  since we don't need any underlying pselect.
6595         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6596         (Depends-on): Add select.
6597         (Link): Add $(LIBSOCKET).
6598         These changes suggested by Bruno Haible.
6599
6600         pselect: document better
6601         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6602         * doc/posix-functions/pselect.texi (pselect): Document new module.
6603
6604         pthread_sigmask: new module
6605         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6606         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6607         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6608         This is done only as a macro; I don't know how well that'll
6609         work for C++.  Move <sys/types.h> include before the include_next,
6610         to avoid mishap on Solaris.
6611         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6612         * modules/signal (Makefile.am): Substitute the check's results.
6613         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6614
6615         test-pselect: new module
6616         * modules/pselect-tests, tests/test-pselect.c: New files.
6617         * tests/test-select.c, tests/test-sys_select-c++.cc:
6618         If TEST_PSELECT is defined, test pselect instead of testing select.
6619
6620         * tests/test-sys_select.c (sigset_t): Test for it, too.
6621         Suggested by Bruno Haible.
6622
6623 2011-07-05  Eric Blake  <eblake@redhat.com>
6624
6625         snprintf: guarantee %1$d, for libintl
6626         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6627         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6628         * doc/posix-functions/snprintf.texi (snprintf): Update.
6629         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6630         * tests/test-snprintf.c (main): Enhance test.
6631         * tests/test-vsnprintf.c (main): Likewise.
6632
6633 2011-07-05  Jim Meyering  <meyering@redhat.com>
6634
6635         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6636         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6637         per Bruno's request, to accommodate this idiom (no space after "#")
6638         even when the function is inside an #if block:
6639         char *
6640         gets (char *s)
6641         #undef gets
6642         {
6643           ...
6644         }
6645
6646 2011-07-04  Jim Meyering  <meyering@redhat.com>
6647
6648         maint: indent with spaces, not TABs, and add a rule to check this
6649         * tests/test-userspec.c: Indent with spaces, not TABs.
6650         * tests/test-argp.c: Likewise.
6651         * tests/test-c-stack2.sh: Likewise.
6652         * tests/test-parse-duration.sh: Likewise
6653         * m4/strtod.m4: Likewise.
6654         * m4/alloca.m4: Likewise.
6655         * m4/pselect.m4: Likewise.
6656         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6657
6658 2011-07-03  Jim Meyering  <meyering@redhat.com>
6659
6660         maint.mk: correct omissions in prohibit_argmatch_without_use check
6661         This rule would mistakenly report that argmatch.h is included without
6662         use even when both the argmatch and invalid_arg macro were used.
6663         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6664         of argmatch and invalid_arg.
6665
6666 2011-07-03  Bruno Haible  <bruno@clisp.org>
6667
6668         Comments about EINTR.
6669         * lib/safe-read.h: Explain the purpose of this module.
6670         * lib/safe-write.h: Likewise.
6671         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6672         module.
6673         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6674         module.
6675         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6676
6677 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6678
6679         xnanosleep: Rewrite to use new dtotimespec module.
6680         It has the conversion code that used to be in xnanosleep.
6681         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6682         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6683         (TIME_T_MAX): Remove.
6684         (xnanosleep): Rewrite in terms of dtotimespec.
6685         * modules/xnanosleep (Depends-on): Add dtotimespec.
6686         Remove intprops, stdbool.
6687
6688         timespec-add, timespec-sub: new modules
6689         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6690         * lib/timespec-add.c, lib/timespec-sub.c:
6691         * modules/timespec-add, modules/timespec-sub: New files.
6692
6693         dtotimespec: new module
6694         * lib/timespec.h (dtotimespec): New decl.
6695         * lib/dtotimespec.c, modules/dtotimespec: New files.
6696
6697         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6698
6699         pselect: new module
6700         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6701         (pselect): New decls.
6702         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6703         since the standard pselect decl uses 'restrict'.
6704         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6705         HAVE_PSELECT, REPLACE_PSELECT.
6706         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6707         HAVE_PSELECT, REPLACE_PSELECT.
6708         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6709
6710         sys_select: don't depend on sys_socket
6711         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6712         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6713         This fix works on GNU and GNU-like platforms, but has not been tested
6714         on native Windows.
6715         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6716         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6717         gl_HEADER_SYS_SOCKET.
6718         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6719         gl_PREREQ_SYS_H_WINSOCK2.
6720
6721 2011-06-29  Eric Blake  <eblake@redhat.com>
6722
6723         pipe2: fix C89 compile problem
6724         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6725         Reported by Bruno Haible.
6726
6727         pipe, pipe2: don't corrupt fd on error
6728         * lib/pipe.c (pipe): Leave fd unchanged on error.
6729         * lib/pipe2.c (pipe2): Likewise.
6730         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6731         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6732
6733 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6734
6735         mmap-anon: do not use regular expressions inadvertently
6736         * m4/mmap-anon.m4: Remove trailing period from strings sought
6737         in the output.
6738
6739 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6740
6741         nanosleep: fix integer overflow problem
6742         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6743         arithmetic wraps around on overflow.
6744
6745         nanosleep: simplify carrying
6746         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6747         first call to the underyling nanosleep, not for the last one.
6748         This doesn't fix any bugs, but it simplifies the computation of
6749         the remaining delay.  Found while auditing integer overflow issues.
6750
6751         dup2: remove test for existence of fcntl
6752         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6753         "#if HAVE_FCNTL", in the configure-time test program.
6754         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6755         and therefore speeds up "configure" a bit.  Found while
6756         adding the dup2 module to Emacs.
6757
6758 2011-06-24  Eric Blake  <eblake@redhat.com>
6759
6760         maint.mk: enhance useless header checks
6761         * top/maint.mk (_sc_header_without_use): Check both include
6762         styles.
6763         (sc_prohibit_assert_without_use)
6764         (sc_prohibit_close_stream_without_use)
6765         (sc_prohibit_getopt_without_use)
6766         (sc_prohibit_quotearg_without_use)
6767         (sc_prohibit_quote_without_use)
6768         (sc_prohibit_long_options_without_use)
6769         (sc_prohibit_inttostr_without_use)
6770         (sc_prohibit_ignore_value_without_use)
6771         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6772         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6773         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6774         (sc_prohibit_hash_pjw_without_use)
6775         (sc_prohibit_safe_read_without_use)
6776         (sc_prohibit_argmatch_without_use)
6777         (sc_prohibit_canonicalize_without_use)
6778         (sc_prohibit_root_dev_ino_without_use)
6779         (sc_prohibit_openat_without_use)
6780         (sc_prohibit_c_ctype_without_use)
6781         (sc_prohibit_signal_without_use)
6782         (sc_prohibit_stdio--_without_use)
6783         (sc_prohibit_stdio-safer_without_use)
6784         (sc_prohibit_strings_without_use)
6785         (sc_prohibit_intprops_without_use)
6786         (sc_prohibit_stddef_without_use)
6787         (sc_prohibit_xfreopen_without_use): Update clients.
6788
6789 2011-06-24  Jim Meyering  <meyering@redhat.com>
6790
6791         syntax-check: keep one maint.mk rule in sync with its header
6792         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6793         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6794         I prefer to avoid temporary files here, so use <(...), but that
6795         is not supported by /bin/sh, so...
6796         (SHELL): Define to /bin/bash.
6797
6798 2011-06-24  Eric Blake  <eblake@redhat.com>
6799
6800         maint.mk: update sc_prohibit_intprops_without_use
6801         * top/maint.mk (_intprops_names): Match recent changes.
6802
6803 2011-06-24  Bruno Haible  <bruno@clisp.org>
6804
6805         strerror-override: No-op tweak.
6806         * lib/strerror-override.h (strerror_override): Reorder conditions,
6807         for consistency with lib/strerror-override.c.
6808
6809 2011-06-23  Eric Blake  <eblake@redhat.com>
6810
6811         maint.mk: test further PATH_MAX issues
6812         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6813         (sc_prohibit_path_max_allocation): ...and also test alloca.
6814         Suggested by Jim Meyering.
6815
6816 2011-06-22  Eric Blake  <eblake@redhat.com>
6817
6818         maint.mk: add syntax-check to avoid char[PATH_MAX]
6819         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6820
6821         stat: be robust to PATH_MAX definition
6822         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6823         * modules/stat (Depends-on): Add verify.
6824
6825         link: work around IRIX bug
6826         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6827         * lib/link.c (rpl_link): Work around it.
6828         * tests/test-link.h (test_link): Enhance test.
6829         * doc/posix-functions/link.texi (link): Document the bug.
6830
6831         getopt: silence clang warning
6832         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6833         dereference.
6834         Reported by Gustavo Martin Domato.
6835
6836 2011-06-22  Jim Meyering  <meyering@redhat.com>
6837
6838         bootstrap: do not insert a blank line into each .gitignore file
6839         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6840
6841 2011-06-21  Eric Blake  <eblake@redhat.com>
6842
6843         perror: test for output mismatch
6844         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6845         perror on IRIX.
6846
6847         strerror_r: fix OpenBSD behavior on out-of-range
6848         * lib/strerror_r.c (strerror_r): Always use maximal string.
6849         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6850
6851         strerror_r: fix OpenBSD behavior on 0
6852         * lib/strerror-override.c (strerror_override): Also override 0
6853         when needed.
6854         * lib/strerror-override.h (strerror_override): Likewise.
6855         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6856         earlier.
6857         * lib/strerror_r.c (strerror_r): Likewise.
6858         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6859         behavior...
6860         (gl_FUNC_STRERROR_0): ...into new macro.
6861         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6862         is overridden.
6863         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6864         * modules/strerror-override (Files): Add strerror.m4.
6865         (configure.ac): Also provide override for 0 when needed.
6866         * doc/posix-functions/strerror.texi (strerror): Document this.
6867         * doc/posix-functions/perror.texi (perror): Likewise.
6868
6869         perror: adjust array size
6870         * modules/perror (Depends-on): Add strerror-override.
6871         * lib/perror.c (perror): Use it to avoid magic number.
6872
6873         strerror-override: reduce size
6874         * lib/strerror-override.c (strerror_override): Use fewer lines.
6875
6876 2011-06-20  Bruno Haible  <bruno@clisp.org>
6877
6878         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6879         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6880
6881 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6882
6883         alloca: port to compilers that can optimize like GCC 4.6.0
6884         * lib/alloca.c (find_stack_direction): New signature, taken from
6885         Autoconf git.  This works with GCC 4.6.0.  This code should never
6886         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6887         be used with other compilers that optimize as well as GCC 4.6.0 does.
6888         (alloca): Adjust to new signature.
6889         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6890         New macro, which patches Autoconf in a similar way.
6891
6892         c-stack: stop worrying about stack direction
6893         * lib/c-stack.c (find_stack_direction): Remove.
6894         (segv_handler): Don't worry about stack direction growth, as it's
6895         too much of a pain to configure this correctly, given how compilers
6896         are optimizing-away our stack-growth detection code.  Instead, assume
6897         that any access to just before or just after the stack is OK.
6898         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6899         Don't require AC_FUNC_ALLOCA; no longer needed.
6900
6901 2011-06-20  Eric Blake  <eblake@redhat.com>
6902
6903         test-stat: don't allocate PATH_MAX bytes
6904         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6905         PATH_MAX-sized buffer.
6906         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6907         * modules/stat-tests (Depends-on): Likewise.
6908         * tests/test-fstatat.c (includes): Drop pathmax.h.
6909         * tests/test-stat.c (includes): Likewise.
6910         Reported by Bruno Haible.
6911
6912 2011-06-20  Bruno Haible  <bruno@clisp.org>
6913
6914         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6915         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6916         * lib/float.c: New file.
6917         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6918         REPLACE_FLOAT_LDBL.
6919         * modules/float (Files): Add lib/float.c.
6920         (configure.ac): Invoke AC_LIBOBJ.
6921         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6922
6923 2011-06-20  Bruno Haible  <bruno@clisp.org>
6924
6925         Tests for module 'float'.
6926         * modules/float-tests: New file.
6927         * tests/test-float.c: New file.
6928
6929 2011-06-19  Bruno Haible  <bruno@clisp.org>
6930
6931         isinf: Coding style.
6932         * lib/isinf.c: Use GNU coding style.
6933
6934 2011-06-19  Bruno Haible  <bruno@clisp.org>
6935
6936         linkat test: Avoid test failure on AIX 7.1.
6937         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6938         * tests/test-link.h (test_link): Likewise.
6939
6940 2011-06-19  Bruno Haible  <bruno@clisp.org>
6941
6942         pread test: Avoid test failure on OpenBSD 4.9.
6943         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6944
6945 2011-06-19  Bruno Haible  <bruno@clisp.org>
6946
6947         sprintf-posix: Fix test failure on AIX 7.1.
6948         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6949         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6950         on AIX.
6951         * doc/posix-functions/fprintf.texi: Likewise.
6952         * doc/posix-functions/printf.texi: Likewise.
6953         * doc/posix-functions/snprintf.texi: Likewise.
6954         * doc/posix-functions/sprintf.texi: Likewise.
6955         * doc/posix-functions/vdprintf.texi: Likewise.
6956         * doc/posix-functions/vfprintf.texi: Likewise.
6957         * doc/posix-functions/vprintf.texi: Likewise.
6958         * doc/posix-functions/vsnprintf.texi: Likewise.
6959         * doc/posix-functions/vsprintf.texi: Likewise.
6960
6961 2011-06-19  Bruno Haible  <bruno@clisp.org>
6962
6963         roundl-ieee: Fix test failure on AIX 7.1.
6964         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6965         * doc/posix-functions/roundl.texi: Mention problem with negative
6966         arguments.
6967
6968 2011-06-19  Bruno Haible  <bruno@clisp.org>
6969
6970         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6971         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6972         * doc/posix-functions/round.texi: Mention problem with negative
6973         arguments.
6974         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6975
6976 2011-06-19  Bruno Haible  <bruno@clisp.org>
6977
6978         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6979         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6980         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6981         * doc/posix-functions/roundf.texi: Mention problem with negative
6982         arguments.
6983         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6984
6985 2011-06-19  Bruno Haible  <bruno@clisp.org>
6986
6987         ceilf-ieee: Work around bug on MacOS X 10.5.
6988         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6989
6990         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6991         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6992         IEEE compliant, avoid compiler optimizations.
6993         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6994         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6995         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6996         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6997         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6998         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6999         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7000         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7001         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7002         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7003
7004 2011-06-19  Bruno Haible  <bruno@clisp.org>
7005
7006         ceilf-ieee: Work around bug on AIX 7.1.
7007         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
7008         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
7009
7010 2011-06-19  Bruno Haible  <bruno@clisp.org>
7011
7012         ceil-ieee: Work around bug on AIX 7.1.
7013         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
7014         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
7015
7016 2011-06-18  Bruno Haible  <bruno@clisp.org>
7017
7018         fsync test: Avoid test failure on MacOS X and AIX.
7019         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
7020         EINVAL.
7021
7022 2011-06-18  Bruno Haible  <bruno@clisp.org>
7023
7024         openat, fdopendir tests: Fix link errors.
7025         * modules/openat-tests (Depends-on): Add progname.
7026         * modules/fdopendir-tests (Depends-on): Likewise.
7027         * tests/test-fchownat.c: Include progname.h.
7028         (main): Call set_program_name.
7029         * tests/test-fstatat.c: Include progname.h.
7030         (main): Call set_program_name.
7031         * tests/test-mkdirat.c: Include progname.h.
7032         (main): Call set_program_name.
7033         * tests/test-openat.c: Include progname.h.
7034         (main): Call set_program_name.
7035         * tests/test-unlinkat.c: Include progname.h.
7036         (main): Call set_program_name.
7037         * tests/test-fdopendir.c: Include progname.h.
7038         (main): Call set_program_name.
7039
7040 2011-06-18  Bruno Haible  <bruno@clisp.org>
7041
7042         Doc update.
7043         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
7044         HP-UX.
7045         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
7046
7047 2011-06-18  Bruno Haible  <bruno@clisp.org>
7048
7049         getcwd tests: Avoid compilation error on HP-UX 11.31.
7050         * modules/getcwd-tests (Depends-on): Add pathmax.
7051         * tests/test-getcwd.c: Include pathmax.h.
7052
7053 2011-06-18  Bruno Haible  <bruno@clisp.org>
7054
7055         isfinite, isinf: Fix link error on AIX 6 and 7.
7056         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
7057         needed, also test the macro with a 'float' argument.
7058         * m4/isinf.m4 (gl_ISINF): Likewise.
7059
7060 2011-06-18  Bruno Haible  <bruno@clisp.org>
7061
7062         getloadavg: Don't clobber LIBS. Regression from previous commit.
7063         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
7064         AC_CHECK_LIB from here...
7065         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
7066         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
7067         gl_func_getloadavg_done.
7068         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7069
7070 2011-06-18  Bruno Haible  <bruno@clisp.org>
7071
7072         clean-temp: Improve documentation.
7073         * lib/clean-temp.h: Explain better how to use this module.
7074         Reported by John Darrington <john@darrington.wattle.id.au>.
7075
7076 2011-06-17  Bruno Haible  <bruno@clisp.org>
7077
7078         pread, pwrite: Avoid cc warning on AIX.
7079         * lib/unistd.in.h (pread): Undefine before defining as a macro.
7080         (pwrite): Likewise.
7081
7082 2011-06-17  Bruno Haible  <bruno@clisp.org>
7083
7084         spawn-pipe tests: Fix link error.
7085         * tests/test-spawn-pipe-child.c: Undefine fprintf.
7086         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7087
7088 2011-06-17  Bruno Haible  <bruno@clisp.org>
7089
7090         Tests: Remove unnecessary dependency.
7091         * modules/canonicalize-tests (Depends-on): Remove progname.
7092         * modules/chown-tests (Depends-on): Likewise.
7093         * modules/dirname-tests (Depends-on): Likewise.
7094         * modules/fdopendir-tests (Depends-on): Likewise.
7095         * modules/fdutimensat-tests (Depends-on): Likewise.
7096         * modules/hash-tests (Depends-on): Likewise.
7097         * modules/lchown-tests (Depends-on): Likewise.
7098         * modules/linkat-tests (Depends-on): Likewise.
7099         * modules/renameat-tests (Depends-on): Likewise.
7100         * modules/spawn-pipe-tests (Depends-on): Likewise.
7101         * modules/utimensat-tests (Depends-on): Likewise.
7102
7103 2011-06-17  Bruno Haible  <bruno@clisp.org>
7104
7105         spawn-pipe tests: Fix link error.
7106         * tests/test-spawn-pipe-child.c: Undefine fflush.
7107
7108 2011-06-17  Bruno Haible  <bruno@clisp.org>
7109
7110         Fix tests link errors.
7111         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
7112         * modules/chown-tests (Makefile.am): Don't link test-chown with
7113         LIBINTL.
7114         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
7115         LIBINTL.
7116         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
7117         LIBINTL.
7118         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
7119         LIBINTL.
7120
7121 2011-06-16  Bruno Haible  <bruno@clisp.org>
7122
7123         crypto/gc-sha1: Fix recent regression.
7124         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
7125         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
7126
7127         crypto/gc-md5: Fix recent regression.
7128         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
7129
7130         crypto/gc-md4: Fix recent regression.
7131         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
7132         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
7133
7134         crypto/gc-arctwo: Fix recent regression.
7135         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
7136         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
7137
7138         crypto/gc-rijndael: Fix recent regression.
7139         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
7140         (configure.ac): Invoke AC_LIBOBJ here.
7141         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
7142         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7143
7144         crypto/gc-hmac-sha1: Fix recent regression.
7145         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
7146         (configure.ac): Invoke AC_LIBOBJ here.
7147         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
7148         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7149
7150         crypto/gc-hmac-md5: Fix recent regression.
7151         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
7152         (configure.ac): Invoke AC_LIBOBJ here.
7153         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
7154         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7155
7156         crypto/gc-des: Fix recent regression.
7157         * modules/crypto/gc-des (Files): Remove m4/des.m4.
7158         (configure.ac): Invoke AC_LIBOBJ here.
7159         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
7160         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7161
7162         crypto/gc-arcfour: Fix recent regression.
7163         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
7164         (configure.ac): Invoke AC_LIBOBJ here.
7165         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
7166         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7167
7168 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7169
7170         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
7171         After the 2011-05-21 change, this macro requires
7172         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
7173         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7174
7175 2011-06-16  Bruno Haible  <bruno@clisp.org>
7176
7177         fprintftime: Move AC_LIBOBJ invocations to module description.
7178         * m4/fprintftime.m4: Remove file.
7179         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
7180         (configure.ac): Remove gl_FPRINTFTIME call.
7181         (Makefile.am): Augment lib_SOURCES.
7182         Reported by Jim Meyering.
7183
7184 2011-06-16  Bruno Haible  <bruno@clisp.org>
7185
7186         tmpfile-safer: Finish 2011-05-23 commit.
7187         * m4/stdio-safer.m4: Really remove file.
7188         Reported by Jim Meyering.
7189
7190 2011-06-16  Bruno Haible  <bruno@clisp.org>
7191
7192         syntax-check: Fix typo.
7193         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
7194         printf-posix.m4.
7195         Reported by Jim Meyering.
7196
7197 2011-06-13  Jim Meyering  <meyering@redhat.com>
7198
7199         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
7200         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
7201
7202 2011-05-23  Bruno Haible  <bruno@clisp.org>
7203
7204         yesno: Move AC_LIBOBJ invocations to module description.
7205         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
7206         * modules/yesno (Makefile.am): Augment lib_SOURCES.
7207
7208 2011-05-23  Bruno Haible  <bruno@clisp.org>
7209
7210         xstrtol: Move AC_LIBOBJ invocations to module description.
7211         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
7212         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
7213
7214 2011-05-23  Bruno Haible  <bruno@clisp.org>
7215
7216         xstrtold: Move AC_LIBOBJ invocations to module description.
7217         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
7218         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
7219
7220 2011-05-23  Bruno Haible  <bruno@clisp.org>
7221
7222         xstrtod: Move AC_LIBOBJ invocations to module description.
7223         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
7224         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
7225
7226 2011-05-23  Bruno Haible  <bruno@clisp.org>
7227
7228         xnanosleep: Move AC_LIBOBJ invocations to module description.
7229         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
7230         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
7231
7232 2011-05-23  Bruno Haible  <bruno@clisp.org>
7233
7234         xgetcwd: Move AC_LIBOBJ invocations to module description.
7235         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
7236         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
7237
7238 2011-05-23  Bruno Haible  <bruno@clisp.org>
7239
7240         xalloc: Move AC_LIBOBJ invocations to module description.
7241         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
7242         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
7243
7244 2011-05-23  Bruno Haible  <bruno@clisp.org>
7245
7246         write-any-file: Move AC_LIBOBJ invocations to module description.
7247         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
7248         invocation.
7249         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
7250
7251 2011-05-23  Bruno Haible  <bruno@clisp.org>
7252
7253         utimens: Move AC_LIBOBJ invocations to module description.
7254         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
7255         * modules/utimens (Makefile.am): Augment lib_SOURCES.
7256
7257 2011-05-23  Bruno Haible  <bruno@clisp.org>
7258
7259         utimecmp: Move AC_LIBOBJ invocations to module description.
7260         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
7261         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
7262
7263 2011-05-23  Bruno Haible  <bruno@clisp.org>
7264
7265         userspec: Move AC_LIBOBJ invocations to module description.
7266         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
7267         * modules/userspec (Makefile.am): Augment lib_SOURCES.
7268
7269 2011-05-23  Bruno Haible  <bruno@clisp.org>
7270
7271         unlinkdir: Move AC_LIBOBJ invocations to module description.
7272         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
7273         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
7274
7275 2011-05-23  Bruno Haible  <bruno@clisp.org>
7276
7277         unistd-safer: Move AC_LIBOBJ invocations to module description.
7278         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
7279         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
7280
7281 2011-05-23  Bruno Haible  <bruno@clisp.org>
7282
7283         tempname: Move AC_LIBOBJ invocations to module description.
7284         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
7285         * modules/tempname (Makefile.am): Augment lib_SOURCES.
7286
7287 2011-05-23  Bruno Haible  <bruno@clisp.org>
7288
7289         strftime: Move AC_LIBOBJ invocations to module description.
7290         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
7291         * modules/strftime (Makefile.am): Augment lib_SOURCES.
7292
7293 2011-05-23  Bruno Haible  <bruno@clisp.org>
7294
7295         stdlib-safer: Move AC_LIBOBJ invocations to module description.
7296         * m4/stdlib-safer.m4: Remove file.
7297         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
7298         (configure.ac): Remove gl_STDLIB_SAFER call.
7299         (Makefile.am): Augment lib_SOURCES.
7300
7301 2011-05-23  Bruno Haible  <bruno@clisp.org>
7302
7303         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
7304         * m4/stdio-safer.m4: Remove file.
7305         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
7306         (configure.ac): Remove gl_TMPFILE_SAFER call.
7307         (Makefile.am): Augment lib_SOURCES.
7308
7309 2011-05-23  Bruno Haible  <bruno@clisp.org>
7310
7311         popen-safer: Move AC_LIBOBJ invocations to module description.
7312         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
7313         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
7314         (configure.ac): Remove gl_POPEN_SAFER call.
7315         (Makefile.am): Augment lib_SOURCES.
7316
7317 2011-05-23  Bruno Haible  <bruno@clisp.org>
7318
7319         freopen-safer: Move AC_LIBOBJ invocations to module description.
7320         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
7321         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
7322         (configure.ac): Remove gl_FREOPEN_SAFER call.
7323         (Makefile.am): Augment lib_SOURCES.
7324
7325 2011-05-23  Bruno Haible  <bruno@clisp.org>
7326
7327         fopen-safer: Move AC_LIBOBJ invocations to module description.
7328         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
7329         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
7330         (configure.ac): Remove gl_FOPEN_SAFER call.
7331         (Makefile.am): Augment lib_SOURCES.
7332
7333 2011-05-23  Bruno Haible  <bruno@clisp.org>
7334
7335         crypto/sha512: Move AC_LIBOBJ invocations to module description.
7336         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
7337         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
7338
7339 2011-05-23  Bruno Haible  <bruno@clisp.org>
7340
7341         crypto/sha256: Move AC_LIBOBJ invocations to module description.
7342         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
7343         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
7344
7345 2011-05-23  Bruno Haible  <bruno@clisp.org>
7346
7347         crypto/sha1: Move AC_LIBOBJ invocations to module description.
7348         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
7349         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
7350
7351 2011-05-23  Bruno Haible  <bruno@clisp.org>
7352
7353         settime: Move AC_LIBOBJ invocations to module description.
7354         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
7355         * modules/settime (Makefile.am): Augment lib_SOURCES.
7356
7357 2011-05-23  Bruno Haible  <bruno@clisp.org>
7358
7359         savedir: Move AC_LIBOBJ invocations to module description.
7360         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7361         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7362
7363 2011-05-23  Bruno Haible  <bruno@clisp.org>
7364
7365         save-cwd: Move AC_LIBOBJ invocations to module description.
7366         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7367         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7368
7369 2011-05-23  Bruno Haible  <bruno@clisp.org>
7370
7371         same: Move AC_LIBOBJ invocations to module description.
7372         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7373         * modules/same (Makefile.am): Augment lib_SOURCES.
7374
7375 2011-05-23  Bruno Haible  <bruno@clisp.org>
7376
7377         safe-write: Move AC_LIBOBJ invocations to module description.
7378         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7379         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
7380         instead of gl_SAFE_WRITE.
7381         (Makefile.am): Augment lib_SOURCES.
7382
7383 2011-05-23  Bruno Haible  <bruno@clisp.org>
7384
7385         safe-read: Move AC_LIBOBJ invocations to module description.
7386         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
7387         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7388         of gl_SAFE_READ.
7389         (Makefile.am): Augment lib_SOURCES.
7390
7391 2011-05-23  Bruno Haible  <bruno@clisp.org>
7392
7393         safe-alloc: Move AC_LIBOBJ invocations to module description.
7394         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
7395         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
7396
7397 2011-05-23  Bruno Haible  <bruno@clisp.org>
7398
7399         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
7400         * m4/rijndael.m4: Remove file.
7401         * modules/crypto/rijndael (Files): Remove it.
7402         (configure.ac): Remove gl_RIJNDAEL call.
7403         (Makefile.am): Augment lib_SOURCES.
7404
7405 2011-05-23  Bruno Haible  <bruno@clisp.org>
7406
7407         readtokens: Move AC_LIBOBJ invocations to module description.
7408         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
7409         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
7410
7411 2011-05-23  Bruno Haible  <bruno@clisp.org>
7412
7413         read-file: Move AC_LIBOBJ invocations to module description.
7414         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
7415         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
7416         of gl_FUNC_READ_FILE.
7417         (Makefile.am): Augment lib_SOURCES.
7418
7419 2011-05-23  Bruno Haible  <bruno@clisp.org>
7420
7421         quotearg: Move AC_LIBOBJ invocations to module description.
7422         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
7423         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
7424
7425 2011-05-23  Bruno Haible  <bruno@clisp.org>
7426
7427         quote: Move AC_LIBOBJ invocations to module description.
7428         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
7429         * modules/quote (Makefile.am): Augment lib_SOURCES.
7430
7431 2011-05-23  Bruno Haible  <bruno@clisp.org>
7432
7433         posixver: Move AC_LIBOBJ invocations to module description.
7434         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
7435         * modules/posixver (Makefile.am): Augment lib_SOURCES.
7436
7437 2011-05-23  Bruno Haible  <bruno@clisp.org>
7438
7439         posixtm: Move AC_LIBOBJ invocations to module description.
7440         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
7441         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
7442
7443 2011-05-23  Bruno Haible  <bruno@clisp.org>
7444
7445         physmem: Move AC_LIBOBJ invocations to module description.
7446         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
7447         * modules/physmem (Makefile.am): Augment lib_SOURCES.
7448
7449 2011-05-23  Bruno Haible  <bruno@clisp.org>
7450
7451         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
7452         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
7453         invocation.
7454         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
7455
7456 2011-05-23  Bruno Haible  <bruno@clisp.org>
7457
7458         mpsort: Move AC_LIBOBJ invocations to module description.
7459         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
7460         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
7461
7462 2011-05-23  Bruno Haible  <bruno@clisp.org>
7463
7464         modechange: Move AC_LIBOBJ invocations to module description.
7465         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
7466         * modules/modechange (Makefile.am): Augment lib_SOURCES.
7467
7468 2011-05-23  Bruno Haible  <bruno@clisp.org>
7469
7470         mkdir-p: Move AC_LIBOBJ invocations to module description.
7471         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7472         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7473
7474 2011-05-23  Bruno Haible  <bruno@clisp.org>
7475
7476         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7477         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7478         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7479
7480 2011-05-23  Bruno Haible  <bruno@clisp.org>
7481
7482         mgetgroups: Move AC_LIBOBJ invocations to module description.
7483         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7484         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7485
7486 2011-05-23  Bruno Haible  <bruno@clisp.org>
7487
7488         memxor: Move AC_LIBOBJ invocations to module description.
7489         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7490         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7491
7492 2011-05-23  Bruno Haible  <bruno@clisp.org>
7493
7494         memcoll: Move AC_LIBOBJ invocations to module description.
7495         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7496         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7497
7498 2011-05-23  Bruno Haible  <bruno@clisp.org>
7499
7500         memcasecmp: Move AC_LIBOBJ invocations to module description.
7501         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7502         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7503
7504 2011-05-23  Bruno Haible  <bruno@clisp.org>
7505
7506         crypto/md5: Move AC_LIBOBJ invocations to module description.
7507         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7508         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7509
7510 2011-05-23  Bruno Haible  <bruno@clisp.org>
7511
7512         crypto/md4: Move AC_LIBOBJ invocations to module description.
7513         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7514         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7515
7516 2011-05-23  Bruno Haible  <bruno@clisp.org>
7517
7518         crypto/md2: Move AC_LIBOBJ invocations to module description.
7519         * m4/md2.m4: Remove file.
7520         * modules/crypto/md2 (Files): Remove it.
7521         (configure.ac): Remove gl_MD2 call.
7522         (Makefile.am): Augment lib_SOURCES.
7523
7524 2011-05-23  Bruno Haible  <bruno@clisp.org>
7525
7526         long-options: Move AC_LIBOBJ invocations to module description.
7527         * m4/long-options.m4: Remove file.
7528         * modules/long-options (Files): Remove it.
7529         (configure.ac): Remove gl_LONG_OPTIONS call.
7530         (Makefile.am): Augment lib_SOURCES.
7531
7532 2011-05-23  Bruno Haible  <bruno@clisp.org>
7533
7534         i-ring: Move AC_LIBOBJ invocations to module description.
7535         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7536         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7537
7538 2011-05-23  Bruno Haible  <bruno@clisp.org>
7539
7540         idcache: Move AC_LIBOBJ invocations to module description.
7541         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7542         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7543
7544 2011-05-23  Bruno Haible  <bruno@clisp.org>
7545
7546         human: Move AC_LIBOBJ invocations to module description.
7547         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7548         * modules/human (Makefile.am): Augment lib_SOURCES.
7549
7550 2011-05-23  Bruno Haible  <bruno@clisp.org>
7551
7552         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7553         * m4/hmac-sha1.m4: Remove file.
7554         * modules/crypto/hmac-sha1 (Files): Remove it.
7555         (configure.ac): Remove gl_HMAC_SHA1 call.
7556         (Makefile.am): Augment lib_SOURCES.
7557
7558 2011-05-23  Bruno Haible  <bruno@clisp.org>
7559
7560         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7561         * m4/hmac-md5.m4: Remove file.
7562         * modules/crypto/hmac-md5 (Files): Remove it.
7563         (configure.ac): Remove gl_HMAC_MD5 call.
7564         (Makefile.am): Augment lib_SOURCES.
7565
7566 2011-05-23  Bruno Haible  <bruno@clisp.org>
7567
7568         hash: Move AC_LIBOBJ invocations to module description.
7569         * m4/hash.m4: Remove file.
7570         * modules/hash (Files): Remove it.
7571         (configure.ac): Remove gl_HASH call.
7572         (Makefile.am): Augment lib_SOURCES.
7573
7574 2011-05-23  Bruno Haible  <bruno@clisp.org>
7575
7576         hard-locale: Move AC_LIBOBJ invocations to module description.
7577         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7578         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7579
7580 2011-05-23  Bruno Haible  <bruno@clisp.org>
7581
7582         getugroups: Move AC_LIBOBJ invocations to module description.
7583         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7584         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7585
7586 2011-05-23  Bruno Haible  <bruno@clisp.org>
7587
7588         gettime: Move AC_LIBOBJ invocations to module description.
7589         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7590         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7591
7592 2011-05-23  Bruno Haible  <bruno@clisp.org>
7593
7594         getndelim2: Move AC_LIBOBJ invocations to module description.
7595         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7596         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7597
7598 2011-05-23  Bruno Haible  <bruno@clisp.org>
7599
7600         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7601         * m4/gc-pbkdf2-sha1.m4: Remove file.
7602         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7603         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7604         (Makefile.am): Augment lib_SOURCES.
7605
7606 2011-05-23  Bruno Haible  <bruno@clisp.org>
7607
7608         fts: Move AC_LIBOBJ invocations to module description.
7609         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7610         * modules/fts (configure.ac): ... to here.
7611
7612 2011-05-23  Bruno Haible  <bruno@clisp.org>
7613
7614         file-type: Move AC_LIBOBJ invocations to module description.
7615         * m4/file-type.m4: Remove file.
7616         * modules/file-type (Files): Remove it.
7617         (configure.ac): Remove gl_FILE_TYPE call.
7618         (Makefile.am): Augment lib_SOURCES.
7619
7620 2011-05-23  Bruno Haible  <bruno@clisp.org>
7621
7622         filenamecat*: Respect rules for use of AC_LIBOBJ.
7623         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7624         Remove AC_LIBOBJ invocation.
7625         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7626         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7627
7628 2011-05-23  Bruno Haible  <bruno@clisp.org>
7629
7630         filemode: Move AC_LIBOBJ invocations to module description.
7631         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7632         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7633
7634 2011-05-23  Bruno Haible  <bruno@clisp.org>
7635
7636         openat-safer: Move AC_LIBOBJ invocations to module description.
7637         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7638         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7639
7640 2011-05-23  Bruno Haible  <bruno@clisp.org>
7641
7642         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7643         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7644         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7645
7646 2011-05-23  Bruno Haible  <bruno@clisp.org>
7647
7648         exclude: Move AC_LIBOBJ invocations to module description.
7649         * m4/exclude.m4: Remove file.
7650         * modules/exclude (Files): Remove it.
7651         (configure.ac): Remove gl_EXCLUDE call.
7652         (Makefile.am): Augment lib_SOURCES.
7653
7654 2011-05-23  Bruno Haible  <bruno@clisp.org>
7655
7656         dirname*: Respect rules for use of AC_LIBOBJ.
7657         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7658         invocations.
7659         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7660         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7661
7662 2011-05-23  Bruno Haible  <bruno@clisp.org>
7663
7664         dirent-safer: Move AC_LIBOBJ invocations to module description.
7665         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7666         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7667
7668 2011-05-23  Bruno Haible  <bruno@clisp.org>
7669
7670         crypto/des: Move AC_LIBOBJ invocations to module description.
7671         * m4/des.m4: Remove file.
7672         * modules/crypto/des (Files): Remove it.
7673         (configure.ac): Remove gl_DES call.
7674         (Makefile.am): Augment lib_SOURCES.
7675
7676 2011-05-23  Bruno Haible  <bruno@clisp.org>
7677
7678         cycle-check: Move AC_LIBOBJ invocations to module description.
7679         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7680         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7681
7682 2011-05-23  Bruno Haible  <bruno@clisp.org>
7683
7684         c-strtold: Move AC_LIBOBJ invocations to module description.
7685         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7686         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7687
7688 2011-05-23  Bruno Haible  <bruno@clisp.org>
7689
7690         c-strtod: Move AC_LIBOBJ invocations to module description.
7691         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7692         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7693
7694 2011-05-23  Bruno Haible  <bruno@clisp.org>
7695
7696         crc: Move AC_LIBOBJ invocations to module description.
7697         * m4/crc.m4: Remove file.
7698         * modules/crc (Files): Remove it.
7699         (configure.ac): Remove gl_CRC call.
7700         (Makefile.am): Augment lib_SOURCES.
7701
7702 2011-05-23  Bruno Haible  <bruno@clisp.org>
7703
7704         close-stream: Move AC_LIBOBJ invocations to module description.
7705         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7706         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7707
7708 2011-05-23  Bruno Haible  <bruno@clisp.org>
7709
7710         closeout: Move AC_LIBOBJ invocations to module description.
7711         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7712         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7713
7714 2011-05-23  Bruno Haible  <bruno@clisp.org>
7715
7716         closein: Move AC_LIBOBJ invocations to module description.
7717         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7718         * modules/closein (Makefile.am): Augment lib_SOURCES.
7719
7720 2011-05-23  Bruno Haible  <bruno@clisp.org>
7721
7722         cloexec: Move AC_LIBOBJ invocations to module description.
7723         * m4/cloexec.m4: Remove file.
7724         * modules/cloexec (Files): Remove it.
7725         (configure.ac): Remove gl_CLOEXEC call.
7726         (Makefile.am): Augment lib_SOURCES.
7727
7728 2011-05-23  Bruno Haible  <bruno@clisp.org>
7729
7730         check-version: Move AC_LIBOBJ invocations to module description.
7731         * m4/check-version.m4: Remove file.
7732         * modules/check-version (Files): Remove it.
7733         (configure.ac): Remove gl_CHECK_VERSION call.
7734         (Makefile.am): Augment lib_SOURCES.
7735
7736 2011-05-23  Bruno Haible  <bruno@clisp.org>
7737
7738         chdir-safer: Move AC_LIBOBJ invocations to module description.
7739         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7740         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7741
7742 2011-05-23  Bruno Haible  <bruno@clisp.org>
7743
7744         canonicalize: Move AC_LIBOBJ invocations to module description.
7745         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7746         AC_LIBOBJ invocation.
7747         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7748
7749 2011-05-23  Bruno Haible  <bruno@clisp.org>
7750
7751         canon-host: Move AC_LIBOBJ invocations to module description.
7752         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7753         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7754         instead of gl_CANON_HOST.
7755         (Makefile.am): Augment lib_SOURCES.
7756
7757 2011-05-23  Bruno Haible  <bruno@clisp.org>
7758
7759         backupfile: Move AC_LIBOBJ invocations to module description.
7760         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7761         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7762
7763 2011-05-23  Bruno Haible  <bruno@clisp.org>
7764
7765         argmatch: Move AC_LIBOBJ invocations to module description.
7766         * m4/argmatch.m4: Remove file.
7767         * modules/argmatch (Files): Remove it.
7768         (configure.ac): Remove gl_ARGMATCH call.
7769         (Makefile.am): Augment lib_SOURCES.
7770
7771 2011-05-23  Bruno Haible  <bruno@clisp.org>
7772
7773         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7774         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7775         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7776
7777 2011-05-23  Bruno Haible  <bruno@clisp.org>
7778
7779         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7780         * m4/arcfour.m4: Remove file.
7781         * modules/crypto/arcfour (Files): Remove it.
7782         (configure.ac): Remove gl_ARCFOUR call.
7783         (Makefile.am): Augment lib_SOURCES.
7784
7785 2011-05-22  Bruno Haible  <bruno@clisp.org>
7786
7787         write: Move AC_LIBOBJ invocations to module description.
7788         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7789         * modules/write (configure.ac): ... to here.
7790
7791 2011-05-22  Bruno Haible  <bruno@clisp.org>
7792
7793         wmemset: Move AC_LIBOBJ invocations to module description.
7794         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7795         here...
7796         * modules/wmemset (configure.ac): ... to here.
7797
7798 2011-05-22  Bruno Haible  <bruno@clisp.org>
7799
7800         wmemmove: Move AC_LIBOBJ invocations to module description.
7801         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7802         here...
7803         * modules/wmemmove (configure.ac): ... to here.
7804
7805 2011-05-22  Bruno Haible  <bruno@clisp.org>
7806
7807         wmemcpy: Move AC_LIBOBJ invocations to module description.
7808         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7809         here...
7810         * modules/wmemcpy (configure.ac): ... to here.
7811
7812 2011-05-22  Bruno Haible  <bruno@clisp.org>
7813
7814         wmemcmp: Move AC_LIBOBJ invocations to module description.
7815         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7816         here...
7817         * modules/wmemcmp (configure.ac): ... to here.
7818
7819 2011-05-22  Bruno Haible  <bruno@clisp.org>
7820
7821         wmemchr: Move AC_LIBOBJ invocations to module description.
7822         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7823         here...
7824         * modules/wmemchr (configure.ac): ... to here.
7825
7826 2011-05-22  Bruno Haible  <bruno@clisp.org>
7827
7828         wcswidth: Move AC_LIBOBJ invocations to module description.
7829         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7830         here...
7831         * modules/wcswidth (configure.ac): ... to here.
7832
7833 2011-05-22  Bruno Haible  <bruno@clisp.org>
7834
7835         wcwidth: Respect rules for use of AC_LIBOBJ.
7836         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7837         invocation from here...
7838         * modules/wcwidth (configure.ac): ... to here.
7839         (Depends-on): Update conditions.
7840
7841 2011-05-22  Bruno Haible  <bruno@clisp.org>
7842
7843         wctype: Move AC_LIBOBJ invocations to module description.
7844         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7845         invocation from here...
7846         * modules/wctype (configure.ac): ... to here.
7847         (Depends-on): Update conditions.
7848
7849 2011-05-22  Bruno Haible  <bruno@clisp.org>
7850
7851         wctrans: Move AC_LIBOBJ invocations to module description.
7852         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7853         invocation from here...
7854         * modules/wctrans (configure.ac): ... to here.
7855
7856 2011-05-22  Bruno Haible  <bruno@clisp.org>
7857
7858         wctomb: Move AC_LIBOBJ invocations to module description.
7859         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7860         invocations from here...
7861         * modules/wctomb (configure.ac): ... to here.
7862
7863 2011-05-22  Bruno Haible  <bruno@clisp.org>
7864
7865         wctob: Move AC_LIBOBJ invocations to module description.
7866         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7867         gl_PREREQ_WCTOB invocations from here...
7868         * modules/wctob (configure.ac): ... to here.
7869         (Depends-on): Update conditions.
7870
7871 2011-05-22  Bruno Haible  <bruno@clisp.org>
7872
7873         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7874         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7875         here...
7876         * modules/wcsxfrm (configure.ac): ... to here.
7877
7878 2011-05-22  Bruno Haible  <bruno@clisp.org>
7879
7880         wcstok: Move AC_LIBOBJ invocations to module description.
7881         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7882         * modules/wcstok (configure.ac): ... to here.
7883
7884 2011-05-22  Bruno Haible  <bruno@clisp.org>
7885
7886         wcsstr: Move AC_LIBOBJ invocations to module description.
7887         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7888         * modules/wcsstr (configure.ac): ... to here.
7889
7890 2011-05-22  Bruno Haible  <bruno@clisp.org>
7891
7892         wcsspn: Move AC_LIBOBJ invocations to module description.
7893         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7894         * modules/wcsspn (configure.ac): ... to here.
7895
7896 2011-05-22  Bruno Haible  <bruno@clisp.org>
7897
7898         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7899         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7900         gl_PREREQ_WCSRTOMBS invocations from here...
7901         * modules/wcsrtombs (configure.ac): ... to here.
7902
7903 2011-05-22  Bruno Haible  <bruno@clisp.org>
7904
7905         wcsrchr: Move AC_LIBOBJ invocations to module description.
7906         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7907         here...
7908         * modules/wcsrchr (configure.ac): ... to here.
7909
7910 2011-05-22  Bruno Haible  <bruno@clisp.org>
7911
7912         wcspbrk: Move AC_LIBOBJ invocations to module description.
7913         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7914         here...
7915         * modules/wcspbrk (configure.ac): ... to here.
7916
7917 2011-05-22  Bruno Haible  <bruno@clisp.org>
7918
7919         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7920         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7921         gl_PREREQ_WCSNRTOMBS invocations from here...
7922         * modules/wcsnrtombs (configure.ac): ... to here.
7923
7924 2011-05-22  Bruno Haible  <bruno@clisp.org>
7925
7926         wcsnlen: Move AC_LIBOBJ invocations to module description.
7927         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7928         here...
7929         * modules/wcsnlen (configure.ac): ... to here.
7930
7931 2011-05-22  Bruno Haible  <bruno@clisp.org>
7932
7933         wcsncpy: Move AC_LIBOBJ invocations to module description.
7934         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7935         here...
7936         * modules/wcsncpy (configure.ac): ... to here.
7937
7938 2011-05-22  Bruno Haible  <bruno@clisp.org>
7939
7940         wcsncmp: Move AC_LIBOBJ invocations to module description.
7941         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7942         here...
7943         * modules/wcsncmp (configure.ac): ... to here.
7944
7945 2011-05-22  Bruno Haible  <bruno@clisp.org>
7946
7947         wcsncat: Move AC_LIBOBJ invocations to module description.
7948         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7949         here...
7950         * modules/wcsncat (configure.ac): ... to here.
7951
7952 2011-05-22  Bruno Haible  <bruno@clisp.org>
7953
7954         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7955         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7956         from here...
7957         * modules/wcsncasecmp (configure.ac): ... to here.
7958
7959 2011-05-22  Bruno Haible  <bruno@clisp.org>
7960
7961         wcslen: Move AC_LIBOBJ invocations to module description.
7962         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7963         * modules/wcslen (configure.ac): ... to here.
7964
7965 2011-05-22  Bruno Haible  <bruno@clisp.org>
7966
7967         wcsdup: Move AC_LIBOBJ invocations to module description.
7968         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7969         * modules/wcsdup (configure.ac): ... to here.
7970
7971 2011-05-22  Bruno Haible  <bruno@clisp.org>
7972
7973         wcscspn: Move AC_LIBOBJ invocations to module description.
7974         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7975         here...
7976         * modules/wcscspn (configure.ac): ... to here.
7977
7978 2011-05-22  Bruno Haible  <bruno@clisp.org>
7979
7980         wcscpy: Move AC_LIBOBJ invocations to module description.
7981         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7982         * modules/wcscpy (configure.ac): ... to here.
7983
7984 2011-05-22  Bruno Haible  <bruno@clisp.org>
7985
7986         wcscoll: Move AC_LIBOBJ invocations to module description.
7987         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7988         here...
7989         * modules/wcscoll (configure.ac): ... to here.
7990
7991 2011-05-22  Bruno Haible  <bruno@clisp.org>
7992
7993         wcscmp: Move AC_LIBOBJ invocations to module description.
7994         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7995         * modules/wcscmp (configure.ac): ... to here.
7996
7997 2011-05-22  Bruno Haible  <bruno@clisp.org>
7998
7999         wcschr: Move AC_LIBOBJ invocations to module description.
8000         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
8001         * modules/wcschr (configure.ac): ... to here.
8002
8003 2011-05-22  Bruno Haible  <bruno@clisp.org>
8004
8005         wcscat: Move AC_LIBOBJ invocations to module description.
8006         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
8007         * modules/wcscat (configure.ac): ... to here.
8008
8009 2011-05-22  Bruno Haible  <bruno@clisp.org>
8010
8011         wcscasecmp: Move AC_LIBOBJ invocations to module description.
8012         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
8013         here...
8014         * modules/wcscasecmp (configure.ac): ... to here.
8015
8016 2011-05-22  Bruno Haible  <bruno@clisp.org>
8017
8018         wcrtomb: Move AC_LIBOBJ invocations to module description.
8019         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
8020         invocations from here...
8021         * modules/wcrtomb (configure.ac): ... to here.
8022
8023 2011-05-22  Bruno Haible  <bruno@clisp.org>
8024
8025         wcpncpy: Move AC_LIBOBJ invocations to module description.
8026         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
8027         here...
8028         * modules/wcpncpy (configure.ac): ... to here.
8029
8030 2011-05-22  Bruno Haible  <bruno@clisp.org>
8031
8032         wcpcpy: Move AC_LIBOBJ invocations to module description.
8033         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
8034         * modules/wcpcpy (configure.ac): ... to here.
8035
8036 2011-05-22  Bruno Haible  <bruno@clisp.org>
8037
8038         waitpid: Move AC_LIBOBJ invocations to module description.
8039         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
8040         invocation from here...
8041         * modules/waitpid (configure.ac): ... to here.
8042
8043 2011-05-22  Bruno Haible  <bruno@clisp.org>
8044
8045         utimensat: Move AC_LIBOBJ invocations to module description.
8046         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
8047         here...
8048         * modules/utimensat (configure.ac): ... to here.
8049
8050 2011-05-22  Bruno Haible  <bruno@clisp.org>
8051
8052         usleep: Move AC_LIBOBJ invocations to module description.
8053         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
8054         here...
8055         * modules/usleep (configure.ac): ... to here.
8056
8057 2011-05-22  Bruno Haible  <bruno@clisp.org>
8058
8059         unlockpt: Move AC_LIBOBJ invocations to module description.
8060         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
8061         gl_PREREQ_UNLOCKPT invocations from here...
8062         * modules/unlockpt (configure.ac): ... to here.
8063
8064 2011-05-22  Bruno Haible  <bruno@clisp.org>
8065
8066         unlink: Respect rules for use of AC_LIBOBJ.
8067         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
8068         * modules/unlink (configure.ac): ... to here.
8069
8070 2011-05-22  Bruno Haible  <bruno@clisp.org>
8071
8072         uname: Move AC_LIBOBJ invocations to module description.
8073         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
8074         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
8075         here...
8076         * modules/uname (configure.ac): ... to here.
8077
8078 2011-05-22  Bruno Haible  <bruno@clisp.org>
8079
8080         ttyname_r: Move AC_LIBOBJ invocations to module description.
8081         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
8082         gl_PREREQ_TTYNAME_R invocations from here...
8083         * modules/ttyname_r (configure.ac): ... to here.
8084
8085 2011-05-22  Bruno Haible  <bruno@clisp.org>
8086
8087         tsearch: Move AC_LIBOBJ invocations to module description.
8088         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
8089         invocations from here...
8090         * modules/tsearch (configure.ac): ... to here.
8091
8092 2011-05-22  Bruno Haible  <bruno@clisp.org>
8093
8094         towctrans: Move AC_LIBOBJ invocations to module description.
8095         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
8096         AC_LIBOBJ invocation from here...
8097         * modules/towctrans (configure.ac): ... to here.
8098
8099 2011-05-22  Bruno Haible  <bruno@clisp.org>
8100
8101         tmpfile: Move AC_LIBOBJ invocations to module description.
8102         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
8103         invocations from here...
8104         * modules/tmpfile (configure.ac): ... to here.
8105
8106 2011-05-22  Bruno Haible  <bruno@clisp.org>
8107
8108         times: Move AC_LIBOBJ invocations to module description.
8109         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
8110         * modules/times (configure.ac): ... to here.
8111
8112 2011-05-22  Bruno Haible  <bruno@clisp.org>
8113
8114         time_r: Move AC_LIBOBJ invocations to module description.
8115         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
8116         invocations from here...
8117         * modules/time_r (configure.ac): ... to here.
8118
8119 2011-05-22  Bruno Haible  <bruno@clisp.org>
8120
8121         timegm: Move AC_LIBOBJ invocations to module description.
8122         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
8123         invocations from here...
8124         * modules/timegm (configure.ac): ... to here.
8125
8126 2011-05-22  Bruno Haible  <bruno@clisp.org>
8127
8128         tcgetsid: Move AC_LIBOBJ invocations to module description.
8129         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
8130         and gl_PREREQ_TCGETSID invocations from here...
8131         * modules/tcgetsid (configure.ac): ... to here.
8132         (Depends-on): Update conditions.
8133
8134 2011-05-22  Bruno Haible  <bruno@clisp.org>
8135
8136         symlinkat: Move AC_LIBOBJ invocations to module description.
8137         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
8138         here...
8139         * modules/symlinkat (configure.ac): ... to here.
8140
8141 2011-05-22  Bruno Haible  <bruno@clisp.org>
8142
8143         symlink: Move AC_LIBOBJ invocations to module description.
8144         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
8145         here...
8146         * modules/symlink (configure.ac): ... to here.
8147
8148 2011-05-22  Bruno Haible  <bruno@clisp.org>
8149
8150         strverscmp: Move AC_LIBOBJ invocations to module description.
8151         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
8152         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
8153         from here...
8154         * modules/strverscmp (configure.ac): ... to here.
8155
8156 2011-05-22  Bruno Haible  <bruno@clisp.org>
8157
8158         strtok_r: Move AC_LIBOBJ invocations to module description.
8159         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
8160         and gl_PREREQ_STRTOK_R invocations from here...
8161         * modules/strtok_r (configure.ac): ... to here.
8162         (Depends-on): Update conditions.
8163
8164 2011-05-22  Bruno Haible  <bruno@clisp.org>
8165
8166         strtoumax: Move AC_LIBOBJ invocations to module description.
8167         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
8168         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
8169         from here...
8170         * modules/strtoumax (configure.ac): ... to here.
8171
8172 2011-05-22  Bruno Haible  <bruno@clisp.org>
8173
8174         strtoimax: Move AC_LIBOBJ invocations to module description.
8175         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
8176         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
8177         from here...
8178         * modules/strtoimax (configure.ac): ... to here.
8179
8180 2011-05-22  Bruno Haible  <bruno@clisp.org>
8181
8182         strtoull: Move AC_LIBOBJ invocations to module description.
8183         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
8184         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
8185         from here...
8186         * modules/strtoull (configure.ac): ... to here.
8187
8188 2011-05-22  Bruno Haible  <bruno@clisp.org>
8189
8190         strtoll: Move AC_LIBOBJ invocations to module description.
8191         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
8192         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
8193         here...
8194         * modules/strtoll (configure.ac): ... to here.
8195
8196 2011-05-22  Bruno Haible  <bruno@clisp.org>
8197
8198         strtoul: Move AC_LIBOBJ invocations to module description.
8199         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
8200         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8201         * modules/strtoul (configure.ac): ... to here.
8202
8203 2011-05-22  Bruno Haible  <bruno@clisp.org>
8204
8205         strtol: Move AC_LIBOBJ invocations to module description.
8206         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
8207         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8208         * modules/strtol (configure.ac): ... to here.
8209
8210 2011-05-22  Bruno Haible  <bruno@clisp.org>
8211
8212         strtod: Move AC_LIBOBJ invocations to module description.
8213         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
8214         invocations from here...
8215         * modules/strtod (configure.ac): ... to here.
8216
8217 2011-05-22  Bruno Haible  <bruno@clisp.org>
8218
8219         strstr*: Move AC_LIBOBJ invocations to module description.
8220         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
8221         invocations from here...
8222         * modules/strstr-simple (configure.ac): ... to here.
8223         * modules/strstr (configure.ac): ... and here.
8224
8225 2011-05-22  Bruno Haible  <bruno@clisp.org>
8226
8227         strsignal: Move AC_LIBOBJ invocations to module description.
8228         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
8229         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
8230         * modules/strsignal (configure.ac): ... to here.
8231         (Depends-on): Update conditions.
8232
8233 2011-05-22  Bruno Haible  <bruno@clisp.org>
8234
8235         strsep: Move AC_LIBOBJ invocations to module description.
8236         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
8237         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
8238         here...
8239         * modules/strsep (configure.ac): ... to here.
8240
8241 2011-05-22  Bruno Haible  <bruno@clisp.org>
8242
8243         strptime: Move AC_LIBOBJ invocations to module description.
8244         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
8245         gl_PREREQ_STRPTIME invocations from here...
8246         * modules/strptime (configure.ac): ... to here.
8247
8248 2011-05-22  Bruno Haible  <bruno@clisp.org>
8249
8250         strpbrk: Move AC_LIBOBJ invocations to module description.
8251         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
8252         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
8253         here...
8254         * modules/strpbrk (configure.ac): ... to here.
8255
8256 2011-05-22  Bruno Haible  <bruno@clisp.org>
8257
8258         strnlen: Move AC_LIBOBJ invocations to module description.
8259         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
8260         invocations from here...
8261         * modules/strnlen (configure.ac): ... to here.
8262
8263 2011-05-22  Bruno Haible  <bruno@clisp.org>
8264
8265         strndup: Move AC_LIBOBJ invocations to module description.
8266         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
8267         invocations from here...
8268         * modules/strndup (configure.ac): ... to here.
8269         (Depends-on): Update conditions.
8270
8271 2011-05-22  Bruno Haible  <bruno@clisp.org>
8272
8273         strncat: Move AC_LIBOBJ invocations to module description.
8274         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
8275         invocations from here...
8276         * modules/strncat (configure.ac): ... to here.
8277
8278 2011-05-22  Bruno Haible  <bruno@clisp.org>
8279
8280         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
8281         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
8282         invocations from here...
8283         * modules/strdup (configure.ac): ... to here.
8284         * modules/strdup-posix (configure.ac): ... and here.
8285
8286 2011-05-22  Bruno Haible  <bruno@clisp.org>
8287
8288         strcspn: Move AC_LIBOBJ invocations to module description.
8289         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
8290         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
8291         here...
8292         * modules/strcspn (configure.ac): ... to here.
8293
8294 2011-05-22  Bruno Haible  <bruno@clisp.org>
8295
8296         strchrnul: Move AC_LIBOBJ invocations to module description.
8297         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
8298         gl_PREREQ_STRCHRNUL invocations from here...
8299         * modules/strchrnul (configure.ac): ... to here.
8300
8301 2011-05-22  Bruno Haible  <bruno@clisp.org>
8302
8303         strcasestr*: Move AC_LIBOBJ invocations to module description.
8304         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8305         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
8306         * modules/strcasestr-simple (configure.ac): ... to here.
8307         * modules/strcasestr (configure.ac): ... and here.
8308
8309 2011-05-22  Bruno Haible  <bruno@clisp.org>
8310
8311         strcase: Move AC_LIBOBJ invocations to module description.
8312         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
8313         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
8314         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
8315         gl_PREREQ_STRNCASECMP invocations from here...
8316         * modules/strcase (configure.ac): ... to here.
8317
8318 2011-05-22  Bruno Haible  <bruno@clisp.org>
8319
8320         stpncpy: Move AC_LIBOBJ invocations to module description.
8321         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
8322         here...
8323         * modules/stpncpy (configure.ac): ... to here.
8324
8325 2011-05-22  Bruno Haible  <bruno@clisp.org>
8326
8327         stpcpy: Move AC_LIBOBJ invocations to module description.
8328         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
8329         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
8330         here...
8331         * modules/stpcpy (configure.ac): ... to here.
8332
8333 2011-05-21  Bruno Haible  <bruno@clisp.org>
8334
8335         stat: Move AC_LIBOBJ invocations to module description.
8336         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
8337         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
8338         here...
8339         * modules/stat (configure.ac): ... to here.
8340
8341 2011-05-21  Bruno Haible  <bruno@clisp.org>
8342
8343         sleep: Move AC_LIBOBJ invocations to module description.
8344         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
8345         * modules/sleep (configure.ac): ... to here.
8346
8347 2011-05-21  Bruno Haible  <bruno@clisp.org>
8348
8349         signbit: Move AC_LIBOBJ invocations to module description.
8350         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
8351         * modules/signbit (configure.ac): ... to here.
8352
8353 2011-05-21  Bruno Haible  <bruno@clisp.org>
8354
8355         sigprocmask: Move AC_LIBOBJ invocations to module description.
8356         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
8357         gl_PREREQ_SIGPROMASK invocations from here...
8358         * modules/sigprocmask (configure.ac): ... to here.
8359
8360 2011-05-21  Bruno Haible  <bruno@clisp.org>
8361
8362         sigaction: Move AC_LIBOBJ invocations to module description.
8363         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8364         gl_PREREQ_SIGACTION invocations from here...
8365         * modules/sigaction (configure.ac): ... to here.
8366
8367 2011-05-21  Bruno Haible  <bruno@clisp.org>
8368
8369         sig2str: Move AC_LIBOBJ invocations to module description.
8370         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8371         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8372         here...
8373         * modules/sig2str (configure.ac): ... to here.
8374
8375 2011-05-21  Bruno Haible  <bruno@clisp.org>
8376
8377         setlocale: Move AC_LIBOBJ invocations to module description.
8378         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8379         gl_PREREQ_SETLOCALE invocations from here...
8380         * modules/setlocale (configure.ac): ... to here.
8381
8382 2011-05-21  Bruno Haible  <bruno@clisp.org>
8383
8384         unsetenv: Move AC_LIBOBJ invocations to module description.
8385         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8386         and gl_PREREQ_UNSETENV invocations from here...
8387         * modules/unsetenv (configure.ac): ... to here.
8388         (Depends-on): Update.
8389
8390 2011-05-21  Bruno Haible  <bruno@clisp.org>
8391
8392         setenv: Move AC_LIBOBJ invocations to module description.
8393         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
8394         here...
8395         * modules/setenv (configure.ac): ... to here.
8396
8397 2011-05-21  Bruno Haible  <bruno@clisp.org>
8398
8399         selinux-h: Move AC_LIBOBJ invocations to module description.
8400         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
8401         AC_LIBOBJ invocation from here...
8402         * modules/selinux-h (configure.ac): ... to here.
8403
8404 2011-05-21  Bruno Haible  <bruno@clisp.org>
8405
8406         select: Respect rules for use of AC_LIBOBJ.
8407         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
8408         here...
8409         * modules/select (configure.ac): ... to here.
8410
8411 2011-05-21  Bruno Haible  <bruno@clisp.org>
8412
8413         scandir: Move AC_LIBOBJ invocations to module description.
8414         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
8415         invocations from here...
8416         * modules/scandir (configure.ac): ... to here.
8417
8418 2011-05-21  Bruno Haible  <bruno@clisp.org>
8419
8420         rpmatch: Move AC_LIBOBJ invocations to module description.
8421         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
8422         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
8423         here...
8424         * modules/rpmatch (configure.ac): ... to here.
8425
8426 2011-05-21  Bruno Haible  <bruno@clisp.org>
8427
8428         rmdir: Respect rules for use of AC_LIBOBJ.
8429         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
8430         * modules/rmdir (configure.ac): ... to here.
8431
8432 2011-05-21  Bruno Haible  <bruno@clisp.org>
8433
8434         renameat: Move AC_LIBOBJ invocations to module description.
8435         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
8436         here...
8437         * modules/renameat (configure.ac): ... to here.
8438
8439 2011-05-21  Bruno Haible  <bruno@clisp.org>
8440
8441         rename: Respect rules for use of AC_LIBOBJ.
8442         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
8443         here...
8444         * modules/rename (configure.ac): ... to here.
8445
8446 2011-05-21  Bruno Haible  <bruno@clisp.org>
8447
8448         remove: Move AC_LIBOBJ invocations to module description.
8449         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
8450         here...
8451         * modules/remove (configure.ac): ... to here.
8452
8453 2011-05-21  Bruno Haible  <bruno@clisp.org>
8454
8455         relocatable-lib: Move AC_LIBOBJ invocations to module description.
8456         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
8457         macro.
8458         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
8459         * modules/relocatable-lib (configure.ac): ... to here.
8460         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8461         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
8462
8463 2011-05-21  Bruno Haible  <bruno@clisp.org>
8464
8465         relocatable-prog: Move AC_LIBOBJ invocations to module description.
8466         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
8467         here...
8468         * modules/relocatable-prog (configure.ac): ... to here.
8469
8470 2011-05-21  Bruno Haible  <bruno@clisp.org>
8471
8472         regex: Move AC_LIBOBJ invocations to module description.
8473         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8474         invocations from here...
8475         * modules/regex (configure.ac): ... to here.
8476
8477 2011-05-21  Bruno Haible  <bruno@clisp.org>
8478
8479         realloc-*: Move AC_LIBOBJ invocations to module description.
8480         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8481         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8482         AC_LIBOBJ invocations from here...
8483         * modules/realloc-gnu (configure.ac): ... to here.
8484         * modules/realloc-posix (configure.ac): ... and here.
8485
8486 2011-05-21  Bruno Haible  <bruno@clisp.org>
8487
8488         readutmp: Move AC_LIBOBJ invocations to module description.
8489         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8490         * modules/readutmp (configure.ac): ... to here.
8491
8492 2011-05-21  Bruno Haible  <bruno@clisp.org>
8493
8494         readlinkat: Move AC_LIBOBJ invocations to module description.
8495         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8496         here...
8497         * modules/readlinkat (configure.ac): ... to here.
8498
8499 2011-05-21  Bruno Haible  <bruno@clisp.org>
8500
8501         readlink: Move AC_LIBOBJ invocations to module description.
8502         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8503         gl_PREREQ_READLINK invocations from here...
8504         * modules/readlink (configure.ac): ... to here.
8505
8506 2011-05-21  Bruno Haible  <bruno@clisp.org>
8507
8508         readline: Move AC_LIBOBJ invocations to module description.
8509         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8510         gl_PREREQ_READLINE invocations from here...
8511         * modules/readline (configure.ac): ... to here.
8512
8513 2011-05-21  Bruno Haible  <bruno@clisp.org>
8514
8515         read: Move AC_LIBOBJ invocations to module description.
8516         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8517         * modules/read (configure.ac): ... to here.
8518
8519 2011-05-21  Bruno Haible  <bruno@clisp.org>
8520
8521         rawmemchr: Move AC_LIBOBJ invocations to module description.
8522         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8523         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8524         from here...
8525         * modules/rawmemchr (configure.ac): ... to here.
8526
8527 2011-05-21  Bruno Haible  <bruno@clisp.org>
8528
8529         random_r: Move AC_LIBOBJ invocations to module description.
8530         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8531         gl_PREREQ_RANDOM_R invocations from here...
8532         * modules/random_r (configure.ac): ... to here.
8533
8534 2011-05-21  Bruno Haible  <bruno@clisp.org>
8535
8536         pwrite: Move AC_LIBOBJ invocations to module description.
8537         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8538         * modules/pwrite (configure.ac): ... to here.
8539
8540 2011-05-21  Bruno Haible  <bruno@clisp.org>
8541
8542         putenv: Move AC_LIBOBJ invocations to module description.
8543         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8544         * modules/putenv (configure.ac): ... to here.
8545
8546 2011-05-21  Bruno Haible  <bruno@clisp.org>
8547
8548         login_tty: Move AC_LIBOBJ invocations to module description.
8549         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8550         * modules/login_tty (configure.ac): ... to here.
8551
8552 2011-05-21  Bruno Haible  <bruno@clisp.org>
8553
8554         openpty: Move AC_LIBOBJ invocations to module description.
8555         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8556         * modules/openpty (configure.ac): ... to here.
8557
8558 2011-05-21  Bruno Haible  <bruno@clisp.org>
8559
8560         forkpty: Move AC_LIBOBJ invocations to module description.
8561         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8562         * modules/forkpty (configure.ac): ... to here.
8563
8564 2011-05-21  Bruno Haible  <bruno@clisp.org>
8565
8566         ptsname: Move AC_LIBOBJ invocations to module description.
8567         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8568         invocations from here...
8569         * modules/ptsname (configure.ac): ... to here.
8570
8571 2011-05-21  Bruno Haible  <bruno@clisp.org>
8572
8573         pread: Move AC_LIBOBJ invocations to module description.
8574         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8575         * modules/pread (configure.ac): ... to here.
8576
8577 2011-05-21  Bruno Haible  <bruno@clisp.org>
8578
8579         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8580         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8581         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8582         * modules/posix_spawn (configure.ac): ... to here.
8583         * modules/posix_spawnp (configure.ac): ... and here.
8584
8585 2011-05-21  Bruno Haible  <bruno@clisp.org>
8586
8587         popen: Move AC_LIBOBJ invocations to module description.
8588         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8589         invocations from here...
8590         * modules/popen (configure.ac): ... to here.
8591
8592 2011-05-21  Bruno Haible  <bruno@clisp.org>
8593
8594         poll: Move AC_LIBOBJ invocations to module description.
8595         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8596         invocations from here...
8597         * modules/poll (configure.ac): ... to here.
8598
8599 2011-05-21  Bruno Haible  <bruno@clisp.org>
8600
8601         pipe-posix: Move AC_LIBOBJ invocations to module description.
8602         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8603         * modules/pipe-posix (configure.ac): ... to here.
8604
8605 2011-05-21  Bruno Haible  <bruno@clisp.org>
8606
8607         openat: Respect rules for use of AC_LIBOBJ.
8608         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8609         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8610         * modules/openat (configure.ac): ... to here.
8611
8612 2011-05-21  Bruno Haible  <bruno@clisp.org>
8613
8614         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8615         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8616         invocation from here...
8617         * modules/obstack-printf (configure.ac): ... to here.
8618         * modules/obstack-printf-posix (configure.ac): ... and here.
8619
8620 2011-05-21  Bruno Haible  <bruno@clisp.org>
8621
8622         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8623         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8624         from here...
8625         * modules/nl_langinfo (configure.ac): ... to here.
8626
8627 2011-05-21  Bruno Haible  <bruno@clisp.org>
8628
8629         nanosleep: Move AC_LIBOBJ invocations to module description.
8630         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8631         gl_PREREQ_NANOSLEEP invocations from here...
8632         * modules/nanosleep (configure.ac): ... to here.
8633
8634 2011-05-21  Bruno Haible  <bruno@clisp.org>
8635
8636         mountlist: Move AC_LIBOBJ invocations to module description.
8637         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8638         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8639         * modules/mountlist (configure.ac): ... to here.
8640
8641 2011-05-21  Bruno Haible  <bruno@clisp.org>
8642
8643         mktime: Respect rules for use of AC_LIBOBJ.
8644         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8645         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8646         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8647         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8648         * modules/mktime (configure.ac): ... to here.
8649         * modules/mktime-internal (configure.ac): ... and here.
8650         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8651
8652 2011-05-21  Bruno Haible  <bruno@clisp.org>
8653
8654         mkstemps: Move AC_LIBOBJ invocations to module description.
8655         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8656         here...
8657         * modules/mkstemps (configure.ac): ... to here.
8658
8659 2011-05-21  Bruno Haible  <bruno@clisp.org>
8660
8661         mkstemp: Move AC_LIBOBJ invocations to module description.
8662         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8663         gl_PREREQ_MKSTEMP invocations from here...
8664         * modules/mkstemp (configure.ac): ... to here.
8665
8666 2011-05-21  Bruno Haible  <bruno@clisp.org>
8667
8668         mkostemps: Move AC_LIBOBJ invocations to module description.
8669         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8670         here...
8671         * modules/mkostemps (configure.ac): ... to here.
8672
8673 2011-05-21  Bruno Haible  <bruno@clisp.org>
8674
8675         mkostemp: Move AC_LIBOBJ invocations to module description.
8676         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8677         gl_PREREQ_MKOSTEMP invocations from here...
8678         * modules/mkostemp (configure.ac): ... to here.
8679
8680 2011-05-21  Bruno Haible  <bruno@clisp.org>
8681
8682         mknod: Move AC_LIBOBJ invocations to module description.
8683         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8684         * modules/mknod (configure.ac): ... to here.
8685
8686 2011-05-21  Bruno Haible  <bruno@clisp.org>
8687
8688         mkfifoat: Move AC_LIBOBJ invocations to module description.
8689         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8690         here...
8691         * modules/mkfifoat (configure.ac): ... to here.
8692
8693 2011-05-21  Bruno Haible  <bruno@clisp.org>
8694
8695         mkfifo: Respect rules for use of AC_LIBOBJ.
8696         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8697         here...
8698         * modules/mkfifo (configure.ac): ... to here.
8699
8700 2011-05-21  Bruno Haible  <bruno@clisp.org>
8701
8702         mkdtemp: Move AC_LIBOBJ invocations to module description.
8703         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8704         invocations from here...
8705         * modules/mkdtemp (configure.ac): ... to here.
8706
8707 2011-05-21  Bruno Haible  <bruno@clisp.org>
8708
8709         mkdir: Move AC_LIBOBJ invocations to module description.
8710         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8711         * modules/mkdir (configure.ac): ... to here.
8712
8713 2011-05-21  Bruno Haible  <bruno@clisp.org>
8714
8715         memset: Move AC_LIBOBJ invocations to module description.
8716         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8717         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8718         here...
8719         * modules/memset (configure.ac): ... to here.
8720
8721 2011-05-21  Bruno Haible  <bruno@clisp.org>
8722
8723         memrchr: Move AC_LIBOBJ invocations to module description.
8724         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8725         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8726         here...
8727         * modules/memrchr (configure.ac): ... to here.
8728
8729 2011-05-21  Bruno Haible  <bruno@clisp.org>
8730
8731         mempcpy: Move AC_LIBOBJ invocations to module description.
8732         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8733         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8734         here...
8735         * modules/mempcpy (configure.ac): ... to here.
8736
8737 2011-05-21  Bruno Haible  <bruno@clisp.org>
8738
8739         memmove: Move AC_LIBOBJ invocations to module description.
8740         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8741         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8742         here...
8743         * modules/memmove (configure.ac): ... to here.
8744
8745 2011-05-21  Bruno Haible  <bruno@clisp.org>
8746
8747         memmem*: Move AC_LIBOBJ invocations to module description.
8748         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8749         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8750         here...
8751         (gl_FUNC_MEMMEM): ... and here...
8752         * modules/memmem-simple (configure.ac): ... to here.
8753         * modules/memmem (configure.ac): ... and here.
8754
8755 2011-05-21  Bruno Haible  <bruno@clisp.org>
8756
8757         memcpy: Move AC_LIBOBJ invocations to module description.
8758         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8759         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8760         here...
8761         * modules/memcpy (configure.ac): ... to here.
8762
8763 2011-05-21  Bruno Haible  <bruno@clisp.org>
8764
8765         memcmp: Simplify autoconf macro.
8766         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8767         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8768         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8769
8770 2011-05-21  Bruno Haible  <bruno@clisp.org>
8771
8772         memcmp: Move AC_LIBOBJ invocations to module description.
8773         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8774         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8775         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8776         * modules/memcmp (configure.ac): ... to here.
8777         (Depends-on): Update conditions.
8778
8779 2011-05-21  Bruno Haible  <bruno@clisp.org>
8780
8781         memchr: Respect rules for use of AC_LIBOBJ.
8782         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8783         invocations from here...
8784         * modules/memchr (configure.ac): ... to here.
8785
8786 2011-05-21  Bruno Haible  <bruno@clisp.org>
8787
8788         mbtowc: Move AC_LIBOBJ invocations to module description.
8789         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8790         invocations from here...
8791         * modules/mbtowc (configure.ac): ... to here.
8792
8793 2011-05-21  Bruno Haible  <bruno@clisp.org>
8794
8795         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8796         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8797         gl_PREREQ_MBSRTOWCS invocations from here...
8798         * modules/mbsrtowcs (configure.ac): ... to here.
8799
8800 2011-05-21  Bruno Haible  <bruno@clisp.org>
8801
8802         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8803         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8804         gl_PREREQ_MBSNRTOWCS invocations from here...
8805         * modules/mbsnrtowcs (configure.ac): ... to here.
8806
8807 2011-05-21  Bruno Haible  <bruno@clisp.org>
8808
8809         mbsinit: Move AC_LIBOBJ invocations to module description.
8810         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8811         invocations from here...
8812         * modules/mbsinit (configure.ac): ... to here.
8813
8814 2011-05-21  Bruno Haible  <bruno@clisp.org>
8815
8816         mbrlen: Move AC_LIBOBJ invocations to module description.
8817         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8818         invocations from here...
8819         * modules/mbrlen (configure.ac): ... to here.
8820
8821 2011-05-21  Bruno Haible  <bruno@clisp.org>
8822
8823         mbrtowc: Respect rules for use of AC_LIBOBJ.
8824         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8825         invocations from here...
8826         * modules/mbrtowc (configure.ac): ... to here.
8827
8828 2011-05-21  Bruno Haible  <bruno@clisp.org>
8829
8830         malloc-*: Move AC_LIBOBJ invocations to module description.
8831         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8832         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8833         AC_LIBOBJ invocations from here...
8834         * modules/malloc-gnu (configure.ac): ... to here.
8835         * modules/malloc-posix (configure.ac): ... and here.
8836
8837 2011-05-21  Bruno Haible  <bruno@clisp.org>
8838
8839         lstat, openat: Respect rules for use of AC_LIBOBJ.
8840         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8841         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8842         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8843         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8844         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8845         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8846         here.
8847         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8848
8849 2011-05-21  Bruno Haible  <bruno@clisp.org>
8850
8851         lseek: Move AC_LIBOBJ invocations to module description.
8852         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8853         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8854         * modules/lseek (configure.ac): ... to here.
8855
8856 2011-05-21  Bruno Haible  <bruno@clisp.org>
8857
8858         linkat: Move AC_LIBOBJ invocations to module description.
8859         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8860         here...
8861         * modules/linkat (configure.ac): ... to here.
8862
8863 2011-05-21  Bruno Haible  <bruno@clisp.org>
8864
8865         link: Respect rules for use of AC_LIBOBJ.
8866         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8867         * modules/link (configure.ac): ... to here.
8868
8869 2011-05-21  Bruno Haible  <bruno@clisp.org>
8870
8871         lchown: Move AC_LIBOBJ invocations to module description.
8872         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8873         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8874         * modules/lchown (configure.ac): ... to here.
8875
8876 2011-05-21  Bruno Haible  <bruno@clisp.org>
8877
8878         iswctype: Move AC_LIBOBJ invocations to module description.
8879         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8880         here...
8881         * modules/iswctype (configure.ac): ... to here.
8882
8883 2011-05-21  Bruno Haible  <bruno@clisp.org>
8884
8885         iswblank: Move AC_LIBOBJ invocations to module description.
8886         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8887         here...
8888         * modules/iswblank (configure.ac): ... to here.
8889
8890 2011-05-21  Bruno Haible  <bruno@clisp.org>
8891
8892         atanl: Move AC_LIBOBJ invocations to module description.
8893         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8894         * modules/atanl (configure.ac): ... to here.
8895
8896 2011-05-21  Bruno Haible  <bruno@clisp.org>
8897
8898         acosl: Move AC_LIBOBJ invocations to module description.
8899         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8900         * modules/acosl (configure.ac): ... to here.
8901
8902 2011-05-21  Bruno Haible  <bruno@clisp.org>
8903
8904         asinl: Respect rules for use of AC_LIBOBJ.
8905         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8906         * modules/asinl (configure.ac): ... to here.
8907
8908 2011-05-21  Bruno Haible  <bruno@clisp.org>
8909
8910         tanl: Move AC_LIBOBJ invocations to module description.
8911         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8912         * modules/tanl (configure.ac): ... to here.
8913
8914 2011-05-21  Bruno Haible  <bruno@clisp.org>
8915
8916         cosl: Move AC_LIBOBJ invocations to module description.
8917         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8918         * modules/cosl (configure.ac): ... to here.
8919
8920 2011-05-21  Bruno Haible  <bruno@clisp.org>
8921
8922         sinl: Move AC_LIBOBJ invocations to module description.
8923         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8924         * modules/sinl (configure.ac): ... to here.
8925
8926 2011-05-21  Bruno Haible  <bruno@clisp.org>
8927
8928         logl: Move AC_LIBOBJ invocations to module description.
8929         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8930         * modules/logl (configure.ac): ... to here.
8931
8932 2011-05-21  Bruno Haible  <bruno@clisp.org>
8933
8934         expl: Move AC_LIBOBJ invocations to module description.
8935         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8936         * modules/expl (configure.ac): ... to here.
8937
8938 2011-05-21  Bruno Haible  <bruno@clisp.org>
8939
8940         roundl: Move AC_LIBOBJ invocations to module description.
8941         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8942         * modules/roundl (configure.ac): ... to here.
8943
8944 2011-05-21  Bruno Haible  <bruno@clisp.org>
8945
8946         round: Move AC_LIBOBJ invocations to module description.
8947         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8948         * modules/round (configure.ac): ... to here.
8949
8950 2011-05-21  Bruno Haible  <bruno@clisp.org>
8951
8952         roundf: Move AC_LIBOBJ invocations to module description.
8953         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8954         * modules/roundf (configure.ac): ... to here.
8955
8956 2011-05-21  Bruno Haible  <bruno@clisp.org>
8957
8958         truncl: Move AC_LIBOBJ invocations to module description.
8959         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8960         * modules/truncl (configure.ac): ... to here.
8961
8962 2011-05-21  Bruno Haible  <bruno@clisp.org>
8963
8964         trunc: Move AC_LIBOBJ invocations to module description.
8965         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8966         * modules/trunc (configure.ac): ... to here.
8967
8968 2011-05-21  Bruno Haible  <bruno@clisp.org>
8969
8970         truncf: Move AC_LIBOBJ invocations to module description.
8971         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8972         * modules/truncf (configure.ac): ... to here.
8973
8974 2011-05-21  Bruno Haible  <bruno@clisp.org>
8975
8976         ceill: Move AC_LIBOBJ invocations to module description.
8977         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8978         * modules/ceill (configure.ac): ... to here.
8979
8980 2011-05-21  Bruno Haible  <bruno@clisp.org>
8981
8982         ceil: Move AC_LIBOBJ invocations to module description.
8983         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8984         * modules/ceil (configure.ac): ... to here.
8985
8986 2011-05-21  Bruno Haible  <bruno@clisp.org>
8987
8988         ceilf: Move AC_LIBOBJ invocations to module description.
8989         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8990         * modules/ceilf (configure.ac): ... to here.
8991
8992 2011-05-21  Bruno Haible  <bruno@clisp.org>
8993
8994         floorl: Respect rules for use of AC_LIBOBJ.
8995         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8996         * modules/floorl (configure.ac): ... to here.
8997
8998 2011-05-21  Bruno Haible  <bruno@clisp.org>
8999
9000         floor: Respect rules for use of AC_LIBOBJ.
9001         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
9002         * modules/floor (configure.ac): ... to here.
9003
9004 2011-05-21  Bruno Haible  <bruno@clisp.org>
9005
9006         floorf: Move AC_LIBOBJ invocations to module description.
9007         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
9008         * modules/floorf (configure.ac): ... to here.
9009
9010 2011-05-20  Bruno Haible  <bruno@clisp.org>
9011
9012         sqrtl: Respect rules for use of AC_LIBOBJ.
9013         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
9014         * modules/sqrtl (configure.ac): ... to here.
9015
9016 2011-05-20  Bruno Haible  <bruno@clisp.org>
9017
9018         ldexpl: Respect rules for use of AC_LIBOBJ.
9019         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
9020         * modules/ldexpl (configure.ac): ... to here.
9021
9022 2011-05-20  Bruno Haible  <bruno@clisp.org>
9023
9024         frexpl*: Respect rules for use of AC_LIBOBJ.
9025         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
9026         invocation from here...
9027         * modules/frexpl (configure.ac): ... to here.
9028         * modules/frexpl-nolibm (configure.ac): ... and here.
9029
9030 2011-05-20  Bruno Haible  <bruno@clisp.org>
9031
9032         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
9033         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
9034         invocation from here...
9035         * modules/frexp (configure.ac): ... to here.
9036         * modules/frexp-nolibm (configure.ac): ... and here.
9037
9038 2011-05-20  Bruno Haible  <bruno@clisp.org>
9039
9040         isnan: Respect rules for use of AC_LIBOBJ.
9041         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
9042         invocations here.
9043         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
9044         REPLACE_ISNAN.
9045         * modules/isnand (configure.ac): Likewise.
9046         * modules/isnanl (configure.ac): Likewise.
9047
9048 2011-05-20  Bruno Haible  <bruno@clisp.org>
9049
9050         isnanl*: Respect rules for use of AC_LIBOBJ.
9051         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
9052         invocation from here...
9053         * modules/isnanl (configure.ac): ... to here.
9054         * modules/isnanl-nolibm (configure.ac): ... and here.
9055
9056 2011-05-20  Bruno Haible  <bruno@clisp.org>
9057
9058         isnand*: Move AC_LIBOBJ invocations to module description.
9059         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
9060         invocation from here...
9061         * modules/isnand (configure.ac): ... to here.
9062         * modules/isnand-nolibm (configure.ac): ... and here.
9063
9064 2011-05-20  Bruno Haible  <bruno@clisp.org>
9065
9066         isnanf*: Move AC_LIBOBJ invocations to module description.
9067         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
9068         invocation from here...
9069         * modules/isnanf (configure.ac): ... to here.
9070         * modules/isnanf-nolibm (configure.ac): ... and here.
9071
9072 2011-05-20  Bruno Haible  <bruno@clisp.org>
9073
9074         isnan*: Separate the AC_LIBOBJ invocations.
9075         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
9076         AC_LIBOBJ invocation.
9077         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
9078         here.
9079         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
9080         AC_LIBOBJ invocation.
9081         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
9082         here.
9083         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
9084         AC_LIBOBJ invocation.
9085         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
9086         here.
9087         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
9088
9089 2011-05-08  Bruno Haible  <bruno@clisp.org>
9090
9091         isinf: Move AC_LIBOBJ invocations to module description.
9092         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
9093         * modules/isinf (configure.ac): ... to here.
9094
9095 2011-05-08  Bruno Haible  <bruno@clisp.org>
9096
9097         isfinite: Move AC_LIBOBJ invocations to module description.
9098         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
9099         * modules/isfinite (configure.ac): ... to here.
9100
9101 2011-05-08  Bruno Haible  <bruno@clisp.org>
9102
9103         isblank: Move AC_LIBOBJ invocations to module description.
9104         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
9105         here...
9106         * modules/isblank (configure.ac): ... to here.
9107
9108 2011-05-08  Bruno Haible  <bruno@clisp.org>
9109
9110         isapipe: Move AC_LIBOBJ invocations to module description.
9111         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
9112         gl_PREREQ_ISAPIPE invocations from here...
9113         * modules/isapipe (configure.ac): ... to here.
9114         (Depends-on): Update condition.
9115
9116 2011-05-08  Bruno Haible  <bruno@clisp.org>
9117
9118         ioctl: Move AC_LIBOBJ invocations to module description.
9119         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
9120         invocations from here...
9121         * modules/ioctl (configure.ac): ... to here.
9122         (Depends-on): Update condition.
9123
9124 2011-05-08  Bruno Haible  <bruno@clisp.org>
9125
9126         imaxdiv: Move AC_LIBOBJ invocations to module description.
9127         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
9128         invocations from here...
9129         * modules/imaxdiv (configure.ac): ... to here.
9130
9131 2011-05-08  Bruno Haible  <bruno@clisp.org>
9132
9133         imaxabs: Move AC_LIBOBJ invocations to module description.
9134         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
9135         invocations from here...
9136         * modules/imaxabs (configure.ac): ... to here.
9137
9138 2011-05-08  Bruno Haible  <bruno@clisp.org>
9139
9140         getaddrinfo: Move AC_LIBOBJ invocations to module description.
9141         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
9142         AC_LIBOBJ invocations from here...
9143         * modules/getaddrinfo (configure.ac): ... to here.
9144         (Depends-on): Add conditions.
9145
9146 2011-05-08  Bruno Haible  <bruno@clisp.org>
9147
9148         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9149         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
9150         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9151         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
9152         (gl_PREREQ_INET_PTON): ... from here.
9153         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
9154         gl_PREREQ_INET_PTON here.
9155         (Depends-on): Update condition.
9156
9157 2011-05-08  Bruno Haible  <bruno@clisp.org>
9158
9159         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9160         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
9161         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9162         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
9163         (gl_PREREQ_INET_NTOP): ... from here.
9164         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
9165         gl_PREREQ_INET_NTOP here.
9166         (Depends-on): Update condition.
9167
9168 2011-05-08  Bruno Haible  <bruno@clisp.org>
9169
9170         iconv_open: Move AC_LIBOBJ invocations to module description.
9171         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
9172         AC_LIBOBJ invocations from here...
9173         * modules/iconv_open (configure.ac): ... to here.
9174
9175 2011-05-08  Bruno Haible  <bruno@clisp.org>
9176
9177         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
9178         If module 'iconv_open' is among the main modules and module
9179         'iconv_open-utf' is among the tests dependencies, then
9180         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
9181         return the special iconv_t values. Therefore iconv() and iconv_close()
9182         must support these special iconv_t values, already in lib, not only in
9183         tests.
9184         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
9185         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
9186         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
9187         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
9188         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
9189         (Depends-on): Add the dependencies of iconv_open-utf.
9190         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
9191         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
9192         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
9193
9194 2011-05-08  Bruno Haible  <bruno@clisp.org>
9195
9196         group-member: Move AC_LIBOBJ invocations to module description.
9197         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
9198         gl_PREREQ_GROUP_MEMBER invocations from here...
9199         * modules/group-member (configure.ac): ... to here.
9200
9201 2011-05-08  Bruno Haible  <bruno@clisp.org>
9202
9203         grantpt: Move AC_LIBOBJ invocations to module description.
9204         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
9205         invocations from here...
9206         * modules/grantpt (configure.ac): ... to here.
9207
9208 2011-05-08  Bruno Haible  <bruno@clisp.org>
9209
9210         glob: Move AC_LIBOBJ invocations to module description.
9211         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
9212         from here...
9213         * modules/glob (configure.ac): ... to here.
9214
9215 2011-05-08  Bruno Haible  <bruno@clisp.org>
9216
9217         getusershell: Move AC_LIBOBJ invocations to module description.
9218         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
9219         Move AC_LIBOBJ invocation from here...
9220         * modules/getusershell (configure.ac): ... to here.
9221         (Depends-on): Update condition.
9222
9223 2011-05-08  Bruno Haible  <bruno@clisp.org>
9224
9225         gettimeofday: Move AC_LIBOBJ invocations to module description.
9226         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
9227         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
9228         gl_PREREQ_GETTIMEOFDAY invocations from here...
9229         * modules/gettimeofday (configure.ac): ... to here.
9230
9231 2011-05-08  Bruno Haible  <bruno@clisp.org>
9232
9233         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
9234         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
9235         just gl_FUNC_TZSET.
9236         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
9237         (gl_FUNC_TZSET_CLOBBER): Remove actions.
9238         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
9239         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
9240
9241 2011-05-08  Bruno Haible  <bruno@clisp.org>
9242
9243         getsubopt: Move AC_LIBOBJ invocations to module description.
9244         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
9245         gl_PREREQ_GETSUBOPT invocations from here...
9246         * modules/getsubopt (configure.ac): ... to here.
9247
9248 2011-05-08  Bruno Haible  <bruno@clisp.org>
9249
9250         getpass-gnu: Move AC_LIBOBJ invocations to module description.
9251         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
9252         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
9253         * modules/getpass-gnu (configure.ac): ... to here.
9254
9255 2011-05-08  Bruno Haible  <bruno@clisp.org>
9256
9257         getpass: Move AC_LIBOBJ invocations to module description.
9258         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
9259         gl_PREREQ_GETPASS invocations from here...
9260         * modules/getpass (configure.ac): ... to here.
9261
9262 2011-05-08  Bruno Haible  <bruno@clisp.org>
9263
9264         getpagesize: Move AC_LIBOBJ invocations to module description.
9265         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
9266         from here...
9267         * modules/getpagesize (configure.ac): ... to here.
9268
9269 2011-05-08  Bruno Haible  <bruno@clisp.org>
9270
9271         getopt: Move AC_LIBOBJ invocations to module description.
9272         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
9273         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
9274         invocations from here...
9275         * modules/getopt-gnu (configure.ac): ... to here.
9276         * modules/getopt-posix (configure.ac): ... and here.
9277         (Depends-on): Update condition.
9278
9279 2011-05-08  Bruno Haible  <bruno@clisp.org>
9280
9281         getopt, argp: Respect rules for use of AC_LIBOBJ.
9282         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
9283         (gl_REPLACE_GETOPT_ALWAYS): New macro.
9284         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
9285         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
9286
9287 2011-05-08  Bruno Haible  <bruno@clisp.org>
9288
9289         getlogin_r: Move AC_LIBOBJ invocations to module description.
9290         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
9291         gl_PREREQ_GETLOGIN_R invocations from here...
9292         * modules/getlogin_r (configure.ac): ... to here.
9293
9294 2011-05-08  Bruno Haible  <bruno@clisp.org>
9295
9296         getlogin: Move AC_LIBOBJ invocations to module description.
9297         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
9298         here...
9299         * modules/getlogin (configure.ac): ... to here.
9300
9301 2011-05-08  Bruno Haible  <bruno@clisp.org>
9302
9303         getloadavg: Move AC_LIBOBJ invocations to module description.
9304         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
9305         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
9306         * modules/getloadavg (configure.ac): ... to here.
9307
9308 2011-05-08  Bruno Haible  <bruno@clisp.org>
9309
9310         gethrxtime: Move AC_LIBOBJ invocations to module description.
9311         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
9312         LIB_GETHRXTIME from here...
9313         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
9314         invocations from here...
9315         * modules/gethrxtime (configure.ac): ... to here.
9316
9317 2011-05-08  Bruno Haible  <bruno@clisp.org>
9318
9319         gethostname: Move AC_LIBOBJ invocations to module description.
9320         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
9321         gl_PREREQ_GETHOSTNAME invocations from here...
9322         * modules/gethostname (configure.ac): ... to here.
9323
9324 2011-05-08  Bruno Haible  <bruno@clisp.org>
9325
9326         getgroups: Move AC_LIBOBJ invocations to module description.
9327         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
9328         here...
9329         * modules/getgroups (configure.ac): ... to here.
9330
9331 2011-05-08  Bruno Haible  <bruno@clisp.org>
9332
9333         getdtablesize: Move AC_LIBOBJ invocations to module description.
9334         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
9335         invocation from here...
9336         * modules/getdtablesize (configure.ac): ... to here.
9337
9338 2011-05-08  Bruno Haible  <bruno@clisp.org>
9339
9340         getdomainname: Move AC_LIBOBJ invocations to module description.
9341         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
9342         gl_PREREQ_GETDOMAINNAME invocations from here...
9343         * modules/getdomainname (configure.ac): ... to here.
9344
9345 2011-05-08  Bruno Haible  <bruno@clisp.org>
9346
9347         getline: Move AC_LIBOBJ invocations to module description.
9348         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
9349         invocations from here...
9350         * modules/getline (configure.ac): ... to here.
9351
9352 2011-05-08  Bruno Haible  <bruno@clisp.org>
9353
9354         getline: Simplify.
9355         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
9356         It's already handled through the module dependency.
9357
9358 2011-05-08  Bruno Haible  <bruno@clisp.org>
9359
9360         getdelim: Move AC_LIBOBJ invocations to module description.
9361         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9362         and gl_PREREQ_GETDELIM invocations from here...
9363         * modules/getdelim (configure.ac): ... to here.
9364         (Depends-on): Fix condition.
9365
9366 2011-05-08  Bruno Haible  <bruno@clisp.org>
9367
9368         getcwd: Move AC_LIBOBJ invocations to module description.
9369         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9370         invocations from here...
9371         * modules/getcwd (configure.ac): ... to here.
9372
9373 2011-05-08  Bruno Haible  <bruno@clisp.org>
9374
9375         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9376         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9377         here...
9378         * modules/getcwd-lgpl (configure.ac): ... to here.
9379
9380 2011-05-07  Bruno Haible  <bruno@clisp.org>
9381
9382         crypto/gc: Move AC_LIBOBJ invocations to module description.
9383         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9384         * modules/crypto/gc (configure.ac): ... to here.
9385
9386 2011-05-07  Bruno Haible  <bruno@clisp.org>
9387
9388         fwriting: Move AC_LIBOBJ invocations to module description.
9389         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9390         here...
9391         * modules/fwriting (configure.ac): ... to here.
9392
9393 2011-05-07  Bruno Haible  <bruno@clisp.org>
9394
9395         fwritable: Move AC_LIBOBJ invocations to module description.
9396         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
9397         here...
9398         * modules/fwritable (configure.ac): ... to here.
9399
9400 2011-05-07  Bruno Haible  <bruno@clisp.org>
9401
9402         futimens: Move AC_LIBOBJ invocations to module description.
9403         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
9404         here...
9405         * modules/futimens (configure.ac): ... to here.
9406
9407 2011-05-07  Bruno Haible  <bruno@clisp.org>
9408
9409         ftruncate: Move AC_LIBOBJ invocations to module description.
9410         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
9411         gl_PREREQ_FTRUNCATE invocations from here...
9412         * modules/ftruncate (configure.ac): ... to here.
9413
9414 2011-05-07  Bruno Haible  <bruno@clisp.org>
9415
9416         fsync: Move AC_LIBOBJ invocations to module description.
9417         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
9418         invocations from here...
9419         * modules/fsync (configure.ac): ... to here.
9420
9421 2011-05-07  Bruno Haible  <bruno@clisp.org>
9422
9423         fsusage: Move AC_LIBOBJ invocations to module description.
9424         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
9425         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
9426         * modules/fsusage (configure.ac): ... to here.
9427
9428 2011-05-07  Bruno Haible  <bruno@clisp.org>
9429
9430         freopen: Move AC_LIBOBJ invocations to module description.
9431         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
9432         invocations from here...
9433         * modules/freopen (configure.ac): ... to here.
9434
9435 2011-05-07  Bruno Haible  <bruno@clisp.org>
9436
9437         free: Move AC_LIBOBJ invocations to module description.
9438         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
9439         invocations from here...
9440         * modules/free (configure.ac): ... to here.
9441
9442 2011-05-07  Bruno Haible  <bruno@clisp.org>
9443
9444         freadable: Move AC_LIBOBJ invocations to module description.
9445         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
9446         here...
9447         * modules/freadable (configure.ac): ... to here.
9448
9449 2011-05-07  Bruno Haible  <bruno@clisp.org>
9450
9451         fpurge: Move AC_LIBOBJ invocations to module description.
9452         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
9453         invocations from here...
9454         * modules/fpurge (configure.ac): ... to here.
9455
9456 2011-05-07  Bruno Haible  <bruno@clisp.org>
9457
9458         fpending: Move AC_LIBOBJ invocations to module description.
9459         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
9460         gl_FUNC_FPENDING.
9461         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
9462         invocations from here...
9463         * modules/fpending (configure.ac): ... to here.
9464
9465 2011-05-07  Bruno Haible  <bruno@clisp.org>
9466
9467         fopen: Move AC_LIBOBJ invocations to module description.
9468         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
9469         invocations from here...
9470         * modules/fopen (configure.ac): ... to here.
9471
9472 2011-05-07  Bruno Haible  <bruno@clisp.org>
9473
9474         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9475         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9476         gl_FUNC_FNMATCH_POSIX.
9477         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9478         invocations from here...
9479         * modules/fnmatch (configure.ac): ... to here.
9480         * modules/fnmatch-gnu (configure.ac): ... and here.
9481
9482 2011-05-07  Bruno Haible  <bruno@clisp.org>
9483
9484         flock: Move AC_LIBOBJ invocations to module description.
9485         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9486         invocations from here...
9487         * modules/flock (configure.ac): ... to here.
9488
9489 2011-05-07  Bruno Haible  <bruno@clisp.org>
9490
9491         fileblocks: Move AC_LIBOBJ invocations to module description.
9492         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9493         gl_PREREQ_FILEBLOCKS invocations from here...
9494         * modules/fileblocks (configure.ac): ... to here.
9495
9496 2011-05-06  Bruno Haible  <bruno@clisp.org>
9497
9498         fflush: Move AC_LIBOBJ invocations to module description.
9499         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9500         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9501         invocations from here...
9502         * modules/fflush (configure.ac): ... to here.
9503
9504 2011-05-06  Bruno Haible  <bruno@clisp.org>
9505
9506         fdopendir: Move AC_LIBOBJ invocations to module description.
9507         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9508         here...
9509         * modules/fdopendir (configure.ac): ... to here.
9510         (Depends-on): Improve conditions.
9511
9512 2011-05-06  Bruno Haible  <bruno@clisp.org>
9513
9514         _Exit: Move AC_LIBOBJ invocations to module description.
9515         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9516         invocations from here...
9517         * modules/_Exit (configure.ac): ... to here.
9518
9519 2011-05-21  Bruno Haible  <bruno@clisp.org>
9520
9521         euidaccess: Respect rules for use of AC_LIBOBJ.
9522         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9523         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9524         from here...
9525         * modules/euidaccess (configure.ac): ... to here.
9526
9527 2011-05-06  Bruno Haible  <bruno@clisp.org>
9528
9529         error: Move AC_LIBOBJ invocations to module description.
9530         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9531         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9532         invocations from here...
9533         * modules/error (configure.ac): ... to here.
9534
9535 2011-05-06  Bruno Haible  <bruno@clisp.org>
9536
9537         duplocale: Move AC_LIBOBJ invocations to module description.
9538         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9539         gl_PREREQ_DUPLOCALE invocations from here...
9540         * modules/duplocale (configure.ac): ... to here.
9541
9542 2011-05-05  Bruno Haible  <bruno@clisp.org>
9543
9544         dirfd: Move AC_LIBOBJ invocations to module description.
9545         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9546         gl_FUNC_DIRFD.
9547         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9548         here...
9549         * modules/dirfd (configure.ac): ... to here.
9550         (Depends-on): Fix condition.
9551
9552 2011-05-05  Bruno Haible  <bruno@clisp.org>
9553
9554         chown: Respect rules for use of AC_LIBOBJ.
9555         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9556         * modules/chown (configure.ac): ... to here.
9557
9558 2011-05-05  Bruno Haible  <bruno@clisp.org>
9559
9560         chdir-long: Move AC_LIBOBJ invocations to module description.
9561         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9562         gl_PREREQ_CHDIR_LONG invocations from here...
9563         * modules/chdir-long (configure.ac): ... to here.
9564
9565 2011-05-05  Bruno Haible  <bruno@clisp.org>
9566
9567         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9568         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9569         from here...
9570         * modules/canonicalize-lgpl (configure.ac): ... to here.
9571
9572 2011-05-05  Bruno Haible  <bruno@clisp.org>
9573
9574         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9575         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9576         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9577         REPLACE_CALLOC.
9578         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9579         * modules/calloc-gnu (configure.ac): Likewise.
9580
9581 2011-05-05  Bruno Haible  <bruno@clisp.org>
9582
9583         btowc: Move AC_LIBOBJ invocations to module description.
9584         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9585         invocations from here...
9586         * modules/btowc (configure.ac): ... to here.
9587
9588 2011-05-21  Bruno Haible  <bruno@clisp.org>
9589
9590         atexit: Move AC_LIBOBJ invocations to module description.
9591         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9592         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9593         here...
9594         * modules/atexit (configure.ac): ... to here.
9595
9596 2011-05-05  Bruno Haible  <bruno@clisp.org>
9597
9598         atoll: Move AC_LIBOBJ invocations to module description.
9599         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9600         invocations from here...
9601         * modules/atoll (configure.ac): ... to here.
9602
9603 2011-05-05  Bruno Haible  <bruno@clisp.org>
9604
9605         argz: Move AC_LIBOBJ invocations to module description.
9606         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9607         * modules/argz (configure.ac): ... to here.
9608
9609 2011-05-05  Bruno Haible  <bruno@clisp.org>
9610
9611         alphasort: Move AC_LIBOBJ invocations to module description.
9612         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9613         gl_PREREQ_ALPHASORT invocations from here...
9614         * modules/alphasort (configure.ac): ... to here.
9615
9616 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9617
9618         verify: new macro verify_expr; verify_true deprecated
9619         * NEWS: Mention this.
9620         * doc/verify.texi (Compile-time Assertions): Document this.
9621         * lib/verify.h (verify_true): Deprecate.
9622         (verify_expr): New macro.
9623         * tests/test-verify.c (function): Test verify_expr.
9624
9625 2011-06-14  Jim Meyering  <meyering@redhat.com>
9626
9627         init.sh: give more portable redirection-related advice in a comment
9628         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9629         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9630         for lots of discussion.  Stefano Lattarini suggested the solution
9631         of putting "9>&2" after the command.  Reported by Bruno Haible.
9632
9633 2011-06-13  Bruno Haible  <bruno@clisp.org>
9634
9635         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9636         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9637         'none'.
9638
9639 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9640
9641         ftoastr: use strtof only if HAVE_STRTOF
9642         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9643         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9644         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9645         * modules/ftoastr (configure.ac): Check for strtof.
9646
9647 2011-06-13  Bruno Haible  <bruno@clisp.org>
9648
9649         gnulib-tool: Addendum to 2011-06-08 commit.
9650         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9651         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9652
9653 2011-06-13  Bruno Haible  <bruno@clisp.org>
9654
9655         fseeko: Provide a non-inline replacement of fseek().
9656         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9657         * modules/fseeko (Depends-on): Add fseek.
9658         * modules/fseek (License): Change to LGPLv2+.
9659
9660 2011-06-13  Bruno Haible  <bruno@clisp.org>
9661
9662         ftello: Provide a non-inline replacement of ftell().
9663         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9664         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9665         not have ftello() (such as on mingw).
9666         * modules/ftello (Depends-on): Add ftell.
9667         * modules/ftell (License): Change to LGPLv2+.
9668
9669 2011-05-07  Bruno Haible  <bruno@clisp.org>
9670
9671         ftell: Move AC_LIBOBJ invocations to module description.
9672         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9673         * modules/ftell (configure.ac): ... to here.
9674
9675 2011-05-07  Bruno Haible  <bruno@clisp.org>
9676
9677         ftello: Respect rules for use of AC_LIBOBJ.
9678         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9679         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9680         here...
9681         * modules/ftello (configure.ac): ... to here.
9682
9683 2011-05-07  Bruno Haible  <bruno@clisp.org>
9684
9685         fseeko: Simplify.
9686         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9687         (gl_FUNC_FSEEKO): Inline it here.
9688
9689 2011-05-07  Bruno Haible  <bruno@clisp.org>
9690
9691         fseek: Move AC_LIBOBJ invocations to module description.
9692         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9693         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9694         * modules/fseek (configure.ac): ... to here.
9695
9696 2011-05-07  Bruno Haible  <bruno@clisp.org>
9697
9698         fseek: Respect rules for use of AC_LIBOBJ.
9699         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9700         here...
9701         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9702
9703 2011-05-07  Bruno Haible  <bruno@clisp.org>
9704
9705         fseeko: Respect rules for use of AC_LIBOBJ.
9706         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9707         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9708         here...
9709         * modules/fseeko (configure.ac): ... to here.
9710
9711 2011-06-13  Bruno Haible  <bruno@clisp.org>
9712
9713         gnulib-tool: Allow comments in the 'Depends-on' section.
9714         * doc/gnulib.texi (Module description): Mention comment syntax in the
9715         Depends-on section.
9716         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9717
9718 2011-06-13  Bruno Haible  <bruno@clisp.org>
9719
9720         file-set.h: guard __attibute__ use, now that it's not always defined
9721         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9722         versions that support it.  This fixes a coreutils build failure with
9723         the vendor cc on HP-UX 11.31.
9724
9725 2011-06-12  Bruno Haible  <bruno@clisp.org>
9726
9727         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9728         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9729         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9730         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9731         (acl, aclsort): New declarations.
9732         (aclv_nontrivial): New declaration.
9733         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9734         (file_has_acl): Read also the second kind of HP-UX ACLs.
9735         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9736         kind of HP-UX ACLs if the first kind fails.
9737         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9738         second kind of HP-UX ACLs.
9739         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9740         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9741         agree.
9742         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9743         hpuxjfs.
9744         Handle hpuxjfs.
9745         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9746         hpuxjfs.
9747         Handle hpuxjfs.
9748         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9749         (func_test_same_acls): Use both lsacl and getacl.
9750         Handle hpuxjfs.
9751         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9752         (func_test_same_acls): Use both lsacl and getacl.
9753         Handle hpuxjfs.
9754
9755 2011-06-12  Bruno Haible  <bruno@clisp.org>
9756
9757         acl: Complete the 2010-08-10 fix.
9758         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9759         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9760         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9761         explicitly.
9762         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9763         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9764
9765 2011-06-12  Bruno Haible  <bruno@clisp.org>
9766
9767         spawn-pipe tests: Comments.
9768         * tests/test-spawn-pipe-child.c (main): Update comment.
9769         Reported by James Youngman <jay@gnu.org>.
9770
9771 2011-06-11  James Youngman  <jay@gnu.org>
9772
9773         New module 'stat-size'.
9774         * modules/stat-size: New module.  Provides macros for accessing
9775         file size information in instances of struct stat.  Depends on the
9776         fileblocks module because it calls st_blocks.
9777         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9778         * doc/gnulib.texi: Include stat-size.texi.
9779         * doc/stat-size.texi: Documentation for this module.
9780         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9781         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9782         AC_STRUCT_ST_BLOCKS.
9783
9784 2011-06-09  Bruno Haible  <bruno@clisp.org>
9785
9786         thread: Support pthreads-win32.
9787         * lib/glthread/thread.h (gl_thread_self): Define differently on
9788         pthreads-win32.
9789         (gl_null_thread): New declaration.
9790         (gl_thread_self_pointer): New macro.
9791         * lib/glthread/thread.c (gl_null_thread): New constant.
9792         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9793         gl_thread_self.
9794         * tests/test-tls.c: Likewise.
9795         Suggested by Paul Eggert. Reported by Eric Blake.
9796
9797 2011-06-09  Bruno Haible  <bruno@clisp.org>
9798
9799         thread: Fix confusion between NULL and 0.
9800         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9801         Reported by Paul Eggert.
9802
9803 2011-06-09  Bruno Haible  <bruno@clisp.org>
9804
9805         spawn-pipe tests: Avoid test failure on HP-UX 11.
9806         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9807         is closed.
9808
9809 2011-06-09  Bruno Haible  <bruno@clisp.org>
9810
9811         acl tests: Fix compilation error on HP-UX 11.
9812         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9813
9814 2011-06-09  Bruno Haible  <bruno@clisp.org>
9815
9816         rmdir: Avoid test failure on HP-UX 10.20.
9817         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9818         EEXIST.
9819
9820 2011-06-08  Eric Blake  <eblake@redhat.com>
9821
9822         perror: fix test on mingw
9823         * modules/perror-tests (Depends-on): Add dup2.
9824
9825         strerror_r-posix: fix on MacOS
9826         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9827         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9828         logic bug.
9829         * lib/strerror_r.c (strerror_r): Fix the bug.
9830         * lib/strerror.c (strerror): Likewise.
9831         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9832         problem.
9833         * doc/posix-functions/strerror.texi (strerror): Likewise.
9834         * doc/posix-functions/perror.texi (perror): Likewise.
9835         * tests/test-strerror.c (main): Enhance test.
9836         * tests/test-strerror_r.c (main): Likewise.
9837
9838 2011-06-08  Bruno Haible  <bruno@clisp.org>
9839
9840         gnulib-tool: Better isolation between different gnulib-tool invocations.
9841         * gnulib-tool: New option --witness-c-macro.
9842         (witness_c_macro): New variable.
9843         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9844         AM_CPPFLAGS define it as a C macro.
9845         (func_emit_tests_Makefile_am): Likewise.
9846         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9847         read it from there.
9848         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9849         m4_define, not AC_DEFUN.
9850         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9851         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9852         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9853         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9854         s|...|...|, to substitute the values of the GNULIB_* module indicator
9855         variables.
9856         * modules/dirent (Makefile.am): Likewise.
9857         * modules/fcntl-h (Makefile.am): Likewise.
9858         * modules/iconv-h (Makefile.am): Likewise.
9859         * modules/langinfo (Makefile.am): Likewise.
9860         * modules/locale (Makefile.am): Likewise.
9861         * modules/math (Makefile.am): Likewise.
9862         * modules/netdb (Makefile.am): Likewise.
9863         * modules/poll-h (Makefile.am): Likewise.
9864         * modules/pty (Makefile.am): Likewise.
9865         * modules/search (Makefile.am): Likewise.
9866         * modules/signal (Makefile.am): Likewise.
9867         * modules/spawn (Makefile.am): Likewise.
9868         * modules/stdio (Makefile.am): Likewise.
9869         * modules/stdlib (Makefile.am): Likewise.
9870         * modules/string (Makefile.am): Likewise.
9871         * modules/sys_ioctl (Makefile.am): Likewise.
9872         * modules/sys_select (Makefile.am): Likewise.
9873         * modules/sys_socket (Makefile.am): Likewise.
9874         * modules/sys_stat (Makefile.am): Likewise.
9875         * modules/sys_times (Makefile.am): Likewise.
9876         * modules/sys_utsname (Makefile.am): Likewise.
9877         * modules/sys_wait (Makefile.am): Likewise.
9878         * modules/termios (Makefile.am): Likewise.
9879         * modules/time (Makefile.am): Likewise.
9880         * modules/unistd (Makefile.am): Likewise.
9881         * modules/wchar (Makefile.am): Likewise.
9882
9883 2011-06-08  Eric Blake  <eblake@redhat.com>
9884
9885         strerror: simplify replacement
9886         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9887         * modules/strerror (configure.ac): No prereqs needed here...
9888         * modules/strerror-override (configure.ac): ...but this needs it.
9889         (Files): Add file for needed prereq macro.
9890
9891 2011-06-08  Bruno Haible  <bruno@clisp.org>
9892
9893         strerror_r-posix: Tweaks.
9894         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9895         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9896         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9897         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9898         (gl_FUNC_STRERROR_R): ... to here.
9899         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9900
9901 2011-06-07  Eric Blake  <eblake@redhat.com>
9902
9903         perror: document fixed bugs
9904         * doc/posix-functions/perror.texi (perror): Document recent
9905         patches.
9906
9907 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9908
9909         stat-time: get_stat_birthtime failure is better-defined
9910         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9911         return a timestamp whose tv_sec and tv_nsec values are both -1.
9912         Previously, the spec said only that the tv_nsec value was negative.
9913         This upward-compatible change simplifies GNU tar a bit.
9914
9915 2011-06-07  Eric Blake  <eblake@redhat.com>
9916
9917         strerror_r-posix: work around cygwin 1.7.9
9918         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9919         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9920         bug without replacing strerror_r.
9921         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9922         strerror_r is buggy, but without requiring strerror_r compilation.
9923         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9924
9925         test-perror: relax test to ignore cygwin bug
9926         * tests/test-perror2.c (main): Relax test on requiring detection
9927         of stream errors, and use unbuffered stream.
9928         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9929         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9930         * doc/posix-functions/fputc.texi (fputc): Likewise.
9931         * doc/posix-functions/fputs.texi (fputs): Likewise.
9932         * doc/posix-functions/fputws.texi (fputws): Likewise.
9933         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9934         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9935         * doc/posix-functions/getopt.texi (getopt): Likewise.
9936         * doc/posix-functions/perror.texi (perror): Likewise.
9937         * doc/posix-functions/printf.texi (printf): Likewise.
9938         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9939         * doc/posix-functions/psignal.texi (psignal): Likewise.
9940         * doc/posix-functions/putc.texi (putc): Likewise.
9941         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9942         Likewise.
9943         * doc/posix-functions/putchar.texi (putchar): Likewise.
9944         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9945         Likewise.
9946         * doc/posix-functions/puts.texi (puts): Likewise.
9947         * doc/posix-functions/putwc.texi (putwc): Likewise.
9948         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9949         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9950         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9951         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9952         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9953         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9954         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9955         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9956
9957 2011-05-22  Bruno Haible  <bruno@clisp.org>
9958
9959         strerror: Move AC_LIBOBJ invocations to module description.
9960         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9961         gl_PREREQ_STRERROR invocations from here...
9962         * modules/strerror (configure.ac): ... to here.
9963
9964 2011-05-21  Bruno Haible  <bruno@clisp.org>
9965
9966         perror: Use common idiom.
9967         * modules/perror (configure.ac): Reorder statements.
9968
9969 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9970
9971         tests: fix usage message in 'mktempd_'
9972         * tests/init.sh (mktempd_): In the usage message, use literal
9973         'mktempd_', not '$ME' (which is even undefined), as the name of
9974         the subroutine.
9975
9976 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9977
9978         tests init: new function 'fatal_', for hard errors
9979         Before this patch, the only way offered by tests/init.sh to
9980         properly signal a hard error was the `framework_failure_'
9981         function.  But the error message issued by that function,
9982         as its name would suggest, refers to a set-up failure in the
9983         testsuite, while hard errors can obviously also be due to
9984         other reasons.  The best way to fix this inconsistency is to
9985         introduce a new function with a more general error message.
9986         * tests/init.sh (fatal_): New function.
9987
9988 2011-06-06  Eric Blake  <eblake@redhat.com>
9989
9990         canonicalize-lgpl: use common idiom
9991         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9992         over newer POSIX -Rf.
9993         Reported by Bruno Haible.
9994
9995         canonicalize-lgpl: work around AIX realpath bug
9996         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9997         * doc/posix-functions/realpath.texi (realpath): Document it.
9998         Reported by Bruno Haible.
9999
10000         strerror: work around FreeBSD bug
10001         * lib/strerror.c (strerror): Special case 0.
10002         Reported by Bruno Haible.
10003
10004         strerror-override: avoid bloating errno module
10005         * modules/errno (Files, configure.ac): Move replacement strings...
10006         * modules/strerror-override: ...to new module.
10007         * modules/strerror (Depends-on): Add strerror-override.
10008         * modules/strerror_r-posix (Depends-on): Likewise.
10009         * MODULES.html.sh: Document new module.
10010         Reported by Bruno Haible.
10011
10012 2011-06-06  Bruno Haible  <bruno@clisp.org>
10013
10014         spawn-pipe tests: Rename program.
10015         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
10016         * tests/test-spawn-pipe-child.c: Update comment.
10017         * tests/test-spawn-pipe.sh: Update.
10018         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
10019
10020         spawn-pipe tests: Link the child program only against libc.
10021         * tests/test-spawn-pipe-child.c: New file, extracted from
10022         tests/test-spawn-pipe.c.
10023         (main): Expect only one argument.
10024         (is_open): New function, copied from tests/test-pipe.c.
10025         * tests/test-spawn-pipe.c: Don't include <errno.h>.
10026         (child_main): Remove function.
10027         (test_pipe): Pass only one argument to the child program.
10028         (main): Remove child process code. Expect the child program's name as
10029         first argument.
10030         * tests/test-spawn-pipe.sh: Pass the child program's name as first
10031         argument.
10032         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
10033         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
10034         test-spawn-pipe-child against no libraries.
10035
10036 2011-06-06  Bruno Haible  <bruno@clisp.org>
10037
10038         careadlinkat: Avoid mismatch between ssize_t and int.
10039         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
10040         * lib/careadlinkat.c (careadlinkatcwd): Define always.
10041
10042 2011-06-06  Jim Meyering  <meyering@redhat.com>
10043
10044         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
10045         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
10046         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
10047
10048 2011-06-05  Bruno Haible  <bruno@clisp.org>
10049
10050         ansi-c++-opt: Interoperability with libtool.
10051         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
10052         set the variable to "no", not to ":".
10053         * NEWS: Mention the change.
10054
10055 2011-06-05  Bruno Haible  <bruno@clisp.org>
10056
10057         acl: Fix test failure on AIX 7.
10058         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
10059         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
10060
10061 2011-06-05  Bruno Haible  <bruno@clisp.org>
10062
10063         pipe-filter-ii: Fix test failure on AIX and IRIX.
10064         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
10065         with EAGAIN, retry with a smaller buffer size.
10066
10067 2011-06-05  Bruno Haible  <bruno@clisp.org>
10068
10069         localename: Fix link dependencies.
10070         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
10071         * modules/localename-tests (Makefile.am): Link test-localename with
10072         $(LIBTHREAD).
10073
10074 2011-06-05  Bruno Haible  <bruno@clisp.org>
10075
10076         error: Avoid gcc warning.
10077         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
10078
10079 2011-06-05  Bruno Haible  <bruno@clisp.org>
10080
10081         unsetenv: Avoid gcc warning.
10082         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
10083
10084 2011-06-05  Bruno Haible  <bruno@clisp.org>
10085
10086         setenv: Avoid gcc warning.
10087         * lib/setenv.c (setenv): Provide declaration if system lacks it.
10088
10089 2011-06-05  Bruno Haible  <bruno@clisp.org>
10090
10091         sys_select: Ensure memset is declared also on AIX 7.
10092         * lib/sys_select.in.h: Include <string.h> also on AIX.
10093         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
10094         self-contained also on AIX 7.1.
10095
10096 2011-06-04  Jim Meyering  <meyering@redhat.com>
10097
10098         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
10099         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
10100         function name, "error".
10101         (_gl_translatable_diag_func_re): New configurable variable.
10102
10103 2011-06-04  Bruno Haible  <bruno@clisp.org>
10104
10105         getopt: Avoid gcc warning.
10106         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
10107
10108 2011-06-04  Bruno Haible  <bruno@clisp.org>
10109
10110         strerror_r: Fix comments.
10111         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
10112         commit.
10113
10114 2011-06-04  Bruno Haible  <bruno@clisp.org>
10115
10116         perror: Fix compilation error.
10117         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
10118         Undefine fprintf, not sprintf.
10119         * modules/perror (Depends-on): Remove intprops, verify.
10120
10121 2011-06-04  Bruno Haible  <bruno@clisp.org>
10122
10123         setlocale: Enable replacement on Cygwin 1.5.
10124         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
10125         Cygwin 1.5.x.
10126         * doc/posix-functions/setlocale.texi: Mention that the problem with the
10127         LC_CTYPE category also exists on Cygwin 1.5.x.
10128
10129 2011-06-04  Bruno Haible  <bruno@clisp.org>
10130
10131         strerror-override: Don't disable symbol renamings.
10132         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
10133         * lib/strerror-override.c: Include config.h.
10134         (strerror_override): Don't undefine.
10135
10136 2011-06-03  Bruno Haible  <bruno@clisp.org>
10137
10138         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
10139         * lib/localename.h: Update copyright header.
10140         * lib/localename.c: Likewise.
10141         * lib/relocatable.h: Likewise.
10142         * lib/relocatable.c: Likewise.
10143
10144 2011-06-02  Bruno Haible  <bruno@clisp.org>
10145
10146         doc: Fix a module name.
10147         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
10148
10149 2011-06-02  Bruno Haible  <bruno@clisp.org>
10150
10151         pipe2: Remove dependency on 'nonblocking' module.
10152         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
10153         O_NONBLOCK is defined by gnulib.
10154         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
10155         is zero.
10156         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
10157         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
10158         defined by gnulib.
10159         (get_nonblocking_flag): New function.
10160         (main): Test O_NONBLOCK flag only if it is nonzero.
10161         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
10162
10163 2011-06-03  Jim Meyering  <meyering@redhat.com>
10164
10165         maint: three new prohibit-header-without-use rules
10166         Prohibit use of cloexec.h, posixver.h, same.h without use.
10167         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
10168         (sc_prohibit_posixver_without_use): Likewise.
10169         (sc_prohibit_same_without_use): Likewise.
10170
10171 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10172
10173         allocator: 'die' routine is now given requested size
10174         * lib/allocator.h (struct allocator.die): New size arg.
10175         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
10176         If the actual problem is an ssize_t limitation, not a size_t or
10177         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
10178
10179 2011-06-01  Eric Blake  <eblake@redhat.com>
10180
10181         strerror: drop strerror_r dependency
10182         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
10183         * lib/strerror-override.c (strerror_override): ...to new file.
10184         * lib/strerror-override.h: Add prototype.
10185         * lib/strerror-impl.h: Delete.
10186         * lib/strerror.c (strerror): New implementation.
10187         * modules/errno (Files): Add new files.
10188         (configure.ac): Compile new file as appropriate.
10189         * modules/strerror (Files): Drop unused file.
10190         (Depends-on): Drop strerror_r-posix.
10191         * MODULES.html.sh: Document strerror_r-posix.
10192         Requested by Sam Steingold.
10193
10194         perror: call strerror_r directly
10195         * modules/perror (Files): Drop strerror-impl.h.
10196         * lib/perror.c (perror): Use our own stack buffer, rather than
10197         calling a wrapper that uses static storage.
10198         * doc/posix-functions/perror.texi (perror): Document a limitation
10199         of our replacement.
10200
10201         strerror_r: fix includes for FreeBSD
10202         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
10203         since we use abort on some platforms.
10204         Reported by Matthias Bolte.
10205
10206 2011-05-31  Bruno Haible  <bruno@clisp.org>
10207
10208         Fix link errors in tests: openat-die uses gettext-h.
10209         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
10210         against $(LIBINTL).
10211         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
10212         against $(LIBINTL).
10213         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
10214         $(LIBINTL).
10215         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
10216         against $(LIBINTL).
10217         * modules/linkat-tests (Makefile.am): Link test-linkat against
10218         $(LIBINTL).
10219         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
10220         $(LIBINTL).
10221         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
10222         against $(LIBINTL).
10223         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
10224         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
10225         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
10226         $(LIBINTL).
10227         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
10228         $(LIBINTL).
10229         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
10230         $(LIBINTL).
10231         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10232
10233 2011-05-31  Bruno Haible  <bruno@clisp.org>
10234
10235         Fix link errors in tests: wait-process uses gettext-h.
10236         * modules/nonblocking-pipe-tests (Makefile.am): Set
10237         test_nonblocking_pipe_main_LDADD.
10238         * modules/nonblocking-socket-tests (Makefile.am): Link
10239         test-nonblocking-socket-main against $(LIBINTL).
10240         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10241
10242 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10243
10244         assert-h: work around 'verify' incompatibility
10245         * lib/verify.h: Use @...@ directives, not ifdef.
10246         * modules/assert-h (assert.h): Implement the directives.
10247         (assert.h): Substitute the symbol-prefix more consistently.
10248
10249 2011-05-29  Jim Meyering  <meyering@redhat.com>
10250
10251         trim: remove three superfluous assignments
10252         * lib/trim.c (trim2): Remove three superfluous assignments
10253         and correct brace positioning.
10254
10255 2011-05-29  Bruno Haible  <bruno@clisp.org>
10256
10257         wctype-h: Avoid namespace pollution on Solaris 2.6.
10258         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
10259         identifiers.
10260         * doc/posix-headers/wctype.texi: Mention the problem.
10261         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10262
10263 2011-05-28  Jim Meyering  <meyering@redhat.com>
10264
10265         parse-datetime.y: accommodate -Wstrict-overflow
10266         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
10267         placate -Wstrict-overflow.
10268
10269         trim: avoid a warning from -O2 -Wstrict-overflow
10270         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
10271
10272 2011-05-29  Bruno Haible  <bruno@clisp.org>
10273
10274         gnulib-tool: Fix bug in yesterday's commit.
10275         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
10276         twice.
10277
10278 2011-05-29  Bruno Haible  <bruno@clisp.org>
10279
10280         Allow multiple gnulib generated include files to be combined.
10281         * gnulib-tool (func_compute_include_guard_prefix): New function.
10282         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
10283         ${gl_include_guard_prefix} references.
10284         (func_import, func_create_testdir): Invoke
10285         func_compute_include_guard_prefix.
10286         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
10287         * lib/ctype.in.h: Likewise.
10288         * lib/dirent.in.h: Likewise.
10289         * lib/errno.in.h: Likewise.
10290         * lib/fcntl.in.h: Likewise.
10291         * lib/float.in.h: Likewise.
10292         * lib/getopt.in.h: Likewise.
10293         * lib/iconv.in.h: Likewise.
10294         * lib/langinfo.in.h: Likewise.
10295         * lib/locale.in.h: Likewise.
10296         * lib/math.in.h: Likewise.
10297         * lib/netdb.in.h: Likewise.
10298         * lib/netinet_in.in.h: Likewise.
10299         * lib/poll.in.h: Likewise.
10300         * lib/pthread.in.h: Likewise.
10301         * lib/pty.in.h: Likewise.
10302         * lib/sched.in.h: Likewise.
10303         * lib/se-selinux.in.h: Likewise.
10304         * lib/search.in.h: Likewise.
10305         * lib/signal.in.h: Likewise.
10306         * lib/spawn.in.h: Likewise.
10307         * lib/stdarg.in.h: Likewise.
10308         * lib/stddef.in.h: Likewise.
10309         * lib/stdint.in.h: Likewise.
10310         * lib/stdio.in.h: Likewise.
10311         * lib/stdlib.in.h: Likewise.
10312         * lib/string.in.h: Likewise.
10313         * lib/strings.in.h: Likewise.
10314         * lib/sys_file.in.h: Likewise.
10315         * lib/sys_ioctl.in.h: Likewise.
10316         * lib/sys_select.in.h: Likewise.
10317         * lib/sys_socket.in.h: Likewise.
10318         * lib/sys_stat.in.h: Likewise.
10319         * lib/sys_time.in.h: Likewise.
10320         * lib/sys_times.in.h: Likewise.
10321         * lib/sys_uio.in.h: Likewise.
10322         * lib/sys_utsname.in.h: Likewise.
10323         * lib/sys_wait.in.h: Likewise.
10324         * lib/sysexits.in.h: Likewise.
10325         * lib/termios.in.h: Likewise.
10326         * lib/time.in.h: Likewise.
10327         * lib/unistd.in.h: Likewise.
10328         * lib/wchar.in.h: Likewise.
10329         * lib/wctype.in.h: Likewise.
10330         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
10331         * modules/ctype (Makefile.am): Likewise.
10332         * modules/dirent (Makefile.am): Likewise.
10333         * modules/errno (Makefile.am): Likewise.
10334         * modules/fcntl-h (Makefile.am): Likewise.
10335         * modules/float (Makefile.am): Likewise.
10336         * modules/getopt-posix (Makefile.am): Likewise.
10337         * modules/iconv-h (Makefile.am): Likewise.
10338         * modules/langinfo (Makefile.am): Likewise.
10339         * modules/locale (Makefile.am): Likewise.
10340         * modules/math (Makefile.am): Likewise.
10341         * modules/netdb (Makefile.am): Likewise.
10342         * modules/netinet_in (Makefile.am): Likewise.
10343         * modules/poll-h (Makefile.am): Likewise.
10344         * modules/pthread (Makefile.am): Likewise.
10345         * modules/pty (Makefile.am): Likewise.
10346         * modules/sched (Makefile.am): Likewise.
10347         * modules/search (Makefile.am): Likewise.
10348         * modules/selinux-h (Makefile.am): Likewise.
10349         * modules/signal (Makefile.am): Likewise.
10350         * modules/spawn (Makefile.am): Likewise.
10351         * modules/stdarg (Makefile.am): Likewise.
10352         * modules/stddef (Makefile.am): Likewise.
10353         * modules/stdint (Makefile.am): Likewise.
10354         * modules/stdio (Makefile.am): Likewise.
10355         * modules/stdlib (Makefile.am): Likewise.
10356         * modules/string (Makefile.am): Likewise.
10357         * modules/strings (Makefile.am): Likewise.
10358         * modules/sys_file (Makefile.am): Likewise.
10359         * modules/sys_ioctl (Makefile.am): Likewise.
10360         * modules/sys_select (Makefile.am): Likewise.
10361         * modules/sys_socket (Makefile.am): Likewise.
10362         * modules/sys_stat (Makefile.am): Likewise.
10363         * modules/sys_time (Makefile.am): Likewise.
10364         * modules/sys_times (Makefile.am): Likewise.
10365         * modules/sys_uio (Makefile.am): Likewise.
10366         * modules/sys_utsname (Makefile.am): Likewise.
10367         * modules/sys_wait (Makefile.am): Likewise.
10368         * modules/sysexits (Makefile.am): Likewise.
10369         * modules/termios (Makefile.am): Likewise.
10370         * modules/time (Makefile.am): Likewise.
10371         * modules/unistd (Makefile.am): Likewise.
10372         * modules/wchar (Makefile.am): Likewise.
10373         * modules/wctype-h (Makefile.am): Likewise.
10374         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10375
10376 2011-05-29  Bruno Haible  <bruno@clisp.org>
10377
10378         assert-h: Allow multiple gnulib generated replacements to coexist.
10379         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
10380
10381 2011-05-29  Bruno Haible  <bruno@clisp.org>
10382
10383         argp: Allow coexistence with strerror_r-posix module.
10384         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10385         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10386         by gnulib's <string.h> replacement), assume it has the POSIX signature,
10387         not the glibc signature.
10388
10389 2011-05-28  Bruno Haible  <bruno@clisp.org>
10390
10391         gnulib-tool: Alternative structure of testdirs, similar to --import.
10392         * gnulib-tool: New option --single-configure.
10393         (func_usage): Document it.
10394         (single_configure): New variable.
10395         (func_modules_transitive_closure_separately,
10396         func_modules_transitive_closure_separately,
10397         func_determine_use_libtests, func_modules_add_dummy_separately,
10398         func_modules_to_filelist_separately): New functions, extracted from
10399         func_import.
10400         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
10401         (func_import): Use the new functions.
10402         (func_create_testdir): Set final_modules. Handle $single_configure =
10403         true case.
10404
10405 2011-05-28  Bruno Haible  <bruno@clisp.org>
10406
10407         getloadavg: Remove an unreliable safety check.
10408         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
10409         getloadavg.c is in place.
10410         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
10411         Reported by Sam Steingold <sds@gnu.org>.
10412
10413 2011-05-28  Bruno Haible  <bruno@clisp.org>
10414
10415         doc: Cleanup yet another file produced by texinfo.tex.
10416         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
10417
10418 2011-05-28  Bruno Haible  <bruno@clisp.org>
10419
10420         Finish the conditional dependencies mechanism.
10421         * gnulib-tool: New option --no-conditional-dependencies.
10422         (func_usage): Document it. Don't mark --conditional-dependencies as
10423         experimental.
10424         (cond_dependencies): The possible values can now be true, false, empty.
10425         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
10426         (func_import): Store setting in gnulib-cache.m4 and read it from there.
10427         * doc/gnulib-tool.texi (Conditional dependencies): New section.
10428
10429 2011-05-28  Bruno Haible  <bruno@clisp.org>
10430
10431         doc: Use a recent texinfo.tex.
10432         * doc/Makefile (tex_opts): New variable.
10433         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
10434
10435 2011-05-28  Jim Meyering  <meyering@redhat.com>
10436
10437         intprops.h: adjust comment to match code change
10438         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
10439         only once, it *may* have side effects.  Also fix an unrelated typo.
10440         (_GL_INT_SIGNED): Likewise.
10441
10442 2011-05-26  Simon Josefsson  <simon@josefsson.org>
10443
10444         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
10445
10446 2011-05-26  Bruno Haible  <bruno@clisp.org>
10447
10448         mbsrchr: Avoid collision with system function on Interix.
10449         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
10450         Reported by Markus Duft <mduft@gentoo.org>.
10451
10452 2011-05-15  James Youngman  <jay@gnu.org>
10453
10454         getopt: for ambiguous options, enumerate the possibilities.
10455         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
10456         the ambiguous options when an ambiguous prefix is given. This was
10457         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
10458         glibc change was
10459         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
10460
10461 2011-05-25  Eric Blake  <eblake@redhat.com>
10462
10463         getcwd: work around mingw bug
10464         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
10465         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10466         Reported by Matthias Bolte.
10467
10468 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10469
10470         test-intprops: disable -Wtype-limits diagnostics
10471         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10472         diagnostics.  Otherwise, the integer overflow macros generate many
10473         diagnostics.  Reported by Jim Meyering in
10474         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10475
10476         intprops: shorten, to pacify gcc -Woverlength-strings
10477         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10478         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10479         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10480         likely to run afoul of C compiler limits for string constant lengths.
10481         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10482
10483 2011-05-24  Eric Blake  <eblake@redhat.com>
10484
10485         docs: document recently fixed glibc printf bug
10486         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10487         * doc/posix-functions/printf.texi (printf): Likewise.
10488         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10489         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10490
10491         closein-tests: convert to init.sh
10492         * modules/closein-tests (Files): Add init.sh
10493         * tests/test-closein.sh Use it.
10494
10495         yesno-tests: convert to init.sh
10496         * modules/yesno-tests (Files): Add init.sh.
10497         * tests/test-yesno.sh: Use it.
10498
10499         atexit-tests: ensure reliable exit status
10500         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10501         Reported by Bruno Haible.
10502
10503 2011-05-24  Bruno Haible  <bruno@clisp.org>
10504
10505         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10506         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10507         gl_PREREQ_STRERROR_R invocations from here...
10508         * modules/strerror_r-posix (configure.ac): ... to here.
10509
10510 2011-05-24  Eric Blake  <eblake@redhat.com>
10511
10512         strerror_r: fix missing header
10513         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10514
10515         strerror_r: fix AIX test failures
10516         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10517         ERANGE failure.
10518
10519         strerror_r: fix Solaris test failures
10520         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10521         failures.
10522         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10523
10524         strerror_r: enforce POSIX recommendations
10525         * lib/strerror_r.c (safe_copy): New helper method.
10526         (strerror_r): Guarantee a non-empty string.
10527         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10528         recent POSIX rulings and to match our strerror guarantees.
10529         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10530
10531 2011-05-24  Jim Meyering  <meyering@redhat.com>
10532
10533         test-perror2.c: avoid warning about unused variable
10534         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10535
10536 2011-05-24  Eric Blake  <eblake@redhat.com>
10537
10538         perror: avoid spurious test failure on HP-UX
10539         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10540
10541         tests: fix logic bug in init.sh
10542         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10543         shell.
10544
10545 2011-05-24  Jim Meyering  <meyering@redhat.com>
10546
10547         utimensat: do not reference an out-of-scope buffer
10548         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10549         declared in an inner scope, yet "times" would be dereferenced outside
10550         the scope in which "ts" was valid.
10551         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10552         of ts[2] "out/up", so that the use of aliased "times" (via
10553         "times = ts;") does not end up referencing an out-of-scope "ts"
10554
10555         opendir-safer.c: don't clobber errno; don't close negative FD
10556         * lib/opendir-safer.c (opendir_safer):
10557         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10558         file descriptor, and more importantly, don't clobber the
10559         offending errno value with EINVAL.  Before, upon failure
10560         of dup_safer, we would pass the negative file descriptor to
10561         fdopendir, which would clobber errno.
10562
10563 2011-05-23  Bruno Haible  <bruno@clisp.org>
10564
10565         idcache: Fix module description.
10566         * modules/idcache (Include): Set to "idcache.h".
10567
10568 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10569
10570         gnulib-tool: fix portability problem with MacOS sed
10571         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10572         before the "}".  Problem reported by Leo in
10573         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10574         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10575         sed_extract_condition1, sed_extract_condition2.
10576
10577 2011-05-23  Bruno Haible  <bruno@clisp.org>
10578
10579         hash: Simplify autoconf macro.
10580         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10581
10582 2011-05-23  Bruno Haible  <bruno@clisp.org>
10583
10584         getugroups: Fix module description.
10585         * modules/getugroups (Include): Set to "getugroups.h".
10586
10587 2011-05-23  Bruno Haible  <bruno@clisp.org>
10588
10589         linkat: Simplify autoconf macro.
10590         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10591
10592 2011-05-23  Bruno Haible  <bruno@clisp.org>
10593             Eric Blake  <eblake@redhat.com>
10594
10595         linkat, renameat: Update dependencies.
10596         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10597         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10598         symlinkat.
10599
10600 2011-05-23  Jim Meyering  <meyering@redhat.com>
10601
10602         maint.mk: more tight_scope improvements
10603         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10604         (_gl_TS_headers): Define only in if-0'd block.
10605         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10606         sometimes we must *not* use it.  Adjust uses accordingly.
10607         (sc_tight_scope): Use much simpler grep-based test to determine
10608         whether we skip this rule.
10609
10610         maint.mk: generalize/improve the tight-scope rule
10611         * top/maint.mk: Emit a warning when the test is skipped.
10612         (_gl_TS_dir): Add $(srcdir)/ prefix.
10613         (_gl_TS_function_match): Simplify, rather than trying
10614         to enumerate common types.  Otherwise, it would fail to match an
10615         "extern unsigned char const *" declaration in idutils.
10616         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10617         a way to support use of that type of macro.
10618         (_gl_TS_var_match): Simplify regexp.
10619         (_gl_TS_obj_files): New configurable variable.
10620         (_gl_TS_headers): Likewise.
10621
10622 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10623
10624         verify: fix bug when gnulib <assert.h> is also included
10625         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10626         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10627         Perhaps there's a better way, but this fixes the immediate problem.
10628         Problem reported by Bruno Haible in
10629         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10630
10631 2011-05-22  Bruno Haible  <bruno@clisp.org>
10632
10633         xgetcwd: Simplify autoconf macro.
10634         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10635
10636 2011-05-22  Bruno Haible  <bruno@clisp.org>
10637
10638         New module 'mktime-internal'.
10639         * modules/mktime-internal: New file.
10640         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10641         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10642         mktime_internal as a C macro if libc has __mktime_internal.
10643         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10644         conditions.
10645         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10646
10647 2011-05-22  Bruno Haible  <bruno@clisp.org>
10648
10649         timegm: Correct mktime replacement statements.
10650         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10651         defining mktime as a C macro. This completes a 2009-07-28 commit.
10652
10653 2011-05-22  Bruno Haible  <bruno@clisp.org>
10654
10655         timegm: Simplify autoconf macro.
10656         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10657
10658 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10659
10660         clock-time: change to LGPLv2+.
10661         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10662         BSD-like but we have no mark for that; this is good enough for now.
10663
10664 2011-05-21  Bruno Haible  <bruno@clisp.org>
10665
10666         strerror_r: Fix comments.
10667         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10668
10669 2011-05-21  Bruno Haible  <bruno@clisp.org>
10670
10671         relocatable-prog-wrapper: Fix possible link error.
10672         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10673         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10674         (gl_FUNC_SETENV): ... to here.
10675         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10676         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10677
10678 2011-05-21  Bruno Haible  <bruno@clisp.org>
10679
10680         relocatable-prog-wrapper: Assume strerror() exists.
10681         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10682         m4/strerror.m4.
10683         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10684         * lib/relocwrapper.c: Remove mention of strerror module.
10685         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10686         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10687         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10688         C macro.
10689
10690 2011-05-21  Bruno Haible  <bruno@clisp.org>
10691
10692         select: Simplify replacement idiom.
10693         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10694         Win32 platforms.
10695         * lib/sys_select.in.h (select): Simplify accordingly.
10696         * modules/select (Depends-on): Likewise.
10697
10698 2011-05-21  Bruno Haible  <bruno@clisp.org>
10699
10700         mkdir-p: Simplify autoconf macro.
10701         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10702         gl_FUNC_LCHOWN.
10703
10704 2011-05-21  Eric Blake  <eblake@redhat.com>
10705
10706         strerror_r: avoid clobbering strerror on cygwin
10707         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10708         fall back instead to sys_errlist.
10709         * modules/strerror (configure.ac): Add witness.
10710         * tests/test-strerror_r.c (main): Enhance test.
10711         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10712         * tests/test-perror2.c (main): Free memory before exit.
10713
10714 2011-05-21  Bruno Haible  <bruno@clisp.org>
10715
10716         mkdtemp: Use gnulib naming conventions.
10717         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10718         * modules/mkdtemp (configure.ac): Update.
10719
10720 2011-05-20  Eric Blake  <eblake@redhat.com>
10721
10722         strerror_r: avoid corrupting errno on Solaris
10723         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10724         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10725
10726         strerror_r: avoid compiler warning
10727         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10728
10729         strerror_r: simplify AIX code
10730         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10731
10732         test-perror: avoid spurious failure on FreeBSD
10733         * modules/perror-tests (Depends-on): Add strerror, now that
10734         strerror_r no longer pulls it in.
10735
10736 2011-05-20  Bruno Haible  <bruno@clisp.org>
10737
10738         strerror_r-posix: Remove unused dependencies.
10739         * modules/strerror_r-posix (Depends-on): Remove strerror.
10740         Reported by Eric Blake.
10741
10742 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10743
10744         intprops: remove assumption about A|B representation
10745         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10746         is a valid integer if both A and B are.  Although this is true for
10747         all known practical hosts, the C standard doesn't guarantee it,
10748         and the code need not assume it.  Also, this change may work around
10749         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10750         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10751
10752 2011-05-20  Eric Blake  <eblake@redhat.com>
10753
10754         perror: work around FreeBSD bug
10755         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10756         is broken.  Move AC_LIBOBJ...
10757         * modules/perror (configure.ac): Here.
10758         * doc/posix-functions/perror.texi (perror): Document this.
10759         * tests/test-perror2.c (main): Enhance test.
10760
10761         test-perror: check for strerror interactions
10762         * tests/macros.h (STREQ): Add macro.
10763         * modules/perror-tests (Files): Add second test.
10764         * tests/test-perror2.c (main): New file.
10765         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10766
10767         test-perror: rewrite to use init script
10768         * modules/perror-tests (Files): Add init.sh.
10769         * tests/test-perror.sh: Use temporary directory.
10770
10771 2011-05-20  Jim Meyering  <meyering@redhat.com>
10772
10773         maint: replace misused "a" with "an"
10774         * doc/intprops.texi: "a integer"
10775         * doc/regex.texi: "a explanation"
10776         * lib/alignof.h: "a object"
10777         * lib/argmatch.h: "a explanation"
10778         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10779         * lib/stdint.in.h: "a integer"
10780         * lib/userspec.c: "a owner"
10781         * doc/gnulib.texi: Fix "a idea", and reword.
10782
10783 2011-05-19  Jim Meyering  <meyering@redhat.com>
10784
10785         maint: correct misuse of "a" and "an"
10786         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10787         * lib/argp-help.c: "an docum...": s/an/a/
10788         * lib/argp-parse.c: "An vector": s/An/A/
10789         * lib/execute.c: "an native": s/an/a/
10790         * lib/spawn-pipe.c: Likewise.
10791         * lib/gc.h: "an Gc_rc": s/an/a/
10792         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10793         * lib/fts.c: "an stat.st_dev": s/an/a/
10794
10795 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10796
10797         intprops-tests: work around HP-UX 11.23 cc bug with constants
10798         * tests/test-intprops.c (VERIFY): New macro.
10799         (main): Use it, instead of verify, to work around the compiler bug; see
10800         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10801
10802         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10803         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10804         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10805         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10806         (_GL_REMAINDER_OVERFLOW): Use it.
10807
10808         intprops-tests: revert unsigned part of previous change
10809         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10810         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10811         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10812         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10813
10814 2011-05-19  Bruno Haible  <bruno@clisp.org>
10815
10816         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10817         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10818         strerror_r() returned without filling the buffer.
10819         Reported by Eric Blake.
10820
10821 2011-05-19  Eric Blake  <eblake@redhat.com>
10822
10823         strerror_r: guarantee unchanged errno
10824         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10825         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10826         failure.
10827         * tests/test-strerror_r.c (main): Enhance test.
10828
10829 2011-05-19  Bruno Haible  <bruno@clisp.org>
10830
10831         strerror_r: Reorder #if blocks.
10832         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10833         for consistency with the previous commit.
10834
10835 2011-05-19  Bruno Haible  <bruno@clisp.org>
10836
10837         perror: Avoid clobbering the strerror buffer when possible.
10838         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10839         * lib/strerror.c: Include it.
10840         * modules/strerror (Files): Add lib/strerror-impl.h.
10841         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10842         (my_strerror): New function, defined through lib/strerror-impl.h.
10843         (perror): Use it instead of strerror.
10844         * modules/perror (Files): Add lib/strerror-impl.h.
10845         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10846
10847 2011-05-19  Eric Blake  <eblake@redhat.com>
10848
10849         strerror_r: fix on newer cygwin
10850         * lib/strerror_r.c (strerror_r): Cygwin now has
10851         __xpg_strerror_r, use it.
10852
10853 2011-05-19  Bruno Haible  <bruno@clisp.org>
10854
10855         strerror_r: Avoid clobbering the strerror buffer when possible.
10856         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10857         (sys_nerr, sys_errlist): New declarations.
10858         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10859         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10860         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10861
10862 2011-05-19  Bruno Haible  <bruno@clisp.org>
10863
10864         strerror_r: Fix test failure on mingw.
10865         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10866         EXTEND_STRERROR_R.
10867         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10868         macros from errno.in.h instead.
10869
10870 2011-05-19  Eric Blake  <eblake@redhat.com>
10871
10872         strerror: relax test for Solaris
10873         * tests/test-strerror.c (main): Permit Solaris behavior.
10874         * tests/test-strerror_r.c (main): Likewise.
10875
10876         strerror: enforce POSIX ruling on strerror(0)
10877         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10878         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10879         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10880         * doc/posix-functions/strerror.texi (strerror): Document it.
10881         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10882         * tests/test-strerror.c (main): Strengthen test.
10883         * tests/test-strerror_r.c (main): Likewise.
10884
10885 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10886
10887         intprop-tests: port to older and more-pedantic compilers
10888         * modules/intprops-tests (Files): Add tests/macros.h.
10889         * tests/test-intprops.c: Include macros.h.
10890         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10891         it's no longer documented to expand to an integer constant expression.
10892         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10893         argument is floating point, as it's no longer documented to expand
10894         to an integer constant expression in that case.
10895         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10896         compiler bugs reported by Bruno Haible.  See
10897         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10898         (U0, U1): New constants, to work around the same bugs.  Also,
10899         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10900
10901         intprops: work around C compiler bugs
10902         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10903         bug in Sun C 5.11 2010/08/13 and other compilers; see
10904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10905
10906         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10907         * doc/intprops.texi (Integer Type Determination): Fix
10908         documentation for TYPE_IS_INTEGER: it returns an constant
10909         expression, not an integer constant expression.  Fix doc for
10910         TYPE_SIGNED: it returns an integer constant expression only if its
10911         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10912         hardly worth documented that way....)
10913
10914 2011-05-18  Bruno Haible  <bruno@clisp.org>
10915
10916         strerror_r: Avoid clobbering the strerror buffer when possible.
10917         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10918         Handle gnulib defined errno values here. When strerror() returns NULL
10919         or an empty string, return EINVAL.
10920         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10921         gnulib defined errno values here.
10922         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10923
10924 2011-05-18  Eric Blake  <eblake@redhat.com>
10925
10926         fnmatch: avoid compiler warning
10927         * lib/fnmatch_loop.c (FCT): Use correct type.
10928         Reported by Matthias Bolte.
10929
10930 2011-05-13  Jim Meyering  <meyering@redhat.com>
10931
10932         maint.mk: three new prohibit_<HDR>_without_use rules
10933         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10934         (sc_prohibit_stdio-safer_without_use): Likewise.
10935         (sc_prohibit_xfreopen_without_use): Likewise.
10936
10937 2011-05-17  Jim Meyering  <meyering@redhat.com>
10938
10939         announce-gen: fail if the NEWS delta is empty
10940         If there's nothing noteworthy in NEWS, then either you forgot
10941         or you shouldn't be releasing.
10942         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10943
10944 2011-05-17  Pádraig Brady <P@draigBrady.com>
10945
10946         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10947         reserved symbols starting with double underscore from the check.
10948
10949 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10950
10951         intprops: add doc
10952         * doc/intprops.texi: New file, documenting intprops.
10953         * doc/gnulib.texi (Particular Modules): Include it.
10954
10955         verify: add doc to gnulib manual and fix example
10956         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10957         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10958         (Compile-time Assertions): Fix example so it can't overflow.
10959
10960 2011-05-17  Jim Meyering  <meyering@redhat.com>
10961
10962         warnings.m4: don't usurp save_CPPFLAGS variable name
10963         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10964
10965         doc: fix typo
10966         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10967
10968 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10969             Bruno Haible  <bruno@clisp.org>
10970
10971         doc: Tweak recent change.
10972         * README (Portability guidelines): Tweak new text.
10973         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10974         Interix 6.1.
10975
10976 2011-05-16  Eric Blake  <eblake@redhat.com>
10977
10978         inttypes: avoid autoconf warning
10979         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10980         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10981
10982 2011-05-16  Sam Steingold <sds@gnu.org>
10983         and Eric Blake  <eblake@redhat.com>
10984
10985         vc-list-files: accept multiple directory operands
10986         * build-aux/vc-list-files: Iterate over all remaining operands.
10987
10988 2011-05-16  Bruno Haible  <bruno@clisp.org>
10989
10990         Fix confusion regarding deprecated modules.
10991         * modules/calloc (Status, Notice): Mark module as deprecated, not
10992         obsolete.
10993         * modules/fnmatch-posix (Status, Notice): Likewise.
10994         * modules/getdate (Status, Notice): Likewise.
10995         * modules/getopt (Status, Notice): Likewise.
10996         * modules/malloc (Status, Notice): Likewise.
10997         * modules/pipe (Status, Notice): Likewise.
10998         * modules/realloc (Status, Notice): Likewise.
10999         * modules/rename-dest-slash (Status, Notice): Likewise.
11000         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
11001         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
11002         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
11003         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
11004         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
11005
11006 2011-05-16  Bruno Haible  <bruno@clisp.org>
11007
11008         doc: List the target platforms.
11009         * doc/gnulib-intro.texi (Target Platforms): New section.
11010         * doc/gnulib.texi (Introduction): Update menu.
11011         * README (Portability guidelines): Refer to the new section. Update
11012         statement about oldest supported environment. Remove rationale why
11013         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
11014         unportable C89 function.
11015         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
11016         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
11017
11018 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11019
11020         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
11021
11022 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11023
11024         intprops-tests: new module
11025         * modules/intprops-tests, tests/test-intprops.c: New files.
11026
11027         intprops: add safe, portable integer overflow checking
11028         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
11029         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
11030         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
11031         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
11032         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
11033         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
11034         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
11035         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
11036         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
11037         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
11038         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
11039
11040 2011-05-12  James Youngman  <jay@gnu.org>
11041
11042         Add a test for glibc's Bugzilla bug #12378.
11043         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
11044         doesn't allow the literal matching of a lone "[" (which is
11045         required by POSIX).
11046         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
11047
11048 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
11049
11050         Sync glibc change fixing Bugzilla bug #12378.
11051         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
11052         beginning and fall back to matching as normal character if the
11053         string ends before the matching ']' is found.  This is what POSIX
11054         requires.
11055
11056 2011-05-13  Eric Blake  <eblake@redhat.com>
11057
11058         getcwd-lgpl: relax test for FreeBSD
11059         * doc/posix-functions/getcwd.texi (getcwd): Document portability
11060         issue.
11061         * tests/test-getcwd-lgpl.c (main): Relax test.
11062         Reported by Matthias Bolte.
11063
11064 2011-05-11  Eric Blake  <eblake@redhat.com>
11065
11066         test-fflush: silence compiler warning
11067         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
11068
11069 2011-05-11  Bruno Haible  <bruno@clisp.org>
11070
11071         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
11072         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
11073         * modules/canonicalize (Depends-on): Add 'nocrash'.
11074         * modules/canonicalize-lgpl (Depends-on): Likewise.
11075         * doc/posix-functions/realpath.texi: Update platforms list.
11076         Reported by Ryan Schmidt <ryandesign@macports.org>.
11077
11078 2011-05-11  Bruno Haible  <bruno@clisp.org>
11079
11080         group-member: Declare function in <unistd.h>.
11081         * lib/unistd.in.h (group_member): New declaration.
11082         * lib/group-member.h: Remove file.
11083         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
11084         * tests/test-unistd-c++.cc: Check signature of group_member.
11085         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
11086         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
11087         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
11088         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
11089         HAVE_GROUP_MEMBER.
11090         * modules/group-member (Files): Remove lib/group-member.h.
11091         (Depends-on): Add unistd. Specify conditions.
11092         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11093         (Include): Change to <unistd.h>.
11094         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
11095         HAVE_GROUP_MEMBER.
11096         * NEWS: Mention the change.
11097         * lib/euidaccess.c: Don't include group-member.h.
11098
11099 2011-05-11  Bruno Haible  <bruno@clisp.org>
11100
11101         group-member: Document module.
11102         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
11103         module.
11104
11105 2011-05-11  Bruno Haible  <bruno@clisp.org>
11106
11107         fclose: Fix mistake earlier today.
11108         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
11109
11110 2011-05-11  Eric Blake  <eblake@redhat.com>
11111
11112         fclose: preserve fflush errors
11113         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
11114         Reported by Jim Meyering.
11115
11116         bootstrap: support a prereq of 'rpcgen -' on RHEL5
11117         * build-aux/bootstrap (check_versions): When no specific version
11118         is required, merely check that the app produces an exit status
11119         that indicates its existence.
11120
11121         maint.mk: drop redundant check
11122         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
11123         the same but better.
11124
11125 2011-05-11  Bruno Haible  <bruno@clisp.org>
11126
11127         fclose: Fix possible link error.
11128         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
11129         unregister_shadow_fd. Improve comments.
11130         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
11131         Eric Blake.
11132
11133 2011-05-11  Jim Meyering  <meyering@redhat.com>
11134
11135         maint.mk: improve "can not" detection and generalize rule name
11136         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
11137         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
11138         Use the same technique as in sc_prohibit_doubled_word, so that
11139         we recognize "can not" also when the words are separated by a newline.
11140         Suggested by Eric Blake.
11141         (perl_filename_lineno_text_): Define.  Factored out of...
11142         (prohibit_doubled_word_): ...here.  Use the new definition.
11143         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
11144         (prohibit_undesirable_word_seq_RE_): New overridable variable.
11145         (ignore_undesirable_word_sequence_RE_): New overridable variable.
11146
11147 2011-05-10  Eric Blake  <eblake@redhat.com>
11148
11149         fclose: avoid double close race when possible
11150         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
11151         all but WINDOWS_SOCKETS.
11152
11153 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
11154
11155         openat: correct new comment
11156         * lib/openat-proc.c (openat_proc_name): Correct the comment.
11157
11158 2011-05-10  Jim Meyering  <meyering@redhat.com>
11159
11160         openat: add comments
11161         * lib/openat-proc.c (openat_proc_name): Add comments,
11162         mostly from Eric Blake.
11163
11164 2011-05-09  Eric Blake  <eblake@redhat.com>
11165
11166         openat: reduce syscalls in first probe of /proc
11167         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
11168         be a directory.  Simplify the probe for .. bugs.
11169         * modules/openat (Depends-on): Drop same-inode.
11170         Reported by Bastien ROUCARIES.
11171
11172 2011-05-09  Jim Meyering  <meyering@redhat.com>
11173
11174         maint.mk: change semantics/name of tight_scope variables
11175         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
11176         Rename variables to align with semantics that make them more useful.
11177
11178         maint.mk: tweak new rule's name not to impinge
11179         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
11180         (sc_tight_scope): Use new rule name rather than $@-0.
11181
11182         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
11183         * top/maint.mk (sc_tight_scope): New rule.
11184         (sc_tight_scope-0): New rule, ifdef'd out.
11185         (_gl_TS_dir): Default.
11186         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
11187         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
11188
11189 2011-05-09  Simon Josefsson  <simon@josefsson.org>
11190
11191         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
11192         Haible <bruno@clisp.org>.
11193
11194 2011-05-08  Bruno Haible  <bruno@clisp.org>
11195
11196         Comments.
11197         * m4/isnanf.m4: Add comment.
11198         * m4/isnanl.m4: Likewise.
11199
11200 2011-05-08  Bruno Haible  <bruno@clisp.org>
11201
11202         glob: Remove obsolete macro.
11203         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
11204
11205 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11206
11207         intprops: Sun C 5.11 supports __typeof__
11208         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
11209         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
11210         which is new.
11211         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
11212
11213         intprops: switch to usual gnulib indenting and naming
11214         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
11215         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
11216
11217         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
11218
11219 2011-05-08  Jim Meyering  <meyering@redhat.com>
11220
11221         maint.mk: suppress "Entering/Leaving directory" diag in announcement
11222         * top/maint.mk (release-prep): Use make's --no-print-directory
11223         option when generating the announcement.  This eliminates the
11224         pesky "make[2]: Entering/Leaving directory" diagnostics in the
11225         generated announcement template.
11226
11227 2011-05-08  Bruno Haible  <bruno@clisp.org>
11228
11229         tzset: Fix gettimeofday wrapper on Solaris 2.6.
11230         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
11231         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
11232
11233 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11234
11235         ignore-value, verify: Omit include files from lib_SOURCES.
11236         * modules/ignore-value, modules/verify (Makefile.am):
11237         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
11238         that leads Automake to duplicate use of am__objects_... variables
11239         in Makefile.in.  See
11240         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
11241
11242 2011-05-07  Bruno Haible  <bruno@clisp.org>
11243
11244         fclose: Simplify autoconf macro.
11245         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
11246         defined.
11247
11248 2011-05-07  Bruno Haible  <bruno@clisp.org>
11249
11250         canonicalize-lgpl: Fix autoconf macro ordering bug.
11251         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
11252         gl_STDLIB_H_DEFAULTS.
11253
11254 2011-05-06  Eric Blake  <eblake@redhat.com>
11255
11256         maintainer-makefile: make sc_po_check easier to tune
11257         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
11258         to probe for strings, such as an alternate location for gnulib.
11259
11260         fclose: guarantee behavior on seekable stdin
11261         * modules/fclose (Depends-on): Add fflush.
11262         * doc/posix-functions/fclose.texi (fclose): Document this.
11263         * tests/test-fclose.c (main): Make test for this unconditional.
11264
11265 2011-05-06  Bruno Haible  <bruno@clisp.org>
11266
11267         fflush, fpurge: Relicense under LGPLv2+.
11268         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
11269         * modules/fpurge (License): Likewise.
11270         With permission from Eric Blake and Jim Meyering.
11271         Suggested by Eric Blake.
11272
11273 2011-05-06  Karl Berry  <karl@gnu.org>
11274
11275         * MODULES.html.sh (func_all_modules): remove exit.
11276
11277 2011-05-06  Jim Meyering  <meyering@redhat.com>
11278
11279         maint.mk: use info-gnu@ as the default only for a stable release
11280         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
11281         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
11282         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
11283         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
11284
11285 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11286
11287         assert-h: new module, which supports C1X-style static_assert
11288         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
11289         * lib/verify.h: Revamp so that this can be copied into assert.h,
11290         while retaining the ability to use it standalone as before.
11291         Rename private identifiers so as not to encroach on the
11292         standard C namespace, since this is now used by assert.h.
11293         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
11294         the old verify_true.
11295         (_GL_VERIFY_TRUE): New macro, with much of the contents of
11296         the old verify_true.  Use _GL_VERIFY_TYPE.
11297         (_GL_VERIFY): New macro, with much of the contents of the old verify.
11298         (static_assert): New macro, if _GL_STATIC_ASSERT_H
11299         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
11300         defined when this file is copied into the replacement assert.h.
11301         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
11302         and _Static_assert is not built in.
11303         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
11304         defined, and use the new macros mentioned above.
11305         * doc/posix-headers/assert.texi: Document this.
11306
11307 2011-05-05  Bruno Haible  <bruno@clisp.org>
11308
11309         fclose, fflush: Respect rules for use of AC_LIBOBJ.
11310         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
11311         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
11312         gl_REPLACE_FCLOSE here.
11313         * modules/fflush (Depends-on): Remove fclose.
11314         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
11315         combination with module 'fclose'.
11316
11317 2011-05-05  Bruno Haible  <bruno@clisp.org>
11318
11319         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
11320         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
11321         gl_FUNC_FFLUSH.
11322         (gl_FUNC_FFLUSH): Use it.
11323         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
11324         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
11325         gl_REPLACE_FSEEKO here.
11326
11327 2011-05-05  Bruno Haible  <bruno@clisp.org>
11328
11329         tzset: Relicense under LGPL.
11330         * modules/tzset (License): Change to LGPL.
11331         No agreement needed; it's a no-op.
11332
11333         strtoimax, strtoumax: Relicense under LGPL.
11334         * modules/strtoimax (License): Change to LGPL.
11335         * modules/strtoumax (License): Likewise.
11336         With permission from Jim Meyering, Paul Eggert:
11337         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
11338         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
11339
11340         getgroups: Relicense under LGPL.
11341         * modules/getgroups (License): Change to LGPL.
11342         With permission from Jim Meyering, Paul Eggert, Eric Blake:
11343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11344         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11345         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11346
11347         nanosleep: Relicense under LGPL.
11348         * modules/nanosleep (License): Change to LGPL.
11349         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
11350         Haible:
11351         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11352         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11353         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11354         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11355
11356         futimens: Relicense under LGPL.
11357         * modules/futimens (License): Change to LGPL.
11358         With permission from Eric Blake:
11359         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11360
11361         fflush: Relicense under LGPL.
11362         * modules/fflush (License): Change to LGPL.
11363         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11365         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11366         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11367
11368         tmpfile: Relicense under LGPL.
11369         * modules/tmpfile (License): Change to LGPL.
11370         With permission from Ben Pfaff:
11371         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11372
11373         isfinite: Relicense under LGPL.
11374         * modules/isfinite (License): Change to LGPL.
11375         With permission from Ben Pfaff, Bruno Haible:
11376         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11377         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11378
11379         acosl..tanl: Relicense under LGPL.
11380         * modules/acosl (License): Change to LGPL.
11381         * modules/asinl (License): Likewise.
11382         * modules/atanl (License): Likewise.
11383         * modules/cosl (License): Likewise.
11384         * modules/expl (License): Likewise.
11385         * modules/logl (License): Likewise.
11386         * modules/sinl (License): Likewise.
11387         * modules/sqrtl (License): Likewise.
11388         * modules/tanl (License): Likewise.
11389         Source code originally from glibc and Paolo Bonzini. Agreements:
11390         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11391         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
11392
11393 2011-05-05  Bruno Haible  <bruno@clisp.org>
11394
11395         signal: Define sighandler_t.
11396         * lib/signal.in.h (sighandler_t): New type.
11397         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
11398         whether sighandler_t is defined.
11399         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
11400         * modules/signal (Depends-on): Add extensions.
11401         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
11402         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11403         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
11404
11405 2011-05-05  Eric Blake  <eblake@redhat.com>
11406
11407         maint: remove useless REPLACE_*_H macros
11408         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
11409         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11410         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11411         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
11412         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11413         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11414         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11415         * m4/btowc.m4: Update callers.
11416         * m4/dirfd.m4: Likewise.
11417         * m4/duplocale.m4: Likewise.
11418         * m4/fchdir.m4: Likewise.
11419         * m4/fdopendir.m4: Likewise.
11420         * m4/inet_ntop.m4: Likewise.
11421         * m4/inet_pton.m4: Likewise.
11422         * m4/ioctl.m4: Likewise.
11423         * m4/mbrlen.m4: Likewise.
11424         * m4/mbrtowc.m4: Likewise.
11425         * m4/mbsinit.m4: Likewise.
11426         * m4/mbsnrtowcs.m4: Likewise.
11427         * m4/mbsrtowcs.m4: Likewise.
11428         * m4/poll.m4: Likewise.
11429         * m4/setlocale.m4: Likewise.
11430         * m4/wcrtomb.m4: Likewise.
11431         * m4/wcsnrtombs.m4: Likewise.
11432         * m4/wcsrtombs.m4: Likewise.
11433         * m4/wctob.m4: Likewise.
11434         * m4/wcwidth.m4: Likewise.
11435         * modules/posix_spawn: Likewise.
11436         * modules/posix_spawn_file_actions_addclose: Likewise.
11437         * modules/posix_spawn_file_actions_adddup2: Likewise.
11438         * modules/posix_spawn_file_actions_addopen: Likewise.
11439         * modules/posix_spawn_file_actions_destroy: Likewise.
11440         * modules/posix_spawn_file_actions_init: Likewise.
11441         * modules/posix_spawnattr_destroy: Likewise.
11442         * modules/posix_spawnattr_getflags: Likewise.
11443         * modules/posix_spawnattr_getpgroup: Likewise.
11444         * modules/posix_spawnattr_getschedparam: Likewise.
11445         * modules/posix_spawnattr_getschedpolicy: Likewise.
11446         * modules/posix_spawnattr_getsigdefault: Likewise.
11447         * modules/posix_spawnattr_getsigmask: Likewise.
11448         * modules/posix_spawnattr_init: Likewise.
11449         * modules/posix_spawnattr_setflags: Likewise.
11450         * modules/posix_spawnattr_setpgroup: Likewise.
11451         * modules/posix_spawnattr_setschedparam: Likewise.
11452         * modules/posix_spawnattr_setschedpolicy: Likewise.
11453         * modules/posix_spawnattr_setsigdefault: Likewise.
11454         * modules/posix_spawnattr_setsigmask: Likewise.
11455         * modules/posix_spawnp: Likewise.
11456
11457 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
11458
11459         Add option to do-release-commit-and-tag to specify branch.
11460         * build-aux/do-release-commit-and-tag: Add --branch.
11461
11462 2011-05-03  Bruno Haible  <bruno@clisp.org>
11463
11464         Avoid unnecessary compilation units, through conditional dependencies.
11465         * modules/accept (Depends-on): Add conditions to the dependencies.
11466         * modules/acosl (Depends-on): Likewise.
11467         * modules/argz (Depends-on): Likewise.
11468         * modules/asinl (Depends-on): Likewise.
11469         * modules/atanl (Depends-on): Likewise.
11470         * modules/atoll (Depends-on): Likewise.
11471         * modules/bind (Depends-on): Likewise.
11472         * modules/btowc (Depends-on): Likewise.
11473         * modules/canonicalize-lgpl (Depends-on): Likewise.
11474         * modules/ceil (Depends-on): Likewise.
11475         * modules/ceilf (Depends-on): Likewise.
11476         * modules/ceill (Depends-on): Likewise.
11477         * modules/chdir-long (Depends-on): Likewise.
11478         * modules/chown (Depends-on): Likewise.
11479         * modules/close (Depends-on): Likewise.
11480         * modules/connect (Depends-on): Likewise.
11481         * modules/cosl (Depends-on): Likewise.
11482         * modules/dirfd (Depends-on): Likewise.
11483         * modules/dprintf (Depends-on): Likewise.
11484         * modules/dprintf-posix (Depends-on): Likewise.
11485         * modules/error (Depends-on): Likewise.
11486         * modules/euidaccess (Depends-on): Likewise.
11487         * modules/expl (Depends-on): Likewise.
11488         * modules/faccessat (Depends-on): Likewise.
11489         * modules/fchdir (Depends-on): Likewise.
11490         * modules/fclose (Depends-on): Likewise.
11491         * modules/fcntl (Depends-on): Likewise.
11492         * modules/fdopendir (Depends-on): Likewise.
11493         * modules/fflush (Depends-on): Likewise.
11494         * modules/floor (Depends-on): Likewise.
11495         * modules/floorf (Depends-on): Likewise.
11496         * modules/floorl (Depends-on): Likewise.
11497         * modules/fnmatch (Depends-on): Likewise.
11498         * modules/fopen (Depends-on): Likewise.
11499         * modules/fprintf-posix (Depends-on): Likewise.
11500         * modules/frexp (Depends-on): Likewise.
11501         * modules/frexp-nolibm (Depends-on): Likewise.
11502         * modules/frexpl (Depends-on): Likewise.
11503         * modules/frexpl-nolibm (Depends-on): Likewise.
11504         * modules/fseek (Depends-on): Likewise.
11505         * modules/fsusage (Depends-on): Likewise.
11506         * modules/ftell (Depends-on): Likewise.
11507         * modules/ftello (Depends-on): Likewise.
11508         * modules/futimens (Depends-on): Likewise.
11509         * modules/getcwd (Depends-on): Likewise.
11510         * modules/getcwd-lgpl (Depends-on): Likewise.
11511         * modules/getdelim (Depends-on): Likewise.
11512         * modules/getdomainname (Depends-on): Likewise.
11513         * modules/getgroups (Depends-on): Likewise.
11514         * modules/gethostname (Depends-on): Likewise.
11515         * modules/getline (Depends-on): Likewise.
11516         * modules/getlogin_r (Depends-on): Likewise.
11517         * modules/getopt-posix (Depends-on): Likewise.
11518         * modules/getpeername (Depends-on): Likewise.
11519         * modules/getsockname (Depends-on): Likewise.
11520         * modules/getsockopt (Depends-on): Likewise.
11521         * modules/getsubopt (Depends-on): Likewise.
11522         * modules/getusershell (Depends-on): Likewise.
11523         * modules/glob (Depends-on): Likewise.
11524         * modules/grantpt (Depends-on): Likewise.
11525         * modules/iconv_open (Depends-on): Likewise.
11526         * modules/iconv_open-utf (Depends-on): Likewise.
11527         * modules/inet_ntop (Depends-on): Likewise.
11528         * modules/inet_pton (Depends-on): Likewise.
11529         * modules/ioctl (Depends-on): Likewise.
11530         * modules/isapipe (Depends-on): Likewise.
11531         * modules/isfinite (Depends-on): Likewise.
11532         * modules/isinf (Depends-on): Likewise.
11533         * modules/lchown (Depends-on): Likewise.
11534         * modules/ldexpl (Depends-on): Likewise.
11535         * modules/link (Depends-on): Likewise.
11536         * modules/linkat (Depends-on): Likewise.
11537         * modules/listen (Depends-on): Likewise.
11538         * modules/logl (Depends-on): Likewise.
11539         * modules/lstat (Depends-on): Likewise.
11540         * modules/mbrlen (Depends-on): Likewise.
11541         * modules/mbrtowc (Depends-on): Likewise.
11542         * modules/mbsinit (Depends-on): Likewise.
11543         * modules/mbsnrtowcs (Depends-on): Likewise.
11544         * modules/mbsrtowcs (Depends-on): Likewise.
11545         * modules/mbtowc (Depends-on): Likewise.
11546         * modules/memcmp (Depends-on): Likewise.
11547         * modules/mkdir (Depends-on): Likewise.
11548         * modules/mkdtemp (Depends-on): Likewise.
11549         * modules/mkfifo (Depends-on): Likewise.
11550         * modules/mkfifoat (Depends-on): Likewise.
11551         * modules/mknod (Depends-on): Likewise.
11552         * modules/mkostemp (Depends-on): Likewise.
11553         * modules/mkostemps (Depends-on): Likewise.
11554         * modules/mkstemp (Depends-on): Likewise.
11555         * modules/mkstemps (Depends-on): Likewise.
11556         * modules/mktime (Depends-on): Likewise.
11557         * modules/nanosleep (Depends-on): Likewise.
11558         * modules/open (Depends-on): Likewise.
11559         * modules/openat (Depends-on): Likewise.
11560         * modules/perror (Depends-on): Likewise.
11561         * modules/poll (Depends-on): Likewise.
11562         * modules/popen (Depends-on): Likewise.
11563         * modules/posix_spawn (Depends-on): Likewise.
11564         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11565         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11566         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11567         * modules/posix_spawnp (Depends-on): Likewise.
11568         * modules/pread (Depends-on): Likewise.
11569         * modules/printf-posix (Depends-on): Likewise.
11570         * modules/ptsname (Depends-on): Likewise.
11571         * modules/putenv (Depends-on): Likewise.
11572         * modules/pwrite (Depends-on): Likewise.
11573         * modules/readline (Depends-on): Likewise.
11574         * modules/readlink (Depends-on): Likewise.
11575         * modules/readlinkat (Depends-on): Likewise.
11576         * modules/recv (Depends-on): Likewise.
11577         * modules/recvfrom (Depends-on): Likewise.
11578         * modules/regex (Depends-on): Likewise.
11579         * modules/remove (Depends-on): Likewise.
11580         * modules/rename (Depends-on): Likewise.
11581         * modules/renameat (Depends-on): Likewise.
11582         * modules/rmdir (Depends-on): Likewise.
11583         * modules/round (Depends-on): Likewise.
11584         * modules/roundf (Depends-on): Likewise.
11585         * modules/roundl (Depends-on): Likewise.
11586         * modules/rpmatch (Depends-on): Likewise.
11587         * modules/select (Depends-on): Likewise.
11588         * modules/send (Depends-on): Likewise.
11589         * modules/sendto (Depends-on): Likewise.
11590         * modules/setenv (Depends-on): Likewise.
11591         * modules/setlocale (Depends-on): Likewise.
11592         * modules/setsockopt (Depends-on): Likewise.
11593         * modules/shutdown (Depends-on): Likewise.
11594         * modules/sigaction (Depends-on): Likewise.
11595         * modules/signbit (Depends-on): Likewise.
11596         * modules/sigprocmask (Depends-on): Likewise.
11597         * modules/sinl (Depends-on): Likewise.
11598         * modules/sleep (Depends-on): Likewise.
11599         * modules/snprintf (Depends-on): Likewise.
11600         * modules/snprintf-posix (Depends-on): Likewise.
11601         * modules/socket (Depends-on): Likewise.
11602         * modules/sprintf-posix (Depends-on): Likewise.
11603         * modules/sqrtl (Depends-on): Likewise.
11604         * modules/stat (Depends-on): Likewise.
11605         * modules/strchrnul (Depends-on): Likewise.
11606         * modules/strdup-posix (Depends-on): Likewise.
11607         * modules/strerror (Depends-on): Likewise.
11608         * modules/strerror_r-posix (Depends-on): Likewise.
11609         * modules/strndup (Depends-on): Likewise.
11610         * modules/strnlen (Depends-on): Likewise.
11611         * modules/strptime (Depends-on): Likewise.
11612         * modules/strsep (Depends-on): Likewise.
11613         * modules/strsignal (Depends-on): Likewise.
11614         * modules/strstr-simple (Depends-on): Likewise.
11615         * modules/strtod (Depends-on): Likewise.
11616         * modules/strtoimax (Depends-on): Likewise.
11617         * modules/strtok_r (Depends-on): Likewise.
11618         * modules/strtoumax (Depends-on): Likewise.
11619         * modules/symlink (Depends-on): Likewise.
11620         * modules/symlinkat (Depends-on): Likewise.
11621         * modules/tanl (Depends-on): Likewise.
11622         * modules/tcgetsid (Depends-on): Likewise.
11623         * modules/tmpfile (Depends-on): Likewise.
11624         * modules/trunc (Depends-on): Likewise.
11625         * modules/truncf (Depends-on): Likewise.
11626         * modules/truncl (Depends-on): Likewise.
11627         * modules/uname (Depends-on): Likewise.
11628         * modules/unlink (Depends-on): Likewise.
11629         * modules/unlockpt (Depends-on): Likewise.
11630         * modules/unsetenv (Depends-on): Likewise.
11631         * modules/usleep (Depends-on): Likewise.
11632         * modules/utimensat (Depends-on): Likewise.
11633         * modules/vasprintf (Depends-on): Likewise.
11634         * modules/vdprintf (Depends-on): Likewise.
11635         * modules/vdprintf-posix (Depends-on): Likewise.
11636         * modules/vfprintf-posix (Depends-on): Likewise.
11637         * modules/vprintf-posix (Depends-on): Likewise.
11638         * modules/vsnprintf (Depends-on): Likewise.
11639         * modules/vsnprintf-posix (Depends-on): Likewise.
11640         * modules/vsprintf-posix (Depends-on): Likewise.
11641         * modules/wcrtomb (Depends-on): Likewise.
11642         * modules/wcscasecmp (Depends-on): Likewise.
11643         * modules/wcscspn (Depends-on): Likewise.
11644         * modules/wcsdup (Depends-on): Likewise.
11645         * modules/wcsncasecmp (Depends-on): Likewise.
11646         * modules/wcsnrtombs (Depends-on): Likewise.
11647         * modules/wcspbrk (Depends-on): Likewise.
11648         * modules/wcsrtombs (Depends-on): Likewise.
11649         * modules/wcsspn (Depends-on): Likewise.
11650         * modules/wcsstr (Depends-on): Likewise.
11651         * modules/wcstok (Depends-on): Likewise.
11652         * modules/wcswidth (Depends-on): Likewise.
11653         * modules/wctob (Depends-on): Likewise.
11654         * modules/wctomb (Depends-on): Likewise.
11655         * modules/wctype (Depends-on): Likewise.
11656         * modules/wcwidth (Depends-on): Likewise.
11657         * modules/write (Depends-on): Likewise.
11658
11659 2011-05-03  Bruno Haible  <bruno@clisp.org>
11660
11661         Support for conditional dependencies.
11662         * doc/gnulib.texi (Module description): Document the syntax of
11663         conditional dependencies.
11664         * gnulib-tool: New option --conditional-dependencies.
11665         (func_usage): Document it.
11666         (cond_dependencies): New variable.
11667         (func_get_automake_snippet_conditional,
11668         func_get_automake_snippet_unconditional): New functions, extracted from
11669         func_get_automake_snippet.
11670         (func_get_automake_snippet): Use them.
11671         (sed_first_32_chars): New variable.
11672         (func_module_shellfunc_name): New function.
11673         (func_module_shellvar_name): New function.
11674         (func_module_conditional_name): New function.
11675         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11676         func_cond_module_condition): New functions.
11677         (func_modules_transitive_closure): Add support for conditional
11678         dependencies.
11679         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11680         conditional automake snippet in an automake conditional.
11681         (func_emit_autoconf_snippets): Emit shell functions that contain the
11682         code for conditional modules.
11683         (func_import, func_create_testdir): Update specification.
11684
11685 2011-05-03  Eric Blake  <eblake@redhat.com>
11686
11687         test-getaddrinfo: report error information
11688         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11689
11690 2011-05-03  Jim Meyering  <meyering@redhat.com>
11691
11692         bootstrap: avoid build failure when $GZIP is set
11693         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11694         program name.  If defined at all, it is supposed to list gzip options.
11695         Reported by Alan Curry in http://debbugs.gnu.org/8609
11696
11697 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11698
11699         readme-release: new module with release instructions
11700         * modules/readme-release: New module.
11701         * top/README-release: New file, from coreutils, grep, diffutils.
11702         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11703
11704 2011-05-02  Eric Blake  <eblake@redhat.com>
11705
11706         fflush: also replace fclose when fixing fflush
11707         * modules/fflush (Depends-on): Add fclose.
11708         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11709         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11710         memstreams with no backing fd.
11711         * doc/posix-functions/fclose.texi (fclose): Document the use of
11712         fflush module to fix the bug.
11713         * tests/test-fclose.c (main): Relax test when fclose is used in
11714         isolation.
11715
11716         fclose: add some tests
11717         * modules/fclose-tests: New test module.
11718         * tests/test-fclose.c: New file.
11719         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11720
11721         fclose: reduced dependencies
11722         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11723         simpler lseek.
11724         * lib/fclose.c (rpl_fclose): Likewise.
11725         Reported by Simon Josefsson.
11726
11727         exit: drop remaining clients
11728         * modules/argmatch (Depends-on): Replace exit with stdlib.
11729         * modules/copy-file (Depends-on): Likewise.
11730         * modules/execute (Depends-on): Likewise.
11731         * modules/exitfail (Depends-on): Likewise.
11732         * modules/obstack (Depends-on): Likewise.
11733         * modules/pagealign_alloc (Depends-on): Likewise.
11734         * modules/pipe-filter-gi (Depends-on): Likewise.
11735         * modules/pipe-filter-ii (Depends-on): Likewise.
11736         * modules/savewd (Depends-on): Likewise.
11737         * modules/spawn-pipe (Depends-on): Likewise.
11738         * modules/wait-process (Depends-on): Likewise.
11739         * modules/xsetenv (Depends-on): Likewise.
11740         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11741         * modules/git-merge-changelog (Depends-on): Likewise.
11742         * modules/long-options (Depends-on): Likewise.
11743         * modules/pt_chown (Depends-on): Likewise.
11744         * modules/sysexits (Depends-on): Likewise.
11745
11746         freading: relax license from LGPLv3+ to LGPLv2+
11747         * modules/freading (License): Relax LGPL version.
11748
11749 2011-05-02  Bruno Haible  <bruno@clisp.org>
11750
11751         fchdir: Remove unused dependencies.
11752         * modules/fchdir (Depends-on): Remove include_next.
11753
11754 2011-05-02  Bruno Haible  <bruno@clisp.org>
11755
11756         gnulib-tool: Refactor.
11757         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11758         from func_emit_autoconf_snippets.
11759         (func_emit_autoconf_snippets): Use it.
11760
11761 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11762
11763         * NEWS: Document removal of 'exit'.
11764         * modules/exit: Remove file.
11765
11766 2011-05-01  Bruno Haible  <bruno@clisp.org>
11767
11768         Update DEPENDENCIES.
11769         * DEPENDENCIES (gettext): Recommend the newest release.
11770         Reported by Simon Josefsson.
11771
11772 2011-05-01  Bruno Haible  <bruno@clisp.org>
11773
11774         gnulib-tool: Reduce code duplication.
11775         * gnulib-tool (func_emit_autoconf_snippets): New function.
11776         (func_import, func_create_testdir): Use it.
11777
11778 2011-04-30  Eric Blake  <eblake@redhat.com>
11779
11780         fclose: don't fail on non-seekable input stream
11781         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11782         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11783         since fflush is allowed to fail in that case.
11784
11785 2011-04-30  Bruno Haible  <bruno@clisp.org>
11786
11787         dup3: cleanup
11788         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11789
11790 2011-04-30  Bruno Haible  <bruno@clisp.org>
11791
11792         netdb: Make it work in C++ mode.
11793         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11794         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11795         module.
11796         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11797         gl_MODULE_INDICATOR_FOR_TESTS.
11798         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11799         * modules/netdb-c++-tests: New file.
11800         * tests/test-netdb-c++.cc: New file.
11801
11802 2011-04-30  Bruno Haible  <bruno@clisp.org>
11803
11804         New modules 'vfscanf', 'vscanf'.
11805         * modules/vfscanf: New file.
11806         * modules/vscanf: New file.
11807         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11808         here.
11809         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11810         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11811
11812 2011-04-30  Bruno Haible  <bruno@clisp.org>
11813
11814         passfd: Add comments.
11815         * lib/passfd.c: Add comments about platforms.
11816
11817 2011-04-30  Bruno Haible  <bruno@clisp.org>
11818
11819         sys_uio: Make <sys/uio.h> self-contained.
11820         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11821         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11822
11823 2011-04-30  Bruno Haible  <bruno@clisp.org>
11824
11825         sys_socket: Ensure 'struct iovec' definition.
11826         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11827         <sys/socket.h>.
11828         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11829
11830 2011-04-30  Bruno Haible  <bruno@clisp.org>
11831
11832         sys_uio: Protect definition of 'struct iovec'.
11833         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11834         it as a C struct.
11835
11836 2011-04-30  Bruno Haible  <bruno@clisp.org>
11837
11838         manywarnings: fix indentation
11839         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11840
11841 2011-04-30  Pádraig Brady <P@draigBrady.com>
11842
11843         manywarnings: add -Wno-missing-field-initializers if needed.
11844         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11845         option if it's needed to allow initialization with { 0, }
11846
11847 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11848
11849         announce-gen: cosmetic improvement
11850         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11851
11852 2011-04-29  Jim Meyering  <meyering@redhat.com>
11853
11854         vc-list-files: indent with spaces, not TABs
11855         * build-aux/vc-list-files: Convert leading TABs to spaces,
11856         to match the style of most other files in gnulib.
11857
11858         announce-gen: indent with spaces, not TABs
11859         * build-aux/announce-gen: Convert all TABs to spaces, to match
11860         the style of most other files in gnulib.
11861
11862 2011-04-29  Eric Blake  <eblake@redhat.com>
11863
11864         quotearg: avoid uninitialized variable use
11865         * lib/quotearg.c (quoting_options_from_style): Initialize
11866         remaining fields, and ensure that custom styles are only used via
11867         quoting_options rather than quoting_style.
11868
11869 2011-04-29  Jim Meyering  <meyering@redhat.com>
11870
11871         maint.mk: remove unused VC-tag variable
11872         * top/maint.mk (VC-tag): Remove unused variable.
11873
11874 2011-04-29  Bruno Haible  <bruno@clisp.org>
11875
11876         netdb: fix gai_strerror replacements
11877         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11878         * modules/netdb: Substitute it.
11879
11880 2011-04-29  Jim Meyering  <meyering@redhat.com>
11881
11882         test-getcwd.c: avoid new set-but-not-used warning
11883         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11884         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11885         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11886         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11887
11888         test-hash.c: avoid a new shadowing warning
11889         * tests/test-hash.c (main): Don't shadow "dup".
11890
11891 2011-04-28  Eric Blake  <eblake@redhat.com>
11892
11893         getaddrinfo: fix gai_strerror signature
11894         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11895         and work around mingw with UNICODE defined.
11896         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11897         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11898         * modules/netdb (Makefile.am): Substitute it.
11899         * lib/netdb.in.h (gai_strerror): Declare replacement.
11900         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11901         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11902         the fix.
11903
11904         getsockopt: avoid compiler warning
11905         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11906         Reported by Matthias Bolte.
11907
11908         tests: drop unused link dependency
11909         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11910         * modules/dirent-safer-tests (Makefile.am): Likewise.
11911         * modules/fdopendir-tests (Makefile.am): Likewise.
11912         * modules/mkfifoat-tests (Makefile.am): Likewise.
11913         * modules/openat-safer-tests (Makefile.am): Likewise.
11914         * modules/openat-tests (Makefile.am): Likewise.
11915         * modules/readlinkat-tests (Makefile.am): Likewise.
11916         * modules/symlinkat-tests (Makefile.am): Likewise.
11917         * modules/linkat-tests (Makefile.am): Likewise.
11918         (Depends-on): Switch to filenamecat-lgpl.
11919         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11920         LIBINTL.
11921         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11922         * tests/test-linkat.c (main): Don't require xalloc.
11923
11924         hash, mgetgroups: drop xalloc dependency
11925         * lib/hash.c (includes): Adjust includes.
11926         * lib/mgetgroups.c (includes): Likewise.
11927         (xgetgroups): Move...
11928         * lib/xgetgroups.c: ...to new file.
11929         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11930         * modules/xgetgroups: New file, split from...
11931         * modules/mgetgroups: ...here.
11932         (Depends-on): Add xalloc-oversized.
11933         * modules/hash (Depends-on): Likewise.
11934         * modules/hash-tests (Depends-on): Drop xalloc.
11935         (test_hash_LDADD): Drop unused library.
11936         * tests/test-hash.c (main): Break xalloc dependency.
11937         (includes): Drop unused include.
11938
11939         xalloc-oversized: new module
11940         * modules/xalloc-oversized: New module.
11941         * modules/xalloc (Depends-on): Add it.
11942         * lib/xalloc.h (xalloc_oversized): Move...
11943         * lib/xalloc-oversized.h: ...into new file.
11944
11945         utimecmp: drop dependency on xmalloc
11946         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11947         due to memory pressure.
11948         * modules/utimecmp (Depends-on): Drop xalloc.
11949
11950 2011-04-27  Eric Blake  <eblake@redhat.com>
11951
11952         getcwd: fix mingw bugs
11953         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11954         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11955         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11956
11957 2011-04-27  Bruno Haible  <bruno@clisp.org>
11958
11959         mkstemps: Ensure declaration on MacOS X 10.5.
11960         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11961         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11962         MacOS X.
11963
11964 2011-04-27  Bruno Haible  <bruno@clisp.org>
11965
11966         mkstemp: More documentation.
11967         * doc/posix-functions/mkstemp.texi: Document header file problem on
11968         MacOS X.
11969
11970 2011-04-27  Bruno Haible  <bruno@clisp.org>
11971
11972         mkstemp: Tweak configure message when cross-compiling.
11973         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11974         result as a guess.
11975
11976 2011-04-27  Bruno Haible  <bruno@clisp.org>
11977
11978         clean-temp: Clarify what it does.
11979         * lib/clean-temp.h: Add more comments.
11980         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11981         module.
11982         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11983         * doc/glibc-functions/mkstemps.texi: Likewise.
11984         * doc/glibc-functions/mkostemps.texi: Likewise.
11985
11986 2011-04-27  Eric Blake  <eblake@redhat.com>
11987
11988         fchdir: avoid extra chdir and fix test
11989         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11990         getcwd-lgpl.
11991         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11992         have to be canonical.
11993         (canonicalize_file_name): Drop unused macro.
11994         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11995
11996         filenamecat-lgpl: fix licence
11997         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11998         when it was first created.
11999
12000         linkat, renameat: add missing dependency
12001         * modules/linkat (Depends-on): Require getcwd-lgpl.
12002         * modules/renameat (Depends-on): Likewise.
12003
12004         tests: reduce dependencies
12005         * tests/test-linkat.c (main): Use lighter-weight getcwd.
12006         * tests/test-renameat.c (main): Likewise.
12007         * modules/linkat-tests (Depends-on): Relax dependency.
12008         * modules/renameat-tests (Depends-on): Likewise.
12009         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
12010         dependency explicit.
12011
12012         save-cwd: reduce default dependency
12013         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
12014         * lib/save-cwd.c: Update comments.
12015         * NEWS: Document the semantic change.
12016
12017         getcwd: enhance tests
12018         * tests/test-getcwd-lgpl.c: New file, taken from...
12019         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
12020         repeat long path stress tests from m4 probe.
12021         * modules/getcwd-lgpl-tests: New module.
12022         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
12023         * m4/getcwd-abort-bug.m4: Update comment.
12024         * m4/getcwd-path-max.m4: Likewise.
12025
12026         getcwd-lgpl: new module
12027         * modules/getcwd-lgpl: New module.
12028         * lib/getcwd-lgpl.c: New file.
12029         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12030         * MODULES.html.sh (lacking POSIX:2008): Likewise.
12031         * modules/getcwd (configure.ac): Set C witness.
12032         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
12033
12034         getcwd: tweak comments
12035         * m4/getcwd-abort-bug.m4: Fix comments.
12036         * m4/getcwd-path-max.m4: Likewise.
12037         * m4/getcwd.m4: Likewise.
12038
12039 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12040         and Eric Blake  <eblake@redhat.com>
12041
12042         mkstemp: replace if system version uses wrong permissions
12043         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
12044         read/write mode bits set in file created by mkstemp.
12045         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
12046
12047 2011-04-27  Eric Blake  <eblake@redhat.com>
12048
12049         passfd: avoid compiler warning
12050         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
12051         Reported by Laine Stump.
12052
12053 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
12054
12055         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
12056         required by the NetBSD (and perhaps other 4.4BSD derived) join.
12057
12058 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12059         and Eric Blake  <eblake@redhat.com>
12060
12061         mkstemp: mention clean-temp module
12062         * lib/mkstemp.c: Add comment.
12063         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
12064
12065 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
12066
12067         inttypes: also provide default values for 32-bit tests
12068         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
12069         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
12070
12071 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
12072
12073         strtoumax: remove dependency on strtoimax
12074         This is like the strtoull change of yesterday.
12075         * modules/strtoumax (Files): Add lib/strtoimax.c.
12076         (Depends-on): Remove strtoimax and add verify.
12077
12078         inttypes-incomplete: new module
12079         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
12080         all but the PRI* and SCN* parts of gl_INTTYPES_H.
12081         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
12082         of gl_INTTYPES_H.
12083         (gl_INTTYPES_H): Rewrite in terms of these new macros.
12084         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
12085         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
12086         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
12087         * modules/strtoumax, modules/xstrtol (Depends-on):
12088         Depend on inttypes-incomplete, not inttypes.
12089         * modules/inttypes-incomplete: New module, containing the contents
12090         of the old modules/inttypes module, except that the Files: section
12091         omits m4/inttypes-pri.m4, and the configure.ac section invokes
12092         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
12093         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
12094         (Depends-on): Depend only on inttypes-incomplete.
12095         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
12096
12097         inttypes: omit now-redundant strtoimax and strtoumax work
12098         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
12099         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
12100
12101         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
12102         This supports apps that need pointers to strtoimax and strtoumax,
12103         and ports to HP-UX 11.00 64.bit, which has macros that expand to
12104         nonexistent functions.  See
12105         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
12106         et seq.
12107         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
12108         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
12109         a macro.
12110         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12111
12112 2011-04-25  Simon Josefsson  <simon@josefsson.org>
12113
12114         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
12115
12116 2011-04-25  Bruno Haible  <bruno@clisp.org>
12117
12118         strtol, strtoul: Mark modules as obsolete.
12119         * modules/strtol (Status, Notice): New sections.
12120         * modules/strtoul (Status, Notice): New sections.
12121
12122 2011-04-25  Bruno Haible  <bruno@clisp.org>
12123
12124         strtod: Remove check for strtod, unless supporting old platforms.
12125         * modules/strtod-obsolete: New file.
12126         * m4/strtod-obsolete.m4: New file.
12127         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
12128         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
12129         * modules/strtod (Depends-on): Add strtod-obsolete.
12130         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
12131
12132 2011-04-25  Bruno Haible  <bruno@clisp.org>
12133
12134         strcase: Make module obsolete.
12135         * modules/strcase (Status, Notice): New sections.
12136
12137 2011-04-25  Bruno Haible  <bruno@clisp.org>
12138
12139         dup2: Remove check for dup2, unless supporting old obsolete platforms.
12140         * modules/dup2-obsolete: New file.
12141         * m4/dup2-obsolete.m4: New file.
12142         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
12143         gl_FUNC_DUP2_OBSOLETE is not also defined.
12144         * modules/dup2 (Depends-on): Add dup2-obsolete.
12145         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
12146
12147 2011-04-25  Bruno Haible  <bruno@clisp.org>
12148
12149         strnlen: Avoid memchr related link error on old obsolete platforms.
12150         * modules/memchr-obsolete: New file.
12151         * m4/memchr-obsolete.m4: New file.
12152         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
12153         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
12154         * modules/memchr (Depends-on): Add memchr-obsolete.
12155         * modules/strnlen (Depends-on): Likewise.
12156         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
12157
12158 2011-04-25  Jim Meyering  <meyering@redhat.com>
12159
12160         maint.mk: makefile_at_at_check extend and clean up
12161         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
12162         in addition to */Makefile.am.
12163         Exempt legitimate uses of @VAR@ notation, e.g.,
12164         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
12165         Remove obsolete coreutils-specific comment.
12166         Prompted by discussion here:
12167         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
12168
12169 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12170
12171         strtoul: remove dependency on strtol
12172         This is so that 'configure' need not check for strtol merely because
12173         the application needs strtoul.
12174         * modules/strtoul (Files): Add lib/strtol.c.
12175         (Depends-on): Remove strtol.
12176
12177         strtoull: remove dependency on strtoul
12178         This is like the strtoll change.
12179         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
12180         (Depends-on): Remove strtoul.
12181
12182         strtoll: remove dependency on strtol
12183         This is so that 'configure' need not check for strtol merely because
12184         the application needs strtoll.
12185         * modules/strtoll (Files): Add lib/strtol.c.
12186         (Depends-on): Remove strtol.
12187
12188 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12189
12190         inttypes: Move some configure check to module 'imaxdiv'.
12191         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
12192         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
12193         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
12194
12195 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12196
12197         inttypes: Move some configure check to module 'imaxabs'.
12198         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
12199         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
12200         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
12201
12202 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12203
12204         inttypes: Remove configure tests that are not needed since 2009-12-31.
12205         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
12206         gl_cv_header_working_inttypes_h.
12207
12208 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12209
12210         * modules/strnlen (Depends-on): Remove memchr.
12211         The strnlen implementation doesn't need the memchr module's fixes; see
12212         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
12213
12214         strtol: remove dependency on wchar
12215         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
12216         * modules/strtol (Depends-on): Remove wchar.
12217
12218 2011-04-21  Eric Blake  <eblake@redhat.com>
12219
12220         passfd: fix test regression on Linux
12221         * modules/passfd-tests (configure.ac): Correct socketpair check.
12222
12223         passfd: speed up configure and drop unused code
12224         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
12225         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
12226         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
12227         Instead of probing at configure for unix_scm_rights_bsd44_way,
12228         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
12229         check to a struct member probe.
12230         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
12231         (sendfd, recvfd): Update preprocessor checks.
12232         * modules/passfd (Files): Reflect rename, and drop unused file.
12233         (Depends-on): Drop unused dependency.
12234
12235         passfd: allow compilation on mingw
12236         * modules/sys_socket (Depends-on): Add sys_uio.
12237         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
12238         iovec and a minimal struct msghdr.
12239         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
12240         * tests/test-sys_socket.c (main): Enhance test.
12241         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
12242         guaranteed to provide what we need.
12243         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
12244         * modules/passfd-tests (Depends-on): Add sys_wait.
12245         * tests/test-passfd.c (main): Skip test on mingw, for now.
12246         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
12247         partial 'struct msghdr' implementation.
12248
12249         sys_uio: new module
12250         * modules/sys_uio: New module.
12251         * modules/sys_uio-tests: Likewise.
12252         * lib/sys_uio.in.h: New file.
12253         * m4/sys_uio_h.m4: Likewise.
12254         * tests/test-sys_uio.c: Likewise.
12255         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
12256         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
12257
12258 2011-04-20  Jim Meyering  <meyering@redhat.com>
12259
12260         useless-if-before-free: avoid false-positive
12261         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
12262         disjunct so that it too requires a terminating ";".  Without that,
12263         this script would identify as useless one statement from gcc that
12264         was not:
12265           if (aligned_ptr)
12266             free (((void **) aligned_ptr) [-1]);
12267
12268 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
12269
12270         doc: update users.txt.
12271         * users.txt: Add barcode.
12272
12273 2011-04-19  Bruno Haible  <bruno@clisp.org>
12274
12275         ioctl: Remove link dependency on native Windows.
12276         * lib/fd-hook.h: Renamed from lib/close-hook.h.
12277         (gl_close_fn, gl_ioctl_fn): New types.
12278         (struct fd_hook): Renamed from struct close_hook. Change type of
12279         private_close_fn field. Add private_ioctl_fn field.
12280         (close_hook_fn): Add parameter for primary close method.
12281         (execute_close_hooks, execute_all_close_hooks): Likewise.
12282         (ioctl_hook_fn): New type.
12283         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
12284         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12285         argument.
12286         (unregister_fd_hook): Renamed from unregister_close_hook.
12287         * lib/fd-hook.c: Renamed from lib/close-hook.c.
12288         Don't include <unistd.h>.
12289         (close): Remove undef.
12290         (anchor): Update.
12291         (execute_close_hooks): Add argument for primary close method.
12292         (execute_all_close_hooks): Likewise.
12293         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
12294         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12295         argument. Allow each argument to be NULL.
12296         (unregister_fd_hook): Renamed from unregister_close_hook.
12297         * lib/close.c (rpl_close): Pass 'close' function pointer to
12298         execute_all_close_hooks.
12299         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
12300         (primary_ioctl): New function.
12301         (ioctl): Don't call ioctlsocket here. Instead, call
12302         execute_all_ioctl_hooks.
12303         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
12304         close method.
12305         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
12306         (fd_sockets_hook): Renamed from close_sockets_hook.
12307         (gl_sockets_startup, gl_sockets_cleanup): Update.
12308         * modules/fd-hook: Renamed from modules/close-hook. Update.
12309         * modules/close (Depends-on): Add fd-hook, remove close-hook.
12310         * modules/sockets (Depends-on): Likewise.
12311         * modules/ioctl (Depends-on): Add fd-hook.
12312         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
12313         GNULIB_SOCKET.
12314
12315 2011-04-19  Bruno Haible  <bruno@clisp.org>
12316
12317         Move the support of O_NONBLOCK in open() to the 'open' module.
12318         * modules/nonblocking (Depends-on): Remove 'open'.
12319         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
12320         gl_cv_have_open_O_NONBLOCK.
12321         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
12322         O_NONBLOCK support.
12323         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
12324
12325 2011-04-17  Bruno Haible  <bruno@clisp.org>
12326
12327         pipe2: Simplify code.
12328         * lib/pipe2.c (pipe2): Reduce code duplication.
12329
12330 2011-04-17  Bruno Haible  <bruno@clisp.org>
12331
12332         nonblocking: Add comment.
12333         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
12334
12335 2011-04-17  Bruno Haible  <bruno@clisp.org>
12336
12337         nonblocking: Add tests for sockets.
12338         * tests/test-nonblocking-socket.sh: New file.
12339         * tests/test-nonblocking-socket-main.c: New file.
12340         * tests/test-nonblocking-socket-child.c: New file.
12341         * tests/test-nonblocking-socket.h: New file.
12342         * tests/socket-server.h: New file.
12343         * tests/socket-client.h: New file.
12344         * modules/nonblocking-socket-tests: New file.
12345         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
12346
12347 2011-04-17  Bruno Haible  <bruno@clisp.org>
12348
12349         nonblocking: Add tests for pipes.
12350         * tests/test-nonblocking-pipe.sh: New file.
12351         * tests/test-nonblocking-pipe-main.c: New file.
12352         * tests/test-nonblocking-pipe-child.c: New file.
12353         * tests/test-nonblocking-pipe.h: New file.
12354         * tests/test-nonblocking-writer.h: New file.
12355         * tests/test-nonblocking-reader.h: New file.
12356         * tests/test-nonblocking-misc.h: New file.
12357         * modules/nonblocking-pipe-tests: New file.
12358         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12359
12360 2011-04-16  Bruno Haible  <bruno@clisp.org>
12361
12362         gettext: Clarify the needed programmer actions.
12363         * modules/gettext (Notice): New field.
12364         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12365
12366 2011-04-16  Bruno Haible  <bruno@clisp.org>
12367
12368         strchrnul: Tweak last commit.
12369         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12370         bug.
12371         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12372         as in _GL_FUNCDECL_SYS.
12373         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12374         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12375
12376 2011-04-15  Eric Blake  <eblake@redhat.com>
12377
12378         strchrnul: work around cygwin bug
12379         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
12380         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12381         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12382         * modules/string (Makefile.am): Substitute it.
12383         * lib/string.in.h (strchrnul): Use it.
12384
12385 2011-04-15  Bruno Haible  <bruno@clisp.org>
12386
12387         Don't require lib/stdio-write.c when only module 'stdio' is used.
12388         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12389         invocation.
12390         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12391
12392 2011-04-14  Bruno Haible  <bruno@clisp.org>
12393
12394         Support non-blocking pipe I/O in read() on native Windows.
12395         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
12396         (read): New declaration.
12397         * lib/read.c: New file.
12398         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
12399         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
12400         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
12401         vscanf): New declarations.
12402         * lib/stdio-read.c: New file.
12403         * m4/read.m4: New file.
12404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
12405         REPLACE_READ.
12406         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
12407         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12408         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
12409         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
12410         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
12411         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12412         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12413         * modules/read: New file.
12414         * modules/nonblocking (Files): Add lib/stdio-read.c.
12415         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
12416         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
12417         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12418         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12419         * modules/pread (Depends-on): Add read.
12420         * modules/safe-read (Depends-on): Likewise.
12421         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
12422         gets, scanf, vfscanf, vscanf): Verify signatures.
12423         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
12424         problem with non-blocking pipes.
12425         * doc/posix-functions/fgetc.texi: Likewise.
12426         * doc/posix-functions/fgets.texi: Likewise.
12427         * doc/posix-functions/fread.texi: Likewise.
12428         * doc/posix-functions/fscanf.texi: Likewise.
12429         * doc/posix-functions/getc.texi: Likewise.
12430         * doc/posix-functions/getchar.texi: Likewise.
12431         * doc/posix-functions/gets.texi: Likewise.
12432         * doc/posix-functions/scanf.texi: Likewise.
12433         * doc/posix-functions/vfscanf.texi: Likewise.
12434         * doc/posix-functions/vscanf.texi: Likewise.
12435
12436 2011-04-14  Bruno Haible  <bruno@clisp.org>
12437
12438         Support non-blocking pipe I/O in write() on native Windows.
12439         * lib/write.c (rpl_write): Split a write request that failed merely
12440         because the byte count was larger than the pipe buffer's size.
12441         * doc/posix-functions/write.texi: Mention the problem with large byte
12442         counts.
12443
12444 2011-04-14  Bruno Haible  <bruno@clisp.org>
12445
12446         wchar: Ensure that wchar_t gets defined on uClibc.
12447         * lib/wchar.in.h: On uClibc, include <stddef.h>.
12448         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
12449
12450 2011-04-13  Bruno Haible  <bruno@clisp.org>
12451
12452         safe-write, full-read: Avoid unnecessary compilation units.
12453         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
12454         (Depends-on): Remove safe-read. Add ssize_t.
12455         * modules/full-read (Files): Add lib/full-write.c.
12456         (Depends-on): Add full-write.
12457
12458 2011-04-13  Bruno Haible  <bruno@clisp.org>
12459
12460         Support non-blocking pipe I/O and SIGPIPE in pwrite().
12461         * modules/pwrite (Depends-on): Add 'write'.
12462
12463 2011-04-13  Bruno Haible  <bruno@clisp.org>
12464
12465         Support non-blocking pipe I/O in write() on native Windows.
12466         * lib/unistd.in.h (write): Enable replacement also if
12467         GNULIB_UNISTD_H_NONBLOCKING is 1.
12468         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
12469         (rpl_write): When failing to write on a non-blocking pipe, change
12470         errno from ENOSPC to EAGAIN.
12471         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12472         putchar, puts, vfprintf, vprintf): Enable replacement also if
12473         GNULIB_STDIO_H_NONBLOCKING is 1.
12474         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12475         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12476         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12477         CALL_WITH_SIGPIPE_EMULATION.
12478         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12479         * m4/nonblocking.m4: New file.
12480         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12481         for non-blocking I/O support.
12482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12483         GNULIB_UNISTD_H_NONBLOCKING.
12484         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12485         required for non-blocking I/O support.
12486         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12487         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12488         lib/stdio-write.c, m4/asm-underscore.m4.
12489         (Depends-on): Add stdio, unistd.
12490         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12491         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12492         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12493         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12494         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12495         problem with non-blocking pipes.
12496         * doc/posix-functions/fputc.texi: Likewise.
12497         * doc/posix-functions/fputs.texi: Likewise.
12498         * doc/posix-functions/fwrite.texi: Likewise.
12499         * doc/posix-functions/printf.texi: Likewise.
12500         * doc/posix-functions/putc.texi: Likewise.
12501         * doc/posix-functions/putchar.texi: Likewise.
12502         * doc/posix-functions/puts.texi: Likewise.
12503         * doc/posix-functions/vfprintf.texi: Likewise.
12504         * doc/posix-functions/vprintf.texi: Likewise.
12505         * doc/posix-functions/write.texi: Likewise.
12506
12507 2011-04-10  Jim Meyering  <meyering@redhat.com>
12508
12509         maint.mk: prohibit doubled words
12510         Detect them also when they're separated by a newline.
12511         There are 3 ways to customize it:
12512           - disable the test on a per file basis, as usual with rules using
12513             $(VC_LIST_EXCEPT)
12514           - replace the default doubled-word-selecting regexp (affects all files)
12515           - ignore a particular file-vs-doubled-word match
12516         I nearly used that last one to ignore the "is is" match in
12517         coreutils' NEWS file, since the text was "ls -is is ..."
12518         To do that, I would have added this line to cfg.mk:
12519           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12520         but it would have ignored any "is is" match in NEWS.
12521         Low probability, but still...
12522         Instead, I changed the text, slightly:
12523           -  ls -is is now consistent with ls -lis in ignoring values returned
12524           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12525         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12526         (prohibit_doubled_word_): Define.
12527         (sc_prohibit_doubled_word): New rule.
12528         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12529
12530 2011-04-10  Jim Meyering  <meyering@redhat.com>
12531
12532         maint: fix doubled-word typo in comment
12533         * m4/gethostname.m4: s/is is/it is/
12534         * m4/getdomainname.m4: Likewise.
12535
12536 2011-04-10  Jim Meyering  <meyering@redhat.com>
12537
12538         maint: remove doubled word: s/it it/it/
12539         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12540
12541 2011-04-10  Jim Meyering  <meyering@redhat.com>
12542
12543         maint.mk: remove useless semicolon and backslash
12544         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12545         semicolon and backslash.
12546
12547 2011-04-10  Bruno Haible  <bruno@clisp.org>
12548
12549         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12550         * modules/stdint-tests (Depends-on): Add wchar.
12551
12552 2011-04-10  Jim Meyering  <meyering@redhat.com>
12553
12554         maint: remove doubled words in comments, e.g., s/a a/a/
12555         * lib/strptime.c (day_of_the_week): s/the the/the/
12556         * tests/test-chown.h (test_chown): s/a a/a/
12557
12558         test-chown.h: correct a cast
12559         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12560         when the destination is a stat.st_gid.
12561
12562 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12563
12564         getaddrinfo: Fix test for sa_len member.
12565         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12566         include <sys/types.h> before <sys/socket.h>.
12567
12568 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12569
12570         maint: change "can not" to "cannot"
12571         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12572         boundaries.
12573
12574 2011-04-09  Jim Meyering  <meyering@redhat.com>
12575
12576         maint: change "a a" to "a"
12577         * tests/test-lchown.h (test_lchown): s/a a/a/
12578
12579         maint.mk: prohibit \<the the\>
12580         * top/maint.mk (sc_prohibit_the_the): New rule.
12581
12582         maint: fix "the the" in comment
12583         * lib/count-one-bits.h: s/the the/the/
12584
12585         maint: change "can not" to "cannot"
12586         But do not change the occurrences in maintain.texi or in
12587         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12588         * doc/gnulib-tool.texi: s/can not/cannot/
12589         * doc/posix-functions/accept.texi (accept): Likewise.
12590         * doc/posix-functions/socket.texi (socket): Likewise.
12591         * lib/mbrtowc.c: Likewise.
12592
12593         maint.mk: prohibit use of "can not"
12594         * top/maint.mk (sc_prohibit_can_not): New rule.
12595         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12596
12597 2011-04-09  Bruno Haible  <bruno@clisp.org>
12598
12599         careadlinkat: Guard against misuse of careadlinkatcwd.
12600         * lib/careadlinkat.c: Include <stdlib.h>.
12601         (careadlinkatcwd): Check that the fd argument is as expected.
12602
12603 2011-04-09  Bruno Haible  <bruno@clisp.org>
12604
12605         careadlinkat: Use common coding style.
12606         * lib/careadlinkat.c: Move gnulib includes after system includes.
12607
12608 2011-04-09  Bruno Haible  <bruno@clisp.org>
12609
12610         careadlinkat: Clarify specification.
12611         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12612         (careadlinkatcwd): Add comment.
12613         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12614
12615 2011-04-09  Bruno Haible  <bruno@clisp.org>
12616
12617         areadlinkat: Avoid link error on many platforms.
12618         * modules/areadlinkat (Depends-on): Add areadlink.
12619
12620 2011-04-09  Bruno Haible  <bruno@clisp.org>
12621
12622         allocator, careadlinkat: Fix double-inclusion guard.
12623         * lib/allocator.h: Fix double-inclusion guard.
12624         * lib/careadlinkat.h: Likewise.
12625
12626 2011-04-09  Bruno Haible  <bruno@clisp.org>
12627
12628         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12629         * lib/relocwrapper.c: Update dependencies hierarchy.
12630         * build-aux/install-reloc: Update list of files to be compiled.
12631         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12632         lib/allocator.[hc].
12633
12634 2011-04-08  Eric Blake  <eblake@redhat.com>
12635
12636         strftime: silence gnulib-tool warning
12637         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12638
12639 2011-04-08  Bruno Haible  <bruno@clisp.org>
12640
12641         verify: Fix syntax error with GCC 4.6 in C++ mode.
12642         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12643         (HAVE_STATIC_ASSERT): New macro.
12644         (verify_true, verify): Use 'static_assert' if it is supported and
12645         '_Static_assert' is not supported.
12646
12647 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12648
12649         allocator: New module.
12650         * modules/allocator, lib/allocator.c: New files.
12651         * lib/allocator.h (stdlib_allocator): New decl.
12652         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12653         Remove.  Do not include <stdlib.h>.
12654         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12655         * modules/careadlinkat (Files): Remove lib/allocator.h.
12656         (Depends-on): Add allocator.
12657
12658         stdlib: let modules use system malloc, realloc
12659         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12660         if !_GL_USE_STDLIB_ALLOC.
12661         (malloc, realloc): Limit this change to a smaller scope.
12662
12663         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12664         (malloc, realloc): Don't #undef; no longer needed.
12665         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12666         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12667         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12668         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12669         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12670         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12671         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12672         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12673
12674         careadlinkat: rename members to avoid problem
12675         * lib/allocator.h (struct allocator): Rename members from
12676         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12677         and realloc are #define'd.  Reported by Eric Blake in
12678         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12679         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12680
12681 2011-04-08  Eric Blake  <eblake@redhat.com>
12682
12683         nonblocking: reduce dependency
12684         * tests/test-nonblocking.c: Only test sockets when in use.
12685         * modules/nonblocking-tests (Depends-on): Drop socket.
12686         (Makefile.am): Link even if sockets are not present.
12687         * modules/pipe2-tests (Makefile.am): Likewise.
12688         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12689
12690         pipe2: fix O_NONBLOCK support on mingw
12691         * modules/pipe2 (Depends-on): Add nonblocking.
12692         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12693         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12694         * tests/test-nonblocking.c (main): Likewise.
12695         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12696
12697         fcntl-h: fix O_ACCMODE on cygwin
12698         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12699         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12700
12701         pipe-filter: drop O_NONBLOCK workarounds
12702         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12703         * modules/pipe-filter-ii (Depends-on): Likewise.
12704         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12705
12706         nonblocking: provide O_NONBLOCK for mingw
12707         * modules/nonblocking (Depends-on): Add open.
12708         (configure.ac): Set new witness macro.
12709         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12710         * modules/fcntl-h (Makefile.am): Substitute it.
12711         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12712         nonblocking module is in use.
12713         * lib/nonblocking.c: Adjust portability test.
12714         * lib/open.c (open): Don't let native open see gnulib flag.
12715         * tests/test-fcntl-h.c (main): Enhance test.
12716         * tests/test-open.h (test_open): Likewise.
12717         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12718
12719         careadlinkat: fix compilation error on mingw
12720         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12721         within struct allocator.
12722
12723 2011-04-06  Eric Blake  <eblake@redhat.com>
12724
12725         binary-io: relicense under LGPLv2+
12726         * modules/binary-io (License): Relax to LGPLv2+.
12727         Requested for libvirt, and required by pipe2.
12728
12729 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12730
12731         verify: use _Static_assert if available
12732         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12733         (verify_true, verify): Use it if available.  This generates better
12734         diagnostics with GCC 4.6.0 and later.
12735
12736 2011-04-05  Bruno Haible  <bruno@clisp.org>
12737
12738         Remove leftover generated .h files after config.status changed.
12739
12740         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12741         GL_GENERATE_ALLOCA_H.
12742         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12743         GL_GENERATE_ALLOCA_H evaluates to false.
12744
12745         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12746         GL_GENERATE_ARGZ_H.
12747         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12748         evaluates to false.
12749
12750         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12751         GL_GENERATE_BYTESWAP_H.
12752         * modules/byteswap (Makefile.am): Remove byteswap.h if
12753         GL_GENERATE_BYTESWAP_H evaluates to false.
12754
12755         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12756         GL_GENERATE_ERRNO_H.
12757         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12758         evaluates to false.
12759
12760         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12761         GL_GENERATE_FLOAT_H.
12762         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12763         evaluates to false.
12764
12765         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12766         GL_GENERATE_FNMATCH_H.
12767         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12768         GL_GENERATE_FNMATCH_H evaluates to false.
12769
12770         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12771         GL_GENERATE_GLOB_H.
12772         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12773         evaluates to false.
12774
12775         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12776         automake conditional GL_GENERATE_ICONV_H.
12777         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12778         evaluates to false.
12779
12780         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12781         GL_GENERATE_NETINET_IN_H.
12782         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12783         GL_GENERATE_NETINET_IN_H evaluates to false.
12784
12785         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12786         conditional GL_GENERATE_PTHREAD_H.
12787         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12788         * modules/pthread (Makefile.am): Remove pthread.h if
12789         GL_GENERATE_PTHREAD_H evaluates to false.
12790
12791         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12792         GL_GENERATE_SCHED_H.
12793         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12794         evaluates to false.
12795
12796         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12797         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12798         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12799         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12800
12801         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12802         GL_GENERATE_STDARG_H.
12803         * modules/stdarg (Makefile.am): Remove stdarg.h if
12804         GL_GENERATE_STDARG_H evaluates to false.
12805
12806         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12807         GL_GENERATE_STDBOOL_H.
12808         * modules/stdbool (Makefile.am): Remove stdbool.h if
12809         GL_GENERATE_STDBOOL_H evaluates to false.
12810
12811         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12812         conditional GL_GENERATE_STDDEF_H.
12813         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12814         * modules/stddef (Makefile.am): Remove stddef.h if
12815         GL_GENERATE_STDDEF_H evaluates to false.
12816
12817         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12818         GL_GENERATE_STDINT_H.
12819         * modules/stdint (Makefile.am): Remove stdint.h if
12820         GL_GENERATE_STDINT_H evaluates to false.
12821
12822         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12823         GL_GENERATE_SYSEXITS_H.
12824         * modules/sysexits (Makefile.am): Remove sysexits.h if
12825         GL_GENERATE_SYSEXITS_H evaluates to false.
12826
12827         Reported by Karl Berry and Ralf Wildenhues.
12828
12829 2011-04-05  Bruno Haible  <bruno@clisp.org>
12830
12831         Ensure to rebuild generated .h files when config.status has changed.
12832         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12833         config.status.
12834         * modules/ctype (Makefile.am): Likewise.
12835         * modules/dirent (Makefile.am): Likewise.
12836         * modules/errno (Makefile.am): Likewise.
12837         * modules/fcntl-h (Makefile.am): Likewise.
12838         * modules/float (Makefile.am): Likewise.
12839         * modules/getopt-posix (Makefile.am): Likewise.
12840         * modules/glob (Makefile.am): Likewise.
12841         * modules/iconv-h (Makefile.am): Likewise.
12842         * modules/inttypes (Makefile.am): Likewise.
12843         * modules/langinfo (Makefile.am): Likewise.
12844         * modules/locale (Makefile.am): Likewise.
12845         * modules/math (Makefile.am): Likewise.
12846         * modules/netdb (Makefile.am): Likewise.
12847         * modules/netinet_in (Makefile.am): Likewise.
12848         * modules/poll-h (Makefile.am): Likewise.
12849         * modules/pthread (Makefile.am): Likewise.
12850         * modules/pty (Makefile.am): Likewise.
12851         * modules/sched (Makefile.am): Likewise.
12852         * modules/search (Makefile.am): Likewise.
12853         * modules/selinux-h (Makefile.am): Likewise.
12854         * modules/signal (Makefile.am): Likewise.
12855         * modules/spawn (Makefile.am): Likewise.
12856         * modules/stdarg (Makefile.am): Likewise.
12857         * modules/stdbool (Makefile.am): Likewise.
12858         * modules/stddef (Makefile.am): Likewise.
12859         * modules/stdint (Makefile.am): Likewise.
12860         * modules/stdio (Makefile.am): Likewise.
12861         * modules/stdlib (Makefile.am): Likewise.
12862         * modules/string (Makefile.am): Likewise.
12863         * modules/strings (Makefile.am): Likewise.
12864         * modules/sys_file (Makefile.am): Likewise.
12865         * modules/sys_ioctl (Makefile.am): Likewise.
12866         * modules/sys_select (Makefile.am): Likewise.
12867         * modules/sys_socket (Makefile.am): Likewise.
12868         * modules/sys_stat (Makefile.am): Likewise.
12869         * modules/sys_time (Makefile.am): Likewise.
12870         * modules/sys_times (Makefile.am): Likewise.
12871         * modules/sys_utsname (Makefile.am): Likewise.
12872         * modules/sys_wait (Makefile.am): Likewise.
12873         * modules/sysexits (Makefile.am): Likewise.
12874         * modules/termios (Makefile.am): Likewise.
12875         * modules/time (Makefile.am): Likewise.
12876         * modules/unistd (Makefile.am): Likewise.
12877         * modules/wchar (Makefile.am): Likewise.
12878         * modules/wctype-h (Makefile.am): Likewise.
12879         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12880
12881 2011-04-05  Bruno Haible  <bruno@clisp.org>
12882
12883         pipe2: Relicense under LGPLv2+.
12884         * modules/pipe2 (License): Change to LGPLv2+.
12885         Requested by Eric Blake, for libvirt.
12886
12887 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12888
12889         bootstrap: compute gnulib_extra_files after updating build_aux
12890         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12891         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12892
12893 2011-04-05  Eric Blake  <eblake@redhat.com>
12894
12895         bootstrap: preserve git whitelist item sorting
12896         * build-aux/bootstrap (sort_patterns): New function.
12897         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12898
12899 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12900
12901         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12902         sc_space_tab check.
12903
12904 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12905
12906         areadlink, areadlinkat: rewrite in terms of careadlinkat
12907         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12908         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12909         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12910         (malloc, realloc): Remove #undefs.
12911         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12912         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12913         readlink, ssize_t, stdint, unistd.
12914         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12915         areadlink, stdint.
12916
12917         careadlinkat: new module
12918         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12919         * modules/careadlinkat: New files, written by me with
12920         a review and feedback from Ben Pfaff in
12921         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12922
12923 2011-04-01  Bruno Haible  <bruno@clisp.org>
12924
12925         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12926         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12927         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12928         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12929         Reported by Bruce Korb <bruce.korb@gmail.com>.
12930
12931 2011-04-01  Bruno Haible  <bruno@clisp.org>
12932
12933         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12934         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12935         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12936         * modules/wcpcpy (Depends-on): Add extensions.
12937         * modules/wcpncpy (Depends-on): Likewise.
12938         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12939         systems.
12940         * doc/posix-functions/wcpncpy.texi: Likewise.
12941         * doc/posix-functions/wcwidth.texi: Likewise.
12942
12943 2011-03-31  Eric Blake  <eblake@redhat.com>
12944
12945         nonblocking: fix mingw test failures
12946         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12947         non-blocking flag on regular file.
12948         (get_nonblocking_flag): Set errno on invalid fd.
12949         * tests/test-nonblocking.c (main): Avoid test failure on
12950         directories if fchdir is not active.
12951         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12952
12953 2011-03-31  Bruno Haible  <bruno@clisp.org>
12954
12955         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12956         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12957         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12958         Reported by Simon Josefsson <simon@josefsson.org>.
12959
12960 2011-03-31  Bruno Haible  <bruno@clisp.org>
12961         and Eric Blake  <eblake@redhat.com>
12962
12963         nonblocking: new module
12964         * modules/nonblocking: New module.
12965         * modules/nonblocking-tests: Likewise.
12966         * lib/nonblocking.h: New file.
12967         * lib/nonblocking.c: Likewise.
12968         * tests/test-nonblocking.c: New test.
12969         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12970
12971 2011-03-30  Bruno Haible  <bruno@clisp.org>
12972
12973         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12974         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12975         instead of 'printf' format for GCC >= 4.4.
12976         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12977         (fprintf, printf, vfprintf, vprintf): Declare with
12978         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12979         the system's vfprintf() function.
12980         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12981
12982 2011-03-30  Eric Blake  <eblake@redhat.com>
12983
12984         passfd: fix scoping bug
12985         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12986         before sendmsg/recvmsg.
12987
12988         passfd: standardize coding conventions
12989         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12990         can be learned at compile time.
12991         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12992         ifdefs.
12993         (sendfd, recvfd): Follow gnulib code conventions.
12994
12995         passfd: fix incorrect sendmsg arguments
12996         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12997         incorrect msg_controllen value.
12998         * modules/passfd-tests (Depends-on): Check for alarm.
12999         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
13000         Reported by Bastien ROUCARIES.
13001
13002 2011-03-30  Bruno Haible  <bruno@clisp.org>
13003
13004         c-strcasestr: Relicense under LGPLv2+.
13005         * modules/c-strcasestr (License): Change to LGPLv2+.
13006         Requested by Eric Blake, for libvirt.
13007
13008 2011-03-30  Simon Josefsson  <simon@josefsson.org>
13009
13010         * users.txt: Add libidn2.  Fix libtasn1 link.
13011
13012 2011-03-30  Jim Meyering  <meyering@redhat.com>
13013
13014         tests: readlink* ("",... fails with EINVAL on newer kernels
13015         readlink and readlinkat have typically failed with ENOENT for
13016         the invalid, empty file name,  "".  However, with the advent
13017         of linux-2.6.39, they fail with EINVAL.
13018         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
13019         when operating on the empty file name.
13020         * tests/test-readlink.h (test_readlink): Likewise.
13021
13022 2011-03-29  Bruno Haible  <bruno@clisp.org>
13023
13024         Relicense some modules under LGPLv2+, for libidn2.
13025         * modules/array-mergesort (License): Change to LGPLv2+.
13026         * modules/c-strcaseeq (License): Likewise.
13027         * modules/striconveh (License): Likewise.
13028         * modules/striconveha (License): Likewise.
13029         * modules/uniconv/base (License): Likewise.
13030         * modules/uniconv/u8-conv-from-enc (License): Likewise.
13031         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
13032         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
13033         * modules/unictype/base (License): Likewise.
13034         * modules/unictype/bidiclass-of (License): Likewise.
13035         * modules/unictype/category-M (License): Likewise.
13036         * modules/unictype/category-none (License): Likewise.
13037         * modules/unictype/category-of (License): Likewise.
13038         * modules/unictype/category-test (License): Likewise.
13039         * modules/unictype/category-test-withtable (License): Likewise.
13040         * modules/unictype/combining-class (License): Likewise.
13041         * modules/unictype/joiningtype-of (License): Likewise.
13042         * modules/unictype/scripts (License): Likewise.
13043         * modules/uninorm/base (License): Likewise.
13044         * modules/uninorm/canonical-decomposition (License): Likewise.
13045         * modules/uninorm/composition (License): Likewise.
13046         * modules/uninorm/decompose-internal (License): Likewise.
13047         * modules/uninorm/decomposition-table (License): Likewise.
13048         * modules/uninorm/nfc (License): Likewise.
13049         * modules/uninorm/nfd (License): Likewise.
13050         * modules/uninorm/u32-normalize (License): Likewise.
13051         * modules/unistr/base (License): Likewise.
13052         * modules/unistr/u32-cpy (License): Likewise.
13053         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
13054         * modules/unistr/u32-to-u8 (License): Likewise.
13055         * modules/unistr/u32-uctomb (License): Likewise.
13056         * modules/unistr/u8-check (License): Likewise.
13057         * modules/unistr/u8-mblen (License): Likewise.
13058         * modules/unistr/u8-mbtouc (License): Likewise.
13059         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
13060         * modules/unistr/u8-mbtoucr (License): Likewise.
13061         * modules/unistr/u8-prev (License): Likewise.
13062         * modules/unistr/u8-strlen (License): Likewise.
13063         * modules/unistr/u8-to-u32 (License): Likewise.
13064         * modules/unistr/u8-uctomb (License): Likewise.
13065         * modules/unitypes (License): Likewise.
13066         Requested by Simon Josefsson.
13067
13068 2011-03-29  Simon Josefsson  <simon@josefsson.org>
13069
13070         lib-symbol-visibility: Add a notice.
13071         * modules/lib-symbol-visibility (Notice): New field.
13072
13073 2011-03-29  Bruno Haible  <bruno@clisp.org>
13074
13075         getaddrinfo: Doc fix.
13076         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
13077         section "fixed in Gnulib".
13078
13079 2011-03-28  Simon Josefsson  <simon@josefsson.org>
13080
13081         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
13082         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
13083
13084 2011-03-26  Bruno Haible  <bruno@clisp.org>
13085
13086         unictype/property-byname: Reduce the number of load-time relocations.
13087         * lib/unictype/pr_byname.c: Include <stdlib.h>.
13088         (UC_PROPERTY_INDEX_*): New enumeration values.
13089         (uc_property_byname): Convert an index from the lookup table to an
13090         uc_property_t.
13091         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
13092         values.
13093
13094 2011-03-26  Bruno Haible  <bruno@clisp.org>
13095
13096         unictype/property-byname: Allow omitted word separators and aliases.
13097         * lib/unictype/pr_byname.gperf: Add property names without word
13098         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
13099         for 'space'.
13100
13101 2011-03-26  Bruno Haible  <bruno@clisp.org>
13102
13103         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
13104         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
13105         also hyphens to space.
13106         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
13107         without spaces.
13108         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
13109
13110 2011-03-26  Bruno Haible  <bruno@clisp.org>
13111
13112         unictype/joiningtype-byname: Recognize long names as well.
13113         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
13114         a long name.
13115         * lib/unictype/joiningtype_byname.c: Include <string.h>,
13116         unictype/joiningtype_byname.h.
13117         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
13118         * lib/unictype/joiningtype_byname.gperf: New file.
13119         * modules/unictype/joiningtype-byname (Files): Add
13120         lib/unictype/joiningtype_byname.gperf.
13121         (Depends-on): Add gperf.
13122         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
13123         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
13124         long names.
13125
13126         Tests for module 'unictype/joiningtype-longname'.
13127         * modules/unictype/joiningtype-longname-tests: New file.
13128         * tests/unictype/test-joiningtype_longname.c: New file.
13129
13130         New module 'unictype/joiningtype-longname'.
13131         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
13132         * lib/unictype/joiningtype_longname.c: New file.
13133         * modules/unictype/joiningtype-longname: New file.
13134         * modules/unictype/joiningtype-all (Depends-on): Add
13135         unictype/joiningtype-longname.
13136
13137 2011-03-26  Bruno Haible  <bruno@clisp.org>
13138
13139         unictype/bidiclass-byname: Recognize long names as well.
13140         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
13141         name.
13142         * lib/unictype/bidi_byname.c: Include <string.h>,
13143         unictype/bidi_byname.h.
13144         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
13145         * lib/unictype/bidi_byname.gperf: New file.
13146         * modules/unictype/bidiclass-byname (Files): Add
13147         lib/unictype/bidi_byname.gperf.
13148         (Depends-on): Add gperf.
13149         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
13150         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
13151         long names.
13152
13153         Tests for module 'unictype/bidiclass-longname'.
13154         * modules/unictype/bidiclass-longname-tests: New file.
13155         * tests/unictype/test-bidi_longname.c: New file.
13156
13157         New module 'unictype/bidiclass-longname'.
13158         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
13159         * lib/unictype/bidi_longname.c: New file.
13160         * modules/unictype/bidiclass-longname: New file.
13161         * modules/unictype/bidiclass-all (Depends-on): Add
13162         unictype/bidiclass-longname.
13163
13164 2011-03-26  Bruno Haible  <bruno@clisp.org>
13165
13166         unictype/bidi*: Rename modules.
13167         * modules/unictype/bidiclass-all: Renamed from
13168         modules/unictype/bidicategory-all.
13169         * modules/unictype/bidiclass-name: Renamed from
13170         modules/unictype/bidiclass-name.
13171         (Description): Update.
13172         * modules/unictype/bidiclass-name-tests: Renamed from
13173         modules/unictype/bidicategory-name-tests.
13174         * modules/unictype/bidiclass-byname: Renamed from
13175         modules/unictype/bidicategory-byname.
13176         (Description): Update.
13177         * modules/unictype/bidiclass-byname-tests: Renamed from
13178         modules/unictype/bidicategory-byname-tests.
13179         * modules/unictype/bidiclass-of: Renamed from
13180         modules/unictype/bidicategory-of.
13181         (Description): Update.
13182         * modules/unictype/bidiclass-of-tests: Renamed from
13183         modules/unictype/bidicategory-of-tests.
13184         * modules/unictype/bidiclass-test: Renamed from
13185         modules/unictype/bidicategory-test.
13186         (Description): Update.
13187         * modules/unictype/bidiclass-test-tests: Renamed from
13188         modules/unictype/bidicategory-test-tests.
13189         * modules/unictype/bidicategory-all: New file, a simple redirection.
13190         * modules/unictype/bidicategory-name: Likewise.
13191         * modules/unictype/bidicategory-byname: Likewise.
13192         * modules/unictype/bidicategory-of: Likewise.
13193         * modules/unictype/bidicategory-test: Likewise.
13194         * modules/unictype/property-bidi-* (Dependencies): Update.
13195         * lib/unictype/bidi_*.c: Update comment.
13196
13197 2011-03-26  Bruno Haible  <bruno@clisp.org>
13198
13199         unictype/bidi*: Rename functions, part 2.
13200         * modules/unictype/bidicategory-name (configure.ac): Update required
13201         libunistring version.
13202         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
13203
13204 2011-03-25  Bruno Haible  <bruno@clisp.org>
13205
13206         New module 'unictype/combining-class-all'.
13207         * modules/unictype/combining-class-all: New file.
13208
13209         Tests for module 'unictype/combining-class-byname'.
13210         * modules/unictype/combining-class-byname-tests: New file.
13211         * tests/unictype/test-combiningclass_byname.c: New file.
13212
13213         New module 'unictype/combining-class-byname'.
13214         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
13215         * lib/unictype/combiningclass_byname.c: New file.
13216         * lib/unictype/combiningclass_byname.gperf: New file.
13217         * modules/unictype/combining-class-byname: New file.
13218
13219         Tests for module 'unictype/combining-class-longname'.
13220         * modules/unictype/combining-class-longname-tests: New file.
13221         * tests/unictype/test-combiningclass_longname.c: New file.
13222
13223         New module 'unictype/combining-class-longname'.
13224         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
13225         * lib/unictype/combiningclass_longname.c: New file.
13226         * modules/unictype/combining-class-longname: New file.
13227
13228         Tests for module 'unictype/combining-class-name'.
13229         * modules/unictype/combining-class-name-tests: New file.
13230         * tests/unictype/test-combiningclass_name.c: New file.
13231
13232         New module 'unictype/combining-class-name'.
13233         * lib/unictype.in.h (uc_combining_class_name): New declaration.
13234         * lib/unictype/combiningclass_name.c: New file.
13235         * modules/unictype/combining-class-name: New file.
13236
13237 2011-03-25  Bruno Haible  <bruno@clisp.org>
13238
13239         unictype/combining-class: Rename source files.
13240         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
13241         of unictype/combining.h.
13242         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
13243         Update.
13244         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
13245         * modules/unictype/combining-class (Description): Fix.
13246         (Files, Makefile.am): Update.
13247         * tests/unictype/test-combiningclass.c: Renamed from
13248         tests/unictype/test-combining.c.
13249         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
13250
13251 2011-03-25  Bruno Haible  <bruno@clisp.org>
13252
13253         unictype: Update list of canonical combining classes.
13254         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
13255
13256 2011-03-25  Bruno Haible  <bruno@clisp.org>
13257
13258         unictype/category-byname: Recognize long names as well.
13259         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
13260         a long name.
13261         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
13262         unictype/categ_byname.h.
13263         (UC_CATEGORY_INDEX_*): New enumeration values.
13264         (uc_general_category_byname): Use uc_general_category_lookup and
13265         convert from index to value.
13266         * lib/unictype/categ_byname.gperf: New file.
13267         * modules/unictype/category-byname (Files): Add
13268         lib/unictype/categ_byname.gperf.
13269         (Depends-on): Add gperf.
13270         (Makefile.am): Add rule for generating unictype/categ_byname.h.
13271         * tests/unictype/test-categ_byname.c (main): Test the recognition of
13272         long names.
13273
13274         Tests for module 'unictype/category-longname'.
13275         * modules/unictype/category-longname-tests: New file.
13276         * tests/unictype/test-categ_longname.c: New file.
13277
13278         New module 'unictype/category-longname'.
13279         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
13280         * lib/unictype/categ_longname.c: New file.
13281         * modules/unictype/category-longname: New file.
13282         * modules/unictype/category-all (Depends-on): Add it.
13283
13284 2011-03-25  Bruno Haible  <bruno@clisp.org>
13285
13286         Tests for module 'unictype/category-LC'.
13287         * modules/unictype/category-LC-tests: New file.
13288         * tests/unictype/test-categ_LC.c: New file, automatically generated.
13289
13290         New module 'unictype/category-LC'.
13291         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
13292         (UC_CATEGORY_LC): New declaration.
13293         (UC_CASED_LETTER): New macro.
13294         * lib/gen-uni-tables.c (is_category_LC): New function.
13295         (output_categories): Also handle category LC.
13296         (UC_CATEGORY_MASK_LC): New enumeration value.
13297         (general_category_byname): Also handle category LC.
13298         * lib/unictype/categ_LC.c: New file.
13299         * lib/unictype/categ_LC.h: New file, automatically generated.
13300         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
13301         category LC.
13302         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
13303         * modules/unictype/category-LC: New file.
13304         * modules/unictype/category-byname (Depends-on): Add
13305         unictype/category-LC.
13306         * modules/unictype/category-all (Depends-on): Likewise.
13307
13308 2011-03-25  Eric Blake  <eblake@redhat.com>
13309
13310         xmalloc: revert yesterday's regression
13311         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
13312         realloc's underlying behavior (allowing allocation of zero-size
13313         objects, especially if malloc-gnu is also in use).
13314
13315 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
13316
13317         maint.mk: add missing version to VC-tag
13318         * top/maint.mk: git tag was missing actual tag name; add it.
13319
13320         valgrind: do leak checking, and exit with code 1 on error (not 0)
13321         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
13322         to VALGRIND.
13323
13324 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
13325
13326         posix-modules: say what it does.
13327         * posix-modules: Add a line to the --help output saying what it does.
13328
13329 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13330
13331         xmalloc: Do not leak if underlying realloc is C99 compatible.
13332         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
13333         This avoids a leak on C99-based systems.  See
13334         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
13335
13336 2011-03-24  Eric Blake  <eblake@redhat.com>
13337
13338         realloc: document portability problem
13339         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
13340         passing 0 size to realloc.
13341
13342 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
13343
13344         doc: update users.txt
13345         * users.txt: Add cvsps, tmpwatch
13346
13347 2011-03-23  Matt Rice  <ratmice@gmail.com>
13348
13349         doc: update users.txt
13350         * users.txt: Add gdb.
13351
13352 2011-03-23  Jim Meyering  <meyering@redhat.com>
13353
13354         doc: update users.txt
13355         Looking through matches up to the following URL (there are still
13356         several more pages), I found several projects that use gnulib:
13357         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13358         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13359         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13360
13361 2011-03-22  Bruno Haible  <bruno@clisp.org>
13362
13363         unictype/bidi*: Rename functions.
13364         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13365         uc_bidi_class, uc_is_bidi_class): New declarations.
13366         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13367         uc_bidi_category_byname.
13368         (uc_bidi_category_byname): New function.
13369         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13370         u_bidi_category_name.
13371         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13372         (uc_bidi_category_name): New function.
13373         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13374         uc_bidi_category.
13375         (uc_bidi_category): New function.
13376         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13377         uc_is_bidi_category. Invoke uc_bidi_class.
13378         (uc_is_bidi_category): New function.
13379         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
13380         instead of uc_bidi_category_byname.
13381         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13382         instead of uc_bidi_category_name.
13383         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13384         uc_bidi_category.
13385         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13386         instead of uc_is_bidi_category.
13387
13388 2011-03-21  Bruno Haible  <bruno@clisp.org>
13389
13390         New module 'unictype/joininggroup-all'.
13391         * modules/unictype/joininggroup-all: New file.
13392
13393         Tests for module 'unictype/joininggroup-of'.
13394         * modules/unictype/joininggroup-of-tests: New file.
13395         * tests/unictype/test-joininggroup_of.c: New file.
13396         * tests/unictype/test-joininggroup_of.h: New file, automatically
13397         generated by gen-uni-tables.
13398
13399         New module 'unictype/joininggroup-of'.
13400         * modules/unictype/joininggroup-of: New file.
13401         * lib/unictype/joininggroup_of.c: New file.
13402         * lib/unictype/joininggroup_of.h: New file, automatically generated by
13403         gen-uni-tables.
13404
13405         Tests for module 'unictype/joininggroup-byname'.
13406         * modules/unictype/joininggroup-byname-tests: New file.
13407         * tests/unictype/test-joininggroup_byname.c: New file.
13408
13409         New module 'unictype/joininggroup-byname'.
13410         * modules/unictype/joininggroup-byname: New file.
13411         * lib/unictype/joininggroup_byname.c: New file.
13412         * lib/unictype/joininggroup_byname.gperf: New file.
13413
13414         Tests for module 'unictype/joininggroup-name'.
13415         * modules/unictype/joininggroup-name-tests: New file.
13416         * tests/unictype/test-joininggroup_name.c: New file.
13417
13418         New module 'unictype/joininggroup-name'.
13419         * modules/unictype/joininggroup-name: New file.
13420         * lib/unictype/joininggroup_name.c: New file.
13421         * lib/unictype/joininggroup_name.h: New file.
13422
13423         New module 'unictype/joiningtype-all'.
13424         * modules/unictype/joiningtype-all: New file.
13425
13426         Tests for module 'unictype/joiningtype-of'.
13427         * modules/unictype/joiningtype-of-tests: New file.
13428         * tests/unictype/test-joiningtype_of.c: New file.
13429         * tests/unictype/test-joiningtype_of.h: New file, automatically
13430         generated by gen-uni-tables.
13431
13432         New module 'unictype/joiningtype-of'.
13433         * modules/unictype/joiningtype-of: New file.
13434         * lib/unictype/joiningtype_of.c: New file.
13435         * lib/unictype/joiningtype_of.h: New file, automatically generated by
13436         gen-uni-tables.
13437
13438         Tests for module 'unictype/joiningtype-byname'.
13439         * modules/unictype/joiningtype-byname-tests: New file.
13440         * tests/unictype/test-joiningtype_byname.c: New file.
13441
13442         New module 'unictype/joiningtype-byname'.
13443         * modules/unictype/joiningtype-byname: New file.
13444         * lib/unictype/joiningtype_byname.c: New file.
13445
13446         Tests for module 'unictype/joiningtype-name'.
13447         * modules/unictype/joiningtype-name-tests: New file.
13448         * tests/unictype/test-joiningtype_name.c: New file.
13449
13450         New module 'unictype/joiningtype-name'.
13451         * modules/unictype/joiningtype-name: New file.
13452         * lib/unictype/joiningtype_name.c: New file.
13453
13454         unictype: Add support for Arabic shaping properties.
13455         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
13456         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
13457         declarations.
13458         (UC_JOINING_GROUP_*): New enumeration values.
13459         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
13460         declarations.
13461         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
13462         (unicode_joining_type): New variable.
13463         (UC_JOINING_GROUP_*): New enumeration values.
13464         (unicode_joining_group): New variable.
13465         (fill_arabicshaping, joining_type_as_c_identifier,
13466         output_joining_type_test, output_joining_type,
13467         joining_group_as_c_identifier, output_joining_group_test,
13468         output_joining_group): New functions.
13469         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
13470         fill_arabicshaping and output_joining_type_test, output_joining_type,
13471         output_joining_group_test, output_joining_group.
13472         Reported by Simon Josefsson.
13473
13474 2011-03-21  Jim Meyering  <meyering@redhat.com>
13475
13476         strftime: fix a bug in yesterday's change
13477         * lib/strftime.c (add): Accommodate width's initial value of -1.
13478         Otherwise, nstrftime would copy uninitialized data into
13479         the result buffer.
13480
13481 2011-03-21  Jim Meyering  <meyering@redhat.com>
13482
13483         tests: add strftime-tests module
13484         * tests/test-strftime.c: New file.
13485         * modules/strftime-tests: New module.
13486
13487 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13488
13489         strftime: don't assume a byte count fits in 'int'
13490         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13491         found this problem by static analysis, using gcc -Wstrict-overflow
13492         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13493         on an integer overflow having undefined behavior, but it turns out
13494         that the argument is a size, which might not fit in 'int' anyway,
13495
13496 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13497
13498         stdio: don't require ignore_value around fwrite
13499
13500         This patch works around libc bug 11959
13501         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13502         Without this patch, applications must often write
13503         ignore_value (fwrite (...)) even though the ignore_value is
13504         not helpful here.  It's common to write many objects, using
13505         fwrite/printf/etc., and then use ferror to detect output error.
13506
13507         I considered making this patch optional, but decided against it,
13508         because libc is obviously being inconsistent here: there is no
13509         reason libc should insist that user code must inspect fwrite
13510         return's value without also insisting that it inspect printf's,
13511         putchar's, etc.  If user code wants to have a strict style where
13512         all these functions' values are checked (so that ferror need not
13513         be checked), we could add support for that style in a new gnulib
13514         module, but in the meantime it's better to be consistent and to
13515         support common usage.
13516
13517         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13518         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13519         that we are compiling in checking mode, and if not C++, and
13520         if not already wrapping fwrite for some other reason.
13521         (fwrite): #define to rpl_fwrite if the latter is defined.
13522
13523 2011-03-20  Bruno Haible  <bruno@clisp.org>
13524
13525         verror: Fix compilation error introduced on 2011-02-13.
13526         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13527         instead of __attribute__.
13528         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13529
13530 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13531             Bruno Haible  <bruno@clisp.org>
13532
13533         socklen: do not depend on sys_socket
13534         While trying to modify Emacs to use gnulib's socklen module,
13535         I discovered a circular dependency: socklen depends on sys_socket
13536         and vice versa.  Emacs can use socklen, but it does not need
13537         sys_socket because it has its own substitute for sys/socket.h.
13538         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13539         gl_TYPE_SOCKLEN_T.
13540         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13541         gl_PREREQ_SYS_H_SOCKET.
13542         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13543         gl_PREREQ_SYS_H_SOCKET.
13544         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13545         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13546         * modules/socklen (Depends-on): Do not depend on sys_socket.
13547         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13548
13549 2011-03-20  Jim Meyering  <meyering@redhat.com>
13550
13551         maint.mk: sort file names *after* new transformation
13552         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13553         prefix would have led to an unwarranted failure in GNU parted.
13554         Sort after that transformation.
13555
13556 2011-03-19  Jim Meyering  <meyering@redhat.com>
13557
13558         maint.mk: fix po-file syntax-check rule
13559         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13560         Patch by Bruno Haible.
13561
13562 2011-03-19  Bruno Haible  <bruno@clisp.org>
13563
13564         socklen: Update comment.
13565         * m4/socklen.m4: Update comment about platforms.
13566
13567 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13568             Bruno Haible  <bruno@clisp.org>
13569
13570         inet_ntop, inet_pton: Simplify.
13571         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13572         documented to provide socklen_t and we already depend on sys_socket.
13573         * modules/inet_pton (Depends-on): Likewise.
13574         * lib/arpa_inet.in.h: Adjust comment.
13575
13576 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13577             Bruno Haible  <bruno@clisp.org>
13578
13579         netdb: Simplify.
13580         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13581         documented to provide socklen_t and we already depend on sys_socket.
13582         * lib/netdb.in.h: Adjust comment.
13583
13584 2011-03-19  Bruno Haible  <bruno@clisp.org>
13585
13586         sys_socket, netdb: Document problem with socklen_t.
13587         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13588         platforms.
13589         * doc/posix-headers/netdb.texi: Likewise.
13590
13591 2011-03-18  Eric Blake  <eblake@redhat.com>
13592
13593         maint.mk: let po check work in VPATH build
13594         * top/maint.mk (po_file): Allow cfg.mk override.
13595         (sc_po_check): Allow VPATH use.
13596         Reported by Jiri Denemark.
13597
13598 2011-03-16  Jim Meyering  <meyering@redhat.com>
13599
13600         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13601         Before, you would have had to create one .x-sc_ file per rule in order
13602         to exempt offending files.  Now, you may instead use a Make variable --
13603         usually defined in cfg.mk -- whose name identifies the affected rule.
13604         * top/maint.mk (_sc_excl): Define.
13605         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13606         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13607
13608 2011-03-13  Bruno Haible  <bruno@clisp.org>
13609
13610         ignore-value tests: Avoid warnings.
13611         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13612         empty for gcc < 3.4.
13613
13614 2011-03-13  Bruno Haible  <bruno@clisp.org>
13615
13616         passfd: Fix link error on Solaris.
13617         * modules/passfd (Description): Correct.
13618         (Depends-on): Add socketlib.
13619         (Link): New section.
13620         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13621
13622 2011-03-13  Bruno Haible  <bruno@clisp.org>
13623
13624         passfd: Fix link error on AIX 5.2.
13625         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13626
13627 2011-03-13  Bruno Haible  <bruno@clisp.org>
13628
13629         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13630         * lib/sys_socket.in.h: Include <stddef.h>.
13631         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13632         CMSG_FIRSTHDR. Remove unused variable.
13633
13634 2011-03-13  Bruno Haible  <bruno@clisp.org>
13635
13636         passfd: Fix compilation error on OpenBSD.
13637         * lib/passfd.c: Include <sys/uio.h>.
13638
13639 2011-03-13  Bruno Haible  <bruno@clisp.org>
13640
13641         passfd test: Fix warnings.
13642         * tests/test-passfd.c: Include <sys/wait.h>.
13643         (main): Fix typo.
13644
13645 2011-03-13  Bruno Haible  <bruno@clisp.org>
13646
13647         passfd module, part 4, tweaks.
13648         * tests/test-passfd.c: Reorder includes.
13649         (main): Fix perror and printf calls.
13650
13651 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13652
13653         passfd module, part 4.
13654         * modules/passfd-tests: New file.
13655         * tests/test-passfd.c: New file.
13656
13657 2011-03-13  Jim Meyering  <meyering@redhat.com>
13658
13659         Makefile: rely on GNU make; derive syntax-check rule names
13660         Rather than requiring that each sc_ rule be listed as a dependent
13661         of "check", use features of GNU make to derive the list.
13662         * Makefile (syntax-check-rules): Define.
13663         (check): Depend on the new variable, not the hard-coded list.
13664
13665 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13666             Bruno Haible  <bruno@clisp.org>
13667
13668         passfd module, part 3.
13669         * lib/passfd.h (recvfd): Add a flags argument.
13670         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13671         (recvfd): Add a flags argument.
13672         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13673         exists.
13674         * modules/passfd (Depends-on): Add cloexec.
13675         Suggested by Eric Blake.
13676
13677 2011-03-13  Bruno Haible  <bruno@clisp.org>
13678
13679         passfd module, part 2, tweaks.
13680         * modules/passfd (Files): Reorder.
13681         (Depends-on): Remove errno.
13682         (Include): Remove <sys/socket.h>, <sys/un.h>.
13683         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13684         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13685         specification header. Include <sys/socket.h> always. Don't include
13686         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13687         (sendfd): Clarify that it sets errno when it fails.
13688         (recvfd): Fix specification.
13689
13690 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13691
13692         passfd module, part 2.
13693         * modules/passfd: New file.
13694         * lib/passfd.h: New file.
13695         * lib/passfd.c: New file.
13696
13697 2011-03-12  Bruno Haible  <bruno@clisp.org>
13698
13699         wcswidth, mbswidth: Avoid integer overflow.
13700         * lib/wcswidth.c: Include <limits.h>.
13701         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13702         * lib/mbswidth.c: Include <limits.h>.
13703         (mbsnwidth): Avoid 'int' overflow.
13704         Reported by Jim Meyering.
13705
13706 2011-03-12  Bruno Haible  <bruno@clisp.org>
13707
13708         futimens, utimensat: Avoid endless recursion on Solaris 10.
13709         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13710         Solaris.
13711         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13712         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13713
13714 2011-03-11  Jim Meyering  <meyering@redhat.com>
13715
13716         maint.mk: relax a regexp to accommodate other formatting styles
13717         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13718         between "ngettext" and the following "(".
13719
13720 2011-03-11  Pádraig Brady <P@draigBrady.com>
13721
13722         maint.mk: suppress a false positive warning
13723         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13724         diagnostics are marked with ngettext.
13725
13726 2011-03-10  Eric Blake  <eblake@redhat.com>
13727
13728         wchar: add explicit dependencies, for Tru64
13729         * modules/mbmemcasecoll (Depends-on): Add wchar.
13730         * modules/mbtowc (Depends-on): Likewise.
13731         * modules/vasnprintf (Depends-on): Likewise.
13732         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13733         * modules/wctomb (Depends-on): Likewise.
13734         Reported by Peter O'Gorman.
13735
13736 2011-03-08  Bruno Haible  <bruno@clisp.org>
13737
13738         passfd module, part 1, tweaks.
13739         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13740         Improve indentation. Improve AC_MSG_CHECKING messages.
13741         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13742         gl_SOCKET_FAMILIES.
13743
13744 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13745
13746         passfd module, part 1.
13747         * m4/afunix.m4: New file.
13748         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13749         sockets.
13750
13751 2011-03-08  Bruno Haible  <bruno@clisp.org>
13752
13753         regex-quote: New API.
13754         * lib/regex-quote.h: Include <stdbool.h>.
13755         (struct regex_quote_spec): New type.
13756         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13757         New declarations.
13758         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13759         'const struct regex_quote_spec *' argument.
13760         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13761         (pcre_special): New constant.
13762         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13763         New functions.
13764         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13765         'const struct regex_quote_spec *' argument.
13766         * modules/regex-quote (Depends-on): Add stdbool.
13767         * tests/test-regex-quote.c (check): Update for new API. Add test for
13768         anchored results.
13769         * NEWS: Mention the API change.
13770         Reported by Reuben Thomas and Eric Blake.
13771
13772 2011-03-06  Bruno Haible  <bruno@clisp.org>
13773
13774         regex-quote: Fix creation of POSIX extended regular expressions.
13775         * lib/regex-quote.c (ere_special): Add grouping and alternation
13776         operators.
13777
13778 2011-03-05  Bruno Haible  <bruno@clisp.org>
13779
13780         doc: Improve doc regarding autopoint vs. gnulib.
13781         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13782         disable autopoint while running autoreconf.
13783         Suggested by Ralf Wildenhues.
13784
13785 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13786
13787         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13788         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13789
13790 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13791
13792         parse-duration: remove xalloc.h dependency
13793         * lib/parse-duration.c (parse_period): handle NULL return from
13794         strdup instead of calling xstrdup().
13795         * modules/parse-duration: remove "xalloc" dependency
13796
13797 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13798
13799         bootstrap: honor m4_base when running aclocal
13800         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13801
13802 2011-03-02  Jim Meyering  <meyering@redhat.com>
13803
13804         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13805         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13806         on request from Matt Booth.
13807
13808 2011-03-01  Eric Blake  <eblake@redhat.com>
13809
13810         test-link: work on Hurd
13811         * tests/test-link.h (test_link): Hurd rejects linking directories
13812         with EISDIR instead of the POSIX-mandated EPERM.
13813
13814 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13815
13816         stdio: simplify by moving files to printf-posix, sigpipe
13817         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13818         since this symbol is needed only if printf is replaced.
13819         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13820         Require gl_ASM_SYMBOL_PREFIX.
13821         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13822         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13823         (Depends-on): Add 'raise'.
13824         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13825         * modules/stdio (Files): Remove lib/stdio-write.c,
13826         m4/asm-underscore.m4.
13827         (Depends-on): Remove 'raise'.
13828
13829         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13830         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13831         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13832         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13833
13834 2011-02-28  Bruno Haible  <bruno@clisp.org>
13835
13836         localcharset: Assume ANSI C behaviour of free().
13837         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13838         calling free().
13839         Suggested by Simon Josefsson <simon@josefsson.org>.
13840
13841 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13842             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13843             Bruno Haible  <bruno@clisp.org>  (tiny change)
13844
13845         On Cygwin, use /proc file system instead of win32 API.
13846         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13847         Win32 file names.
13848         (DllMain): Simplify by removing Cygwin specific code.
13849         (find_shared_library_fullname): Use Linux specific implementation also
13850         for Cygwin.
13851         (get_shared_library_fullname): Update accordingly.
13852         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13853         Win32 file names.
13854         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13855         Cygwin specific code.
13856
13857 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13858             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13859
13860         Fix OpenMP flag detection for various Fortran compilers.
13861         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13862         OpenMP-conditional compilation construct, to force compile
13863         failure with missing OpenMP flag.
13864         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13865
13866 2011-02-25  Eric Blake  <eblake@redhat.com>
13867
13868         strstr: expand test coverage
13869         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13870         compilation.
13871         * tests/test-memmem.c (main): Duplicate tests.
13872         * tests/test-strcasestr.c (main): Likewise.
13873         * tests/test-c-strcasestr.c (main): Likewise.
13874
13875 2011-02-25  Jim Meyering  <meyering@redhat.com>
13876
13877         maint.mk: detect missing-NL-at-EOF, too
13878         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13879         it also detects when a file lacks a newline at EOF.
13880         (require_exactly_one_NL_at_EOF_): Renamed from
13881         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13882         since people may well have .x-sc_... file names tied to the
13883         existing name.  Suggested by Eric Blake.
13884
13885 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13886
13887         dirname: move m4/dos.m4 functionality into lib/dosname.h
13888
13889         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13890         extracts symbols from it, puts them into config.h; but it's much
13891         easier to use the symbols directly.  filename.h already does this,
13892         but it disagrees with dos.m4 in some respects.  This patch
13893         introduces a different include file dosname.h that packages up
13894         dos.m4, and then later we can work on merging filename.h and
13895         dosname.h.  Applications that need only the easy-to-configure
13896         symbols should consider including dosname.h rather than dirname.h.
13897         * NEWS: Mention incompatible changes.
13898         * m4/dos.m4: Remove.
13899         * lib/dosname.h, modules/dosname: New files.
13900         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13901         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13902         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13903         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13904         Include dosname.h, not dirname.h.
13905         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13906         Include dosname.h, for definitions of symbols like ISSLASH
13907         that used to be in config.h.
13908         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13909         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13910         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13911         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13912         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13913         * modules/rmdir (Files): Likewise.
13914         * modules/stat (Files): Likewise.
13915         * modules/unlink (Files): Likewise.
13916         * modules/dirname-lgpl (Depends-on): Add dosname.
13917         * modules/lstat (Depends-on): Likewise.
13918         * modules/openat (Depends-on): Likewise.
13919         * modules/rmdir (Depends-on): Likewise.
13920         * modules/savewd (Depends-on): Likewise.
13921         * modules/stat (Depends-on): Likewise.
13922         * modules/unlink (Depends-on): Likewise.
13923         * modules/openat (Depends-on): Remove dirname-lgpl.
13924         * modules/savewd (Depends-on): Likewise.
13925         * tests/test-dirname.c: Do not use removed symbols like
13926         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13927         the remaining symbols, e.g., ISSLASH ('\\').
13928
13929 2011-02-25  Eric Blake  <eblake@redhat.com>
13930
13931         strstr: revert patches that introduced bug and pessimization
13932         * lib/str-two-way.h: Add another reference.
13933         (two_way_short_needle, two_way_long_needle): Revert changes from
13934         2011-02-24; they pessimize search speed.
13935         (critical_factorization): Partially revert changes from
13936         2010-06-22; they violate the requirement that the left half of the
13937         needle be smaller than the period of the needle.
13938
13939 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13940
13941         filenamecat: remove unnecessary dependency on dirname-lgpl
13942         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13943         is no direct dependency, just an indirect one via filenamecat-lgpl.
13944
13945         remove: remove unnecessary use of m4/dos.m4
13946         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13947         * modules/remove (FILES): Remove m4/dos.m4.
13948
13949         * lib/openat-proc.c: Don't include dirname.h; not needed.
13950
13951         backupfile: remove unnecessary use of m4/dos.m4
13952         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13953         of its symbols are used by the backupfile code.  backupfile.c does
13954         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13955         for the rare case of programs that want all their backup file
13956         names to live within 8+3 limits, and dos.m4 doesn't address that.
13957         * modules/backupfile (Files): Remove m4/dos.m4.
13958
13959 2011-02-24  Jim Meyering  <meyering@redhat.com>
13960
13961         strstr: fix a bug whereby strstr would mistakenly return NULL
13962         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13963         in period calculation.
13964         (two_way_long_needle): Likewise.
13965         The original problem was reported by Mike Stump in
13966         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13967         Ralf Wildenhues provided the short needle and haystack.
13968         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13969         Add a more involved test to trigger the bug in two_way_long_needle.
13970
13971 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13972
13973         gnulib-tool: remove use of bold display in help screen
13974         * gnulib-tool (func_usage): Do not use bold display anymore in the
13975         help screen.  That was just meant to be a temporary emphasis for a
13976         backward-incompatible change.
13977
13978 2011-02-23  Bruno Haible  <bruno@clisp.org>
13979
13980         Fix misindentation of preprocessor directives.
13981         * lib/argp-namefrob.h: Reindent preprocessor directives.
13982         * lib/getopt_int.h (struct _getopt_data): Likewise.
13983         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13984         * lib/vasnprintf.c (decode_long_double): Likewise.
13985         * tests/test-argmatch.c: Insert blank lines, for clarity.
13986         * tests/test-exclude.c: Likewise.
13987
13988 2011-02-22  Bruno Haible  <bruno@clisp.org>
13989
13990         ioctl: Fix for MacOS X in 64-bit mode.
13991         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13992         value.
13993         Suggested by Eric Blake.
13994         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13995
13996 2011-02-22  Jim Meyering  <meyering@redhat.com>
13997
13998         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13999         * Makefile (sc_cpp_indent_check): Don't limit the check to files
14000         in lib/.
14001
14002 2011-02-22  Eric Blake  <eblake@redhat.com>
14003
14004         maint: avoid any CDPATH issue
14005         * Makefile (sc_cpp_indent_check): Anchor cd argument.
14006
14007         maint: adjust cpp indentation for my modules, as well
14008         * Makefile (sc_cpp_indent_check): Add my name.
14009         * lib/fbufmode.c: Filter through cppi.
14010         * lib/fpurge.c: Likewise.
14011         * lib/freadable.c: Likewise.
14012         * lib/freading.c: Likewise.
14013         * lib/fwritable.c: Likewise.
14014         * lib/fwriting.c: Likewise.
14015         * lib/sigaction.c: Likewise.
14016
14017 2011-02-22  Jim Meyering  <meyering@redhat.com>
14018
14019         maint: adjust cpp indentation to reflect nesting depth
14020         I.e., in a block of code that begins with an unnested "#if",
14021         put one space between the "#" in column 1 and following token.
14022         For example,
14023         -#include <sys/vfs.h>
14024         +# include <sys/vfs.h>
14025         Do this only in .c files that are part of a module I maintain.
14026         * lib/linkat.c: Filter through cppi.
14027         * lib/nanosleep.c: Likewise.
14028         * lib/openat.c: Likewise.
14029         * lib/openat-die.c: Likewise.
14030         * lib/dup3.c: Likewise.
14031         * lib/fchownat.c: Likewise.
14032         * lib/flock.c: Likewise.
14033         * lib/fsync.c: Likewise.
14034         * lib/fts.c: Likewise.
14035         * lib/getpass.c: Likewise.
14036         * lib/gettimeofday.c: Likewise.
14037         * lib/userspec.c: Likewise.
14038         * Makefile (sc_cpp_indent_check): New rule, to check this.
14039
14040 2011-02-22  Bruno Haible  <bruno@clisp.org>
14041
14042         New module 'wctomb'.
14043         * lib/stdlib.in.h (wctomb): New declaration.
14044         * lib/wctomb.c: New file.
14045         * lib/wctomb-impl.h: New file.
14046         * m4/wctomb.m4: New file.
14047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
14048         REPLACE_WCTOMB.
14049         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
14050         REPLACE_WCTOMB.
14051         * modules/wctomb: New file.
14052         * tests/test-stdlib-c++.cc: Test signature of wctomb.
14053         * doc/posix-functions/wctomb.texi: Mention the new module.
14054         * modules/wctob (Depends-on): Add wctomb.
14055
14056 2011-02-22  Bruno Haible  <bruno@clisp.org>
14057
14058         New module 'mbtowc'.
14059         * lib/stdlib.in.h (mbtowc): New declaration.
14060         * lib/mbtowc.c: New file.
14061         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
14062         * m4/mbtowc.m4: New file.
14063         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
14064         REPLACE_MBTOWC.
14065         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
14066         REPLACE_MBTOWC.
14067         * modules/mbtowc: New file.
14068         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
14069         * doc/posix-functions/mbtowc.texi: Mention the new module.
14070         * modules/btowc (Depends-on): Add mbtowc.
14071
14072 2011-02-22  Bruno Haible  <bruno@clisp.org>
14073
14074         wcrtomb: Add more tests for native Windows platforms.
14075         * tests/test-wcrtomb-w32-1.sh: New file.
14076         * tests/test-wcrtomb-w32-2.sh: New file.
14077         * tests/test-wcrtomb-w32-3.sh: New file.
14078         * tests/test-wcrtomb-w32-4.sh: New file.
14079         * tests/test-wcrtomb-w32-5.sh: New file.
14080         * tests/test-wcrtomb-w32.c: New file.
14081         * modules/wcrtomb-tests (Files): Add them.
14082         (Makefile.am): Arrange to run these tests.
14083         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
14084         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
14085
14086 2011-02-20  Bruno Haible  <bruno@clisp.org>
14087
14088         wcrtomb: Enhance test.
14089         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
14090
14091 2011-02-20  Bruno Haible  <bruno@clisp.org>
14092
14093         mbrtowc: Tiny optimization.
14094         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
14095
14096 2011-02-20  Jim Meyering  <meyering@redhat.com>
14097
14098         test-exclude.c: remove unmatched #endif
14099         * tests/test-exclude.c: Remove stray #endif, left over from
14100         the change of a week ago.
14101
14102 2011-02-19  Jim Meyering  <meyering@redhat.com>
14103
14104         git-version-gen: skip "-dirty" check when appropriate
14105         * build-aux/git-version-gen: Don't run any git commands when the
14106         version string comes from .tarball-version.  Prior to this, we
14107         would run git update-index --refresh even from a just-unpacked
14108         tarball directory, and that could affect a .git/ directory in a
14109         parent of the build directory.  Reported by Mike Frysinger.
14110
14111 2011-02-19  Bruno Haible  <bruno@clisp.org>
14112
14113         unictype/property-byname: Reduce the size of the 'data' segment.
14114         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
14115
14116 2011-02-19  Bruno Haible  <bruno@clisp.org>
14117
14118         unictype/scripts: Reduce the size of the 'data' segment.
14119         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
14120         '%pic'.
14121         * lib/unictype/scripts_byname.gperf: Regenerated.
14122
14123 2011-02-19  Bruno Haible  <bruno@clisp.org>
14124
14125         stdint: Update documentation.
14126         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
14127
14128 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14129
14130         stdint: omit redundant check for wchar.h
14131         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
14132         always tests whether wchar.h exists, so remove the now-redundant test.
14133
14134 2011-02-18  Bruno Haible  <bruno@clisp.org>
14135
14136         stdint: Cut dependency to module 'wchar'.
14137         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
14138         include the necessary prerequisites.
14139         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
14140         * modules/stdint (Depends-on): Remove wchar.
14141         (Makefile.am): Substitute HAVE_WCHAR_H.
14142         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
14143
14144 2011-02-18  Eric Blake  <eblake@redhat.com>
14145
14146         longlong: skip, rather than fail, on cross-compilation
14147         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
14148         when cross-compiling; regression from 2011-02-16.
14149
14150 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14151
14152         * NEWS: Mention 2011-02-08 change to stdlib.
14153
14154 2011-02-17  Bruno Haible  <bruno@clisp.org>
14155
14156         getloadavg: Add comments about platforms.
14157         * m4/getloadavg.m4: Add comment.
14158         * lib/getloadavg.c: Likewise.
14159
14160 2011-02-17  Bruno Haible  <bruno@clisp.org>
14161
14162         getloadavg: Fix link error on Solaris 2.6.
14163         * modules/getloadavg (Link): New section.
14164         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
14165         linking test-getloadavg.
14166         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
14167         getloadavg.
14168
14169 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14170
14171         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
14172         It was 'int', but this doesn't match the IRIX 6.5 manual.
14173         Suggested by Bruno Haible in
14174         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
14175
14176 2011-02-17  Bruno Haible  <bruno@clisp.org>
14177
14178         havelib: Fix comments.
14179         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
14180         change.
14181
14182 2011-02-17  Bruno Haible  <bruno@clisp.org>
14183
14184         havelib: Update config.rpath.
14185         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
14186
14187 2011-02-17  Bruno Haible  <bruno@clisp.org>
14188
14189         getloadavg test: Add some plausibility checks.
14190         * tests/test-getloadavg.c (check_avg): Print a warning when the value
14191         is improbable.
14192
14193 2011-02-16  Eric Blake  <eblake@redhat.com>
14194
14195         maintainer-makefile: make syntax-check a no-op from tarballs
14196         * top/maint.mk (no-vc-detected): New rule.
14197         (local-checks-available): Use it to avoid hanging if someone tries
14198         'make syntax-check' from a tarball.  Also append to any non-syntax
14199         checks already defined in cfg.mk.
14200
14201 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14202
14203         longlong: tune, particularly for common case of c99
14204
14205         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
14206         or running anything if c99, or if unsigned long long int does not
14207         work.  In either case, we know the answer without further tests.
14208         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
14209         it at most once, and use its results for both long long int and
14210         unsigned long long int.  This is more likely to be efficient in
14211         the common case where the program wants to check for both long
14212         long int and unsigned long long int.
14213         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
14214         since the answer is already known.
14215
14216 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
14217
14218         getloadavg: set errno
14219         * lib/getloadavg.c: Set errno when returning -1.  If no other
14220         error number looks appropriate, set it to ENOSYS if the getloadavg
14221         looks like it can't possibly ever work, ENOTSUP otherwise.
14222         Suggested by Bruno Haible in
14223         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
14224
14225         getloadavg: trim unused parts and speed up 'configure'
14226         * NEWS: Document this.
14227         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
14228         always compiled if getloadavg is absent.
14229         Move test code to ...
14230         * tests/test-getloadavg.c: New file, containing previous
14231         contents of test from lib/getloadavg.c.  It also contains
14232         suggestions by Bruno Haible in
14233         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
14234         * modules/getloadavg-tests: New file.
14235         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
14236         Do tests in the same order as they're needed for getloadavg.c.
14237         Omit setgid-related tests that generate symbols KMEM_GROUP,
14238         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
14239         Do only the tests that are needed to see whether the system has
14240         getloadavg, moving the other tests into ...
14241         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
14242         NLIST_NAME_UNION; nobody should be using it.  Do not define
14243         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
14244         relevant, as the user of this module shouldn't care how getloadavg
14245         is implemented.
14246
14247         getloadavg: omit unused var
14248         * lib/getloadavg.c (getloadavg): Omit unused local variable.
14249
14250 2011-02-15  Jim Meyering  <meyering@redhat.com>
14251
14252         doc: update users.txt
14253         * users.txt: Update iwhd's URL.
14254
14255 2011-02-13  Bruno Haible  <bruno@clisp.org>
14256
14257         Consistent macro naming for macros that use GCC __attribute__.
14258         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
14259         _ATTRIBUTE_NONNULL_.
14260         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
14261         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
14262         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14263         ATTRIBUTE_DEPRECATED.
14264         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
14265         ATTRIBUTE_NORETURN.
14266         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14267         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14268         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14269         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14270         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
14271         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
14272         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
14273         ATTRIBUTE_SENTINEL.
14274         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
14275         ATTRIBUTE_RETURN_CHECK.
14276         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
14277         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
14278         ATTRIBUTE_NORETURN.
14279         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
14280         Reported by Paul Eggert.
14281
14282 2011-02-13  Bruno Haible  <bruno@clisp.org>
14283
14284         Don't interfere with a program's definition of __attribute__.
14285         * lib/argp.h (__attribute__): Remove definition.
14286         (_GL_ATTRIBUTE_FORMAT): New macro.
14287         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
14288         * lib/argp-fmtstream.h (__attribute__): Remove definition.
14289         (_GL_ATTRIBUTE_FORMAT): New macro.
14290         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
14291         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
14292         GCC 3 or newer.
14293         * lib/error.h (__attribute__): Remove definition.
14294         (_GL_ATTRIBUTE_FORMAT): New macro.
14295         (error, error_at_line): Use it.
14296         * lib/hash.h (__attribute__): Remove definition.
14297         (ATTRIBUTE_WUR): Update definition. Define always.
14298         * lib/openat.h (__attribute__): Remove definition.
14299         (ATTRIBUTE_NORETURN): Update definition. Define always.
14300         * lib/sigpipe-die.h (__attribute__): Remove definition.
14301         (ATTRIBUTE_NORETURN): Update definition. Define always.
14302         * lib/vasnprintf.h (__attribute__): Remove definition.
14303         (_GL_ATTRIBUTE_FORMAT): New macro.
14304         (asnprintf, vasnprintf): Use it.
14305         * lib/xalloc.h (__attribute__): Remove definition.
14306         (ATTRIBUTE_NORETURN): Update definition. Define always.
14307         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
14308         * lib/xmemdup0.h (__attribute__): Remove definition.
14309         (ATTRIBUTE_NORETURN): Update definition. Define always.
14310         * lib/xprintf.h (__attribute__): Remove definition.
14311         (_GL_ATTRIBUTE_FORMAT): New macro.
14312         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
14313         * lib/xstrtol.h (__attribute__): Remove definition.
14314         (ATTRIBUTE_NORETURN): Update definition. Define always.
14315         * lib/xvasprintf.h (__attribute__): Remove definition.
14316         (_GL_ATTRIBUTE_FORMAT): New macro.
14317         (xasprintf, xvasprintf): Use it.
14318         * tests/test-argmatch.c (__attribute__): Remove definition.
14319         (ATTRIBUTE_NORETURN): Update definition. Define always.
14320         * tests/test-exclude.c (__attribute__): Remove definition.
14321         (ATTRIBUTE_NORETURN): Update definition. Define always.
14322         Reported by Paul Eggert.
14323
14324 2011-02-13  Bruno Haible  <bruno@clisp.org>
14325
14326         mbrtowc: Add more tests for native Windows platforms.
14327         * tests/test-mbrtowc-w32-1.sh: New file.
14328         * tests/test-mbrtowc-w32-2.sh: New file.
14329         * tests/test-mbrtowc-w32-3.sh: New file.
14330         * tests/test-mbrtowc-w32-4.sh: New file.
14331         * tests/test-mbrtowc-w32-5.sh: New file.
14332         * tests/test-mbrtowc-w32.c: New file.
14333         * modules/mbrtowc-tests (Files): Add them.
14334         (Makefile.am): Arrange to run these tests.
14335         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
14336         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
14337
14338 2011-02-13  Bruno Haible  <bruno@clisp.org>
14339
14340         mbrtowc: Work around native Windows bug.
14341         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
14342         guess when no suitable locale for testing was found.
14343         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
14344
14345 2011-02-13  Bruno Haible  <bruno@clisp.org>
14346
14347         mbsinit: Work around mingw bug.
14348         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
14349         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
14350         Windows.
14351         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
14352
14353 2011-02-13  Bruno Haible  <bruno@clisp.org>
14354
14355         mbsinit: Don't crash for a NULL argument.
14356         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
14357         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14358
14359 2011-02-13  Bruno Haible  <bruno@clisp.org>
14360
14361         Don't interfere with a program's definition of __attribute__.
14362         * lib/stdio.in.h (__attribute__): Remove definition.
14363         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14364         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14365         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14366         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14367         * lib/string.in.h (__attribute__): Remove definition.
14368         Reported by Paul Eggert.
14369
14370 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14371
14372         stdlib: don't get in the way of non-GCC __attribute__
14373         See thread starting at
14374         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14375         Revert previous stdlib change, installing the following instead:
14376         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14377         to get in the way of a non-GCC compiler that supports __attribute__.
14378         (_GL_ATTRIBUTE_RETURN): New macro.
14379         (_Exit): Use it instead of __attribute__.
14380
14381 2011-02-12  Bruno Haible  <bruno@clisp.org>
14382
14383         quotearg test: Avoid test failure on mingw.
14384         * tests/test-quotearg.sh: Convert the locale identifier from native
14385         Windows syntax to Unix syntax.
14386
14387 2011-02-12  Bruno Haible  <bruno@clisp.org>
14388
14389         setlocale: Prefer gnulib's override over libintl's override.
14390         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14391         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
14392         GNULIB_defined_setlocale is set.
14393
14394 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14395
14396         stdlib: support non-GCC __attribute__
14397
14398         Fix a serious and tricky problem encountered when attempting to
14399         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
14400         5.5, but it crashed due to memory corruption on Solaris 10 with
14401         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
14402         bits that are otherwise zero.  This tagging is optional inside
14403         Emacs but is preferred and is used when __attribute__ ((__aligned
14404         (8))) works, as it does with both recent-enough GCC and with Sun C
14405         5.11.  However, Sun C 5.11 is not GCC and does not #define
14406         __GNUC__ and __GNUC_MINOR__.
14407
14408         When I added the getloadavg module to Emacs, it brought in
14409         stdlib.in.h, which contained this fragment:
14410
14411            #ifndef __attribute__
14412            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
14413            #  define __attribute__(Spec)   /* empty */
14414            # endif
14415            #endif
14416
14417         When files that include <stdlib.h> were compiled with Sun C 5.11,
14418         the above code disabled __attribute__ ((__aligned (8))), which
14419         caused variables to not be properly aligned, which eventually led
14420         to the pointer corruption mentioned above.  (This was a bit hard
14421         to diagnose, unfortunately.)
14422
14423         Several "#define __attribute__(X) /* empty */" code snippets need
14424         to be eradicated from Gnulib to work with non-GCC compilers that
14425         support __attribute__.  The Autoconf way to do this is to test for
14426         each kind of attribute that we want support for, and selectively
14427         enable that in source code.
14428
14429         Fix this problem just for stdlib.h, by adding a test for the
14430         __noreturn__ attribute, and change stdlib.in.h to use that test
14431         when needed.  This technique can be easily generalized to the
14432         other *.in.h files and attributes, and a similar technique can be
14433         used for *.h and *.c files.  This patch is enough to solve the
14434         problem for Emacs + getloadavg, and I thought I'd publish it for
14435         feedback before undertaking further, similar fixes in other
14436         modules.
14437
14438         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
14439         because it's not needed for stdlib.h.  It merely substitutes the
14440         value directly into stdlib.h.  We may well need to #define it, or
14441         similar symbols, for other modules, but it's nice to also have an
14442         option to not #define it for applications like Emacs that do not
14443         need it.
14444
14445         * lib/stdlib.in.h (__attribute__): Do not #define.
14446         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
14447         be defined only if the _Exit module is also used.
14448         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
14449         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
14450         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
14451         platforms.
14452         * modules/_Exit (Files): Add m4/attribute.m4.
14453         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
14454         * m4/attribute.m4: New file.
14455
14456 2011-02-12  Bruno Haible  <bruno@clisp.org>
14457
14458         wcsrtombs: Work around bug on native Windows.
14459         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
14460         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
14461         instead of len.
14462         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
14463
14464 2011-02-12  Bruno Haible  <bruno@clisp.org>
14465
14466         mbsrtowcs: Work around bug on native Windows.
14467         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
14468         against mingw bug.
14469         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
14470
14471 2011-02-12  Bruno Haible  <bruno@clisp.org>
14472
14473         Avoid setlocale bugs in tests.
14474         * modules/btowc (Dependencies): Add setlocale.
14475         * modules/c-strcase (Dependencies): Likewise.
14476         * modules/mbmemcasecmp (Dependencies): Likewise.
14477         * modules/mbmemcasecoll (Dependencies): Likewise.
14478         * modules/mbrtowc (Dependencies): Likewise.
14479         * modules/mbscasecmp (Dependencies): Likewise.
14480         * modules/mbscasestr (Dependencies): Likewise.
14481         * modules/mbschr (Dependencies): Likewise.
14482         * modules/mbscspn (Dependencies): Likewise.
14483         * modules/mbsinit (Dependencies): Likewise.
14484         * modules/mbsncasecmp (Dependencies): Likewise.
14485         * modules/mbsnrtowcs (Dependencies): Likewise.
14486         * modules/mbspbrk (Dependencies): Likewise.
14487         * modules/mbspcasecmp (Dependencies): Likewise.
14488         * modules/mbsrchr (Dependencies): Likewise.
14489         * modules/mbsrtowcs (Dependencies): Likewise.
14490         * modules/mbsspn (Dependencies): Likewise.
14491         * modules/mbsstr (Dependencies): Likewise.
14492         * modules/nl_langinfo (Dependencies): Likewise.
14493         * modules/quotearg (Dependencies): Likewise.
14494         * modules/unicase/locale-language (Dependencies): Likewise.
14495         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14496         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14497         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14498         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14499         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14500         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14501         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14502         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14503         * modules/vasnprintf-posix (Dependencies): Likewise.
14504         * modules/wcrtomb (Dependencies): Likewise.
14505         * modules/wcsnrtombs (Dependencies): Likewise.
14506         * modules/wcsrtombs (Dependencies): Likewise.
14507
14508 2011-02-12  Bruno Haible  <bruno@clisp.org>
14509
14510         setlocale: Workaround native Windows bug.
14511         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14512         succeeds but sets LC_CTYPE to "C", report a failure.
14513         * tests/test-setlocale2.sh: New file.
14514         * tests/test-setlocale2.c: New file.
14515         * modules/setlocale-tests (Files): Add the new files.
14516         (Makefile.am): Enable test-setlocale2.sh test.
14517         * doc/posix-functions/setlocale.texi: Mention workaround.
14518
14519 2011-02-11  Bruno Haible  <bruno@clisp.org>
14520
14521         Tests for module 'setlocale'.
14522         * modules/setlocale-tests: New file.
14523         * tests/test-setlocale1.sh: New file.
14524         * tests/test-setlocale1.c: New file.
14525
14526         New module 'setlocale'.
14527         * lib/locale.in.h (setlocale): New declaration.
14528         * lib/setlocale.c: New file, based on
14529         gettext/gettext-runtime/intl/setlocale.c.
14530         * m4/setlocale.m4: New file.
14531         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14532         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14533         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14534         REPLACE_SETLOCALE.
14535         * modules/setlocale: New file.
14536         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14537         * doc/posix-functions/setlocale.texi: Mention the new module.
14538
14539 2011-02-11  Bruno Haible  <bruno@clisp.org>
14540
14541         Prepare for locale dependent tests on mingw.
14542         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14543         because it has the wrong locale encoding.
14544         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14545         French_France.1252 instead of "fr".
14546         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14547         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14548         because it has the wrong locale encoding.
14549         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14550         native Windows, try Turkish_Turkey.65001.
14551         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14552         Chinese_China.54936.
14553
14554         Prepare for locale dependent tests on mingw.
14555         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14556         differently.
14557         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14558         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14559         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14560         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14561
14562 2011-02-11  Eric Blake  <eblake@redhat.com>
14563
14564         strptime: avoid compiler warnings
14565         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14566         compiler warnings about dead code.
14567         Reported by Daniel P. Berrange.
14568
14569 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14570
14571         doc: update users.txt
14572         * users.txt: Add rcs.
14573
14574 2011-02-10  John W. Eaton  <jwe@gnu.org>
14575
14576         doc: update users.txt
14577         * users.txt: Add octave.
14578
14579 2011-02-10  Jim Meyering  <meyering@redhat.com>
14580
14581         doc: update users.txt
14582         * users.txt: Add iwhd.
14583
14584 2011-02-09  Bruno Haible  <bruno@clisp.org>
14585
14586         gnulib-tool: Make copyright notice adjustment more robust.
14587         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14588         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14589         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14590         License".
14591         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14592
14593 2011-02-06  Bruno Haible  <bruno@clisp.org>
14594
14595         New module 'towctrans'.
14596         * modules/towctrans: New file.
14597         * lib/wctype.in.h (towctrans): New declaration.
14598         * lib/towctrans.c: New file.
14599         * lib/towctrans-impl.h: New file.
14600         * m4/towctrans.m4: New file.
14601         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14602         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14603         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14604         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14605         * doc/posix-functions/towctrans.texi: Mention the new module.
14606
14607 2011-02-06  Bruno Haible  <bruno@clisp.org>
14608
14609         New module 'wctrans'.
14610         * modules/wctrans: New file.
14611         * lib/wctype.in.h (wctrans): New declaration.
14612         * lib/wctrans.c: New file.
14613         * lib/wctrans-impl.h: New file.
14614         * m4/wctrans.m4: New file.
14615         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14616         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14617         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14618         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14619         * doc/posix-functions/wctrans.texi: Mention the new module.
14620
14621 2011-02-06  Bruno Haible  <bruno@clisp.org>
14622
14623         New module 'iswctype'.
14624         * modules/iswctype: New file.
14625         * lib/wctype.in.h (iswctype): New declaration.
14626         * lib/iswctype.c: New file.
14627         * lib/iswctype-impl.h: New file.
14628         * m4/iswctype.m4: New file.
14629         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14630         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14631         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14632         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14633         * doc/posix-functions/iswctype.texi: Mention the new module and the
14634         HP-UX 11.00 problem.
14635
14636 2011-02-06  Bruno Haible  <bruno@clisp.org>
14637
14638         New module 'wctype'.
14639         * modules/wctype: Change to represent the wctype() substitute.
14640         * lib/wctype.in.h (wctype): New declaration.
14641         * lib/wctype.c: New file.
14642         * lib/wctype-impl.h: New file.
14643         * m4/wctype.m4: New file.
14644         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14645         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14646         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14647         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14648         * doc/posix-functions/wctype.texi: Mention the new module and the
14649         HP-UX 11.00 problem.
14650
14651 2011-02-06  Bruno Haible  <bruno@clisp.org>
14652
14653         wctype-h: Ensure wctype_t and wctrans_t are defined.
14654         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14655         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14656         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14657         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14658         HAVE_WCTRANS_T.
14659         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14660
14661 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14662
14663         flock: fix license typo
14664
14665         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14666         omitted.
14667
14668 2011-02-08  Bruno Haible  <bruno@clisp.org>
14669
14670         Split large sed scripts, for HP-UX sed.
14671         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14672         to avoid HP-UX limit of 99 commands, in the near future.
14673         * modules/stdlib (Makefile.am): Likewise.
14674         * modules/unistd (Makefile.am): Likewise.
14675         * modules/wchar (Makefile.am): Likewise.
14676         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14677         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14678         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14679
14680 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14681             Bruno Haible  <bruno@clisp.org>
14682
14683         stdlib: improve random_r modularization
14684         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14685         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14686         you also need the random_r module to get this material right.
14687         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14688         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14689         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14690
14691 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14692
14693         stdlib: don't depend on stdint
14694         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14695         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14696         be independent of whether stdint.h is needed.
14697         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14698         here, instead of ...
14699         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14700         struct random_data should be using the random_r module, not just
14701         the stdlib module (which wouldn't make sense: what package needs
14702         just struct random_data without also needing random_r?).
14703         * modules/stdlib (Depends-on): Remove stdint.
14704
14705         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14706         See the thread rooted at
14707         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14708         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14709         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14710         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14711         __VMS)); previously it was always included (via fcntl--.h).
14712         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14713         hand; this is good enough for load averages.  Also, do not use
14714         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14715         flags directly if available and don't bother otherwise.  (Packages
14716         that need the extra reliability should use the modules that define
14717         these flags on older platforms that lack them.)
14718         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14719         fcntl-safer.
14720
14721 2011-02-08  Jim Meyering  <meyering@redhat.com>
14722
14723         di-set.h, ino-map.h: add multiple-inclusion guard
14724         Technically, the guard is required only for ino-map.h, due to its
14725         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14726         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14727         * lib/ino-map.h: Likewise.
14728
14729 2011-02-06  Bruno Haible  <bruno@clisp.org>
14730
14731         iswblank: Ensure declaration on glibc systems.
14732         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14733         * modules/iswblank (Dependencies): Add 'extensions'.
14734         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14735
14736 2011-02-06  Bruno Haible  <bruno@clisp.org>
14737
14738         New module 'iswblank'.
14739         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14740         * modules/iswblank: New file.
14741         * modules/wctype-h (Files): Remove lib/iswblank.c.
14742         (Makefile.am): Substitute GNULIB_ISWBLANK.
14743         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14744         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14745         (gl_WCTYPE_H_DEFAULTS): New macro.
14746         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14747         * modules/iswblank-tests: New file.
14748         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14749         * tests/test-wctype-h.c (main): Remove iswblank tests.
14750         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14751         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14752         of 'wctype-h'.
14753         * NEWS: Mention the change.
14754         * modules/mbchar (Depends-on): Add iswblank.
14755
14756 2011-02-08  Bruno Haible  <bruno@clisp.org>
14757
14758         di-set tests: Refactor.
14759         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14760         unnecessary includes.
14761         (ASSERT): Remove macro.
14762         (main): Make C90 compliant by avoiding variable declaration after
14763         statement.
14764         * modules/di-set-tests (Files): Add tests/macros.h.
14765
14766 2011-02-08  Bruno Haible  <bruno@clisp.org>
14767
14768         ino-map tests: Refactor.
14769         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14770         unnecessary includes.
14771         (ASSERT): Remove macro.
14772         (main): Make C90 compliant by avoiding variable declaration after
14773         statement.
14774         * modules/ino-map-tests (Files): Add tests/macros.h.
14775
14776 2011-02-08  Jim Meyering  <meyering@redhat.com>
14777
14778         di-set: add "const" to a cast
14779         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14780         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14781
14782 2011-02-06  Bruno Haible  <bruno@clisp.org>
14783
14784         Rename module 'wctype' to 'wctype-h'.
14785         * modules/wctype-h: Renamed from modules/wctype.
14786         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14787         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14788         (Files, Depends-on, Makefile.am): Update.
14789         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14790         (Files, Makefile.am): Update.
14791         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14792         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14793         * doc/posix-headers/wctype.texi: Update.
14794         * doc/posix-functions/iswalnum.texi: Update.
14795         * doc/posix-functions/iswalpha.texi: Update.
14796         * doc/posix-functions/iswblank.texi: Update.
14797         * doc/posix-functions/iswcntrl.texi: Update.
14798         * doc/posix-functions/iswdigit.texi: Update.
14799         * doc/posix-functions/iswgraph.texi: Update.
14800         * doc/posix-functions/iswlower.texi: Update.
14801         * doc/posix-functions/iswprint.texi: Update.
14802         * doc/posix-functions/iswpunct.texi: Update.
14803         * doc/posix-functions/iswspace.texi: Update.
14804         * doc/posix-functions/iswupper.texi: Update.
14805         * doc/posix-functions/iswxdigit.texi: Update.
14806         * doc/posix-functions/towlower.texi: Update.
14807         * doc/posix-functions/towupper.texi: Update.
14808         * NEWS: Mention the change.
14809         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14810         * modules/mbchar (Dependencies): Likewise.
14811         * modules/mbswidth (Dependencies): Likewise.
14812         * modules/quotearg (Dependencies): Likewise.
14813         * modules/regex (Dependencies): Likewise.
14814         * modules/wcscasecmp (Dependencies): Likewise.
14815         * modules/wcsncasecmp (Dependencies): Likewise.
14816         * modules/wcwidth (Dependencies): Likewise.
14817
14818 2011-02-06  Bruno Haible  <bruno@clisp.org>
14819
14820         New module 'wcswidth'.
14821         * modules/wcswidth: New file.
14822         * lib/wchar.in.h (wcswidth): New declaration.
14823         * lib/wcswidth.c: New file.
14824         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14825         * m4/wcswidth.m4: New file.
14826         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14827         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14828         REPLACE_WCSWIDTH.
14829         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14830         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14831         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14832         * doc/posix-functions/wcswidth.texi: Mention the new module.
14833
14834 2011-02-06  Bruno Haible  <bruno@clisp.org>
14835
14836         New module 'wcstok'.
14837         * modules/wcstok: New file.
14838         * lib/wchar.in.h (wcstok): New declaration.
14839         * lib/wcstok.c: New file.
14840         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14841         * m4/wcstok.m4: New file.
14842         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14843         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14844         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14845         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14846         * doc/posix-functions/wcstok.texi: Mention the new module.
14847
14848 2011-02-06  Bruno Haible  <bruno@clisp.org>
14849
14850         New module 'wcsstr'.
14851         * modules/wcsstr: New file.
14852         * lib/wchar.in.h (wcsstr): New declaration.
14853         * lib/wcsstr.c: New file.
14854         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14855         * m4/wcsstr.m4: New file.
14856         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14857         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14858         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14859         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14860         * doc/posix-functions/wcsstr.texi: Mention the new module.
14861
14862 2011-02-06  Bruno Haible  <bruno@clisp.org>
14863
14864         New module 'wcspbrk'.
14865         * modules/wcspbrk: New file.
14866         * lib/wchar.in.h (wcspbrk): New declaration.
14867         * lib/wcspbrk.c: New file.
14868         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14869         * m4/wcspbrk.m4: New file.
14870         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14871         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14872         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14873         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14874         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14875
14876 2011-02-06  Bruno Haible  <bruno@clisp.org>
14877
14878         New module 'wcsspn'.
14879         * modules/wcsspn: New file.
14880         * lib/wchar.in.h (wcsspn): New declaration.
14881         * lib/wcsspn.c: New file.
14882         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14883         * m4/wcsspn.m4: New file.
14884         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14885         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14886         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14887         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14888         * doc/posix-functions/wcsspn.texi: Mention the new module.
14889
14890 2011-02-06  Bruno Haible  <bruno@clisp.org>
14891
14892         New module 'wcscspn'.
14893         * modules/wcscspn: New file.
14894         * lib/wchar.in.h (wcscspn): New declaration.
14895         * lib/wcscspn.c: New file.
14896         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14897         * m4/wcscspn.m4: New file.
14898         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14899         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14900         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14901         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14902         * doc/posix-functions/wcscspn.texi: Mention the new module.
14903
14904 2011-02-06  Bruno Haible  <bruno@clisp.org>
14905
14906         New module 'wcsrchr'.
14907         * modules/wcsrchr: New file.
14908         * lib/wchar.in.h (wcsrchr): New declaration.
14909         * lib/wcsrchr.c: New file.
14910         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14911         * m4/wcsrchr.m4: New file.
14912         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14913         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14914         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14915         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14916         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14917
14918 2011-02-06  Bruno Haible  <bruno@clisp.org>
14919
14920         New module 'wcschr'.
14921         * modules/wcschr: New file.
14922         * lib/wchar.in.h (wcschr): New declaration.
14923         * lib/wcschr.c: New file.
14924         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14925         * m4/wcschr.m4: New file.
14926         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14927         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14928         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14929         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14930         * doc/posix-functions/wcschr.texi: Mention the new module.
14931
14932 2011-02-06  Bruno Haible  <bruno@clisp.org>
14933
14934         New module 'wcsdup'.
14935         * modules/wcsdup: New file.
14936         * lib/wchar.in.h (wcsdup): New declaration.
14937         * lib/wcsdup.c: New file.
14938         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14939         * m4/wcsdup.m4: New file.
14940         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14941         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14942         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14943         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14944         * doc/posix-functions/wcsdup.texi: Mention the new module.
14945
14946 2011-02-06  Bruno Haible  <bruno@clisp.org>
14947
14948         New module 'wcsxfrm'.
14949         * modules/wcsxfrm: New file.
14950         * lib/wchar.in.h (wcsxfrm): New declaration.
14951         * lib/wcsxfrm.c: New file.
14952         * lib/wcsxfrm-impl.h: New file.
14953         * m4/wcsxfrm.m4: New file.
14954         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14955         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14956         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14957         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14958         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14959
14960 2011-02-06  Bruno Haible  <bruno@clisp.org>
14961
14962         New module 'wcscoll'.
14963         * modules/wcscoll: New file.
14964         * lib/wchar.in.h (wcscoll): New declaration.
14965         * lib/wcscoll.c: New file.
14966         * lib/wcscoll-impl.h: New file.
14967         * m4/wcscoll.m4: New file.
14968         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14969         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14970         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14971         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14972         * doc/posix-functions/wcscoll.texi: Mention the new module.
14973
14974 2011-02-06  Bruno Haible  <bruno@clisp.org>
14975
14976         New module 'wcsncasecmp'.
14977         * modules/wcsncasecmp: New file.
14978         * lib/wchar.in.h (wcsncasecmp): New declaration.
14979         * lib/wcsncasecmp.c: New file.
14980         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14981         * m4/wcsncasecmp.m4: New file.
14982         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14983         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14984         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14985         HAVE_WCSNCASECMP.
14986         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14987         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14988
14989 2011-02-06  Bruno Haible  <bruno@clisp.org>
14990
14991         New module 'wcscasecmp'.
14992         * modules/wcscasecmp: New file.
14993         * lib/wchar.in.h (wcscasecmp): New declaration.
14994         * lib/wcscasecmp.c: New file.
14995         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14996         * m4/wcscasecmp.m4: New file.
14997         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14998         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14999         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
15000         HAVE_WCSCASECMP.
15001         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
15002         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
15003
15004 2011-02-05  Bruno Haible  <bruno@clisp.org>
15005
15006         New module 'wcsncmp'.
15007         * modules/wcsncmp: New file.
15008         * lib/wchar.in.h (wcsncmp): New declaration.
15009         * lib/wcsncmp.c: New file.
15010         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
15011         * m4/wcsncmp.m4: New file.
15012         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
15013         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
15014         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
15015         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
15016         * doc/posix-functions/wcsncmp.texi: Mention the new module.
15017
15018 2011-02-05  Bruno Haible  <bruno@clisp.org>
15019
15020         New module 'wcscmp'.
15021         * modules/wcscmp: New file.
15022         * lib/wchar.in.h (wcscmp): New declaration.
15023         * lib/wcscmp.c: New file.
15024         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
15025         * m4/wcscmp.m4: New file.
15026         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
15027         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
15028         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
15029         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
15030         * doc/posix-functions/wcscmp.texi: Mention the new module.
15031
15032 2011-02-05  Bruno Haible  <bruno@clisp.org>
15033
15034         New module 'wcsncat'.
15035         * modules/wcsncat: New file.
15036         * lib/wchar.in.h (wcsncat): New declaration.
15037         * lib/wcsncat.c: New file.
15038         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
15039         * m4/wcsncat.m4: New file.
15040         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
15041         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
15042         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
15043         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
15044         * doc/posix-functions/wcsncat.texi: Mention the new module.
15045
15046 2011-02-05  Bruno Haible  <bruno@clisp.org>
15047
15048         New module 'wcscat'.
15049         * modules/wcscat: New file.
15050         * lib/wchar.in.h (wcscat): New declaration.
15051         * lib/wcscat.c: New file.
15052         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
15053         * m4/wcscat.m4: New file.
15054         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
15055         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
15056         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
15057         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
15058         * doc/posix-functions/wcscat.texi: Mention the new module.
15059
15060 2011-02-05  Bruno Haible  <bruno@clisp.org>
15061
15062         New module 'wcpncpy'.
15063         * modules/wcpncpy: New file.
15064         * lib/wchar.in.h (wcpncpy): New declaration.
15065         * lib/wcpncpy.c: New file.
15066         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
15067         * m4/wcpncpy.m4: New file.
15068         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
15069         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
15070         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
15071         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
15072         * doc/posix-functions/wcpncpy.texi: Mention the new module.
15073
15074 2011-02-05  Bruno Haible  <bruno@clisp.org>
15075
15076         New module 'wcsncpy'.
15077         * modules/wcsncpy: New file.
15078         * lib/wchar.in.h (wcsncpy): New declaration.
15079         * lib/wcsncpy.c: New file.
15080         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
15081         * m4/wcsncpy.m4: New file.
15082         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
15083         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
15084         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
15085         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
15086         * doc/posix-functions/wcsncpy.texi: Mention the new module.
15087
15088 2011-02-05  Bruno Haible  <bruno@clisp.org>
15089
15090         New module 'wcpcpy'.
15091         * modules/wcpcpy: New file.
15092         * lib/wchar.in.h (wcpcpy): New declaration.
15093         * lib/wcpcpy.c: New file.
15094         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
15095         * m4/wcpcpy.m4: New file.
15096         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
15097         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
15098         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
15099         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
15100         * doc/posix-functions/wcpcpy.texi: Mention the new module.
15101
15102 2011-02-05  Bruno Haible  <bruno@clisp.org>
15103
15104         New module 'wcscpy'.
15105         * modules/wcscpy: New file.
15106         * lib/wchar.in.h (wcscpy): New declaration.
15107         * lib/wcscpy.c: New file.
15108         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
15109         * m4/wcscpy.m4: New file.
15110         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
15111         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
15112         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
15113         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
15114         * doc/posix-functions/wcscpy.texi: Mention the new module.
15115
15116 2011-02-05  Bruno Haible  <bruno@clisp.org>
15117
15118         New module 'wcsnlen'.
15119         * modules/wcsnlen: New file.
15120         * lib/wchar.in.h (wcsnlen): New declaration.
15121         * lib/wcsnlen.c: New file.
15122         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
15123         * m4/wcsnlen.m4: New file.
15124         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
15125         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
15126         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
15127         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
15128         * doc/posix-functions/wcsnlen.texi: Mention the new module.
15129
15130 2011-02-05  Bruno Haible  <bruno@clisp.org>
15131
15132         New module 'wcslen'.
15133         * modules/wcslen: New file.
15134         * lib/wchar.in.h (wcslen): New declaration.
15135         * lib/wcslen.c: New file.
15136         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
15137         * m4/wcslen.m4: New file.
15138         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
15139         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
15140         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
15141         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
15142         * doc/posix-functions/wcslen.texi: Mention the new module.
15143
15144 2011-02-05  Bruno Haible  <bruno@clisp.org>
15145
15146         New module 'wmemset'.
15147         * modules/wmemset: New file.
15148         * lib/wchar.in.h (wmemset): New declaration.
15149         * lib/wmemset.c: New file.
15150         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
15151         * m4/wmemset.m4: New file.
15152         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
15153         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
15154         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
15155         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
15156         * doc/posix-functions/wmemset.texi: Mention the new module.
15157
15158 2011-02-05  Bruno Haible  <bruno@clisp.org>
15159
15160         New module 'wmemmove'.
15161         * modules/wmemmove: New file.
15162         * lib/wchar.in.h (wmemmove): New declaration.
15163         * lib/wmemmove.c: New file.
15164         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
15165         * m4/wmemmove.m4: New file.
15166         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
15167         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
15168         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
15169         HAVE_WMEMMOVE.
15170         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
15171         * doc/posix-functions/wmemmove.texi: Mention the new module.
15172
15173 2011-02-05  Bruno Haible  <bruno@clisp.org>
15174
15175         New module 'wmemcpy'.
15176         * modules/wmemcpy: New file.
15177         * lib/wchar.in.h (wmemcpy): New declaration.
15178         * lib/wmemcpy.c: New file.
15179         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
15180         * m4/wmemcpy.m4: New file.
15181         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
15182         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
15183         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
15184         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
15185         * doc/posix-functions/wmemcpy.texi: Mention the new module.
15186
15187 2011-02-05  Bruno Haible  <bruno@clisp.org>
15188
15189         New module 'wmemcmp'.
15190         * modules/wmemcmp: New file.
15191         * lib/wchar.in.h (wmemcmp): New declaration.
15192         * lib/wmemcmp.c: New file.
15193         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
15194         * m4/wmemcmp.m4: New file.
15195         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
15196         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
15197         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
15198         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
15199         * doc/posix-functions/wmemcmp.texi: Mention the new module.
15200
15201 2011-02-07  Jim Meyering  <meyering@redhat.com>
15202
15203         di-set, ino-map: new modules, from coreutils
15204         * lib/di-set.c: New file.
15205         * lib/di-set.h: Likewise.
15206         * lib/ino-map.c: Likewise.
15207         * lib/ino-map.h: Likewise.
15208         * modules/di-set: Likewise.
15209         * modules/di-set-tests: Likewise.
15210         * modules/ino-map: Likewise.
15211         * modules/ino-map-tests: Likewise.
15212         * tests/test-di-set.c: Likewise.
15213         * tests/test-ino-map.c: Likewise.
15214
15215 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15216
15217         getloadavg: merge minor changes from Emacs
15218
15219         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
15220         (getloadavg): Use memset, not bzero.
15221
15222         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
15223         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
15224         clash (bug#86).
15225
15226 2010-11-14  Bruno Haible  <bruno@clisp.org>
15227
15228         Allow multiple gnulib generated replacements to coexist.
15229         * lib/getopt.in.h (struct option): Avoid identical redefinition.
15230         * lib/inttypes.in.h (imaxdiv_t): Likewise.
15231         * lib/langinfo.in.h (nl_item): Likewise.
15232         * lib/math.in.h (_NaN, NAN): Likewise.
15233         * lib/netdb.in.h (struct addrinfo): Likewise.
15234         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
15235         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
15236         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
15237         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
15238         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
15239         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
15240         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
15241         pthread_mutexattr_init, pthread_mutexattr_settype,
15242         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
15243         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
15244         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
15245         pthread_spin_trylock, pthread_spin_unlock): Likewise.
15246         * lib/sched.in.h (struct sched_param): Likewise.
15247         * lib/se-selinux.in.h (security_class_t, security_context_t,
15248         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
15249         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
15250         lsetfilecon, fsetfilecon, security_check_context,
15251         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
15252         Likewise.
15253         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
15254         Likewise.
15255         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
15256         _gl_function_taking_int_returning_void_t, union sigval,
15257         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
15258         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
15259         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15260         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
15261         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
15262         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
15263         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
15264         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
15265         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
15266         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
15267         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
15268         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
15269         socklen_t, rpl_fd_isset): Likewise.
15270         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
15271         * lib/sys_time.in.h (struct timeval): Likewise.
15272         * lib/sys_times.in.h (struct tms): Likewise.
15273         * lib/sys_utsname.in.h (struct utsname):
15274         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
15275         * lib/unistd.in.h (getpagesize): Likewise.
15276         * lib/wchar.in.h (mbstate_t): Likewise.
15277         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15278         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
15279         towlower, towupper): Likewise.
15280         Reported by Sam Steingold <sds@gnu.org>.
15281
15282 2011-02-05  Eric Blake  <eblake@redhat.com>
15283
15284         unsetenv: work around Haiku issues
15285         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
15286         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
15287
15288 2010-12-30  Bruce Korb  <bkorb@gnu.org>
15289
15290         libposix: avoid calling error() within libposix
15291         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
15292         is defined.
15293
15294 2011-02-05  Eric Blake  <eblake@redhat.com>
15295
15296         strerror_r-posix: port to cygwin
15297         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
15298         implementation.
15299         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
15300         * tests/test-strerror_r.c (main): Fix test.
15301         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15302         issue.
15303
15304 2011-02-05  Bruno Haible  <bruno@clisp.org>
15305
15306         New module 'wmemchr'.
15307         * modules/wmemchr: New file.
15308         * lib/wchar.in.h (wmemchr): New declaration.
15309         * lib/wmemchr.c: New file.
15310         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
15311         * m4/wmemchr.m4: New file.
15312         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
15313         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
15314         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
15315         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
15316         * doc/posix-functions/wmemchr.texi: Mention the new module.
15317
15318 2011-02-04  Eric Blake  <eblake@redhat.com>
15319
15320         fdopendir: detect FreeBSD bug
15321         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
15322         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
15323
15324 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15325
15326         stdbool: do not define HAVE_STDBOOL_H
15327         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
15328         AC_HEADER_STDBOOL.  All uses changed.  Do not define
15329         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
15330         imported from the latest Autoconf git.  It was motivated by Emacs,
15331         which uses gnulib but does not need HAVE_STDBOOL_H.
15332
15333 2011-02-04  Bruno Haible  <bruno@clisp.org>
15334
15335         wcsnrtombs: Prepare for new module wwcsnrtombs.
15336         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
15337         * lib/wcsnrtombs.c: Include it.
15338         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
15339
15340         wcsrtombs: Prepare for new module wwcsrtombs.
15341         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
15342         * lib/wcsrtombs.c: Include it.
15343         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
15344
15345         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
15346         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
15347         * lib/mbsnrtowcs.c: Include it.
15348         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
15349
15350         mbsrtowcs: Prepare for new module mbsrtowwcs.
15351         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
15352         * lib/mbsrtowcs.c: Include it.
15353         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
15354
15355 2011-02-04  Bruno Haible  <bruno@clisp.org>
15356
15357         vasnprintf: Reduce use of malloc for small format strings.
15358         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15359         (arguments): Add room for the first 7 arguments.
15360         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15361         (char_directives, u8_directives, u16_directives, u32_directives): Add
15362         room for the first 7 directives.
15363         * lib/printf-parse.c: Include <string.h>.
15364         (PRINTF_PARSE): Change memory handling code so that it uses the first
15365         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15366         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15367         Reported by Pádraig Brady <P@draigbrady.com>.
15368
15369 2011-01-31  Eric Blake  <eblake@redhat.com>
15370
15371         dup2: work around Haiku bug
15372         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15373         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15374         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15375         * tests/test-dup2.c (main): Enhance test.
15376
15377 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15378
15379         doc: off_t is not available in eglibc 2.11.2 stdio.h.
15380         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15381         declared by eglibc 2.11.2.
15382         * lib/stdio.in.h: Likewise.
15383
15384 2011-01-31  Eric Blake  <eblake@redhat.com>
15385
15386         ignore-value: add missing test dependency
15387         * tests/test-ignore-value.c: Revert previous change; stdio.h
15388         provides off_t.
15389         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15390
15391 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15392
15393         mktime: clarify long_int width checking
15394         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
15395         the top level, to make it clearer that the assumption about
15396         long_int width is being checked.  See
15397         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
15398
15399 2011-01-30  Simon Josefsson  <simon@josefsson.org>
15400
15401         ignore-value: Fix self-test.
15402         * tests/test-ignore-value.c: Include sys/types.h for off_t.
15403
15404 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15405
15406         TYPE_MAXIMUM: avoid theoretically undefined behavior
15407         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
15408         negative number, which the C Standard says has undefined behavior.
15409         In practice this is not a problem, but might as well do it by the book.
15410         Reported by Rich Felker and Eric Blake; see
15411         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
15412         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15413         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15414         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15415         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
15416         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15417         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
15418
15419         mktime: #undef mktime before #defining it
15420         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
15421
15422         mktime: systematically normalize tm_isdst comparisons
15423         * lib/mktime.c (isdst_differ): New function.
15424         (__mktime_internal): Use it systematically for all isdst comparisons.
15425         This completes the fix for libc BZ #6723, and removes the need for
15426         normalizing tm_isdst.  See
15427         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
15428         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
15429
15430         mktime: fix some integer overflow issues and sidestep the rest
15431
15432         This was prompted by a bug report by Benjamin Lindner for MinGW
15433         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15434         His bug is due to signed integer overflow (0 - INT_MIN), and I
15435         I scanned through mktime.c looking for other integer overflow
15436         problems, fixing all the bugs I found.
15437
15438         Although the C Standard says the resulting code is still not safe
15439         in the presence of integer overflow, in practice it should be good
15440         enough for all real-world two's-complement implementations, except
15441         for debugging environments that deliberately trap on integer
15442         overflow (e.g., gcc -ftrapv).
15443
15444         * lib/mktime.c (WRAPV): New macro.
15445         (SHR): Also check that long_int and time_t shift right in the
15446         usual way, before using the fast-but-unportable method.
15447         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
15448         used.  The code already assumed two's complement, so there's
15449         no need to test for alternatives.  All uses removed.
15450         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
15451         the C standard.  Problem reported by Rich Felker in
15452         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
15453         (twos_complement_arithmetic): Also check long_int and time_t.
15454         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
15455         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
15456         (__mktime_internal): Avoid integer overflow with unary subtraction
15457         in two instances where -1 - X is an adequate replacement for -X,
15458         since the calculations are approximate.
15459
15460 2011-01-29  Eric Blake  <eblake@redhat.com>
15461
15462         mktime: avoid infinite loop
15463         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
15464         type; behavior is still undefined but portable to all known targets.
15465         Reported by Rich Felker.
15466
15467 2011-01-29  Simon Josefsson  <simon@josefsson.org>
15468
15469         rename, unlink, same-inode: Relicense.
15470         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15471         * modules/unlink (License): Likewise.
15472         * modules/same-inode (License): Likewise.
15473
15474 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15475
15476         mktime: avoid problems on NetBSD 5 / i386
15477         * lib/mktime.c (long_int): New type.  This works around a problem
15478         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15479         but time_t is 64 bits, and where I expect the existing code is
15480         wrong in some cases.
15481         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15482         (ydhms_diff): Bring back the compile-time check for wide-enough
15483         year and yday.
15484
15485         mktime: fix misspelling in comment
15486         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15487         This merges all recent glibc changes of importance.
15488
15489 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15490
15491         move-if-change: cope with concurrent mv of identical file.
15492         * build-aux/move-if-change (CMPPROG): Accept environment
15493         variable as an override for `cmp'.
15494         (usage): Document CMPPROG.
15495         Adjust comparison to drop stdout.  Cope with failure of mv if
15496         the target file exists and is identical to the source, for
15497         parallel builds.
15498         Report from H.J. Lu against binutils in PR binutils/12283.
15499
15500 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15501
15502         * users.txt: Mention sharutils.
15503
15504 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15505
15506         * users.txt: Mention OATH Toolkit.
15507
15508 2011-01-27  Bruno Haible  <bruno@clisp.org>
15509
15510         Prepare for supporting FreeBSD 10.
15511         * build-aux/config.libpath: Remove handling of freebsd1*.
15512
15513 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15514
15515         Prepare for supporting FreeBSD 10.
15516         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15517         match FreeBSD 10.0.
15518
15519 2011-01-27  Bruno Haible  <bruno@clisp.org>
15520
15521         vma-iter, get-rusage-as: Add OpenBSD support.
15522         * modules/vma-iter (configure.ac): Test for mquery.
15523         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15524         * lib/vma-iter.c: Include <sys/mman.h>.
15525         (vma_iterate): Add an implementation based on mquery().
15526         * lib/resource-ext.h (get_rusage_as): Update comments.
15527         * lib/get-rusage-as.c: Likewise.
15528         * lib/get-rusage-data.c: Likewise.
15529
15530 2011-01-26  Karl Berry  <karl@gnu.org>
15531
15532         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15533         variables to make it easier to override the makeinfo program used.
15534
15535 2011-01-26  Eric Blake  <eblake@redhat.com>
15536
15537         fcntl: work around Haiku F_DUPFD bugs
15538         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15539         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15540         cloexec bit on duplication.
15541         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15542
15543 2011-01-26  Bruno Haible  <bruno@clisp.org>
15544
15545         Enable memory leak tests on AIX.
15546         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15547         * tests/test-fprintf-posix3.c (main): Likewise.
15548
15549 2011-01-26  Bruno Haible  <bruno@clisp.org>
15550
15551         Tests for module 'get-rusage-data'.
15552         * modules/get-rusage-data-tests: New file.
15553         * tests/test-get-rusage-data.c: New file.
15554
15555         New module 'get-rusage-data'.
15556         * lib/resource-ext.h (get_rusage_data): New declaration.
15557         * lib/get-rusage-data.c: New file.
15558         * modules/get-rusage-data: New file.
15559
15560 2011-01-25  Bruno Haible  <bruno@clisp.org>
15561
15562         get-rusage-as: Allow for easier testing.
15563         * lib/resource-ext.h (get_rusage_as): Add comment.
15564         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15565         (main): New function for interactive testing.
15566
15567 2011-01-25  Bruno Haible  <bruno@clisp.org>
15568
15569         vma-iter: Treat Haiku like BeOS.
15570         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15571         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15572
15573 2011-01-25  Eric Blake  <eblake@redhat.com>
15574
15575         c-stack: fix regression on cygwin when libsigsegv is present
15576         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15577
15578 2011-01-24  Bruno Haible  <bruno@clisp.org>
15579
15580         vma-iter: Avoid empty intervals.
15581         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15582         on an empty interval.
15583
15584 2011-01-24  Jim Meyering  <meyering@redhat.com>
15585
15586         u64: remove unnecessary #include
15587         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15588
15589 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15590
15591         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15592         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15593
15594 2011-01-23  Bruno Haible  <bruno@clisp.org>
15595
15596         New module 'vma-iter'.
15597         * lib/vma-iter.h: New file.
15598         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15599         * modules/vma-iter: New file.
15600         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15601         for get_rusage_as_via_iterator.
15602         (vma_iterate_callback): New function.
15603         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15604         * modules/get-rusage-as (Depends-on): Add vma-iter.
15605
15606 2011-01-23  Bruno Haible  <bruno@clisp.org>
15607
15608         uninorm: Tweak includes.
15609         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15610         Reported by Jim Meyering.
15611
15612 2011-01-23  Bruno Haible  <bruno@clisp.org>
15613
15614         get-rusage-as: Improve on NetBSD.
15615         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15616         /proc, like on FreeBSD.
15617
15618 2011-01-23  Jim Meyering  <meyering@redhat.com>
15619
15620         xreadlink.h: remove unnecessary #include
15621         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15622
15623         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15624         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15625
15626 2011-01-23  Bruno Haible  <bruno@clisp.org>
15627
15628         get-rusage-as: Fix bug.
15629         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15630         original limit when aborting the first loop.
15631
15632 2011-01-23  Bruno Haible  <bruno@clisp.org>
15633
15634         wctype: Ensure valid C syntax.
15635         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15636         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15637
15638 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15639
15640         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15641         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15642         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15643         as they are needed only for configure's test case.
15644         This removes two unnecessary symbols from config.h.
15645
15646         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15647         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15648         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15649         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15650         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15651         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15652         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15653         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15654         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15655         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15656         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15657         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15658         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15659         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15660         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15661         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15662         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15663         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15664
15665 2011-01-21  Eric Blake  <eblake@redhat.com>
15666
15667         maintainer-makefile: work with older git for submodule check
15668         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15669         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15670         Reported by Matthias Bolte.
15671
15672         bootstrap: minor portability fixes
15673         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15674         (usage): Omit leading capital and trailing . on help phrases, per
15675         GNU Coding Standards.
15676         (check_versions, top level): Prefix messages with script name.
15677
15678 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15679
15680         bootstrap: support --no-git option
15681         * build-aux/bootstrap: Add --no-git option, to be used when
15682         --gnulib-srcdir points to the exact desired checkout.
15683
15684 2011-01-21  Eric Blake  <eblake@redhat.com>
15685
15686         strerror_r-posix: work with glibc 2.13
15687         * lib/strerror_r.c (strerror_r): Fix return type.
15688
15689 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15690             Bruno Haible  <bruno@clisp.org>
15691
15692         uN_strstr: New unit tests.
15693         * modules/unistr/u8-strstr-tests: New file.
15694         * modules/unistr/u16-strstr-tests: New file.
15695         * modules/unistr/u32-strstr-tests: New file.
15696         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15697         * tests/unistr/test-u8-strstr.c: New file.
15698         * tests/unistr/test-u16-strstr.c: New file.
15699         * tests/unistr/test-u32-strstr.c: New file.
15700
15701 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15702             Bruno Haible  <bruno@clisp.org>
15703
15704         Make uN_strstr functions O(n) worst-case.
15705         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15706         16-bit and 32-bit unit cases, use the unibyte algorithm from
15707         lib/mbsstr.c.
15708         * lib/unistr/u8-strstr.c: Include <string.h>.
15709         (UNIT_IS_UINT8_T): New macro.
15710         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15711         (U_STRLEN, U_STRNLEN): New macros.
15712         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15713         (U_STRLEN, U_STRNLEN): New macros.
15714         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15715         (configure.ac): Update required libunistring version.
15716         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15717         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15718         malloca.
15719         (configure.ac): Update required libunistring version.
15720         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15721         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15722         malloca.
15723         (configure.ac): Update required libunistring version.
15724
15725 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15726             Bruno Haible  <bruno@clisp.org>
15727
15728         Prepare for faster uN_strstr functions.
15729         * lib/str-kmp.h: Support definable UNITs.
15730         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15731         needle_len argument.
15732         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15733         * lib/mbscasestr.c (mbscasestr): Likewise.
15734
15735 2011-01-21  Pádraig Brady <P@draigBrady.com>
15736
15737         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15738         * tests/test-malloca.c (main): Unset the environment variable
15739         to greatly speed up the test.
15740         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15741         * modules/malloca-tests: Depend on unsetenv.
15742
15743 2011-01-21  Pádraig Brady <P@draigBrady.com>
15744
15745         ignore-value: remove stdint dependency
15746         * lib/ignore-value.h: Remove <stdint.h>
15747         * modules/ignore-value: Remove stdint dependency.
15748
15749 2011-01-21  Jim Meyering  <meyering@redhat.com>
15750
15751         maint.mk: adjust variable name to be consistent with other gl_ vars
15752         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15753         to be lower case.
15754
15755 2011-01-20  Jim Meyering  <meyering@redhat.com>
15756
15757         maint.mk: make "check" depend on public-submodule-commit by default
15758         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15759
15760 2011-01-20  Bruno Haible  <bruno@clisp.org>
15761
15762         mbfile, mbiter: Complete change from 2008-12-21.
15763         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15764         * m4/mbiter.m4 (gl_MBITER): Likewise.
15765
15766 2011-01-20  Jim Meyering  <meyering@redhat.com>
15767
15768         init.sh: insert space between each function name and "()"
15769         * tests/init.sh: Make it a little easier to see that a function's
15770         name is "warn_", and not "warn" when looking at the first part of
15771         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15772
15773 2011-01-20  Jim Meyering  <meyering@redhat.com>
15774
15775         mountlist: clean up code formatting
15776         * lib/mountlist.c (read_file_system_list): Split a long line,
15777         correct bracing style, use NULL in place of "(struct statfs *)0",
15778         don't parenthesize return value, add spaces around "=" and after
15779         ";-in-for-stmt".
15780
15781 2011-01-14  Markus Duft <mduft@gentoo.org>
15782
15783         mountlist: add support for Interix
15784         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15785         Apply statvfs to all entries of /dev/fs.
15786         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15787         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15788
15789 2011-01-20  Jim Meyering  <meyering@redhat.com>
15790
15791         maint.mk: improve the public-submodule-commit rule
15792         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15793         to suppress printing of its commands... unless V=1.
15794         Add git submodule's --quiet option to suppress printing of e.g.,
15795         "Entering gnulib" output.
15796         "cd" into $(srcdir) before running git submodule.
15797
15798 2011-01-20  Bruno Haible  <bruno@clisp.org>
15799
15800         include_next: Fix bug introduced on 2011-01-18.
15801         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15802         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15803         ac_cv_header_... variable if the second argument is not 'check'.
15804         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15805         gl_NEXT_HEADERS_INTERNAL.
15806
15807 2011-01-20  Bruno Haible  <bruno@clisp.org>
15808
15809         Allow the user to avoid the GNULIB_TEST_* macros.
15810         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15811         Suggested by Paul Eggert.
15812
15813 2011-01-14  Jim Meyering  <meyering@redhat.com>
15814
15815         bootstrap: avoid failure when there is no .gitmodules file
15816         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15817         has been assigned to, even when its value is the empty string.
15818         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15819         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15820         Reported by John W. Eaton <jwe@gnu.org>.
15821
15822 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15823
15824         assume <ctype.h>, ..., <time.h> exist
15825         For years gnulib has been assuming the existence of the headers
15826         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15827         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15828         them, since they don't appear to be needed.
15829         * README (Portability guidelines): Document this.
15830         * lib/flock.c: Assume <fcntl.h> exists.
15831         * lib/regex_internal.h: Assume <locale.h> exists.
15832         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15833         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15834         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15835         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15836         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15837         * m4/regex.m4 (gl_REGEX): Likewise.
15838         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15839         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15840         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15841         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15842         * tests/test-argp.c: Likewise.
15843         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15844
15845         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15846         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15847         AA_APPLE_UNIVERSAL_BUILD.  See
15848         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15849         * NEWS: Document this.
15850
15851 2011-01-19  Eric Blake  <eblake@redhat.com>
15852
15853         c-stack: assume stack overflow if SA_SIGINFO unsupported
15854         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15855         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15856         sigaction will work.
15857         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15858         behavior match Linux.
15859         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15860
15861         stdbool-tests: accomodate Haiku
15862         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15863
15864         binary-io: fix O_TEXT on Haiku
15865         * modules/binary-io (Depends-on): Add fcntl-h.
15866         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15867         than blindly undefining O_TEXT.
15868         Reported by Scott McCreary.
15869
15870 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15871
15872         include_next: do not check for standard headers like stddef.h
15873
15874         I found this problem when modifying Emacs to use gnulib.
15875         I noticed that it added HAVE_STDDEF_H to config.h, even though
15876         gnulib always assumes <stddef.h> exists as per README and this
15877         symbol is unnecessary.
15878         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15879         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15880         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15881         faster for headers like stddef.h that are known to exist.
15882         (gl_CHECK_NEXT_HEADERS): Use it.
15883         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15884         rather than gl_CHECK_NEXT_HEADERS.
15885         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15886         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15887
15888 2011-01-18  Eric Blake  <eblake@redhat.com>
15889
15890         ansi-c++-opt: skip C++ dependency style if C++ is unused
15891         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15892         tests when we know C++ compilation is not desired.
15893         Reported by Scott McCreary.
15894
15895 2011-01-18  Bruno Haible  <bruno@clisp.org>
15896
15897         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15898         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15899         (main): Perform test also when getrlimit and setrlimit don't exist or
15900         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15901         limiting the address space size using setrlimit, compare the address
15902         space size before and after the the test.
15903         * tests/test-dprintf-posix2.c: Likewise.
15904         * tests/test-fprintf-posix3.sh: Update skip messages.
15905         * tests/test-dprintf-posix2.sh: Likewise.
15906         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15907         * modules/dprintf-posix-tests (Depends-on): Likewise.
15908         Reported by Bruce Korb <bkorb@gnu.org> and
15909         Gary V. Vaughan <gary@gnu.org>.
15910
15911 2011-01-18  Bruno Haible  <bruno@clisp.org>
15912
15913         get-rusage-as: Improvement for Cygwin.
15914         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15915         areas that are merely reserved.
15916
15917 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15918
15919         strftime: remove dependencies on multibyte modules
15920
15921         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15922         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15923         only if __osf__ is defined, and I suspect OSF doesn't need these
15924         other modules.  If my guess is wrong, we'll need to come up with a
15925         variant of strftime that doesn't need the multibyte modules.
15926
15927         I discovered this problem when attempting modify Emacs to use the
15928         strftime module.  With the previous gnulib, this caused Emacs to
15929         need 31 new files, ranging from lib/config.charset to
15930         m4/wint_t.m4.  This was overkill and I expect would be offputting
15931         to the Emacs maintainers.  After this change, only 6 new files are
15932         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15933         stdbool.m4, and tm_gmtoff.m4.
15934
15935         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15936         Suggested by Bruno Haible in
15937         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15938         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15939         and do not check for wchar.h.
15940         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15941         (Depends-on): Remove mbrlen, mbsinit, wchar.
15942
15943 2011-01-18  Bruno Haible  <bruno@clisp.org>
15944
15945         Tests for module 'get-rusage-as'.
15946         * modules/get-rusage-as-tests: New file.
15947         * tests/test-get-rusage-as.c: New file.
15948
15949         New module 'get-rusage-as'.
15950         * modules/get-rusage-as: New file.
15951         * lib/resource-ext.h: New file.
15952         * lib/get-rusage-as.c: New file.
15953
15954 2011-01-17  Eric Blake  <eblake@redhat.com>
15955
15956         sigaction: relax license from LGPLv3+ to LGPLv2+
15957         * modules/sigaction (License): Relax to LGPLv2+.
15958
15959 2011-01-14  Bruno Haible  <bruno@clisp.org>
15960
15961         filemode: Make function declarations usable in C++ mode.
15962         * lib/filemode.h: Enclose function declarations in extern "C" block.
15963         Reported by John W. Eaton <jwe@gnu.org>.
15964
15965 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15966
15967         save-cwd: no longer include "xgetcwd.h"
15968         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15969         This avoids a compilation failure in projects that use save-cwd
15970         without also using the xgetcwd module.
15971
15972 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15973
15974         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15975         This is so that a program like Emacs, which needs only dtoastr,
15976         does not have to bother with distributing and compiling ftoastr
15977         and ldtoastr.
15978         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15979         * modules/dtoastr, modules/ldtoastr: New files.
15980         * modules/ftoastr: Now works just for 'float'.
15981         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15982         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15983         dtoastr.c, ldtoastr.c.
15984
15985 2011-01-11  Jim Meyering  <meyering@redhat.com>
15986
15987         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15988         There is no need to work around the lack of the fchdir function,
15989         since gnulib can now provide a replacement when required.
15990         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15991         * modules/save-cwd (Depends-on): Add fchdir.
15992
15993 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15994
15995         openat, save-cwd: avoid xmalloc
15996
15997         This removes a direct (but undocumented) dependency of openat on
15998         xalloc, along with an indirect dependency via save-cwd.  It also
15999         removes a dependency of save-cwd on xgetcwd, and thereby
16000         indirectly on xalloc.  This change causes the openat substitute
16001         to fall back on save_cwd when memory is tight, and for save_cwd to
16002         fail instead of dying when memory is tight, but that's good enough.
16003         Problem and initial idea for fix reported by Bastien Roucaries in
16004         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
16005
16006         * lib/openat-proc.c: Include stdlib.h (for malloc), not
16007         xalloc.h (for xmalloc).
16008         (openat_proc_name): Use malloc, not xmalloc.
16009         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
16010         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
16011
16012         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
16013         This avoids heap allocation for file names whose lengths are in
16014         the range 512..1023, with the upper bound increasing to at most
16015         4031 depending on the platform's PATH_MAX.  (We do not want
16016         pathmax.h here as it might supply a non-constant PATH_MAX.)
16017         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
16018         Perhaps they should be moved to malloca.h?
16019         (OPENAT_BUFFER_SIZE): Use them.
16020
16021 2011-01-10  Bruno Haible  <bruno@clisp.org>
16022
16023         doc: Update users.txt.
16024         * users.txt: Add recutils.
16025
16026 2011-01-09  Karl Berry  <karl@gnu.org>
16027
16028         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
16029
16030         * doc/configmake.texi: New file.
16031         * doc/gnulib.texi: Include it.
16032         * modules/configmake: Move documentation from here.
16033
16034 2011-01-09  Bruno Haible  <bruno@clisp.org>
16035
16036         Update to Unicode 6.0.0.
16037         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
16038         (get_lbp): Update for Unicode 6.0.0.
16039         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
16040         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
16041         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
16042         U+11001, U+11038..U+11046. Remove U+06DE.
16043         (uc_width): Fix bounds of planes.
16044         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16045         lib/uniwidth/width.c.
16046         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
16047         trailing whitespace removed.
16048         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
16049         without comments, but with the original copyright notice.
16050         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
16051         * lib/unicase/ignorable.h: Likewise.
16052         * lib/unicase/tocasefold.h: Likewise.
16053         * lib/unicase/tolower.h: Likewise.
16054         * lib/unicase/totitle.h: Likewise.
16055         * lib/unicase/toupper.h: Likewise.
16056         * lib/unictype/bidi_of.h: Likewise.
16057         * lib/unictype/blocks.h: Likewise.
16058         * lib/unictype/categ_C.h: Likewise.
16059         * lib/unictype/categ_Cn.h: Likewise.
16060         * lib/unictype/categ_L.h: Likewise.
16061         * lib/unictype/categ_Ll.h: Likewise.
16062         * lib/unictype/categ_Lm.h: Likewise.
16063         * lib/unictype/categ_Lo.h: Likewise.
16064         * lib/unictype/categ_Lu.h: Likewise.
16065         * lib/unictype/categ_M.h: Likewise.
16066         * lib/unictype/categ_Mc.h: Likewise.
16067         * lib/unictype/categ_Me.h: Likewise.
16068         * lib/unictype/categ_Mn.h: Likewise.
16069         * lib/unictype/categ_N.h: Likewise.
16070         * lib/unictype/categ_Nd.h: Likewise.
16071         * lib/unictype/categ_No.h: Likewise.
16072         * lib/unictype/categ_P.h: Likewise.
16073         * lib/unictype/categ_Po.h: Likewise.
16074         * lib/unictype/categ_S.h: Likewise.
16075         * lib/unictype/categ_Sc.h: Likewise.
16076         * lib/unictype/categ_Sk.h: Likewise.
16077         * lib/unictype/categ_Sm.h: Likewise.
16078         * lib/unictype/categ_So.h: Likewise.
16079         * lib/unictype/categ_of.h: Likewise.
16080         * lib/unictype/combining.h: Likewise.
16081         * lib/unictype/ctype_alnum.h: Likewise.
16082         * lib/unictype/ctype_alpha.h: Likewise.
16083         * lib/unictype/ctype_graph.h: Likewise.
16084         * lib/unictype/ctype_lower.h: Likewise.
16085         * lib/unictype/ctype_print.h: Likewise.
16086         * lib/unictype/ctype_punct.h: Likewise.
16087         * lib/unictype/ctype_upper.h: Likewise.
16088         * lib/unictype/decdigit.h: Likewise.
16089         * lib/unictype/digit.h: Likewise.
16090         * lib/unictype/numeric.h: Likewise.
16091         * lib/unictype/pr_alphabetic.h: Likewise.
16092         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16093         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16094         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16095         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16096         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16097         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16098         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16099         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16100         * lib/unictype/pr_case_ignorable.h: Likewise.
16101         * lib/unictype/pr_cased.h: Likewise.
16102         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
16103         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
16104         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
16105         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
16106         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
16107         * lib/unictype/pr_combining.h: Likewise.
16108         * lib/unictype/pr_composite.h: Likewise.
16109         * lib/unictype/pr_currency_symbol.h: Likewise.
16110         * lib/unictype/pr_decimal_digit.h: Likewise.
16111         * lib/unictype/pr_deprecated.h: Likewise.
16112         * lib/unictype/pr_format_control.h: Likewise.
16113         * lib/unictype/pr_grapheme_base.h: Likewise.
16114         * lib/unictype/pr_grapheme_extend.h: Likewise.
16115         * lib/unictype/pr_grapheme_link.h: Likewise.
16116         * lib/unictype/pr_id_continue.h: Likewise.
16117         * lib/unictype/pr_id_start.h: Likewise.
16118         * lib/unictype/pr_ideographic.h: Likewise.
16119         * lib/unictype/pr_lowercase.h: Likewise.
16120         * lib/unictype/pr_math.h: Likewise.
16121         * lib/unictype/pr_numeric.h: Likewise.
16122         * lib/unictype/pr_other_alphabetic.h: Likewise.
16123         * lib/unictype/pr_other_id_continue.h: Likewise.
16124         * lib/unictype/pr_other_math.h: Likewise.
16125         * lib/unictype/pr_punctuation.h: Likewise.
16126         * lib/unictype/pr_sentence_terminal.h: Likewise.
16127         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16128         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16129         * lib/unictype/pr_unified_ideograph.h: Likewise.
16130         * lib/unictype/pr_uppercase.h: Likewise.
16131         * lib/unictype/pr_xid_continue.h: Likewise.
16132         * lib/unictype/pr_xid_start.h: Likewise.
16133         * lib/unictype/scripts.h: Likewise.
16134         * lib/unictype/scripts_byname.gperf: Likewise.
16135         * lib/unictype/sy_java_ident.h: Likewise.
16136         * lib/unigbrk/gbrkprop.h: Likewise.
16137         * lib/unilbrk/lbrkprop1.h: Likewise.
16138         * lib/unilbrk/lbrkprop2.h: Likewise.
16139         * lib/uninorm/decomposition-table2.h: Likewise.
16140         * lib/uniwbrk/wbrkprop.h: Likewise.
16141         * tests/unicase/test-cased.c: Likewise.
16142         * tests/unicase/test-ignorable.c: Likewise.
16143         * tests/unicase/test-uc_tolower.c: Likewise.
16144         * tests/unicase/test-uc_totitle.c: Likewise.
16145         * tests/unicase/test-uc_toupper.c: Likewise.
16146         * tests/unictype/test-categ_C.c: Likewise.
16147         * tests/unictype/test-categ_Cn.c: Likewise.
16148         * tests/unictype/test-categ_L.c: Likewise.
16149         * tests/unictype/test-categ_Ll.c: Likewise.
16150         * tests/unictype/test-categ_Lm.c: Likewise.
16151         * tests/unictype/test-categ_Lo.c: Likewise.
16152         * tests/unictype/test-categ_Lu.c: Likewise.
16153         * tests/unictype/test-categ_M.c: Likewise.
16154         * tests/unictype/test-categ_Mc.c: Likewise.
16155         * tests/unictype/test-categ_Me.c: Likewise.
16156         * tests/unictype/test-categ_Mn.c: Likewise.
16157         * tests/unictype/test-categ_N.c: Likewise.
16158         * tests/unictype/test-categ_Nd.c: Likewise.
16159         * tests/unictype/test-categ_No.c: Likewise.
16160         * tests/unictype/test-categ_P.c: Likewise.
16161         * tests/unictype/test-categ_Po.c: Likewise.
16162         * tests/unictype/test-categ_S.c: Likewise.
16163         * tests/unictype/test-categ_Sc.c: Likewise.
16164         * tests/unictype/test-categ_Sk.c: Likewise.
16165         * tests/unictype/test-categ_Sm.c: Likewise.
16166         * tests/unictype/test-categ_So.c: Likewise.
16167         * tests/unictype/test-ctype_alnum.c: Likewise.
16168         * tests/unictype/test-ctype_alpha.c: Likewise.
16169         * tests/unictype/test-ctype_graph.c: Likewise.
16170         * tests/unictype/test-ctype_lower.c: Likewise.
16171         * tests/unictype/test-ctype_print.c: Likewise.
16172         * tests/unictype/test-ctype_punct.c: Likewise.
16173         * tests/unictype/test-ctype_upper.c: Likewise.
16174         * tests/unictype/test-decdigit.h: Likewise.
16175         * tests/unictype/test-digit.h: Likewise.
16176         * tests/unictype/test-numeric.h: Likewise.
16177         * tests/unictype/test-pr_alphabetic.c: Likewise.
16178         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16179         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
16180         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
16181         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16182         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16183         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16184         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16185         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16186         * tests/unictype/test-pr_case_ignorable.c: Likewise.
16187         * tests/unictype/test-pr_cased.c: Likewise.
16188         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
16189         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
16190         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
16191         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
16192         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
16193         * tests/unictype/test-pr_combining.c: Likewise.
16194         * tests/unictype/test-pr_composite.c: Likewise.
16195         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16196         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16197         * tests/unictype/test-pr_deprecated.c: Likewise.
16198         * tests/unictype/test-pr_format_control.c: Likewise.
16199         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16200         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16201         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16202         * tests/unictype/test-pr_id_continue.c: Likewise.
16203         * tests/unictype/test-pr_id_start.c: Likewise.
16204         * tests/unictype/test-pr_ideographic.c: Likewise.
16205         * tests/unictype/test-pr_lowercase.c: Likewise.
16206         * tests/unictype/test-pr_math.c: Likewise.
16207         * tests/unictype/test-pr_numeric.c: Likewise.
16208         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16209         * tests/unictype/test-pr_other_id_continue.c: Likewise.
16210         * tests/unictype/test-pr_other_math.c: Likewise.
16211         * tests/unictype/test-pr_punctuation.c: Likewise.
16212         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16213         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16214         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16215         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16216         * tests/unictype/test-pr_uppercase.c: Likewise.
16217         * tests/unictype/test-pr_xid_continue.c: Likewise.
16218         * tests/unictype/test-pr_xid_start.c: Likewise.
16219         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16220         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16221         changes.
16222         * lib/unictype/categ_Cc.h: Likewise.
16223         * lib/unictype/categ_Cf.h: Likewise.
16224         * lib/unictype/categ_Co.h: Likewise.
16225         * lib/unictype/categ_Cs.h: Likewise.
16226         * lib/unictype/categ_Lt.h: Likewise.
16227         * lib/unictype/categ_Nl.h: Likewise.
16228         * lib/unictype/categ_Pc.h: Likewise.
16229         * lib/unictype/categ_Pd.h: Likewise.
16230         * lib/unictype/categ_Pe.h: Likewise.
16231         * lib/unictype/categ_Pf.h: Likewise.
16232         * lib/unictype/categ_Pi.h: Likewise.
16233         * lib/unictype/categ_Ps.h: Likewise.
16234         * lib/unictype/categ_Z.h: Likewise.
16235         * lib/unictype/categ_Zl.h: Likewise.
16236         * lib/unictype/categ_Zp.h: Likewise.
16237         * lib/unictype/categ_Zs.h: Likewise.
16238         * lib/unictype/ctype_blank.h: Likewise.
16239         * lib/unictype/ctype_cntrl.h: Likewise.
16240         * lib/unictype/ctype_digit.h: Likewise.
16241         * lib/unictype/ctype_space.h: Likewise.
16242         * lib/unictype/ctype_xdigit.h: Likewise.
16243         * lib/unictype/mirror.h: Likewise.
16244         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16245         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16246         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16247         * lib/unictype/pr_bidi_control.h: Likewise.
16248         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16249         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16250         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16251         * lib/unictype/pr_bidi_pdf.h: Likewise.
16252         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16253         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16254         * lib/unictype/pr_dash.h: Likewise.
16255         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16256         * lib/unictype/pr_diacritic.h: Likewise.
16257         * lib/unictype/pr_extender.h: Likewise.
16258         * lib/unictype/pr_hex_digit.h: Likewise.
16259         * lib/unictype/pr_hyphen.h: Likewise.
16260         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16261         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16262         * lib/unictype/pr_ignorable_control.h: Likewise.
16263         * lib/unictype/pr_iso_control.h: Likewise.
16264         * lib/unictype/pr_join_control.h: Likewise.
16265         * lib/unictype/pr_left_of_pair.h: Likewise.
16266         * lib/unictype/pr_line_separator.h: Likewise.
16267         * lib/unictype/pr_logical_order_exception.h: Likewise.
16268         * lib/unictype/pr_non_break.h: Likewise.
16269         * lib/unictype/pr_not_a_character.h: Likewise.
16270         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16271         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16272         * lib/unictype/pr_other_id_start.h: Likewise.
16273         * lib/unictype/pr_other_lowercase.h: Likewise.
16274         * lib/unictype/pr_other_uppercase.h: Likewise.
16275         * lib/unictype/pr_paired_punctuation.h: Likewise.
16276         * lib/unictype/pr_paragraph_separator.h: Likewise.
16277         * lib/unictype/pr_pattern_syntax.h: Likewise.
16278         * lib/unictype/pr_pattern_white_space.h: Likewise.
16279         * lib/unictype/pr_private_use.h: Likewise.
16280         * lib/unictype/pr_quotation_mark.h: Likewise.
16281         * lib/unictype/pr_radical.h: Likewise.
16282         * lib/unictype/pr_soft_dotted.h: Likewise.
16283         * lib/unictype/pr_space.h: Likewise.
16284         * lib/unictype/pr_titlecase.h: Likewise.
16285         * lib/unictype/pr_variation_selector.h: Likewise.
16286         * lib/unictype/pr_white_space.h: Likewise.
16287         * lib/unictype/pr_zero_width.h: Likewise.
16288         * lib/unictype/sy_c_ident.h: Likewise.
16289         * lib/unictype/sy_c_whitespace.h: Likewise.
16290         * lib/unictype/sy_java_whitespace.h: Likewise.
16291         * lib/uninorm/composition-table.gperf: Likewise.
16292         * lib/uninorm/decomposition-table1.h: Likewise.
16293         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
16294         LB8.
16295         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16296         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16297         * modules/unictype/*: Bump version number of expected libunistring
16298         version.
16299
16300 2011-01-09  Bruno Haible  <bruno@clisp.org>
16301
16302         Update to Unicode 5.2.0.
16303         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
16304         trailing whitespace removed.
16305
16306 2011-01-09  Bruno Haible  <bruno@clisp.org>
16307
16308         New Unicode character properties, from Unicode 5.2.0.
16309         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
16310         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
16311         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
16312         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
16313         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
16314         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
16315         uc_is_property_cased, uc_is_property_case_ignorable,
16316         uc_is_property_changes_when_lowercased,
16317         uc_is_property_changes_when_uppercased,
16318         uc_is_property_changes_when_titlecased,
16319         uc_is_property_changes_when_casefolded,
16320         uc_is_property_changes_when_casemapped): New declarations.
16321         * lib/unictype/pr_byname.gperf: Add the new properties.
16322         * modules/unictype/property-byname (Depends-on): Depend on the new
16323         properties modules.
16324         * modules/unictype/property-all (Depends-on): Likewise.
16325         * MODULES.html.sh (Unicode string functions): Add
16326         unictype/property-case-ignorable, unictype/property-cased,
16327         unictype/property-changes-when-casefolded,
16328         unictype/property-changes-when-casemapped,
16329         unictype/property-changes-when-lowercased,
16330         unictype/property-changes-when-titlecased,
16331         unictype/property-changes-when-uppercased.
16332
16333         New module 'unictype/property-changes-when-casemapped'.
16334         * modules/unictype/property-changes-when-casemapped: New file.
16335         * lib/unictype/pr_changes_when_casemapped.c: New file.
16336         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
16337         generated by gen-uni-tables.
16338         * modules/unictype/property-changes-when-casemapped-tests: New file.
16339         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
16340         automatically generated by gen-uni-tables.
16341
16342         New module 'unictype/property-changes-when-casefolded'.
16343         * modules/unictype/property-changes-when-casefolded: New file.
16344         * lib/unictype/pr_changes_when_casefolded.c: New file.
16345         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
16346         generated by gen-uni-tables.
16347         * modules/unictype/property-changes-when-casefolded-tests: New file.
16348         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
16349         automatically generated by gen-uni-tables.
16350
16351         New module 'unictype/property-changes-when-titlecased'.
16352         * modules/unictype/property-changes-when-titlecased: New file.
16353         * lib/unictype/pr_changes_when_titlecased.c: New file.
16354         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
16355         generated by gen-uni-tables.
16356         * modules/unictype/property-changes-when-titlecased-tests: New file.
16357         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16358         automatically generated by gen-uni-tables.
16359
16360         New module 'unictype/property-changes-when-uppercased'.
16361         * modules/unictype/property-changes-when-uppercased: New file.
16362         * lib/unictype/pr_changes_when_uppercased.c: New file.
16363         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16364         generated by gen-uni-tables.
16365         * modules/unictype/property-changes-when-uppercased-tests: New file.
16366         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16367         automatically generated by gen-uni-tables.
16368
16369         New module 'unictype/property-changes-when-lowercased'.
16370         * modules/unictype/property-changes-when-lowercased: New file.
16371         * lib/unictype/pr_changes_when_lowercased.c: New file.
16372         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16373         generated by gen-uni-tables.
16374         * modules/unictype/property-changes-when-lowercased-tests: New file.
16375         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16376         automatically generated by gen-uni-tables.
16377
16378         New module 'unictype/property-case-ignorable'.
16379         * modules/unictype/property-case-ignorable: New file.
16380         * lib/unictype/pr_case_ignorable.c: New file.
16381         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16382         by gen-uni-tables.
16383         * modules/unictype/property-case-ignorable-tests: New file.
16384         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16385         generated by gen-uni-tables.
16386
16387         New module 'unictype/property-cased'.
16388         * modules/unictype/property-cased: New file.
16389         * lib/unictype/pr_cased.c: New file.
16390         * lib/unictype/pr_cased.h: New file, automatically generated by
16391         gen-uni-tables.
16392         * modules/unictype/property-cased-tests: New file.
16393         * tests/unictype/test-pr_cased.c: New file, automatically generated by
16394         gen-uni-tables.
16395
16396 2011-01-09  Bruno Haible  <bruno@clisp.org>
16397
16398         Update to Unicode 5.2.0.
16399         * lib/gen-uni-tables.c (output_predicate, output_category,
16400         output_combclass, output_bidi_category, output_decimal_digit_test,
16401         output_decimal_digit, output_digit_test, output_digit,
16402         output_numeric_test, output_numeric, output_mirror, output_scripts,
16403         output_scripts_byname, output_blocks, output_ident_category): Fix
16404         comment header.
16405         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
16406         get_wbp.
16407         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
16408         items.
16409         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
16410         Changes_When_Lowercased, Changes_When_Uppercased,
16411         Changes_When_Titlecased, Changes_When_Casefolded,
16412         Changes_When_Casemapped.
16413         (is_property_alphabetic, is_property_default_ignorable_code_point):
16414         Update for Unicode 5.2.0.
16415         (is_property_cased, is_property_case_ignorable,
16416         is_property_changes_when_lowercased,
16417         is_property_changes_when_uppercased,
16418         is_property_changes_when_titlecased,
16419         is_property_changes_when_casefolded,
16420         is_property_changes_when_casemapped): New functions.
16421         (output_properties): Output also the properties cased, case_ignorable,
16422         changes_when_lowercased, changes_when_uppercased,
16423         changes_when_titlecased, changes_when_casefolded,
16424         changes_when_casemapped.
16425         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
16426         Unicode TR#11 revision 17 -> 19.
16427         (LBP_CP): New enumeration value.
16428         (LBP_*): Adjust values accordingly.
16429         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16430         TR#14 revision 22 -> 24.
16431         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
16432         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
16433         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16434         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
16435         is_WBP_MIDLETTER.
16436         (output_composition_tables): Allow for 24 bits instead of 16 bits in
16437         the code1 and code2 of each composition rule.
16438         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
16439         * lib/unicase/ignorable.h: Likewise.
16440         * lib/unicase/tocasefold.h: Likewise.
16441         * lib/unicase/tolower.h: Likewise.
16442         * lib/unicase/totitle.h: Likewise.
16443         * lib/unicase/toupper.h: Likewise.
16444         * lib/unictype/bidi_of.h: Likewise.
16445         * lib/unictype/blocks.h: Likewise.
16446         * lib/unictype/categ_C.h: Likewise.
16447         * lib/unictype/categ_Cf.h: Likewise.
16448         * lib/unictype/categ_Cn.h: Likewise.
16449         * lib/unictype/categ_L.h: Likewise.
16450         * lib/unictype/categ_Ll.h: Likewise.
16451         * lib/unictype/categ_Lm.h: Likewise.
16452         * lib/unictype/categ_Lo.h: Likewise.
16453         * lib/unictype/categ_Lu.h: Likewise.
16454         * lib/unictype/categ_M.h: Likewise.
16455         * lib/unictype/categ_Mc.h: Likewise.
16456         * lib/unictype/categ_Mn.h: Likewise.
16457         * lib/unictype/categ_N.h: Likewise.
16458         * lib/unictype/categ_Nd.h: Likewise.
16459         * lib/unictype/categ_Nl.h: Likewise.
16460         * lib/unictype/categ_No.h: Likewise.
16461         * lib/unictype/categ_P.h: Likewise.
16462         * lib/unictype/categ_Pd.h: Likewise.
16463         * lib/unictype/categ_Po.h: Likewise.
16464         * lib/unictype/categ_S.h: Likewise.
16465         * lib/unictype/categ_Sc.h: Likewise.
16466         * lib/unictype/categ_So.h: Likewise.
16467         * lib/unictype/categ_of.h: Likewise.
16468         * lib/unictype/combining.h: Likewise.
16469         * lib/unictype/ctype_alnum.h: Likewise.
16470         * lib/unictype/ctype_alpha.h: Likewise.
16471         * lib/unictype/ctype_graph.h: Likewise.
16472         * lib/unictype/ctype_lower.h: Likewise.
16473         * lib/unictype/ctype_print.h: Likewise.
16474         * lib/unictype/ctype_punct.h: Likewise.
16475         * lib/unictype/ctype_upper.h: Likewise.
16476         * lib/unictype/decdigit.h: Likewise.
16477         * lib/unictype/digit.h: Likewise.
16478         * lib/unictype/numeric.h: Likewise.
16479         * lib/unictype/pr_alphabetic.h: Likewise.
16480         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16481         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16482         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16483         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16484         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16485         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16486         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16487         * lib/unictype/pr_combining.h: Likewise.
16488         * lib/unictype/pr_composite.h: Likewise.
16489         * lib/unictype/pr_currency_symbol.h: Likewise.
16490         * lib/unictype/pr_dash.h: Likewise.
16491         * lib/unictype/pr_decimal_digit.h: Likewise.
16492         * lib/unictype/pr_deprecated.h: Likewise.
16493         * lib/unictype/pr_diacritic.h: Likewise.
16494         * lib/unictype/pr_extender.h: Likewise.
16495         * lib/unictype/pr_grapheme_base.h: Likewise.
16496         * lib/unictype/pr_grapheme_extend.h: Likewise.
16497         * lib/unictype/pr_grapheme_link.h: Likewise.
16498         * lib/unictype/pr_id_continue.h: Likewise.
16499         * lib/unictype/pr_id_start.h: Likewise.
16500         * lib/unictype/pr_ideographic.h: Likewise.
16501         * lib/unictype/pr_ignorable_control.h: Likewise.
16502         * lib/unictype/pr_logical_order_exception.h: Likewise.
16503         * lib/unictype/pr_lowercase.h: Likewise.
16504         * lib/unictype/pr_numeric.h: Likewise.
16505         * lib/unictype/pr_other_alphabetic.h: Likewise.
16506         * lib/unictype/pr_punctuation.h: Likewise.
16507         * lib/unictype/pr_sentence_terminal.h: Likewise.
16508         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16509         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16510         * lib/unictype/pr_unified_ideograph.h: Likewise.
16511         * lib/unictype/pr_uppercase.h: Likewise.
16512         * lib/unictype/pr_xid_continue.h: Likewise.
16513         * lib/unictype/pr_xid_start.h: Likewise.
16514         * lib/unictype/pr_zero_width.h: Likewise.
16515         * lib/unictype/scripts.h: Likewise.
16516         * lib/unictype/scripts_byname.gperf: Likewise.
16517         * lib/unictype/sy_java_ident.h: Likewise.
16518         * lib/unigbrk/gbrkprop.h: Likewise.
16519         * lib/unilbrk/lbrkprop1.h: Likewise.
16520         * lib/unilbrk/lbrkprop2.h: Likewise.
16521         * lib/unilbrk/lbrktables.h: Likewise.
16522         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16523         LBP_CP. Implement rule LB30.
16524         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16525         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16526         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16527         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16528         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16529         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16530         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16531         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16532         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16533         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16534         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16535         bits instead of 16 bits in the code1 and code2 of each composition
16536         rule.
16537         (uc_composition): Update for Unicode 5.2.0.
16538         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16539         * lib/uninorm/decomposition-table2.h: Likewise.
16540         * lib/uniwbrk/wbrkprop.h: Likewise.
16541         * tests/unicase/test-cased.c: Likewise.
16542         * tests/unicase/test-ignorable.c: Likewise.
16543         * tests/unicase/test-uc_tolower.c: Likewise.
16544         * tests/unicase/test-uc_totitle.c: Likewise.
16545         * tests/unicase/test-uc_toupper.c: Likewise.
16546         * tests/unictype/test-categ_C.c: Likewise.
16547         * tests/unictype/test-categ_Cf.c: Likewise.
16548         * tests/unictype/test-categ_Cn.c: Likewise.
16549         * tests/unictype/test-categ_L.c: Likewise.
16550         * tests/unictype/test-categ_Ll.c: Likewise.
16551         * tests/unictype/test-categ_Lm.c: Likewise.
16552         * tests/unictype/test-categ_Lo.c: Likewise.
16553         * tests/unictype/test-categ_Lu.c: Likewise.
16554         * tests/unictype/test-categ_M.c: Likewise.
16555         * tests/unictype/test-categ_Mc.c: Likewise.
16556         * tests/unictype/test-categ_Mn.c: Likewise.
16557         * tests/unictype/test-categ_N.c: Likewise.
16558         * tests/unictype/test-categ_Nd.c: Likewise.
16559         * tests/unictype/test-categ_Nl.c: Likewise.
16560         * tests/unictype/test-categ_No.c: Likewise.
16561         * tests/unictype/test-categ_P.c: Likewise.
16562         * tests/unictype/test-categ_Pd.c: Likewise.
16563         * tests/unictype/test-categ_Po.c: Likewise.
16564         * tests/unictype/test-categ_S.c: Likewise.
16565         * tests/unictype/test-categ_Sc.c: Likewise.
16566         * tests/unictype/test-categ_So.c: Likewise.
16567         * tests/unictype/test-ctype_alnum.c: Likewise.
16568         * tests/unictype/test-ctype_alpha.c: Likewise.
16569         * tests/unictype/test-ctype_graph.c: Likewise.
16570         * tests/unictype/test-ctype_lower.c: Likewise.
16571         * tests/unictype/test-ctype_print.c: Likewise.
16572         * tests/unictype/test-ctype_punct.c: Likewise.
16573         * tests/unictype/test-ctype_upper.c: Likewise.
16574         * tests/unictype/test-decdigit.h: Likewise.
16575         * tests/unictype/test-digit.h: Likewise.
16576         * tests/unictype/test-numeric.h: Likewise.
16577         * tests/unictype/test-pr_alphabetic.c: Likewise.
16578         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16579         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16580         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16581         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16582         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16583         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16584         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16585         * tests/unictype/test-pr_combining.c: Likewise.
16586         * tests/unictype/test-pr_composite.c: Likewise.
16587         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16588         * tests/unictype/test-pr_dash.c: Likewise.
16589         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16590         * tests/unictype/test-pr_deprecated.c: Likewise.
16591         * tests/unictype/test-pr_diacritic.c: Likewise.
16592         * tests/unictype/test-pr_extender.c: Likewise.
16593         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16594         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16595         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16596         * tests/unictype/test-pr_id_continue.c: Likewise.
16597         * tests/unictype/test-pr_id_start.c: Likewise.
16598         * tests/unictype/test-pr_ideographic.c: Likewise.
16599         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16600         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16601         * tests/unictype/test-pr_lowercase.c: Likewise.
16602         * tests/unictype/test-pr_numeric.c: Likewise.
16603         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16604         * tests/unictype/test-pr_punctuation.c: Likewise.
16605         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16606         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16607         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16608         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16609         * tests/unictype/test-pr_uppercase.c: Likewise.
16610         * tests/unictype/test-pr_xid_continue.c: Likewise.
16611         * tests/unictype/test-pr_xid_start.c: Likewise.
16612         * tests/unictype/test-pr_zero_width.c: Likewise.
16613         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16614         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16615         changed behaviour: line breaking is now disallowed between a letter
16616         or '=' and '('.
16617         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16618         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16619         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16620         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16621         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16622         lib/uniwidth/width.c.
16623         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16624         without comments, but with the original copyright notice.
16625         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16626         changes.
16627         * lib/unictype/categ_Cc.h: Likewise.
16628         * lib/unictype/categ_Co.h: Likewise.
16629         * lib/unictype/categ_Cs.h: Likewise.
16630         * lib/unictype/categ_Lt.h: Likewise.
16631         * lib/unictype/categ_Me.h: Likewise.
16632         * lib/unictype/categ_Pc.h: Likewise.
16633         * lib/unictype/categ_Pe.h: Likewise.
16634         * lib/unictype/categ_Pf.h: Likewise.
16635         * lib/unictype/categ_Pi.h: Likewise.
16636         * lib/unictype/categ_Ps.h: Likewise.
16637         * lib/unictype/categ_Sk.h: Likewise.
16638         * lib/unictype/categ_Sm.h: Likewise.
16639         * lib/unictype/categ_Z.h: Likewise.
16640         * lib/unictype/categ_Zl.h: Likewise.
16641         * lib/unictype/categ_Zp.h: Likewise.
16642         * lib/unictype/categ_Zs.h: Likewise.
16643         * lib/unictype/ctype_blank.h: Likewise.
16644         * lib/unictype/ctype_cntrl.h: Likewise.
16645         * lib/unictype/ctype_digit.h: Likewise.
16646         * lib/unictype/ctype_space.h: Likewise.
16647         * lib/unictype/ctype_xdigit.h: Likewise.
16648         * lib/unictype/mirror.h: Likewise.
16649         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16650         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16651         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16652         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16653         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16654         * lib/unictype/pr_bidi_control.h: Likewise.
16655         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16656         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16657         * lib/unictype/pr_bidi_pdf.h: Likewise.
16658         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16659         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16660         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16661         * lib/unictype/pr_format_control.h: Likewise.
16662         * lib/unictype/pr_hex_digit.h: Likewise.
16663         * lib/unictype/pr_hyphen.h: Likewise.
16664         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16665         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16666         * lib/unictype/pr_iso_control.h: Likewise.
16667         * lib/unictype/pr_join_control.h: Likewise.
16668         * lib/unictype/pr_left_of_pair.h: Likewise.
16669         * lib/unictype/pr_line_separator.h: Likewise.
16670         * lib/unictype/pr_math.h: Likewise.
16671         * lib/unictype/pr_non_break.h: Likewise.
16672         * lib/unictype/pr_not_a_character.h: Likewise.
16673         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16674         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16675         * lib/unictype/pr_other_id_continue.h: Likewise.
16676         * lib/unictype/pr_other_id_start.h: Likewise.
16677         * lib/unictype/pr_other_lowercase.h: Likewise.
16678         * lib/unictype/pr_other_math.h: Likewise.
16679         * lib/unictype/pr_other_uppercase.h: Likewise.
16680         * lib/unictype/pr_paired_punctuation.h: Likewise.
16681         * lib/unictype/pr_paragraph_separator.h: Likewise.
16682         * lib/unictype/pr_pattern_syntax.h: Likewise.
16683         * lib/unictype/pr_pattern_white_space.h: Likewise.
16684         * lib/unictype/pr_private_use.h: Likewise.
16685         * lib/unictype/pr_quotation_mark.h: Likewise.
16686         * lib/unictype/pr_radical.h: Likewise.
16687         * lib/unictype/pr_soft_dotted.h: Likewise.
16688         * lib/unictype/pr_space.h: Likewise.
16689         * lib/unictype/pr_titlecase.h: Likewise.
16690         * lib/unictype/pr_variation_selector.h: Likewise.
16691         * lib/unictype/pr_white_space.h: Likewise.
16692         * lib/unictype/sy_c_ident.h: Likewise.
16693         * lib/unictype/sy_c_whitespace.h: Likewise.
16694         * lib/unictype/sy_java_whitespace.h: Likewise.
16695         * modules/uni*/*: Bump version number of expected libunistring version.
16696         Reported by Simon Josefsson.
16697
16698 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16699
16700         useless-if-before-free: fix typo in --help and make the internal,
16701         automatic version date update process work once again.
16702         --help output contained a NUL character instead of the
16703         backslash-zero that was intended.  Also, the "must lie within
16704         the first 8 lines" line is on line 9, and hence not getting
16705         automatically updated.
16706         * build-aux/useless-if-before-free: Fix the former by adding a
16707         backslash, and the latter by condensing the three lines of what-it-does
16708         to a single line, leaving one line of slack for the future.
16709
16710 2011-01-09  Bruno Haible  <bruno@clisp.org>
16711
16712         uniwidth/width: Fix width of U+1D173..U+1D17A.
16713         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16714         symbolic_width, output_width_property_test): New functions.
16715         (main): Invoke output_nonspacing_property, output_width_property_test.
16716         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16717         U+1D173..U+1D17A.
16718         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16719         1.
16720         * modules/uniwidth/*: Bump version number of expected libunistring
16721         version.
16722         * modules/unilbrk/*: Likewise.
16723
16724 2011-01-08  Bruno Haible  <bruno@clisp.org>
16725
16726         uninorm tests: Preserve copyright of Unicode data file.
16727         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16728         Mention modifications.
16729
16730 2011-01-08  Bruno Haible  <bruno@clisp.org>
16731
16732         gen-uni-tables: Prepare for Unicode 5.2.0.
16733         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16734         (debug_output_lbp, output_lbp): Update.
16735
16736 2011-01-08  Bruno Haible  <bruno@clisp.org>
16737
16738         unilbrk: Clarify gen-uni-tables.c code.
16739         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16740         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16741         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16742
16743 2011-01-07  Bruno Haible  <bruno@clisp.org>
16744
16745         strtod: Restore errno when successfully parsing Infinity or NaN.
16746         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16747         restore the original errno.
16748
16749 2011-01-07  Bruno Haible  <bruno@clisp.org>
16750
16751         remove test: Avoid failure on HP-UX 11.
16752         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16753
16754 2011-01-07  Bruno Haible  <bruno@clisp.org>
16755
16756         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16757         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16758         error code.
16759
16760 2011-01-07  Pádraig Brady <P@draigBrady.com>
16761
16762         ignore-value: fixup comments, and add Eric Blake
16763         as an author since he rewrote the macros.
16764         * lib/ignore-value.h (ignore_value):  State that
16765         we now support aggregates.  Also specify exactly
16766         when the GCC warn_unused_result feature was added.
16767
16768 2011-01-06  Eric Blake  <eblake@redhat.com>
16769
16770         ignore-value: support aggregate types
16771         * lib/ignore-value.h (ignore_value): Provide separate gcc
16772         definition.
16773         * modules/ignore-value-tests: New test module.
16774         * tests/test-ignore-value.c: New test.
16775
16776         maint.mk: improve sc_prohibit_strcmp regex
16777         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16778         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16779         definition of STRNEQ.
16780
16781         signal: work around Haiku issue with SIGBUS
16782         * lib/siglist.h: Add comment.
16783         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16784         strsignal's favoring of SIGSEGV.
16785         * tests/test-signal.c (main): Avoid test failure.
16786         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16787         Reported by Scott McCreary.
16788
16789         maint.mk: add pre-release check to ensure submodule commits are public
16790         * top/maint.mk (public-submodule-commit): New rule.
16791         (submodule-checks): New variable.
16792         (alpha beta stable): Depend on the variable.
16793
16794 2011-01-05  Pádraig Brady <P@draigBrady.com>
16795         and Jim Meyering  <meyering@redhat.com>
16796
16797         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16798         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16799         (ATTRIBUTE_DEPRECATED): Define.
16800         (_ignore_case): New function.
16801         (ignore_value): New macro, to replace the old function.
16802         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16803         * modules/ignore-value (Depends-on): Add stdint.
16804
16805 2011-01-04  Eric Blake  <eblake@redhat.com>
16806
16807         doc: regenerate INSTALL
16808         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16809         @firstparagraphindent support, now that autoconf dropped it.
16810         (INSTALL_PRELUDE): Reinstate old macro.
16811         * doc/install.texi: Resync from autoconf.
16812         * doc/INSTALL: Reflect recent autoconf update.
16813         * doc/INSTALL.ISO: Likewise.
16814         * doc/INSTALL.UTF-8: Likewise.
16815         Reported by Karl Berry.
16816
16817 2011-01-04  Bruce Korb  <address@hidden>
16818
16819         git-version-gen: avoid a sub-shell
16820         * build-aux/git-version-gen: Redirect stderr in `...` via
16821         "exec 2>...", rather than via an added sub-shell.
16822
16823 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16824
16825         git-version-gen: use (...) rather than sh -c '...'
16826         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16827         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16828
16829 2011-01-03  Jim Meyering  <meyering@redhat.com>
16830
16831         git-version-gen: convert leading TABs to spaces
16832         * build-aux/git-version-gen: Expand leading TABs.
16833
16834         git-version-gen: handle failed "git rev-list"
16835         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16836         from git and proceeding as if it had succeeded but printed no SHA1
16837         checksums, suppress the diagnostic and handle the failure.
16838         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16839
16840         git-version-gen: include command name in one more diagnostic
16841         * build-aux/git-version-gen: When the required .tarball-version file
16842         was missing or unreadable, you might see the diagnostic from "cat",
16843         but no trace of the name of the invoking script.  Now, you still see
16844         the diagnostic from cat, but also get one from "git-version-gen: ".
16845         Inspired by a patch from Bruce Korb.
16846
16847         update-copyright: adjust test to match changed code
16848         * tests/test-update-copyright.sh: Change test's expected output
16849         to match new actual output.
16850
16851 2011-01-02  Bruno Haible  <bruno@clisp.org>
16852
16853         getlogin_r: Avoid test failure on HP-UX 11.
16854         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16855         ERANGE when the second argument is zero.
16856         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16857         portability problem.
16858
16859 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16860
16861         * build-aux/update-copyright: doc Simon's changes
16862
16863 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16864
16865         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16866         environment variable.
16867
16868 2011-01-02  Bruno Haible  <bruno@clisp.org>
16869
16870         unigbrk: Avoid gcc warnings.
16871         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16872         unused variable.
16873         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16874         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16875         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16876         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16877         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16878         Change type of first argument to 'const char *'.
16879         (main): Remove unused variable.
16880         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16881         type of first argument to 'const char *'.
16882         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16883         Likewise.
16884         (main): Change type of variable 's'.
16885         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16886         to 'int'.
16887
16888 2011-01-02  Bruno Haible  <bruno@clisp.org>
16889
16890         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16891         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16892         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16893         bug.
16894         * lib/pwrite.c: Undo 2010-12-31 patch.
16895         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16896
16897 2011-01-02  Bruno Haible  <bruno@clisp.org>
16898
16899         pread: Fix test whether it works.
16900         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16901
16902 2011-01-02  Bruno Haible  <bruno@clisp.org>
16903
16904         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16905         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16906         ends in "6". Don't require a specific month name. Try also the locale
16907         names found on HP-UX 11 and Solaris 7.
16908
16909 2011-01-02  Bruno Haible  <bruno@clisp.org>
16910
16911         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16912         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16913         C linkage.
16914         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16915
16916 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16917
16918         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16919         for consistency, since the "cluster" term is not used elsewhere.
16920         * lib/unigbrk.in.h: Update name.
16921         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16922         * lib/unigbrk/u16-grapheme-next.c: Update name.
16923         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16924         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16925         * lib/unigbrk/u32-grapheme-next.c: Update name.
16926         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16927         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16928         * lib/unigbrk/u8-grapheme-next.c: Update name.
16929         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16930         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16931         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16932         Suggested by Bruno Haible.
16933
16934 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16935
16936         Remove module 'u8-grapheme-len' as too redundant with
16937         'u8-grapheme-next'.
16938         * modules/unigbrk/u8-grapheme-len: Delete file.
16939         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16940         * lib/unigbrk.in.h: Remove prototype for deleted function.
16941         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16942         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16943
16944         Remove module 'u16-grapheme-len' as too redundant with
16945         'u16-grapheme-next'.
16946         * modules/unigbrk/u16-grapheme-len: Delete file.
16947         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16948         * lib/unigbrk.in.h: Remove prototype for deleted function.
16949         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16950         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16951
16952         Remove module 'u32-grapheme-len' as too redundant with
16953         'u32-grapheme-next'.
16954         * modules/unigbrk/u32-grapheme-len: Delete file.
16955         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16956         * lib/unigbrk.in.h: Remove prototype for deleted function.
16957         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16958         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16959
16960         Suggested by Bruno Haible.
16961
16962 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16963
16964         * unigbrk.in.h: Fix typo: "ben" => "been".
16965         Reported by Bruno Haible.
16966
16967 2011-01-01  Jim Meyering  <meyering@redhat.com>
16968
16969         maint: update almost all copyright ranges to include 2011
16970         Run the new "make update-copyright" rule.
16971
16972 2011-01-01  Jim Meyering  <meyering@redhat.com>
16973
16974         maint: update-copyright: exempt doc/INSTALL*
16975         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16976         since they are generated.  Suggested by Bruno Haible.
16977
16978 2011-01-01  Jim Meyering  <meyering@redhat.com>
16979
16980         maint: refine the update-copyright rule
16981         * Makefile (update-copyright): Also exclude any file that includes
16982         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16983         code that merely generates the comment.
16984
16985 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16986
16987         New module 'u8-grapheme-len'.
16988         * modules/unigbrk/u8-grapheme-len: New file.
16989         * modules/unigbrk/u8-grapheme-len-tests: New file.
16990         * lib/unigbrk.in.h: Add prototype for new function.
16991         * lib/unigbrk/u8-grapheme-len.c: New file.
16992         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16993
16994         New module 'u16-grapheme-len'.
16995         * modules/unigbrk/u16-grapheme-len: New file.
16996         * modules/unigbrk/u16-grapheme-len-tests: New file.
16997         * lib/unigbrk.in.h: Add prototype for new function.
16998         * lib/unigbrk/u16-grapheme-len.c: New file.
16999         * tests/unigbrk/test-u16-grapheme-len.c: New file.
17000
17001         New module 'u32-grapheme-len'.
17002         * modules/unigbrk/u32-grapheme-len: New file.
17003         * modules/unigbrk/u32-grapheme-len-tests: New file.
17004         * lib/unigbrk.in.h: Add prototype for new function.
17005         * lib/unigbrk/u32-grapheme-len.c: New file.
17006         * tests/unigbrk/test-u32-grapheme-len.c: New file.
17007
17008         New module 'u8-grapheme-next'.
17009         * modules/unigbrk/u8-grapheme-next: New file.
17010         * modules/unigbrk/u8-grapheme-next-tests: New file.
17011         * lib/unigbrk.in.h: Add prototype for new function.
17012         * lib/unigbrk/u8-grapheme-next.c: New file.
17013         * tests/unigbrk/test-u8-grapheme-next.c: New file.
17014
17015         New module 'u16-grapheme-next'.
17016         * modules/unigbrk/u16-grapheme-next: New file.
17017         * modules/unigbrk/u16-grapheme-next-tests: New file.
17018         * lib/unigbrk.in.h: Add prototype for new function.
17019         * lib/unigbrk/u16-grapheme-next.c: New file.
17020         * tests/unigbrk/test-u16-grapheme-next.c: New file.
17021
17022         New module 'u32-grapheme-next'.
17023         * modules/unigbrk/u32-grapheme-next: New file.
17024         * modules/unigbrk/u32-grapheme-next-tests: New file.
17025         * lib/unigbrk.in.h: Add prototype for new function.
17026         * lib/unigbrk/u32-grapheme-next.c: New file.
17027         * tests/unigbrk/test-u32-grapheme-next.c: New file.
17028
17029         New module 'u8-grapheme-prev'.
17030         * modules/unigbrk/u8-grapheme-prev: New file.
17031         * modules/unigbrk/u8-grapheme-prev-tests: New file.
17032         * lib/unigbrk.in.h: Add prototype for new function.
17033         * lib/unigbrk/u8-grapheme-prev.c: New file.
17034         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
17035
17036         New module 'u16-grapheme-prev'.
17037         * modules/unigbrk/u16-grapheme-prev: New file.
17038         * modules/unigbrk/u16-grapheme-prev-tests: New file.
17039         * lib/unigbrk.in.h: Add prototype for new function.
17040         * lib/unigbrk/u16-grapheme-prev.c: New file.
17041         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
17042
17043         New module 'u32-grapheme-prev'.
17044         * modules/unigbrk/u32-grapheme-prev: New file.
17045         * modules/unigbrk/u32-grapheme-prev-tests: New file.
17046         * lib/unigbrk.in.h: Add prototype for new function.
17047         * lib/unigbrk/u32-grapheme-prev.c: New file.
17048         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
17049
17050         New module 'u8-grapheme-breaks'.
17051         * modules/unigbrk/u8-grapheme-breaks: New file.
17052         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
17053         * lib/unigbrk.in.h: Add prototype for new function.
17054         * lib/unigbrk/u8-grapheme-breaks.c: New file.
17055         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
17056
17057         New module 'u16-grapheme-breaks'.
17058         * modules/unigbrk/u16-grapheme-breaks: New file.
17059         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
17060         * lib/unigbrk.in.h: Add prototype for new function.
17061         * lib/unigbrk/u16-grapheme-breaks.c: New file.
17062         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
17063
17064         New module 'u32-grapheme-breaks'.
17065         * modules/unigbrk/u32-grapheme-breaks: New file.
17066         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
17067         * lib/unigbrk.in.h: Add prototype for new function.
17068         * lib/unigbrk/u32-grapheme-breaks.c: New file.
17069         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
17070
17071         New module 'ulc-grapheme-breaks'.
17072         * modules/unigbrk/ulc-grapheme-breaks: New file.
17073         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
17074         * m4/locale-ar.m4: New file.
17075         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
17076         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
17077         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
17078
17079 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17080
17081         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
17082         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
17083         modified how this file was generated before I initially submitted
17084         the module, but failed to regenerate it.  This meant that several
17085         of the level2 entries were wrong.
17086         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
17087         Remove the division-by-2 that is folded into the table now that
17088         gbrkprop.h has been regenerated properly.  Now -1 entries are
17089         handled correctly.
17090
17091         New module 'unigbrk/uc-gbrk-prop-tests'.
17092         * modules/unigbrk/uc-gbrk-prop-tests: New file.
17093         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
17094         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
17095         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
17096
17097 2011-01-01  Bruno Haible  <bruno@clisp.org>
17098
17099         Avoid use of hexadecimal escapes.
17100         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
17101         instead of hexadecimal escapes.
17102
17103 2011-01-01  Jim Meyering  <meyering@redhat.com>
17104
17105         maint: new rule to update copyright year ranges
17106         * Makefile (update-copyright): New rule.
17107
17108         maint: indent with TABs in Makefile
17109         * Makefile: Expand leading sequences of spaces to TABs
17110
17111         version-etc: update the copyright year it reports
17112         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
17113
17114 2010-12-31  Bruno Haible  <bruno@clisp.org>
17115
17116         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
17117         * lib/isfinite.c (zerof, zerod, zerol): New variables.
17118         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
17119         zero.
17120
17121 2010-12-31  Bruno Haible  <bruno@clisp.org>
17122
17123         pwrite: Work around HP-UX 11.11 bug.
17124         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
17125         works and set REPLACE_PWRITE if not.
17126         * lib/pwrite.c (pwrite): Add an implementation that uses the system
17127         function.
17128         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
17129
17130 2010-12-31  Bruno Haible  <bruno@clisp.org>
17131
17132         pread: Work around HP-UX 11 bugs.
17133         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
17134         and set REPLACE_PREAD if not.
17135         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
17136
17137 2010-12-31  Eric Blake  <eblake@redhat.com>
17138
17139         nl_langinfo: fix YESEXPR on Irix 6.5
17140         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
17141         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
17142         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
17143         it.
17144
17145 2010-12-31  Bruno Haible  <bruno@clisp.org>
17146
17147         iconv: Document HP-UX 11 bug.
17148         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
17149
17150 2010-12-31  Bruno Haible  <bruno@clisp.org>
17151
17152         ldexpl: Fix link error on HP-UX 11.
17153         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
17154         LDEXPL_LIBM, using $ISNANL_LIBM.
17155
17156 2010-12-31  Eric Blake  <eblake@redhat.com>
17157
17158         ftello: avoid compilation failure with SunStudio c89
17159         * lib/ftello.c (ftello): Use lseek, not llseek.
17160
17161         tests: avoid failing coreutils tests on cygwin
17162         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
17163         (create_exe_shims_): Return 0 when skipping.
17164
17165 2010-12-31  Bruno Haible  <bruno@clisp.org>
17166
17167         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
17168         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
17169
17170 2010-12-31  Bruno Haible  <bruno@clisp.org>
17171
17172         waitpid: Fix link error in C++ mode.
17173         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
17174
17175 2010-12-31  Bruno Haible  <bruno@clisp.org>
17176
17177         isnan: Use GCC built-ins when possible.
17178         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
17179         __builtin_isnan.
17180         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
17181         (isnan): Define using GCC built-ins for GCC >= 4.0.
17182
17183 2010-12-31  Bruno Haible  <bruno@clisp.org>
17184
17185         isnand: Fix mistake.
17186         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
17187         __builtin_isnand.
17188
17189 2010-12-31  Bruno Haible  <bruno@clisp.org>
17190
17191         open: Avoid C++ error on HP-UX 11.
17192         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
17193
17194 2010-12-31  Bruno Haible  <bruno@clisp.org>
17195
17196         time_r: Add missing declarations on HP-UX 11.
17197         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
17198         instead of HAVE_LOCALTIME_R.
17199         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
17200         HAVE_LOCALTIME_R always.
17201         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
17202         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
17203         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
17204         HAVE_LOCALTIME_R.
17205         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
17206         * doc/posix-functions/localtime_r.texi: Likewise.
17207
17208 2010-12-29  Eric Blake  <eblake@redhat.com>
17209
17210         mountlist: tweak previous commit
17211         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
17212         Reported by Paul Eggert.
17213
17214         mountlist: fix local drive detection on cygwin
17215         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
17216         that works for cygwin.
17217
17218 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17219
17220         ftoastr, snprintf: ftoastr + snprintf module
17221         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
17222         since the snprintf module now should be good enough here.
17223         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
17224         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
17225         and gl_MODULE_INDICATOR([snprintf]), but the former enables
17226         GNULIB_SNPRINTF only for the test directory, and the latter
17227         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
17228         seems to suffice by itself.
17229
17230 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
17231
17232         alloca: one step towards thread-safety
17233         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
17234         need for a static variable.  All callers changed.  This does not
17235         make the alloca replacement thread-safe, but it's one step.
17236
17237         tests: minor indenting change
17238         * tests/init.sh: Sync from coreutils housekeeping patch
17239         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
17240         to keep lines within 80 columns.
17241
17242 2010-12-28  Jim Meyering  <meyering@redhat.com>
17243
17244         regex: don't infloop on persistent failing calloc
17245         * lib/regexec.c (build_trtable): Return failure indication upon
17246         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17247         In glibc, this was fixed for version 2.13:
17248         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
17249
17250 2010-12-28  Bruno Haible  <bruno@clisp.org>
17251             Paul Eggert <eggert@cs.ucla.edu>
17252
17253         linkat: Make implementation robust against system behaviour variations.
17254         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
17255         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
17256         way, and to -2 if it needs a generic runtime test.
17257         * lib/linkat.c (solaris_optimized_link_immediate,
17258         solaris_optimized_link_follow): New functions.
17259         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
17260         (check_same_link): Use it.
17261
17262 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
17263
17264         New module 'unigbrk/base'.
17265         * modules/unigbrk/base: New file.
17266         * lib/unigbrk.in.h: New file.
17267
17268         New module 'unigbrk/uc-gbrk-prop'.
17269         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
17270         * modules/unigbrk/uc-gbrk-prop: New file.
17271         * lib/unigbrk/gbrkprop.h: New file.
17272         * lib/unigbrk/uc-gbrk-prop.c: New file.
17273
17274         New module 'unigbrk/uc-is-grapheme-break'.
17275         * modules/unigbrk/uc-is-grapheme-break: New file.
17276         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
17277         * lib/unigbrk/uc-is-grapheme-break.c: New file.
17278         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
17279         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
17280         * tests/unigbrk/GraphemeBreakTest.txt: New file.
17281
17282         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
17283
17284 2010-12-27  Bruno Haible  <bruno@clisp.org>
17285
17286         linkat test: Avoid failure on Solaris 11 2010-11.
17287         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
17288
17289 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17290
17291         utimens: work around glibc rounding bug on more platforms
17292         * lib/utimens.c (fdutimens): Work around rounding bug even if
17293         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
17294         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
17295
17296 2010-12-27  Bruno Haible  <bruno@clisp.org>
17297
17298         select tests: Improve comments.
17299         * tests/test-select.c (do_select): Add comments.
17300
17301 2010-12-27  Bruno Haible  <bruno@clisp.org>
17302
17303         select tests: Safer way of handling timeout.
17304         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
17305         at every invocation.
17306
17307 2010-12-27  Bruno Haible  <bruno@clisp.org>
17308
17309         select tests: Use 'bool' where appropriate.
17310         * tests/test-select.c (connect_to_socket): Change argument type to
17311         'bool'.
17312
17313 2010-12-27  Bruno Haible  <bruno@clisp.org>
17314
17315         select tests: Use existing modules.
17316         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
17317         (configure.ac): Don't test for unistd.h.
17318         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
17319         declared in <unistd.h>.
17320
17321 2010-12-27  Bruno Haible  <bruno@clisp.org>
17322
17323         mbrtowc: Work around a Solaris 7 bug.
17324         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
17325         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
17326         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
17327         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
17328         MBRTOWC_NULL_ARG1_BUG.
17329         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
17330         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
17331         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
17332         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
17333
17334 2010-12-27  Jim Meyering  <meyering@redhat.com>
17335
17336         read-file.c: tweak syntax
17337         * lib/read-file.c (fread_file): Remove space after "*" in function
17338         definitions.
17339
17340 2010-12-27  Bruno Haible  <bruno@clisp.org>
17341
17342         times test: Avoid gcc warnings on OSF/1.
17343         * tests/test-times.c (main): Cast printf arguments from clock_t to
17344         'long int'.
17345
17346 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17347
17348         utimens: work around glibc rounding bug on older Linux kernels
17349         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
17350         on Linux with a glibc whose utimes might not work, then work
17351         around a longstanding glibc bug involving rounding rather than
17352         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
17353         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17354
17355 2010-12-26  Bruno Haible  <bruno@clisp.org>
17356
17357         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17358         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17359         _GL_CXXALIAS_SYS.
17360         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17361
17362 2010-12-26  Bruno Haible  <bruno@clisp.org>
17363
17364         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17365         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17366         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17367         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17368         looking for the declaration.
17369         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17370         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17371         problem.
17372         * doc/posix-functions/inet_pton.texi: Likewise.
17373
17374 2010-12-26  Bruno Haible  <bruno@clisp.org>
17375
17376         arpa_inet: Use the common idioms with C++ support.
17377         * lib/arpa_inet.in.h: Include c++defs.h.
17378         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17379         support.
17380         * modules/arpa_inet (Depends-on): Add c++defs.
17381         (Makefile.am): Substitute the contents of c++defs.h.
17382         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17383         * modules/arpa_inet-c++-tests: New file.
17384         * tests/test-arpa_inet-c++.cc: New file.
17385
17386 2010-12-25  Bruno Haible  <bruno@clisp.org>
17387
17388         Fix more C++ link errors on Solaris 8.
17389         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17390         $(LIB_EACCESS).
17391         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
17392         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
17393         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
17394         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
17395         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
17396
17397 2010-12-25  Bruno Haible  <bruno@clisp.org>
17398
17399         printf-posix: Fix link error when a non-GCC compiler is used.
17400         * lib/stdio.in.h (printf): When not using GCC, override printf
17401         correctly.
17402         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17403
17404 2010-12-25  Bruno Haible  <bruno@clisp.org>
17405
17406         strerror_r-posix: Update doc.
17407         * doc/posix-functions/strerror_r.texi: Update doc about the return
17408         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
17409
17410 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17411
17412         utimens: simplify the logic of the previous change
17413         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
17414         This should not affect whether the test succeeds or fails.
17415
17416         utimens: configure better on hosts with NFS clock skew
17417         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
17418         uses the clock of the local host.  It might use the clock of the
17419         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
17420         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17421
17422 2010-12-25  Bruno Haible  <bruno@clisp.org>
17423
17424         ptsname test: Avoid failure on Solaris.
17425         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
17426         open a pseudo-terminal; don't use BSD-style ptys.
17427         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
17428
17429 2010-12-25  Bruno Haible  <bruno@clisp.org>
17430
17431         ptsname: Avoid ERANGE failure on some systems.
17432         * lib/ptsname.c (buffer): Increase size.
17433
17434 2010-12-25  Bruno Haible  <bruno@clisp.org>
17435
17436         rename, renameat: Avoid test failures at NFS mounted locations.
17437         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
17438         so that subsequent mkdir calls succeed.
17439
17440 2010-12-25  Bruno Haible  <bruno@clisp.org>
17441
17442         iswblank: Fix C++ link error on Solaris 8.
17443         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
17444         _GL_FUNCDECL_SYS.
17445
17446 2010-12-25  Bruno Haible  <bruno@clisp.org>
17447
17448         unistd: Fix C++ link error on Solaris 8.
17449         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
17450
17451 2010-12-25  Bruno Haible  <bruno@clisp.org>
17452
17453         readlink doc: Mention an old glibc bug.
17454         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
17455
17456 2010-12-25  Bruno Haible  <bruno@clisp.org>
17457
17458         fcntl-h: Fix for use of C++ on glibc systems.
17459         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17460         also on glibc systems in C++ mode.
17461         Reported by Gary V. Vaughan <gary@gnu.org>.
17462
17463 2010-12-25  Bruno Haible  <bruno@clisp.org>
17464
17465         roundl-ieee: Make it work on OSF/1 5.1 with cc.
17466         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
17467
17468 2010-12-25  Bruno Haible  <bruno@clisp.org>
17469
17470         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17471         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17472         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17473         test whether truncl works according to ISO C 99 with IEC 60559.
17474         * m4/truncl-ieee.m4: New file.
17475         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17476         m4/signbit.m4.
17477         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17478
17479 2010-12-25  Bruno Haible  <bruno@clisp.org>
17480
17481         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17482         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17483         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17484         test whether ceill works according to ISO C 99 with IEC 60559.
17485         * m4/ceill-ieee.m4: New file.
17486         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17487         m4/signbit.m4.
17488         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17489
17490 2010-12-25  Bruno Haible  <bruno@clisp.org>
17491
17492         Ensure all prerequisites of <wchar.h> are included.
17493         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17494         before <wchar.h>.
17495         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17496         gl_MBRLEN_NUL_RETVAL): Likewise.
17497         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17498         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17499         AC_FUNC_MBRTOWC): Likewise.
17500         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17501         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17502         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17503         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17504         Likewise.
17505         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17506         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17507         (gl_WCHAR_H): Improve comments.
17508         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17509
17510 2010-12-25  Bruno Haible  <bruno@clisp.org>
17511
17512         strtok_r: Fix C syntax error in autoconf macro.
17513         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17514         characters in test program.
17515
17516 2010-12-24  Bruno Haible  <bruno@clisp.org>
17517
17518         ceil, trunc, round: Fix gcc warnings.
17519         * lib/ceil.c (MIN): Undefine before redefining.
17520         * lib/trunc.c (MIN): Likewise.
17521         * lib/round.c (MIN): Likewise.
17522         Include <math.h> first.
17523
17524 2010-12-24  Bruno Haible  <bruno@clisp.org>
17525
17526         select tests: Avoid failures on OSF/1 5.1.
17527         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17528         failure of closing the last socket; it may fail with ECONNRESET.
17529
17530 2010-12-24  Eric Blake  <eblake@redhat.com>
17531
17532         stdint: avoid HP-UX 10.20 preprocessor bug
17533         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17534         than #if.
17535         * tests/test-floor2.c (main): Likewise.
17536         Reported by Peter O'Gorman.
17537
17538         pipe: make obsoletion transition easier
17539         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17540         * modules/pipe (Files): Include revived file.
17541         (Include): Drop reference, to mirror getdate's behavior.
17542
17543 2010-12-24  Bruno Haible  <bruno@clisp.org>
17544
17545         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17546         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17547         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17548         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17549
17550 2010-12-24  Bruno Haible  <bruno@clisp.org>
17551
17552         gethostname: Ensure declaration on NonStop Kernel.
17553         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17554         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17555
17556 2010-12-24  Bruno Haible  <bruno@clisp.org>
17557
17558         sys_select: Ensure all necessary types on NonStop Kernel.
17559         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17560         include <sys/time.h>.
17561         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17562         NonStop Kernel.
17563         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17564
17565 2010-12-24  Bruno Haible  <bruno@clisp.org>
17566
17567         sys_select: Remove unneeded include.
17568         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17569         have <sys/select.h>.
17570
17571 2010-12-24  Bruno Haible  <bruno@clisp.org>
17572
17573         gethostname: Provide a fallback for HOST_NAME_MAX.
17574         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17575         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17576         instead.
17577         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17578
17579 2010-12-24  Bruno Haible  <bruno@clisp.org>
17580
17581         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17582         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17583         (SA_RESTART): Likewise.
17584         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17585
17586 2010-12-24  Bruno Haible  <bruno@clisp.org>
17587
17588         signal: Define NSIG.
17589         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17590         * tests/test-signal.c (nsig): New variable.
17591         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17592
17593 2010-12-24  Bruno Haible  <bruno@clisp.org>
17594
17595         rename, renameat: Avoid test failures on OSF/1 5.1.
17596         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17597         alternative error codes.
17598         * tests/test-renameat.c (main): Likewise.
17599
17600 2010-12-24  Bruno Haible  <bruno@clisp.org>
17601
17602         *printf: Detect large precisions bug on Solaris 10/SPARC.
17603         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17604         by Paul Eggert.
17605         * tests/test-snprintf-posix.h (test_function): Add this test code here
17606         too.
17607         * tests/test-sprintf-posix.h (test_function): Likewise.
17608         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17609         * tests/test-vasprintf-posix.c (test_function): Likewise.
17610         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17611         around by gnulib.
17612         * doc/posix-functions/printf.texi: Likewise.
17613         * doc/posix-functions/snprintf.texi: Likewise.
17614         * doc/posix-functions/sprintf.texi: Likewise.
17615         * doc/posix-functions/vfprintf.texi: Likewise.
17616         * doc/posix-functions/vprintf.texi: Likewise.
17617         * doc/posix-functions/vsnprintf.texi: Likewise.
17618         * doc/posix-functions/vsprintf.texi: Likewise.
17619         * doc/posix-functions/dprintf.texi: Undo last commit.
17620         * doc/posix-functions/vdprintf.texi: Likewise.
17621
17622 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17623
17624         tests: port test-fdutimensat.c to Solaris 8
17625         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17626         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17627         On Solaris 8, it fails with errno == ENOSYS, because there is no
17628         futimens (so it can't use the fd), and there is no lutimens (so it
17629         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17630
17631         vsnprintf: make more consistent with snprintf; doc fixes
17632
17633         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17634         the byte count return problem was promoted from the snprintf-posix
17635         to the snprintf module.
17636         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17637         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17638         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17639         * tests/test-snprintf.c (main): Check the byte count returned.
17640         * tests/test-vsnprintf.c (main): Likewise.
17641
17642 2010-12-23  Eric Blake  <eblake@redhat.com>
17643
17644         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17645         * modules/sigpipe (License): Relax license.
17646
17647 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17648
17649         doc: document Solaris printf bug with large float precisions
17650         * doc/posix-functions/dprintf.texi (dprintf):
17651         * doc/posix-functions/fprintf.texi (fprintf):
17652         * doc/posix-functions/printf.texi (printf):
17653         * doc/posix-functions/snprintf.texi (snprintf):
17654         * doc/posix-functions/sprintf.texi (sprintf):
17655         * doc/posix-functions/vdprintf.texi (vdprintf):
17656         * doc/posix-functions/vfprintf.texi (vfprintf):
17657         * doc/posix-functions/vprintf.texi (vprintf):
17658         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17659         * doc/posix-functions/vsprintf.texi (vsprintf):
17660         Mention that these functions mishandle large floating point
17661         precisions on Solaris 10.  The same bug is also present in Solaris
17662         8, and I assume earlier.  This causes "cd gnulib-tests; make
17663         check" to fail on Solaris 8 (and I assume, later) when building
17664         the latest coreutils, in test-vasprintf-posix's call to
17665         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17666         the wide flavors (e.g., wprintf) so this patch just updates the
17667         documentation for the narrow ones.
17668
17669         test-posixtm.c: add two tests
17670         * tests/test-posixtm.c: Add two tests, to highlight the
17671         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17672         around this bug; this is merely to document it.
17673
17674 2010-12-22  Bruno Haible  <bruno@clisp.org>
17675
17676         getlogin_r: Work around portability problem on OSF/1.
17677         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17678         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17679         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17680         test for a truncated result.
17681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17682         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17683         * modules/getlogin_r (Depends-on): Add memchr.
17684         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17685
17686 2010-12-22  Bruno Haible  <bruno@clisp.org>
17687
17688         ptsname: Avoid test failure on OSF/1 5.1.
17689         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17690         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17691         (same_slave): New function.
17692         (main): Use it to compare ptsname's result with the expected file name.
17693
17694 2010-12-22  Bruno Haible  <bruno@clisp.org>
17695
17696         Port extended stdio modules to HP NonStop Kernel.
17697         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17698         macros.
17699         * lib/fbufmode.c: Update comments.
17700         * lib/fflush.c: Likewise.
17701         * lib/fpurge.c: Likewise.
17702         * lib/freadable.c: Likewise.
17703         * lib/freadahead.c: Likewise.
17704         * lib/freading.c: Likewise.
17705         * lib/freadptr.c: Likewise.
17706         * lib/freadseek.c: Likewise.
17707         * lib/fseeko.c: Likewise.
17708         * lib/fseterr.c: Likewise.
17709         * lib/fwritable.c: Likewise.
17710         * lib/fwriting.c: Likewise.
17711         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17712
17713 2010-12-22  Bruno Haible  <bruno@clisp.org>
17714
17715         ttyname_r: Work around bug on OSF/1 5.1.
17716         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17717         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17718         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17719         present.
17720         * lib/ttyname_r.c (ttyname_r): Update comments.
17721
17722 2010-12-22  Bruno Haible  <bruno@clisp.org>
17723
17724         round: Implement result sign according to IEEE 754.
17725         * lib/round.c (MIN, MINUS_ZERO): New macros.
17726         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17727         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17728         * tests/test-round-ieee.c (main): Likewise.
17729         * tests/test-roundl-ieee.c (main): Likewise.
17730
17731         trunc: Implement result sign according to IEEE 754.
17732         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17733         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17734         * tests/test-trunc2.c: Include minus-zero.h.
17735         (MINUS_ZERO): New macro.
17736         (trunc_reference): Keep in sync with lib/trunc.c.
17737         * tests/test-truncf2.c: Include minus-zero.h.
17738         (MINUS_ZERO): New macro.
17739         (truncf_reference): Keep in sync with lib/trunc.c.
17740         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17741         * tests/test-trunc-ieee.c (main): Likewise.
17742         * tests/test-truncl-ieee.c (main): Likewise.
17743
17744         ceil: Implement result sign according to IEEE 754.
17745         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17746         (FUNC): Return -0.0 for -1 < x < 0.
17747         * tests/test-ceil2.c: Include minus-zero.h.
17748         (MINUS_ZERO): New macro.
17749         (ceil_reference): Keep in sync with lib/ceil.c.
17750         * tests/test-ceilf2.c: Include minus-zero.h.
17751         (MINUS_ZERO): New macro.
17752         (ceilf_reference): Keep in sync with lib/ceil.c.
17753         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17754         * tests/test-ceil-ieee.c (main): Likewise.
17755         * tests/test-ceill-ieee.c (main): Likewise.
17756
17757         floor: Implement result sign according to IEEE 754.
17758         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17759         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17760         * tests/test-floorf2.c (floorf_reference): Likewise.
17761         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17762         * tests/test-floor-ieee.c (main): Likewise.
17763         * tests/test-floorl-ieee.c (main): Likewise.
17764
17765 2010-12-22  Bruno Haible  <bruno@clisp.org>
17766
17767         getaddrinfo: Update doc.
17768         * doc/posix-functions/gai_strerror.texi: Return type is also different
17769         on AIX and HP-UX.
17770
17771 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17772
17773         getaddrinfo, inet_ntop: Update doc for Solaris.
17774         * doc/posix-functions/gai_strerror.texi: Return type is also an
17775         issue on Solaris 9 and earlier.
17776         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17777         on Solaris 10 and earlier.
17778
17779 2010-12-21  Bruno Haible  <bruno@clisp.org>
17780
17781         New module 'roundl-ieee'.
17782         * modules/roundl-ieee: New file.
17783         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17784         test whether roundl works according to ISO C 99 with IEC 60559.
17785         * m4/roundl-ieee.m4: New file.
17786         * modules/roundl-ieee-tests: New file.
17787         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17788         * tests/test-roundl.c (main): Remove signbit tests.
17789         * modules/roundl-tests (Depends-on): Remove signbit.
17790         * doc/posix-functions/roundl.texi: Mention the new module.
17791
17792 2010-12-21  Bruno Haible  <bruno@clisp.org>
17793
17794         New module 'truncl-ieee'.
17795         * modules/truncl-ieee: New file.
17796         * modules/truncl-ieee-tests: New file.
17797         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17798         * tests/test-truncl.c (main): Remove signbit tests.
17799         * modules/truncl-tests (Depends-on): Remove signbit.
17800         * doc/posix-functions/truncl.texi: Mention the new module.
17801
17802 2010-12-21  Bruno Haible  <bruno@clisp.org>
17803
17804         New module 'ceill-ieee'.
17805         * modules/ceill-ieee: New file.
17806         * modules/ceill-ieee-tests: New file.
17807         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17808         * tests/test-ceill.c (main): Remove signbit tests.
17809         * modules/ceill-tests (Depends-on): Remove signbit.
17810         * doc/posix-functions/ceill.texi: Mention the new module.
17811
17812 2010-12-21  Bruno Haible  <bruno@clisp.org>
17813
17814         New module 'floorl-ieee'.
17815         * modules/floorl-ieee: New file.
17816         * modules/floorl-ieee-tests: New file.
17817         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17818         * tests/test-floorl.c (main): Remove signbit tests.
17819         * modules/floorl-tests (Depends-on): Remove signbit.
17820         * doc/posix-functions/floorl.texi: Mention the new module.
17821
17822 2010-12-21  Bruno Haible  <bruno@clisp.org>
17823
17824         New module 'round-ieee'.
17825         * modules/round-ieee: New file.
17826         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17827         whether round works according to ISO C 99 with IEC 60559.
17828         * m4/round-ieee.m4: New file.
17829         * modules/round-ieee-tests: New file.
17830         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17831         * tests/test-round1.c (main): Remove signbit tests.
17832         * modules/round-tests (Depends-on): Remove 'signbit'.
17833         * doc/posix-functions/round.texi: Mention the new module.
17834
17835 2010-12-21  Bruno Haible  <bruno@clisp.org>
17836
17837         New module 'trunc-ieee'.
17838         * modules/trunc-ieee: New file.
17839         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17840         whether trunc works according to ISO C 99 with IEC 60559.
17841         * m4/trunc-ieee.m4: New file.
17842         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17843         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17844         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17845         * modules/trunc-ieee-tests: New file.
17846         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17847         * tests/test-trunc1.c (main): Remove signbit tests.
17848         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17849         * doc/posix-functions/trunc.texi: Mention the new module.
17850
17851 2010-12-21  Bruno Haible  <bruno@clisp.org>
17852
17853         New module 'ceil-ieee'.
17854         * modules/ceil-ieee: New file.
17855         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17856         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17857         ISO C 99 with IEC 60559.
17858         * m4/ceil-ieee.m4: New file.
17859         * modules/ceil (Files): Add lib/ceil.c.
17860         (Depends-on): Add 'float'.
17861         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17862         * lib/math.in.h (ceil): New declaration.
17863         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17864         REPLACE_CEIL.
17865         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17866         * modules/ceil-ieee-tests: New file.
17867         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17868         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17869         * doc/posix-functions/ceil.texi: Mention the new module.
17870
17871 2010-12-21  Bruno Haible  <bruno@clisp.org>
17872
17873         New module 'floor-ieee'.
17874         * modules/floor-ieee: New file.
17875         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17876         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17877         ISO C 99 with IEC 60559.
17878         * m4/floor-ieee.m4: New file.
17879         * modules/floor (Files): Add lib/floor.c.
17880         (Depends-on): Add 'float'.
17881         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17882         * lib/math.in.h (floor): New declaration.
17883         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17884         REPLACE_FLOOR.
17885         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17886         * modules/floor-ieee-tests: New file.
17887         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17888         * tests/test-math-c++.cc: Check the signature of 'floor'.
17889         * doc/posix-functions/floor.texi: Mention the new module.
17890
17891 2010-12-21  Bruno Haible  <bruno@clisp.org>
17892
17893         New module 'roundf-ieee'.
17894         * modules/roundf-ieee: New file.
17895         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17896         test whether roundf works according to ISO C 99 with IEC 60559.
17897         * m4/roundf-ieee.m4: New file.
17898         * modules/roundf-ieee-tests: New file.
17899         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17900         * tests/test-roundf1.c (main): Remove signbit tests.
17901         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17902         * doc/posix-functions/roundf.texi: Mention the new module.
17903
17904 2010-12-21  Bruno Haible  <bruno@clisp.org>
17905
17906         New module 'truncf-ieee'.
17907         * modules/truncf-ieee: New file.
17908         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17909         test whether truncf works according to ISO C 99 with IEC 60559.
17910         * m4/truncf-ieee.m4: New file.
17911         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17912         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17913         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17914         * modules/truncf-ieee-tests: New file.
17915         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17916         * tests/test-truncf1.c (main): Remove signbit tests.
17917         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17918         * doc/posix-functions/truncf.texi: Mention the new module.
17919
17920 2010-12-21  Bruno Haible  <bruno@clisp.org>
17921
17922         New module 'ceilf-ieee'.
17923         * modules/ceilf-ieee: New file.
17924         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17925         test whether ceilf works according to ISO C 99 with IEC 60559.
17926         * m4/ceilf-ieee.m4: New file.
17927         * modules/ceilf-ieee-tests: New file.
17928         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17929         * tests/test-ceilf1.c (main): Remove signbit tests.
17930         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17931         * doc/posix-functions/ceilf.texi: Mention the new module.
17932
17933 2010-12-21  Bruno Haible  <bruno@clisp.org>
17934
17935         New module 'floorf-ieee'.
17936         * modules/floorf-ieee: New file.
17937         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17938         test whether floorf works according to ISO C 99 with IEC 60559.
17939         * m4/floorf-ieee.m4: New file.
17940         * modules/floorf-ieee-tests: New file.
17941         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17942         * tests/test-floorf1.c (main): Remove signbit tests.
17943         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17944         * doc/posix-functions/floorf.texi: Mention the new module.
17945
17946 2010-12-21  Bruno Haible  <bruno@clisp.org>
17947
17948         Support for minus zero in autoconf macros.
17949         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17950         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17951         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17952         * tests/minus-zero.h: Update comments.
17953
17954 2010-12-21  Bruno Haible  <bruno@clisp.org>
17955
17956         Tests for module 'ceil'.
17957         * modules/ceil-tests: New file.
17958         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17959         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17960
17961 2010-12-21  Bruno Haible  <bruno@clisp.org>
17962
17963         Tests for module 'floor'.
17964         * modules/floor-tests: New file.
17965         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17966         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17967
17968 2010-12-21  Bruno Haible  <bruno@clisp.org>
17969
17970         math: Fix indentation.
17971         * lib/math.in.h (floorf): Fix indentation.
17972
17973 2010-12-21  Bruno Haible  <bruno@clisp.org>
17974
17975         Fix cross-compilation guesses on Solaris.
17976         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17977         not match "solaris2.10".
17978         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17979         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17980         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17981
17982 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17983
17984         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17985         This fixes a problem observed with the latest coreutils snapshot
17986         that caused a test to fail on Solaris 8.  src/csplit.c's call
17987         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17988         earlier, instead of returning the number of bytes that would have
17989         been generated; this causes csplit to incorrectly report memory
17990         exhaustion.
17991         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17992         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17993         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17994         comments to match.
17995         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17996         Fix typo in matching older versions of Solaris: "solaris2.10"
17997         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17998         only for guessing while cross-compiling.
17999         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
18000
18001 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
18002
18003         ftoastr: fix comment again
18004         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18005         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
18006         Also, simplify example a bit by using flags = 0.
18007
18008 2010-12-20  Bruno Haible  <bruno@clisp.org>
18009
18010         round*, trunc*: Update documentation regarding glibc.
18011         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
18012         * doc/posix-functions/round.texi: Likewise.
18013         * doc/posix-functions/roundl.texi: Likewise.
18014         * doc/posix-functions/truncf.texi: Likewise.
18015         * doc/posix-functions/trunc.texi: Likewise.
18016         * doc/posix-functions/truncl.texi: Likewise.
18017
18018 2010-12-20  Bruno Haible  <bruno@clisp.org>
18019
18020         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
18021         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
18022         * doc/posix-functions/round.texi: Likewise.
18023         * doc/posix-functions/roundl.texi: Likewise.
18024
18025 2010-12-20  Bruno Haible  <bruno@clisp.org>
18026
18027         ttyname_r: Add missing declaration on HP-UX 11.
18028         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
18029         HAVE_TTYNAME_R.
18030         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
18031         declared. Set HAVE_TTYNAME_R always.
18032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18033         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
18034         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
18035         HAVE_TTYNAME_R.
18036         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
18037
18038 2010-12-20  Bruno Haible  <bruno@clisp.org>
18039
18040         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
18041         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
18042         * doc/posix-functions/getlogin_r.texi: Likewise.
18043         * tests/test-getlogin.c: Include <errno.h>.
18044         (main): Avoid test failure on HP-UX 11.11.
18045         * tests/test-getlogin_r.c (main): Likewise.
18046
18047 2010-12-20  Bruno Haible  <bruno@clisp.org>
18048
18049         getlogin_r: Add missing declaration on HP-UX 11.
18050         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
18051         declared also when it exists as a function.
18052         * doc/posix-functions/getlogin_r.texi: Document this workaround.
18053
18054 2010-12-20  Bruno Haible  <bruno@clisp.org>
18055
18056         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
18057         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
18058         through wcrtomb.
18059
18060 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18061
18062         ftoastr: fix comment
18063         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18064         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
18065
18066 2010-12-19  Bruno Haible  <bruno@clisp.org>
18067
18068         isnan: Ensure it is a macro.
18069         * lib/math.in.h (isnan): Define as a macro if not already a macro.
18070         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
18071         Solaris.
18072
18073 2010-12-19  Bruno Haible  <bruno@clisp.org>
18074
18075         ldexpl test: Fix link error on OSF/1 5.1.
18076         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
18077
18078 2010-12-19  Bruno Haible  <bruno@clisp.org>
18079
18080         wctype: Make it work in C++ mode on OSF/1 5.1.
18081         * lib/wctype.in.h (iswblank): Declare but not define here.
18082         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
18083         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
18084         * modules/wctype (Files): Add lib/iswblank.c.
18085
18086 2010-12-19  Bruno Haible  <bruno@clisp.org>
18087
18088         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
18089         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
18090         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
18091
18092 2010-12-19  Bruno Haible  <bruno@clisp.org>
18093
18094         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
18095         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
18096         _POSIX_PII_SOCKET.
18097         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
18098         * doc/posix-functions/recvfrom.texi: Likewise.
18099         * doc/posix-functions/send.texi: Likewise.
18100         * doc/posix-functions/sendto.texi: Likewise.
18101
18102 2010-12-19  Bruno Haible  <bruno@clisp.org>
18103
18104         tcgetsid: Add missing declaration on OSF/1 5.1.
18105         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
18106         HAVE_TCGETSID.
18107         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
18108         Don't set HAVE_TCGETSID.
18109         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
18110         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
18111         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
18112         HAVE_TCGETSID.
18113         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
18114
18115 2010-12-19  Bruno Haible  <bruno@clisp.org>
18116
18117         stdio: Fix problem with popen() declaration on OSF/1 5.1.
18118         * lib/stdio.in.h: During the include_next statement, let recursive
18119         includes of this file include only the system header file.
18120
18121 2010-12-19  Bruno Haible  <bruno@clisp.org>
18122
18123         iconv_open: Fix regression from 2010-12-04.
18124         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
18125         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
18126
18127 2010-12-19  Bruno Haible  <bruno@clisp.org>
18128
18129         stdbool test: Avoid a gcc warning.
18130         * tests/test-stdbool.c (main): Fail if e1 is false.
18131         Reported by Jim Meyering.
18132
18133 2010-12-19  Jim Meyering  <meyering@redhat.com>
18134
18135         setenv: restore to working order
18136         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
18137         mistakenly removed.
18138         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
18139         HAVE_SETENV.
18140         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
18141         HAVE_SETENV.
18142
18143 2010-12-19  Bruno Haible  <bruno@clisp.org>
18144
18145         Document some different function declarations on OSF/1 5.1.
18146         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
18147         * doc/posix-functions/inet_ntop.texi: Likewise.
18148         * doc/posix-functions/gethostname.texi: Likewise.
18149         * lib/unistd.in.h (gethostname): Update comment.
18150
18151 2010-12-19  Bruno Haible  <bruno@clisp.org>
18152
18153         doc: Mention vasprintf-posix module.
18154         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
18155         the 'vasprintf-posix' module.
18156         * doc/glibc-functions/vasprintf.texi: Likewise.
18157
18158 2010-12-19  Bruno Haible  <bruno@clisp.org>
18159
18160         unsetenv: Add missing declaration on OSF/1 5.1.
18161         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
18162         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
18163         Don't set HAVE_UNSETENV. In the test program, set _BSD.
18164         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
18165         not HAVE_UNSETENV.
18166         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
18167         HAVE_UNSETENV.
18168         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
18169
18170 2010-12-19  Bruno Haible  <bruno@clisp.org>
18171
18172         setenv: Add missing declaration on OSF/1 5.1.
18173         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
18174         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
18175         declared. Don't set HAVE_SETENV.
18176         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
18177         not HAVE_SETENV.
18178         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
18179         HAVE_SETENV.
18180         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
18181
18182 2010-12-19  Bruno Haible  <bruno@clisp.org>
18183
18184         nl_langinfo tests: Avoid gcc warning.
18185         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
18186
18187 2010-12-19  Bruno Haible  <bruno@clisp.org>
18188
18189         mknod: Avoid error in C++ mode on OSF/1 with GCC.
18190         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
18191         _GL_CXXALIAS_SYS.
18192
18193 2010-12-19  Bruno Haible  <bruno@clisp.org>
18194
18195         stdbool: Relax test.
18196         * tests/test-stdbool.c (e): Don't require that casts from a variable's
18197         address to 'bool' work in static initializer, for compilers other than
18198         GCC.
18199
18200 2010-12-19  Bruno Haible  <bruno@clisp.org>
18201
18202         ftello: Add missing declaration on OSF/1 5.1.
18203         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
18204         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
18205         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
18206         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
18207         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
18208
18209 2010-12-19  Bruno Haible  <bruno@clisp.org>
18210
18211         fseeko: Add missing declaration on OSF/1 5.1.
18212         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
18213         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
18214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
18215         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
18216         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
18217
18218 2010-12-19  Bruno Haible  <bruno@clisp.org>
18219
18220         fchdir: Add missing declaration on OSF/1 5.1.
18221         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
18222         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
18223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
18224         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
18225         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
18226
18227 2010-12-19  Bruno Haible  <bruno@clisp.org>
18228
18229         relocatable-prog-wrapper: Separate from relocatable-prog.
18230         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
18231         uninstall-relocwrapper rule here.
18232         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
18233         Reported by Ian Beckwith <ianb@erislabs.net>.
18234
18235 2010-12-19  Bruno Haible  <bruno@clisp.org>
18236
18237         unistr/u8-mbsnlen: Add missing dependency.
18238         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
18239         Reported by Ian Beckwith <ianb@erislabs.net>.
18240
18241 2010-12-19  Bruno Haible  <bruno@clisp.org>
18242
18243         iconv: Make it possible again to use this module without 'iconv-h'.
18244         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
18245         if it is not defined.
18246         Reported by Ian Beckwith <ianb@erislabs.net>.
18247
18248 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18249
18250         acl: port to Solaris 8 when copying from tmpfs to ufs
18251         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
18252         error number.  Problem observed on Solaris 8 with latest
18253         coreutils, with "mv A B", where A is on a tmpfs file system and B
18254         is on a ufs file system.  This caused coreutils' mv/part-symlink
18255         test to fail.
18256
18257         tests: set fail=0 at start
18258         * tests/init.sh (setup_): Move fail=0 initialization here ...
18259         (mktempd_): ... from here, so that tests can rely on fail being
18260         set to 0 initially.  This fixes a problem in coreutils; see:
18261         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
18262
18263 2010-12-18  Bruno Haible  <bruno@clisp.org>
18264
18265         memmem-simple: Stylistic changes.
18266         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
18267         Fix preprocessor directive indentation.
18268
18269 2010-12-15  Pádraig Brady <P@draigBrady.com>
18270
18271         memmem, memmem-simple: reorganize and expand empty needle check
18272         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
18273         functional checks to memmem-simple so that one has a fully functional
18274         memmem by using just this module.
18275         Restrict the performance only check to the memmem module.
18276         Also expand the empty needle check to ensure the correct
18277         pointer is returned, not just a non NULL pointer.
18278         * doc/glibc-functions/memmem.texi: Rearrange the portability
18279         documentation to correlate with the rearranged checks.
18280         Clarify exactly how the memmem and memmem-simple modules
18281         relate to each other.
18282
18283 2010-12-15  Pádraig Brady <P@draigBrady.com>
18284             Bruno Haible  <bruno@clisp.org>
18285
18286         Improve cross-compilation guesses for uClibc.
18287         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
18288         that uClibc does not have the glibc bug.
18289         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18290         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
18291
18292 2010-12-14  Eric Blake  <eblake@redhat.com>
18293
18294         configmake: provide fallbacks for oldest supported autotools
18295         * m4/configmake.m4: New file.
18296         * modules/configmake (Files): Ship it.
18297         (configure.ac): Use it to guarantee fallbacks.
18298
18299 2010-12-13  Pádraig Brady <P@draigBrady.com>
18300
18301         read-file: Improve handling of large files
18302         * lib/read-file.c (fread_file): Minimize realloc()s
18303         for regular files, and better manage sizes around SIZE_MAX.
18304
18305 2010-12-13  Eric Blake  <eblake@redhat.com>
18306
18307         cloexec, fcntl: relax license
18308         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
18309         consent from all contributors.
18310         * modules/fcntl (License): Likewise.
18311
18312 2010-12-10  Bruno Haible  <bruno@clisp.org>
18313
18314         Tests for module 'pipe-posix'.
18315         * modules/pipe-posix-tests: New file.
18316         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
18317
18318 2010-12-10  Bruno Haible  <bruno@clisp.org>
18319
18320         pipe-posix: Make it work in C++ mode.
18321         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
18322         (pipe): Use common idiom, not a macro definition.
18323         * lib/pipe.c: New file.
18324         * m4/pipe.m4: New file.
18325         * modules/pipe-posix (Description): Enhance.
18326         (Files): Add lib/pipe.c, m4/pipe.m4.
18327         (configure.ac): Invoke gl_FUNC_PIPE.
18328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
18329         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
18330         * tests/test-unistd-c++.cc: Check the signature of pipe.
18331
18332 2010-12-10  Bruno Haible  <bruno@clisp.org>
18333
18334         Rename module 'pipe' to 'spawn-pipe'.
18335         * modules/spawn-pipe: New file, renamed from modules/pipe.
18336         (Files, configure.ac, Makefile.am): Update.
18337         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
18338         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
18339         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
18340         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
18341         "spawn-pipe.h" instead of "pipe.h".
18342         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
18343         to gl_SPAWN_PIPE.
18344         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
18345         (Files, Makefile.am): Update.
18346         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
18347         Update.
18348         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
18349         Include "spawn-pipe.h" instead of "pipe.h".
18350         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
18351         * lib/javacomp.c: Likewise.
18352         * lib/javaversion.c: Likewise.
18353         * lib/pipe-filter-gi.c: Likewise.
18354         * lib/pipe-filter-ii.c: Likewise.
18355         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
18356         * modules/javacomp (Depends-on): Likewise.
18357         * modules/javaversion (Depends-on): Likewise.
18358         * modules/pipe-filter-gi (Depends-on): Likewise.
18359         * modules/pipe-filter-ii (Depends-on): Likewise.
18360         * MODULES.html.sh (Executing programs): Update.
18361         * NEWS: Mention the change.
18362
18363 2010-12-10  Eric Blake  <eblake@redhat.com>
18364
18365         pipe-posix: new module
18366         * modules/pipe-posix: New file.
18367         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18368         (gl_UNISTD_H): Check for declaration.
18369         * modules/unistd (Makefile.am): Substitute it.
18370         * lib/unistd.in.h (pipe): Provide it for mingw.
18371         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18372         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18373
18374 2010-12-07  Bruno Haible  <bruno@clisp.org>
18375
18376         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18377         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18378         u8_strcmp_gnu.
18379         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
18380
18381 2010-12-06  Bruno Haible  <bruno@clisp.org>
18382
18383         Update internal documentation.
18384         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18385
18386 2010-12-04  Bruno Haible  <bruno@clisp.org>
18387
18388         Put more information about failed tests into the test return codes.
18389         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18390         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18391         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18392         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18393         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18394         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18395         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18396         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18397         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
18398         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18399         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
18400         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18401         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18402         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18403         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
18404         returns a bit mask.
18405         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18406         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
18407         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
18408         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18409         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18410         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18411         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18412         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18413         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18414         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18415         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18416         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18417         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18418         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18419         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18420         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18421         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
18422         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
18423         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18424         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
18425         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18426         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18427         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18428         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18429         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18430         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18431         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18432         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18433         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18434         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
18435         gl_PRINTF_PRECISION): Likewise.
18436         * m4/regex.m4 (gl_REGEX): Likewise.
18437         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18438         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18439         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
18440         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18441         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18442         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18443         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18444         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
18445         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18446         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18447         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18448         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18449         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18450         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18451         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18452         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18453         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18454         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18455         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18456         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
18457         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
18458         enumerated value.
18459         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
18460
18461 2010-12-04  Bruno Haible  <bruno@clisp.org>
18462
18463         Update for Solaris 11 2010-11.
18464         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
18465         Express, released in November 2010.
18466
18467 2010-12-04  Bruno Haible  <bruno@clisp.org>
18468
18469         nproc: Relax license.
18470         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18471         and Paul Eggert.
18472         Requested by Ludovic Courtès <ludo@gnu.org>.
18473
18474 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18475
18476         utimecmp: fine-grained src to nearby coarse-grained dest
18477
18478         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18479         and the source is on a file system with higher-resolution time
18480         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18481         not work, and the time stamps are close together, the algorithm to
18482         determine the exact resolution from the read-back mtime was buggy:
18483         it had a "!=" where it should have had an "==".  This bug has been
18484         in the code ever since it was introduced to gnulib.
18485         Problem reported by Dan Jacobson in
18486         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18487
18488 2010-11-30  Bruno Haible  <bruno@clisp.org>
18489
18490         strerror_r-posix: Fix autoconf test.
18491         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18492
18493 2010-11-28  Bruno Haible  <bruno@clisp.org>
18494             Paul Eggert  <eggert@cs.ucla.edu>
18495
18496         Tests for module 'getdomainname'.
18497         * modules/getdomainname-tests: New file.
18498         * tests/test-getdomainname.c: New file, based on
18499         tests/test-gethostname.c.
18500
18501 2010-11-28  Bruno Haible  <bruno@clisp.org>
18502             Paul Eggert  <eggert@cs.ucla.edu>
18503
18504         getdomainname: Use the system function when possible.
18505         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18506         (getdomainname): Replace if needed. Provide the declaration if it is
18507         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18508         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18509         (getdomainname): When the system has getdomainname, call the system
18510         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18511         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18512         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18513         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18514         the function if its second argument is of type 'int' or if it is found
18515         in libnsl.
18516         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18517         <sys/systeminfo.h> and sysinfo().
18518         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18520         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18521         HAVE_GETDOMAINNAME.
18522         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18523         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18524         * doc/glibc-functions/getdomainname.texi: Document the problems with
18525         the getdomainname declaration.
18526
18527 2010-11-28  Bruno Haible  <bruno@clisp.org>
18528
18529         sys_socket: Ensure ss_family field on AIX.
18530         * lib/sys_socket.in.h (ss_family): New macro definition.
18531         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18532         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18533         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18534         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18535         * modules/sys_socket (Makefile.am): Substitute
18536         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18537         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18538
18539 2010-11-27  Bruno Haible  <bruno@clisp.org>
18540
18541         readline: Improve configure output.
18542         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18543         "checking for readline..." result understandable.
18544
18545 2010-11-27  Bruno Haible  <bruno@clisp.org>
18546
18547         *printf-posix: Detect a bug on Solaris 10/x86.
18548         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18549         for floating-point output.
18550         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18551         directive.
18552         * tests/test-snprintf-posix.h (test_function): Likewise.
18553         * tests/test-sprintf-posix.h (test_function): Likewise.
18554         * tests/test-vasprintf-posix.c (test_function): Likewise.
18555         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18556         * doc/posix-functions/printf.texi: Likewise.
18557         * doc/posix-functions/snprintf.texi: Likewise.
18558         * doc/posix-functions/sprintf.texi: Likewise.
18559         * doc/posix-functions/vfprintf.texi: Likewise.
18560         * doc/posix-functions/vprintf.texi: Likewise.
18561         * doc/posix-functions/vsnprintf.texi: Likewise.
18562         * doc/posix-functions/vsprintf.texi: Likewise.
18563         * doc/glibc-functions/obstack_printf.texi: Likewise.
18564         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18565
18566 2010-11-27  Bruno Haible  <bruno@clisp.org>
18567
18568         Fix link error when module libunistring-optional is in use.
18569         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18570         * modules/striconveha-tests (Makefile.am): Likewise.
18571
18572 2010-11-27  Bruno Haible  <bruno@clisp.org>
18573
18574         regex: Mention link dependencies.
18575         * modules/regex (Link): New section.
18576         * modules/rpmatch (Link): Likewise.
18577         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18578
18579 2010-11-27  Bruno Haible  <bruno@clisp.org>
18580
18581         ftoastr: Fix compilation error on Solaris.
18582         * lib/ftoastr.c: Include <config.h>.
18583
18584 2010-11-27  Bruno Haible  <bruno@clisp.org>
18585
18586         getloadavg: Update documentation.
18587         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18588
18589 2010-11-27  Bruno Haible  <bruno@clisp.org>
18590
18591         sys_socket: Fix test whether the functions are declared.
18592         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18593         not <sys/select.h>.
18594
18595 2010-11-27  Bruno Haible  <bruno@clisp.org>
18596
18597         getpass: Make sure to get system declaration on some platforms.
18598         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18599         gl_USE_SYSTEM_EXTENSIONS.
18600         * modules/getpass (Depends-on): Add extensions.
18601
18602 2010-11-26  Bruno Haible  <bruno@clisp.org>
18603
18604         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18605         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18606         'iconv' module is present.
18607         (ICONV_CONST): New macro.
18608         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18609         ICONV_CONST.
18610         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18611         set ICONV_CONST.
18612         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18613         here.
18614         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18615         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18616         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18617         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18618         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18619         present.
18620
18621 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18622
18623         ftoastr: comment fix
18624         * lib/ftoastr.c: "little" -> "little or no" in comment
18625
18626 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18627
18628         stdint: port to GCC 4.3 + OSX + Octave
18629         On this platform, stdint.h is buggy and defines int64_t to long
18630         long int.  The replacement defined it to long int, causing
18631         problems with C++ style name mangling.  Instead, trust the system
18632         definition if INT64_MAX is defined, and likewise for the unsigned
18633         variant.   Problem reported by Jarno Rajahalme in
18634         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18635         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18636         and don't mess with int64_t and INT64_MAX in this case.
18637         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18638
18639 2010-11-24  Bruno Haible  <bruno@clisp.org>
18640
18641         doc: Corrections regarding MacOS X 10.4 and 10.5.
18642         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18643         MacOS X.
18644         Reported by Simon Josefsson.
18645
18646 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18647
18648         Uninstall ".bin" files installed by relocwrapper.
18649         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18650         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18651         unless it is already there.
18652
18653 2010-11-21  Bruno Haible  <bruno@clisp.org>
18654
18655         Update for NetBSD 5.0.
18656         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18657         NetBSD; the test fails on NetBSD 5.0.
18658         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18659         about NetBSD.
18660
18661 2010-11-21  Bruno Haible  <bruno@clisp.org>
18662
18663         Update for HP-UX 11.23 and HP-UX 11.31.
18664         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18665         HP-UX.
18666
18667 2010-11-21  Bruno Haible  <bruno@clisp.org>
18668
18669         Update for MacOS X 10.5.
18670         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18671         MacOS X; the test fails on MacOS X 10.5.8.
18672         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18673         about MacOS X.
18674
18675 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18676
18677         bootstrap: add bootstrap_sync option.
18678         See discussion at
18679         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18680         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18681         * build-aux/bootstrap: Accept --bootstrap-sync to update
18682         bootstrap if it is not identical to the local gnulib's
18683         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18684         enable this by default.  Accept --no-bootstrap-sync to disable
18685         it.
18686
18687 2010-11-20  Bruno Haible  <bruno@clisp.org>
18688
18689         Ensure that <features.h> is included before __GLIBC__ is tested.
18690         * lib/printf-parse.h: Include <features.h>.
18691         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18692         Reported by Mike Frysinger <vapier@gentoo.org>.
18693
18694         Ensure that <features.h> is included before __GLIBC__ is tested.
18695         * lib/wchar.in.h: Include <features.h>.
18696         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18697         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18698         Reported by Mike Frysinger <vapier@gentoo.org>.
18699
18700         Ensure that <features.h> is included before __GLIBC__ is tested.
18701         * lib/arpa_inet.in.h: Include <features.h>.
18702         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18703         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18704         Reported by Mike Frysinger <vapier@gentoo.org>.
18705
18706         Ensure that <features.h> is included before __GLIBC__ is tested.
18707         * build-aux/link-warning.h: Include <features.h>.
18708         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18709         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18710         Reported by Mike Frysinger <vapier@gentoo.org>.
18711
18712         Ensure that <features.h> is included before __GLIBC__ is tested.
18713         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18714         Reported by Mike Frysinger <vapier@gentoo.org>.
18715
18716 2010-11-20  Bruno Haible  <bruno@clisp.org>
18717
18718         memmem: Fix autoconf test.
18719         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18720
18721 2010-11-20  Bruno Haible  <bruno@clisp.org>
18722
18723         Port to uClibc.
18724         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18725         * lib/fcntl.in.h: Likewise.
18726         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18727         * lib/mbrtowc.c (mbrtowc): Likewise.
18728         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18729         * lib/strerror_r.c: Likewise.
18730         * lib/unistr/u8-strnlen.c: Likewise.
18731         * lib/vasnprintf.c (decimal_point_char): Likewise.
18732         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18733         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18734         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18735         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18736         * tests/test-sigaction.c (handler, main): Likewise.
18737         * lib/freading.h: Treat uClibc like a non-glibc platform.
18738         * lib/freading.c: Likewise.
18739         * lib/gettext.h: Likewise.
18740         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18741         Likewise.
18742         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18743         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18744         * lib/propername.c (proper_name_utf8): Likewise.
18745         * lib/spawn.in.h: Likewise.
18746         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18747         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18748         mem_cd_iconveh_internal): Likewise.
18749         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18750         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18751         strstr, strcasestr): Likewise.
18752         * lib/unicodeio.c (unicode_to_mb): Likewise.
18753         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18754         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18755         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18756         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18757         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18758         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18759         * lib/unistr/u8-stpncpy.c: Likewise.
18760         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18761         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18762         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18763         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18764         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18765         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18766         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18767         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18768         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18769         Likewise.
18770         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18771         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18772         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18773         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18774         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18775         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18776         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18777         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18778         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18779         * tests/test-striconveha.c (main): Likewise.
18780         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18781         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18782         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18783         * doc/posix-functions/getline.texi: Likewise.
18784         Reported by Mike Frysinger <vapier@gentoo.org>.
18785
18786 2010-11-20  Bruno Haible  <bruno@clisp.org>
18787
18788         nproc: Fix condition.
18789         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18790         HAVE_PTHREAD_AFFINITY_NP.
18791
18792 2010-11-20  Bruno Haible  <bruno@clisp.org>
18793
18794         Fix a comment.
18795         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18796
18797 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18798
18799         ftoastr: don't assume snprintf
18800         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18801         Implement a subset of snprintf here, by using sprintf safely.
18802         * modules/ftoastr (Depends-on): Remove snprintf.
18803
18804 2010-11-19  Jim Meyering  <meyering@redhat.com>
18805
18806         test-rename.h: fix compilation failure
18807         * tests/test-rename.h (test_rename): Add omitted "}".
18808
18809 2010-11-17  Jim Meyering  <meyering@redhat.com>
18810
18811         maint.mk: add a URL discussing the no-@acronym policy
18812         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18813
18814 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18815
18816         ftoastr: depend on snprintf, improve comments
18817         * lib/ftoastr.c: Also mention Loitsch's draft.
18818         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18819         needed in the current implementation, but it might simplify
18820         speeding up the code later.
18821         * modules/ftoastr: Depend on snprintf; this improves portability.
18822         Suggested by Bruno Haible in the same email.
18823
18824         ftoastr: port to hosts lacking strtof and strtold
18825         Problem reported by Bruno Haible in
18826         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18827         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18828         environment and strtold (and presumably strtof) are not available.
18829         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18830         (configure.ac): Require gl_C99_STRTOLD.
18831
18832 2010-11-18  Bruno Haible  <bruno@clisp.org>
18833
18834         c-strtold: Avoid link error on AIX 7.
18835         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18836         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18837         (gl_C_STRTOLD): Test whether strtold_l exists.
18838         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18839
18840 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18841
18842         intprops: new macro INT_BITS_STRLEN_BOUND
18843         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18844         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18845         not exposed.  Also, it uses a slightly tighter bound than before;
18846         though this makes no practical difference, we might as well be as
18847         tight as we easily can.
18848
18849         ftoastr: new module, for lossless conversion of floats to short strings
18850         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18851         * modules/ftoastr: New files.
18852
18853 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18854
18855         bootstrap: port to Solaris sed
18856         * build-aux/bootstrap (get_version): Port to Solaris sed.
18857         See Ralf Wildenhues's note in
18858         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18859
18860 2010-11-14  Jim Meyering  <meyering@redhat.com>
18861
18862         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18863         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18864         and move definition closer to sole use.
18865
18866 2010-11-13  Jim Meyering  <meyering@redhat.com>
18867
18868         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18869         Now we require at least autoconf-2.59, which means the work-around
18870         is no longer needed.
18871         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18872         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18873         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18874         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18875         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18876
18877 2010-11-13  Bruno Haible  <bruno@clisp.org>
18878
18879         rename, renameat: Avoid test failures at NFS mounted locations.
18880         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18881         functions.
18882         (test_rename): Use assert_nonexistent.
18883         * tests/test-rename.c: Include <dirent.h>.
18884         * tests/test-renameat.c: Likewise.
18885         Reported by Gary V. Vaughan <gary@gnu.org>.
18886
18887         rename, renameat: Document Linux bug with NFS
18888         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18889         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18890         * doc/posix-functions/renameat.texi: Likewise.
18891         Suggested by Eric Blake.
18892
18893 2010-11-13  Bruno Haible  <bruno@clisp.org>
18894
18895         rename test: Add comments.
18896         * tests/test-rename.h (test_rename): Add structure and comments.
18897
18898 2010-11-13  Eric Blake  <eblake@redhat.com>
18899
18900         maintainer-makefile: cover a few more files
18901         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18902         scripts generated within C files, for libvirt.
18903
18904 2010-11-13  Bruno Haible  <bruno@clisp.org>
18905
18906         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18907         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18908         character, return the number of bytes that belong together, not always
18909         1.
18910         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18911         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18912         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18913         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18914         number of bytes of an invalid character.
18915         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18916         (main): Invoke it.
18917         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18918         results.
18919         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18920         malformed byte sequences.
18921         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18922         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18923         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18924         Reported by Ben Pfaff and Paolo Bonzini.
18925
18926 2010-11-13  Bruno Haible  <bruno@clisp.org>
18927
18928         openat: Work around glibc bug with fchownat() and empty file names.
18929         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18930         (gl_FUNC_FCHOWNAT): Invoke it.
18931         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18932         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18933         Reported by Gary V. Vaughan <gary@gnu.org>.
18934
18935 2010-11-13  Bruno Haible  <bruno@clisp.org>
18936
18937         openat: Ensure autoconf macro ordering.
18938         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18939         gl_USE_SYSTEM_EXTENSIONS.
18940         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18941
18942 2010-11-13  Bruno Haible  <bruno@clisp.org>
18943
18944         Update comments.
18945         * lib/unistr/u8-check.c: Update file name in comments.
18946         * lib/unistr/u8-mblen.c: Likewise.
18947         * lib/unistr/u8-prev.c: Likewise.
18948         * lib/unistr/u8-strmblen.c: Likewise.
18949         * lib/unistr/u8-strmbtouc.c: Likewise.
18950
18951 2010-11-13  Jim Meyering  <meyering@redhat.com>
18952
18953         tests: avoid test failure on Solaris 10 due to lack of PATH export
18954         * tests/test-update-copyright.sh: Don't forget to export PATH.
18955
18956         init.sh: ensure that IFS is defined, just in case...
18957         * tests/init.sh (setup_): Ensure that IFS is defined,
18958         so that saving and restoring it works as expected.  This
18959         appears to be useful at least for an old version of dash
18960         from a long time ago (RH 6).  See here for details:
18961         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18962
18963         maint.mk: tighten "test a == b" check
18964         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18965         test to files that contain something like #!/bin/sh.
18966         Without this, coreutils would get two false positives in
18967         the comments of C source files.
18968
18969 2010-11-12  Eric Blake  <eblake@redhat.com>
18970
18971         bootstrap: fix typo in previous attempt
18972         * build-aux/bootstrap (buildreq): Correct the grouping.
18973         Reported by Paul Eggert.
18974
18975         maintainer-makefile: prohibit test x == x
18976         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18977         Based on a report by Matthias Bolte.
18978
18979         bootstrap: allow FreeBSD gzip
18980         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18981         which has no '.' and goes to stderr.
18982         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18983         Reported by Matthias Bolte.
18984
18985         maintainer-makefile: check for i18n setup
18986         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18987         will likely work.
18988
18989 2010-11-12  Bruno Haible  <bruno@clisp.org>
18990
18991         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18992         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18993         * lib/nanosleep.c (nanosleep): Likewise.
18994
18995 2010-11-11  Bruno Haible  <bruno@clisp.org>
18996
18997         fcntl-h: Fix for use of C++ on glibc systems.
18998         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18999         also on glibc systems in C++ mode.
19000         Reported by Gary V. Vaughan <gary@gnu.org>.
19001
19002 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19003
19004         mknod: avoid false failure with dash
19005         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
19006
19007 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19008
19009         unlink: Fix "is it should" typo in diagnostic.
19010         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
19011         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
19012
19013 2010-11-11  Bruno Haible  <bruno@clisp.org>
19014
19015         Tests for module 'strerror_r-posix'.
19016         * modules/strerror_r-posix-tests: New file.
19017         * tests/test-strerror_r.c: New file.
19018         * tests/test-string-c++.cc: Check the signature of strerror_r.
19019
19020         New module 'strerror_r-posix'.
19021         * lib/string.in.h (strerror_r): New declaration.
19022         * lib/strerror_r.c: New file.
19023         * m4/strerror_r.m4: New file.
19024         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
19025         of strerror_r.
19026         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
19027         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19028         * modules/strerror_r-posix: New file.
19029         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
19030         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19031         * doc/posix-functions/strerror_r.texi: Mention the new module and the
19032         portability problems.
19033
19034 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
19035
19036         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
19037         line is also considered for output. Quoted function name in shell
19038         command, so temporary files for functions like MyClass::operator()
19039         are removed correctly without errors.
19040
19041 2010-11-09  Bruno Haible  <bruno@clisp.org>
19042
19043         * doc/posix-functions/strerror.texi: List more failing platforms.
19044
19045         * doc/posix-functions/strerror.texi: Add a comment.
19046
19047 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19048
19049         fdopendir: fix bug on MacOS X when low on file descriptors
19050
19051         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
19052         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
19053         All callers changed.
19054         (fdopendir): Invoke save_cwd at the top level, not after using
19055         multiple dup() calls to use up file descriptors.  Then retry
19056         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
19057         less than the maximum number of open file descriptors, because
19058         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
19059         on Mac OS X 10.6.4 for tar 1.24
19060         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
19061         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
19062         and for tar 1.25
19063         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
19064
19065 2010-11-07  Bruno Haible  <bruno@clisp.org>
19066
19067         vasnprintf: Support I flag on glibc systems.
19068         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
19069         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
19070         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
19071         snprintf function.
19072         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
19073         glibc systems.
19074         * tests/test-vasnprintf-posix3.c: New file.
19075         * modules/vasnprintf-posix-tests (Files): Add it.
19076         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
19077
19078 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19079
19080         [html] Fix copy/paste bug: Use unique name for compiler warnings.
19081         * MODULES.html.sh: For compiler warnings, use name
19082         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
19083
19084 2010-11-05  Eric Blake  <eblake@redhat.com>
19085
19086         ceil, floor: avoid spurious failure with icc
19087         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
19088         [denormals-as-zero] when optimizing without -mieee-fp option.
19089         * tests/test-floorf2.c (floorf_reference): Likewise.
19090         * tests/test-ceilf1.c (dummy): New function.
19091         (main): Use it to outsmart icc's optimization.
19092         * tests/test-floorf1.c (dummy, main): Likewise.
19093
19094         tests: require working signbit
19095         * modules/ceilf-tests (Depends-on): Add signbit.
19096         * modules/ceill-tests (Depends-on): Likewise.
19097         * modules/floorf-tests (Depends-on): Likewise.
19098         * modules/floorl-tests (Depends-on): Likewise.
19099         * modules/round-tests (Depends-on): Likewise.
19100         * modules/roundf-tests (Depends-on): Likewise.
19101         * modules/roundl-tests (Depends-on): Likewise.
19102         * modules/trunc-tests (Depends-on): Likewise.
19103         * modules/truncf-tests (Depends-on): Likewise.
19104         * modules/truncl-tests (Depends-on): Likewise.
19105
19106         strtod: work around icc bug
19107         * lib/strtod.c (minus_zero): Define to working value.
19108         (strtod): Use it to avoid icc bug.
19109
19110         copysign: enhance tests
19111         * modules/copysign-tests (Files): Add minus-zero.h.
19112         * tests/test-copysign.c (main): Also test zeros.
19113
19114 2010-11-04  Eric Blake  <eblake@redhat.com>
19115
19116         ceil, floor, round, trunc: enhance tests of -0
19117         * tests/test-ceilf1.c (main): Ensure correct sign of result.
19118         * tests/test-ceill.c (main): Likewise.
19119         * tests/test-floorf1.c (main): Likewise.
19120         * tests/test-floorl.c (main): Likewise.
19121         * tests/test-round1.c (main): Likewise.
19122         * tests/test-roundf1.c (main): Likewise.
19123         * tests/test-roundl.c (main): Likewise.
19124         * tests/test-trunc1.c (main): Likewise.
19125         * tests/test-truncf1.c (main): Likewise.
19126         * tests/test-truncl.c (main): Likewise.
19127
19128 2010-11-04  Eric Blake  <eblake@redhat.com>
19129
19130         frexp, tests: work around ICC bug with -zero
19131         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
19132         works with more compilers.
19133         * tests/minus-zero.h: New file.
19134         * modules/ceilf-tests (Files): Include it.
19135         * modules/ceill-tests (Files): Likewise.
19136         * modules/floorf-tests (Files): Likewise.
19137         * modules/floorl-tests (Files): Likewise.
19138         * modules/frexp-nolibm-tests (Files): Likewise.
19139         * modules/frexp-tests (Files): Likewise.
19140         * modules/frexpl-nolibm-tests (Files): Likewise.
19141         * modules/frexpl-tests (Files): Likewise.
19142         * modules/isnan-tests (Files): Likewise.
19143         * modules/isnand-nolibm-tests (Files): Likewise.
19144         * modules/isnand-tests (Files): Likewise.
19145         * modules/isnanf-nolibm-tests (Files): Likewise.
19146         * modules/isnanf-tests (Files): Likewise.
19147         * modules/isnanl-nolibm-tests (Files): Likewise.
19148         * modules/isnanl-tests (Files): Likewise.
19149         * modules/round-tests (Files): Likewise.
19150         * modules/roundf-tests (Files): Likewise.
19151         * modules/roundl-tests (Files): Likewise.
19152         * modules/ldexpl-tests (Files): Likewise.
19153         * modules/signbit-tests (Files): Likewise.
19154         * modules/snprintf-posix-tests (Files): Likewise.
19155         * modules/sprintf-posix-tests (Files): Likewise.
19156         * modules/strtod-tests (Files): Likewise.
19157         * modules/trunc-tests (Files): Likewise.
19158         * modules/truncf-tests (Files): Likewise.
19159         * modules/truncl-tests (Files): Likewise.
19160         * modules/vsnprintf-posix-tests (Files): Likewise.
19161         * modules/vsprintf-posix-tests (Files): Likewise.
19162         * modules/vasnprintf-posix-tests (Files): Likewise.
19163         * modules/vasprintf-posix-tests (Files): Likewise.
19164         * tests/test-ceilf1.c (main): Use it.
19165         * tests/test-ceill.c (main): Likewise.
19166         * tests/test-floorf1.c (main): Likewise.
19167         * tests/test-floorl.c (main): Likewise.
19168         * tests/test-frexp.c (main): Likewise.
19169         * tests/test-frexpl.c (main): Likewise.
19170         * tests/test-isnan.c (main): Likewise.
19171         * tests/test-isnand.h (main): Likewise.
19172         * tests/test-isnanf.h (main): Likewise.
19173         * tests/test-isnanl.h (main): Likewise.
19174         * tests/test-ldexpl.c (main): Likewise.
19175         * tests/test-round.c (main): Likewise.
19176         * tests/test-roundf.c (main): Likewise.
19177         * tests/test-roundl.c (main): Likewise.
19178         * tests/test-signbit.c (test_signbitf, test_signbitd)
19179         (test_signbitl): Likewise.
19180         * tests/test-snprintf-posix.h (test_function): Likewise.
19181         * tests/test-sprintf-posix.h (test_function): Likewise.
19182         * tests/test-strtod.c (main): Likewise.
19183         * tests/test-trunc1.c (main): Likewise.
19184         * tests/test-truncf1.c (main): Likewise.
19185         * tests/test-truncl.c (main): Likewise.
19186
19187         isnanl: work around icc bug
19188         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
19189
19190 2010-11-03  Eric Blake  <eblake@redhat.com>
19191
19192         tests: fix compiler warnings
19193         * tests/test-getopt.h (test_getopt): Fix condition.
19194         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19195         * tests/test-pipe2.c (main): Likewise.
19196         * tests/test-quotearg-simple.c (main): Avoid icc warning.
19197
19198         utimens: fix broken m4 test
19199         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
19200
19201 2010-10-28  Bruno Haible  <bruno@clisp.org>
19202
19203         posix_spawn*, getdtablesize: Relax license.
19204         * modules/posix_spawn (License): Change to LGPLv2+.
19205         * modules/posix_spawnp (License): Likewise.
19206         * modules/posix_spawn-internal (License): Likewise.
19207         * modules/posix_spawnattr_init (License): Likewise.
19208         * modules/posix_spawnattr_getflags (License): Likewise.
19209         * modules/posix_spawnattr_setflags (License): Likewise.
19210         * modules/posix_spawnattr_getpgroup (License): Likewise.
19211         * modules/posix_spawnattr_setpgroup (License): Likewise.
19212         * modules/posix_spawnattr_getschedparam (License): Likewise.
19213         * modules/posix_spawnattr_setschedparam (License): Likewise.
19214         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
19215         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
19216         * modules/posix_spawnattr_getsigdefault (License): Likewise.
19217         * modules/posix_spawnattr_setsigdefault (License): Likewise.
19218         * modules/posix_spawnattr_getsigmask (License): Likewise.
19219         * modules/posix_spawnattr_setsigmask (License): Likewise.
19220         * modules/posix_spawnattr_destroy (License): Likewise.
19221         * modules/posix_spawn_file_actions_init (License): Likewise.
19222         * modules/posix_spawn_file_actions_addclose (License): Likewise.
19223         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
19224         * modules/posix_spawn_file_actions_addopen (License): Likewise.
19225         * modules/posix_spawn_file_actions_destroy (License): Likewise.
19226         * modules/getdtablesize (License): Likewise.
19227         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
19228
19229 2010-10-26  Bruno Haible  <bruno@clisp.org>
19230
19231         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
19232         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
19233         Cygwin and mingw.
19234         Suggested by Eric Blake.
19235
19236 2010-10-26  Bruno Haible  <bruno@clisp.org>
19237
19238         stdio: Work around compilation error due to renameat() on Solaris 10.
19239         * lib/stdio.in.h: Include <unistd.h> on Solaris.
19240         * lib/renameat.c: Don't include <unistd.h> here.
19241         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
19242         Reported by Paul Eggert and Eric Blake.
19243
19244 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19245
19246         renameat: port to Solaris 10, which declares renameat in unistd.h
19247
19248         * lib/renameat.c: Include unistd.h before stdio.h, because
19249         Solaris 10 declares renameat in unistd.h.  Problem encountered
19250         when building GNU tar 1.24 on Solaris 10.
19251
19252 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19253
19254         fdopendir: fix C89 compilation
19255         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
19256         compilers.
19257
19258 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
19259
19260         inttostr: simplify by removing unnecessary redundancy
19261         * lib/anytostr.c: Don't include verify.h.
19262         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
19263         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
19264         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
19265         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
19266         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
19267         Likewise.
19268         * modules/inttostr (Depends-on): Remove 'verify'.
19269
19270 2010-10-23  Bruno Haible  <bruno@clisp.org>
19271
19272         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
19273         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
19274         Reported by Eric Blake.
19275
19276 2010-10-23  Bruno Haible  <bruno@clisp.org>
19277
19278         Tests: Fix LOCALE_JA on MirBSD 10.
19279         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
19280         to an UTF-8 locale.
19281         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
19282         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19283         Reported by Eric Blake.
19284
19285 2010-10-21  Bruno Haible  <bruno@clisp.org>
19286
19287         nl_langinfo test: Avoid test failure on NetBSD 5.
19288         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
19289         Reported by Eric Blake.
19290
19291 2010-10-21  Eric Blake  <eblake@redhat.com>
19292
19293         c-stack: work around libsigsegv 2.8 bug
19294         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
19295         overflow on at least PowerPC64.
19296
19297 2010-10-17  Bruno Haible  <bruno@clisp.org>
19298
19299         userspec: Drop redundant file.
19300         * modules/userspec (Files): Remove lib/inttostr.h.
19301
19302 2010-10-17  Bruno Haible  <bruno@clisp.org>
19303
19304         nl_langinfo tests: Silence some warnings.
19305         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
19306         Reported by Jim Meyering.
19307
19308 2010-10-17  Bruno Haible  <bruno@clisp.org>
19309
19310         Make use of GCC's attribute __alloc_size__.
19311         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
19312         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
19313         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
19314         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
19315         __alloc_size__.
19316         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
19317         Suggested by Jim Meyering.
19318
19319 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
19320
19321         bootstrap: anchor .gitignore entries.
19322         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
19323         with...
19324         (insert_vc_ignore): ... this new function, which prepends `/' to
19325         all .gitignore entries before passing them to
19326         insert_sorted_if_absent.
19327
19328 2010-10-16  Bruno Haible  <bruno@clisp.org>
19329
19330         nextafter: Fix configure check.
19331         * modules/nextafter (configure.ac): Correct expected prototype.
19332
19333 2010-10-16  Bruno Haible  <bruno@clisp.org>
19334
19335         termios: Update documentation.
19336         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
19337
19338 2010-10-16  Bruno Haible  <bruno@clisp.org>
19339
19340         tests: Make them compile with TinyCC.
19341         * tests/test-strstr.c (main): Remove parentheses around array
19342         initializer.
19343
19344 2010-10-15  Eric Blake  <eblake@redhat.com>
19345
19346         ignore-value: make header idempotent
19347         * lib/ignore-value.h: Add double-inclusion guards.
19348         Reported by Stefan Berger.
19349
19350 2010-10-15  Jim Meyering  <meyering@redhat.com>
19351
19352         GNUmakefile: handle "stable" target, not "major"
19353         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
19354         lists in maint.mk and announce-gen.  Without this, "make stable"
19355         would fail to ensure that $(VERSION) is up to date.
19356
19357 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19358
19359         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19360         & co.
19361
19362 2010-10-14  Bruno Haible  <bruno@clisp.org>
19363
19364         vasnprintf: Don't set errno to 0.
19365         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19366         block that sets it to 0.
19367         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19368
19369 2010-10-14  Bruno Haible  <bruno@clisp.org>
19370
19371         socketlib: Fix.
19372         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19373         gl_PREREQ_SYS_H_WINSOCK2.
19374         Reported by Ian Beckwith <ianb@erislabs.net>.
19375
19376 2010-10-13  Jim Meyering  <meyering@redhat.com>
19377
19378         test-select-stdin.c: avoid warn_unused_result warnings
19379         * tests/test-select-stdin.c: Include "macros.h".
19380         ASSERT that read and fflush succeed.
19381
19382 2010-10-13  Jim Meyering  <meyering@redhat.com>
19383
19384         git-version-gen: do require git-VC'd files in cwd
19385         * build-aux/git-version-gen: Reject a git version string
19386         if there are no commits associated with the current directory.
19387         This avoids an unlikely false-positive (unrelated dir whose parent
19388         repository also contains a tag matching v*), as pointed out
19389         by Giuseppe Scrivano in
19390         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19391
19392 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19393
19394         argv-iter: omit nonconforming declaration
19395         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
19396         enum arg_iter_err declaration, which doesn't conform to C99.
19397         Solaris 10 cc warns about this.
19398
19399 2010-10-13  Eric Blake  <eblake@redhat.com>
19400
19401         termios: fix compilation on mingw
19402         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
19403         (gl_TERMIOS_H): Adjust it on mingw.
19404         * modules/termios (Makefile.am): Substitute new key.
19405         * lib/termios.in.h (includes): Make include_next conditional.
19406         * doc/posix-headers/termios.texi (termios.h): Update
19407         documentation.
19408         Reported by Daniel P. Berrange.
19409
19410 2010-10-13  Jim Meyering  <meyering@redhat.com>
19411
19412         git-version-gen: don't require that .git/ be in the current dir
19413         * build-aux/git-version-gen: Adjust this script so that it works
19414         when run from any working directory beneath the top-level .git/-
19415         containing directory.  Inspired by a patch from Giuseppe Scrivano,
19416         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
19417
19418         test-select: avoid warn_unused_result warnings
19419         * tests/test-select.c: Include "macros.h".
19420         ASSERT that each call to read, write, and pipe succeeds.
19421         While not technically required, also check each "close".
19422         * modules/select-tests (Files): Add tests/macros.h.
19423
19424         test-symlinkat: remove declaration of unused local
19425         * tests/test-symlinkat.c (main): Remove unused local, "buf".
19426
19427         test-inttostr: avoid shadowing warnings
19428         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
19429         and use malloc rather than the stack for the same reason as
19430         mentioned in the comment justifying the other allocation.
19431
19432 2010-10-11  Bruno Haible  <bruno@clisp.org>
19433
19434         stdlib: Allow multiple gnulib generated replacements to coexist.
19435         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
19436         Reported by Sam Steingold <sds@gnu.org>.
19437
19438 2010-10-11  Jim Meyering  <meyering@redhat.com>
19439
19440         fix a documentation typo
19441         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
19442
19443 2010-10-11  Eric Blake  <eblake@redhat.com>
19444
19445         futimens: work around Solaris 11 bug
19446         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
19447         * tests/test-futimens.h (test_futimens): Enhance, rather than
19448         weaken test.
19449         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19450
19451 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19452
19453         Indentation.
19454         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
19455         higher-level operators more to the left.
19456
19457 2010-10-11  Jim Meyering  <meyering@redhat.com>
19458
19459         test-futimens: avoid unwarranted test failure on Solaris 5.11
19460         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19461         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
19462         because it tries to dereference the NULL name argument.
19463
19464 2010-10-11  Bruno Haible  <bruno@clisp.org>
19465
19466         Indentation.
19467         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
19468         indentation.
19469
19470 2010-10-11  Jim Meyering  <meyering@redhat.com>
19471
19472         spawn.in.h: make indentation consistent with parentheses
19473         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19474         Make indentation consistent with parentheses.
19475
19476 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19477
19478         Fix mismatched parens in previous commit
19479         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19480         parens.
19481
19482 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19483
19484         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19485
19486         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19487         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19488         * lib/malloca.c: Include "verify.h".
19489         (verify1): Remove, replacing with a verify call.
19490         * lib/relocwrapper.c (verify1): Likewise.
19491         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19492         Likewise.
19493         * modules/malloca (Depends-on): Add 'verify'.
19494         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19495         * modules/vasnprintf (Depends-on): Add 'verify'.
19496         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19497         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19498         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19499         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19500         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19501         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19502         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19503
19504         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19505
19506         Formerly the style was sometimes 2*X - 1, because the C standard
19507         was wrongly thought to disallow ?: in integral constant expressions.
19508         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19509         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19510         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19511         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19512         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19513         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19514         verify that time_t cannot be floating.
19515
19516 2010-10-08  Eric Blake  <eblake@redhat.com>
19517
19518         time: enforce recent POSIX ruling that time_t is integral
19519         * lib/time.in.h (__time_t_must_be_integral): Detect any
19520         problematic systems, allowing the rest of gnulib to assume POSIX.
19521
19522 2010-10-08  Jim Meyering  <meyering@redhat.com>
19523
19524         fdopendir: fix a bug on systems lacking openat and /proc support
19525         OpenBSD 4.7 is one such system.  The most noticeable effect was
19526         failure of any application making nontrivial use of fts: rm, du,
19527         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19528           ./rm: traversal failed: `a': Bad file descriptor
19529         Debugging that, you see that even though FD 6 was closed just
19530         prior to the opendir call in fd_clone_opendir, its resulting
19531         dir->dd_fd was 8, rather than the expected value of 6:
19532
19533         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19534         93                close (fd);
19535         (gdb) n
19536         94                dir = fd_clone_opendir (dupfd);
19537         (gdb) n
19538         95                saved_errno = errno;
19539         (gdb) p dir->dd_fd
19540         $11 = 8
19541
19542         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19543         The problem is that on OpenBSD, fd_clone_opendir has to resort
19544         to using the old-style save/restore CWD mechanism, due to its
19545         lack of openat/proc support, and *that* would steal the FD (6)
19546         that opendir was supposed to use.
19547
19548         The fix is to squirrel away the desired FD so that save_cwd uses a
19549         different one, and then free the dest FD right before calling opendir.
19550         That guarantees opendir will use the required file descriptor.
19551
19552         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19553
19554 2010-10-08  Bruno Haible  <bruno@clisp.org>
19555
19556         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19557         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19558
19559 2010-10-08  Bruno Haible  <bruno@clisp.org>
19560
19561         nanosleep: Make replacement POSIX compliant.
19562         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19563         is out of range.
19564         Reported by Jim Meyering.
19565
19566 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19567
19568         bootstrap: add hook for altering gnulib.mk, for Bison
19569         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19570         the Bison bootstrapping process can rewrite file names and variables
19571         in this file before later parts of 'bootstrap' use the file.
19572         Bison wants to include lib/gnulib.mk from the top-level makefile,
19573         so it needs the file names in this file to be relative to the top
19574         level, not relative to lib; plus it needs variable names to be
19575         rewritten.
19576         (slurp): Use the new function.
19577
19578         bootstrap: reformat for readability
19579         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19580
19581 2010-10-08  Eric Blake  <eblake@redhat.com>
19582
19583         docs: update cygwin progress
19584         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19585         1.7.7.
19586         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19587         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19588         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19589         * doc/posix-functions/carg.texi (carg): Likewise.
19590         * doc/posix-functions/cargf.texi (cargf): Likewise.
19591         * doc/posix-functions/casin.texi (casin): Likewise.
19592         * doc/posix-functions/casinf.texi (casinf): Likewise.
19593         * doc/posix-functions/casinh.texi (casinh): Likewise.
19594         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19595         * doc/posix-functions/catan.texi (catan): Likewise.
19596         * doc/posix-functions/catanf.texi (catanf): Likewise.
19597         * doc/posix-functions/catanh.texi (catanh): Likewise.
19598         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19599         * doc/posix-functions/ccos.texi (ccos): Likewise.
19600         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19601         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19602         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19603         * doc/posix-functions/cexp.texi (cexp): Likewise.
19604         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19605         * doc/posix-functions/cimag.texi (cimag): Likewise.
19606         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19607         * doc/posix-functions/clog.texi (clog): Likewise.
19608         * doc/posix-functions/clogf.texi (clogf): Likewise.
19609         * doc/posix-functions/conj.texi (conj): Likewise.
19610         * doc/posix-functions/conjf.texi (conjf): Likewise.
19611         * doc/posix-functions/cpow.texi (cpow): Likewise.
19612         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19613         * doc/posix-functions/cproj.texi (cproj): Likewise.
19614         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19615         * doc/posix-functions/creal.texi (creal): Likewise.
19616         * doc/posix-functions/crealf.texi (crealf): Likewise.
19617         * doc/posix-functions/csin.texi (csin): Likewise.
19618         * doc/posix-functions/csinf.texi (csinf): Likewise.
19619         * doc/posix-functions/csinh.texi (csinh): Likewise.
19620         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19621         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19622         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19623         * doc/posix-functions/ctan.texi (ctan): Likewise.
19624         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19625         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19626         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19627         * doc/posix-headers/complex.texi (complex.h): Likewise.
19628
19629 2010-10-07  Jim Meyering  <meyering@redhat.com>
19630
19631         parse-datetime: avoid compilation failure on OpenBSD 4.7
19632         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19633         This works around a compilation failure on OpenBSD 4.7:
19634         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19635
19636 2010-10-07  Eric Blake  <eblake@redhat.com>
19637
19638         docs: update cygwin progress
19639         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19640         1.7.6.
19641         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19642         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19643         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19644         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19645         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19646         Likewise.
19647         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19648         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19649         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19650         Likewise.
19651         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19652         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19653         Likewise.
19654         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19655         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19656         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19657         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19658         Likewise.
19659         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19660         Likewise.
19661         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19662
19663         docs: update parse-datetime history
19664         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19665         documentation of this function's history and alternatives.
19666
19667         cygwin: use more robust version check
19668         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19669         exclude an eventual cygwin 1.9.1.
19670         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19671         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19672         (gl_FUNC_STRCASESTR): Likewise.
19673         Reported by Bruno Haible.
19674
19675 2010-10-06  Bruno Haible  <bruno@clisp.org>
19676
19677         string, sys_select: Avoid #including large headers unless necessary.
19678         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19679         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19680         OSF/1, BeOS, Haiku.
19681         Reported by Jim Meyering.
19682
19683 2010-10-05  Eric Blake  <eblake@redhat.com>
19684
19685         memmem, strstr, strcasestr: fix bug with long periodic needle
19686         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19687         periodic needle having false positive.
19688         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19689         and cygwin 1.7.7.
19690         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19691         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19692         (gl_FUNC_STRCASESTR): Likewise.
19693         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19694         * tests/test-memmem.c (main): Expose the bug.
19695         * tests/test-strcasestr.c (main): Likewise.
19696         * tests/test-strstr.c (main): Likewise.
19697         * tests/test-c-strcasestr.c (main): Likewise.
19698         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19699         * doc/posix-functions/strstr.texi (strstr): Likewise.
19700         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19701         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19702
19703 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19704
19705         parse-datetime: do some more renaming
19706         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19707         parse_datetime, not get_date.  Mention the renaming.
19708         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19709         in comments.
19710         * m4/bison.m4: Likewise.
19711
19712 2010-10-05  Eric Blake  <eblake@redhat.com>
19713
19714         parse-datetime: better name than get_date
19715         * NEWS: Reword the deprecation notice.
19716         * modules/get_date: Rename to modules/parse-datetime.
19717         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19718         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19719         * lib/get_date.y: Rename to lib/parse-datetime.y.
19720         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19721         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19722         * doc/getdate.texi: Provide fallback wrapper.
19723         * lib/getdate.h: Move guts, and wrap...
19724         * lib/parse-datetime.h: ...new file.
19725         * lib/parse-datetime.y (get_date): Rename...
19726         (parse_datetime): ...to this.
19727         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19728         (gl_PARSE_DATETIME): ...to this.
19729         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19730         documentation.
19731         * modules/getdate (Files): Provide fallback docs and header.
19732         (Notice, Depends-on): Update references.
19733         * tests/test-parse-datetime.c: Likewise.
19734         * DEPENDENCIES: Likewise.
19735         * MODULES.html.sh (Date and time <time.h>): Likewise.
19736         * doc/parse-datetime.texi (Date input formats)
19737         (Authors of parse_datetime): Likewise.
19738         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19739         (Include): Likewise.
19740         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19741         * gnulib-tool: Likewise.
19742         * m4/bison.m4 (gl_BISON): Likewise.
19743         Suggested by Bruno Haible.
19744
19745 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19746
19747         more ports to Solaris tr, which needs [] around ranges
19748         * gnulib-tool: Solaris tr needs [] around ranges.
19749         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19750         * tests/test-pipe-filter-gi1.c (main): Likewise.
19751         * tests/test-pipe-filter-ii1.c (main): Likewise.
19752
19753 2010-10-05  Eric Blake  <eblake@redhat.com>
19754
19755         bootstrap: fix Solaris regression
19756         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19757         around ranges.
19758         Reported by Pádraig Brady.
19759
19760         bootstrap: work with pkg-config
19761         * build-aux/bootstrap (check_versions): Also transliterate - in
19762         prerequisite name.
19763         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19764         prerequisites that were already found, to avoid confusion.
19765         Reported by Justin Clift.
19766
19767         faccessat: remove unused wrappers
19768         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19769         presence of these wrappers dragged in -lgen on Solaris.
19770         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19771
19772 2010-10-05  Jim Meyering  <meyering@redhat.com>
19773
19774         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19775         * Makefile (sc_pragma_columns): New syntax-check rule.
19776
19777 2010-10-04  Bruno Haible  <bruno@clisp.org>
19778
19779         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19780         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19781         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19782         Reported by Bruce Korb and Eric Blake.
19783
19784 2010-10-04  Bruno Haible  <bruno@clisp.org>
19785
19786         threadlib: Make option --with-libpth-prefix work.
19787         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19788         use $LIBPTH, not just -lpth.
19789
19790 2010-10-04  Bruno Haible  <bruno@clisp.org>
19791
19792         Avoid line length limitation from HP NonStop system header files.
19793         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19794         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19795         * lib/ctype.in.h: Likewise.
19796         * lib/dirent.in.h: Likewise.
19797         * lib/errno.in.h: Likewise.
19798         * lib/fcntl.in.h: Likewise.
19799         * lib/float.in.h: Likewise.
19800         * lib/getopt.in.h: Likewise.
19801         * lib/iconv.in.h: Likewise.
19802         * lib/inttypes.in.h: Likewise.
19803         * lib/langinfo.in.h: Likewise.
19804         * lib/locale.in.h: Likewise.
19805         * lib/math.in.h: Likewise.
19806         * lib/netdb.in.h: Likewise.
19807         * lib/netinet_in.in.h: Likewise.
19808         * lib/poll.in.h: Likewise.
19809         * lib/pthread.in.h: Likewise.
19810         * lib/pty.in.h: Likewise.
19811         * lib/sched.in.h: Likewise.
19812         * lib/se-selinux.in.h: Likewise.
19813         * lib/search.in.h: Likewise.
19814         * lib/signal.in.h: Likewise.
19815         * lib/spawn.in.h: Likewise.
19816         * lib/stdarg.in.h: Likewise.
19817         * lib/stddef.in.h: Likewise.
19818         * lib/stdint.in.h: Likewise.
19819         * lib/stdio.in.h: Likewise.
19820         * lib/stdlib.in.h: Likewise.
19821         * lib/string.in.h: Likewise.
19822         * lib/strings.in.h: Likewise.
19823         * lib/sys_file.in.h: Likewise.
19824         * lib/sys_ioctl.in.h: Likewise.
19825         * lib/sys_select.in.h: Likewise.
19826         * lib/sys_socket.in.h: Likewise.
19827         * lib/sys_stat.in.h: Likewise.
19828         * lib/sys_time.in.h: Likewise.
19829         * lib/sys_times.in.h: Likewise.
19830         * lib/sys_utsname.in.h: Likewise.
19831         * lib/sys_wait.in.h: Likewise.
19832         * lib/sysexits.in.h: Likewise.
19833         * lib/termios.in.h: Likewise.
19834         * lib/time.in.h: Likewise.
19835         * lib/unistd.in.h: Likewise.
19836         * lib/wchar.in.h: Likewise.
19837         * lib/wctype.in.h: Likewise.
19838         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19839         * modules/ctype (Makefile.am): Likewise.
19840         * modules/dirent (Makefile.am): Likewise.
19841         * modules/errno (Makefile.am): Likewise.
19842         * modules/fcntl-h (Makefile.am): Likewise.
19843         * modules/float (Makefile.am): Likewise.
19844         * modules/getopt-posix (Makefile.am): Likewise.
19845         * modules/iconv-h (Makefile.am): Likewise.
19846         * modules/inttypes (Makefile.am): Likewise.
19847         * modules/langinfo (Makefile.am): Likewise.
19848         * modules/locale (Makefile.am): Likewise.
19849         * modules/math (Makefile.am): Likewise.
19850         * modules/netdb (Makefile.am): Likewise.
19851         * modules/netinet_in (Makefile.am): Likewise.
19852         * modules/poll-h (Makefile.am): Likewise.
19853         * modules/pthread (Makefile.am): Likewise.
19854         * modules/pty (Makefile.am): Likewise.
19855         * modules/sched (Makefile.am): Likewise.
19856         * modules/search (Makefile.am): Likewise.
19857         * modules/selinux-h (Makefile.am): Likewise.
19858         * modules/signal (Makefile.am): Likewise.
19859         * modules/spawn (Makefile.am): Likewise.
19860         * modules/stdarg (Makefile.am): Likewise.
19861         * modules/stddef (Makefile.am): Likewise.
19862         * modules/stdint (Makefile.am): Likewise.
19863         * modules/stdio (Makefile.am): Likewise.
19864         * modules/stdlib (Makefile.am): Likewise.
19865         * modules/string (Makefile.am): Likewise.
19866         * modules/strings (Makefile.am): Likewise.
19867         * modules/sys_file (Makefile.am): Likewise.
19868         * modules/sys_ioctl (Makefile.am): Likewise.
19869         * modules/sys_select (Makefile.am): Likewise.
19870         * modules/sys_socket (Makefile.am): Likewise.
19871         * modules/sys_stat (Makefile.am): Likewise.
19872         * modules/sys_time (Makefile.am): Likewise.
19873         * modules/sys_times (Makefile.am): Likewise.
19874         * modules/sys_utsname (Makefile.am): Likewise.
19875         * modules/sys_wait (Makefile.am): Likewise.
19876         * modules/sysexits (Makefile.am): Likewise.
19877         * modules/termios (Makefile.am): Likewise.
19878         * modules/time (Makefile.am): Likewise.
19879         * modules/unistd (Makefile.am): Likewise.
19880         * modules/wchar (Makefile.am): Likewise.
19881         * modules/wctype (Makefile.am): Likewise.
19882
19883 2010-10-04  Bruno Haible  <bruno@clisp.org>
19884
19885         read-file tests: Avoid a test failure on NonStop Kernel.
19886         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19887         a regular file.
19888         Reported by Joachim Schmitz <schmitz@hp.com>.
19889
19890 2010-10-03  Bruno Haible  <bruno@clisp.org>
19891
19892         gnulib-tool: Fixes for --create-testdir with --libtool.
19893         * gnulib-tool (func_get_automake_snippet): Don't augment
19894         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19895         an executable.
19896         (func_create_testdir): Handle module 'alloca' like func_import.
19897         Reported by Bruce Korb <bruce.korb@gmail.com>.
19898
19899 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19900
19901         Avoid some lines longer than 80 characters.
19902         * lib/stdint.in.h: Break long comment lines.
19903         * lib/math.in.h: Likewise.
19904         (_GL_NUM_UINT_WORDS): New macro, for readability.
19905         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19906         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19907         * lib/stdlib.in.h: Likewise.
19908         * lib/spawn.in.h: Likewise.
19909         * lib/sys_socket.in.h: Update an URL.
19910         * lib/sys_stat.in.h: Break long line.
19911
19912 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19913
19914         Improve pmccabe2html.
19915         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19916         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19917         when the sources change. Remove the line in the HTML about "Used
19918         ranges" (which implied that there might be other unused ranges),
19919         rename "Resume" to "Summary" (easier to understand for more users).
19920         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19921         styles, and some unnecessary blank lines.
19922
19923 2010-10-03  Bruno Haible  <bruno@clisp.org>
19924             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19925
19926         acl: Add support for ACLs on NonStop Kernel.
19927         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19928         Check whether the function aclsort() exists.
19929         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19930         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19931         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19932         (acl_nontrivial [HAVE_ACLSORT]: New function.
19933         (file_has_acl): Implement for NonStop Kernel.
19934         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19935         (qset_acl): Implement for NonStop Kernel.
19936         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19937         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19938         (main): Implement for NonStop Kernel.
19939         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19940         Kernel. Handle this flavor.
19941         * tests/test-set-mode-acl.sh: Likewise.
19942         * tests/test-copy-acl.sh: Likewise.
19943         * tests/test-copy-file.sh: Likewise.
19944
19945 2010-10-03  Bruno Haible  <bruno@clisp.org>
19946
19947         Info about ACLs on NonStop Kernel.
19948         * doc/acl-resources.txt: Add info about NonStop Kernel.
19949         References by Joachim Schmitz <schmitz@hp.com>.
19950
19951 2010-10-02  Bruno Haible  <bruno@clisp.org>
19952
19953         Define missing EDQUOT on NonStop Kernel.
19954         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19955         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19956         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19957         missing.
19958         * doc/posix-headers/errno.texi: Mention the NSK bug.
19959         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19960         Reported by Joachim Schmitz <schmitz@hp.com>.
19961
19962 2010-10-02  Bruno Haible  <bruno@clisp.org>
19963
19964         Update doc for POSIX:2008.
19965         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19966         Update URL of POSIX specification.
19967
19968 2010-10-02  Bruno Haible  <bruno@clisp.org>
19969
19970         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19971         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19972         from gnulib, not from Automake.
19973
19974 2010-10-02  Bruno Haible  <bruno@clisp.org>
19975
19976         New module 'system-posix'.
19977         * modules/system-posix: New file.
19978         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19979         module is present.
19980         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19981         GNULIB_SYSTEM_POSIX.
19982         * modules/stdlib (Depends-on): Remove sys_wait.
19983         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19984         * doc/posix-functions/system.texi: Mention the new module.
19985         * doc/posix-headers/stdlib.texi: Likewise.
19986         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19987         define test_sys_wait_macros to a no-op.
19988         Reported by Sam Steingold <sds@gnu.org>.
19989
19990 2010-09-30  Bruno Haible  <bruno@clisp.org>
19991
19992         More renaming from 'getdate' to 'get_date'.
19993         * doc/get_date.texi: Renamed from doc/getdate.texi.
19994         * modules/get_date (Files): Update.
19995         * MODULES.html.sh (Date and time <time.h>): Update.
19996         * DEPENDENCIES: Update.
19997         * gnulib-tool: Update comment.
19998         * m4/bison.m4 (gl_BISON): Likewise.
19999         * m4/get_date.m4 (gl_GET_DATE): Likewise.
20000
20001 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
20002
20003         bootstrap: support ACLOCAL_FLAGS during aclocal
20004         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
20005         can add additional -I dir for third-party .m4 files.
20006
20007 2010-09-30  Eric Blake  <eblake@redhat.com>
20008
20009         bootstrap: use glibtoolize on MacOS
20010         * build-aux/bootstrap (check_versions): Convert libtool into
20011         libtoolize.
20012         (tool search): Move libtool check earlier, and look for
20013         glibtoolize for MacOS.
20014         (gnulib_tool_options): Auto-add --libtool when appropriate.
20015         Reported by Justin Clift.
20016
20017         poll: fix typo that broke test on MacOS
20018         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
20019         Reported by Justin Clift.
20020
20021         getdate: rename to get_date
20022         Note: getdate.h is not renamed, to minimize client impact.
20023         * modules/getdate: Mark obsolete.  Move old contents...
20024         * modules/get_date: ...to new module name.
20025         * modules/getdate-tests: Move...
20026         * modules/get_date-tests: ...here.
20027         * m4/getdate.m4: Move...
20028         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
20029         * lib/getdate.y: Move...
20030         * lib/get_date.y: ...here.
20031         * tests/test-getdate.c: Move...
20032         * tests/test-get_date.c: ...here.
20033         * doc/posix-functions/getdate.texi (getdate): Update name.
20034         * NEWS: Mention the change.
20035
20036 2010-09-29  Bruno Haible  <bruno@clisp.org>
20037
20038         Separate the module 'waitpid' from the module 'sys_wait'.
20039         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
20040         present.
20041         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
20042         gl_MODULE_INDICATOR_FOR_TESTS.
20043         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
20044         * modules/sys_wait (Depends-on): Remove waitpid.
20045         (Makefile.am): Substitute GNULIB_WAITPID.
20046         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
20047         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
20048         signature only if the 'waitpid' module is present.
20049         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
20050         * NEWS: Mention the change.
20051         * modules/grantpt (Depends-on): Add waitpid.
20052         * modules/wait-process (Depends-on): Likewise.
20053
20054 2010-09-29  Bruno Haible  <bruno@clisp.org>
20055
20056         More tests for module 'sys_wait'.
20057         * modules/sys_wait-c++-tests: New file.
20058         * tests/test-sys_wait-c++.cc: New file.
20059         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
20060         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20061
20062 2010-09-29  Bruno Haible  <bruno@clisp.org>
20063
20064         New module 'waitpid'.
20065         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
20066         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
20067         Don't include <process.h>.
20068         (waitpid): Declare only, using modern idiom.
20069         * m4/waitpid.m4: New file.
20070         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
20071         * modules/waitpid: New file.
20072         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
20073         (Makefile.am): Update.
20074         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20075
20076 2010-09-28  Bruno Haible  <bruno@clisp.org>
20077
20078         poll: Assume ANSI C.
20079         * lib/poll.c (poll): Use an ANSI C declaration.
20080
20081 2010-09-28  Bruno Haible  <bruno@clisp.org>
20082
20083         poll-h: Create poll.h on all platforms.
20084         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
20085         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
20086         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
20087         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
20088         (gl_REPLACE_POLL_H): Don't set POLL_H.
20089         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
20090         * modules/poll-h (Depends-on): Add include_next.
20091         (Makefile.am): Create poll.h unconditionally. Substitute also
20092         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
20093
20094 2010-09-28  Bruno Haible  <bruno@clisp.org>
20095
20096         Tests for module 'poll-h'.
20097         * modules/poll-h-c++-tests: New file.
20098         * tests/test-poll-h-c++.cc: New file.
20099
20100         Tests for module 'poll-h'.
20101         * modules/poll-h-tests: New file.
20102         * tests/test-poll-h.c: New file.
20103
20104 2010-09-28  Bruno Haible  <bruno@clisp.org>
20105
20106         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
20107         * modules/poll-h (Depends-on): Add 'extensions'.
20108
20109 2010-09-28  Bruno Haible  <bruno@clisp.org>
20110
20111         New module 'poll-h'.
20112         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
20113         (poll): Use modern idiom.
20114         * modules/poll-h: New file.
20115         * modules/poll (Files): Remove lib/poll.in.h.
20116         (Depends-on): Add poll-h.
20117         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
20118         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
20119         * m4/poll_h.m4: New file.
20120         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
20121         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
20122         and invoke gl_REPLACE_POLL_H.
20123         * lib/poll.c: Use common idiom.
20124         * tests/test-poll.c: Likewise.
20125         * doc/posix-headers/poll.texi: Mention the poll-h module.
20126         Suggested by Eric Blake.
20127
20128 2010-09-26  Bruno Haible  <bruno@clisp.org>
20129
20130         sys_wait: Implement WSTOPSIG.
20131         * lib/sys_wait.in.h (WSTOPSIG): New macro.
20132         Reported by Simon Josefsson.
20133
20134 2010-09-26  Simon Josefsson  <simon@josefsson.org>
20135
20136         stdlib, sys_wait: Avoid compilation error on mingw.
20137         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
20138
20139 2010-09-26  Bruno Haible  <bruno@clisp.org>
20140
20141         stdlib tests: Avoid code duplication.
20142         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
20143         * modules/sys_wait-tests (Files): Likewise.
20144         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
20145         * tests/test-stdlib.c: Include test-sys_wait.h.
20146         (main): Invoke test_sys_wait_macros.
20147         * tests/test-sys_wait.c: Include test-sys_wait.h.
20148         (main): Invoke test_sys_wait_macros.
20149
20150 2010-09-25  Simon Josefsson  <simon@josefsson.org>
20151
20152         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
20153         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
20154         sure Windows sockets are working before calling getaddrinfo.
20155         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
20156         * doc/gnulib.texi (Windows sockets): Fix typo.
20157
20158 2010-09-25  Bruno Haible  <bruno@clisp.org>
20159
20160         Tests for module 'regex-quote'.
20161         * modules/regex-quote-tests: New file.
20162         * tests/test-regex-quote.c: New file.
20163
20164         New module 'regex-quote'.
20165         * lib/regex-quote.h: New file.
20166         * lib/regex-quote.c: New file.
20167         * modules/regex-quote: New file.
20168         Suggested by Reuben Thomas <rrt@sc3d.org>.
20169
20170 2010-09-24  Bruno Haible  <bruno@clisp.org>
20171
20172         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
20173         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
20174
20175 2010-09-23  Bruno Haible  <bruno@clisp.org>
20176
20177         setenv: Relax license.
20178         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
20179         Blake.
20180         Requested by Eric Blake.
20181
20182 2010-09-22  Bruno Haible  <bruno@clisp.org>
20183
20184         termios: Relax license.
20185         * modules/termios (License): Change to LGPLv2+.
20186         Requested by Eric Blake.
20187
20188 2010-09-22  Bruno Haible  <bruno@clisp.org>
20189
20190         threadlib: Allow the package to change the default to 'no'.
20191         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
20192         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
20193         Reported by Paul Eggert.
20194
20195 2010-09-22  Pádraig Brady  <P@draigbrady.com>
20196             Bruno Haible  <bruno@clisp.org>
20197
20198         Fix endless loop in mbmemcasecoll.
20199         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
20200         byte.
20201         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
20202
20203 2010-09-22  Bruno Haible  <bruno@clisp.org>
20204
20205         Tests for module 'memcoll'.
20206         * modules/memcoll-tests: New file.
20207         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
20208
20209         memcoll, xmemcoll: Clarify size vs. length.
20210         * modules/memcoll.c (memcoll0): Clarify specification.
20211         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
20212         passed to collate_error.
20213
20214 2010-09-22  Bruno Haible  <bruno@clisp.org>
20215
20216         Tests for module 'memcasecmp'.
20217         * modules/memcasecmp-tests: New file.
20218         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
20219
20220 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20221
20222         * lib/pthread.in.h: Add split double-inclusion guard, and include
20223         system <pthread.h> if there is one.  Use @@-style as in other
20224         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
20225         pthread.h doesn't.
20226         (pthread_mutexattr_destroy, pthread_mutexattr_init):
20227         (pthread_mutexattr_settype, pthread_mutex_trylock):
20228         New static inline functions, if there's no system <pthread.h>.
20229         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
20230         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
20231         Approximate with mutexes if the system lacks spinlocks, as in
20232         MacOS.
20233         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
20234         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
20235         @@-style.  Check for spinlocks separately.
20236         (gl_PTHREAD_DEFAULTS): New macro.
20237         * modules/pthread: Redo to use a more typical style for in.h files.
20238
20239 2010-09-21  Eric Blake  <eblake@redhat.com>
20240
20241         net_if: enhance tests
20242         * tests/test-net_if.c (main): Move signature checks earlier.
20243         Print failures to stderr.
20244         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
20245         Document the bug that we do not yet fix.
20246
20247 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20248
20249         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
20250         about gnulib, not GSS.
20251
20252 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20253
20254         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
20255         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
20256         for Emacs.
20257         * build-aux/pmccabe2html: Make Makefile.am example code more
20258         cut-and-paste friendly.
20259
20260 2010-09-21  Simon Josefsson  <simon@josefsson.org>
20261
20262         * tests/test-net_if.c: New file.
20263         * modules/net_if-tests: New file.
20264
20265 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20266
20267         pthread: add pthread_spin_destroy
20268         * lib/pthread.in.h (pthread_spin_destroy): New function.
20269
20270 2010-09-19  Bruno Haible  <bruno@clisp.org>
20271
20272         gnulib-tool: Fix --help output.
20273         * gnulib-tool (func_usage): Fix help message.
20274         Reported by Reuben Thomas <rrt@sc3d.org>.
20275
20276 2010-09-18  Jim Meyering  <meyering@redhat.com>
20277
20278         maint.mk: avoid unexpanded \n in two diagnostics
20279         * top/maint.mk (sc_prohibit_always_true_header_tests):
20280         Don't use a literal \n in a halt=... assignment.  It would not be
20281         expanded, and the two \n bytes would appear in the diagnostic output
20282         rather than the desired newline.  Use halt=$$(printf ... instead.
20283         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20284
20285 2010-09-18  Bruno Haible  <bruno@clisp.org>
20286
20287         netinet_in: Doc tweak.
20288         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
20289         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20290
20291 2010-09-18  Jim Meyering  <meyering@redhat.com>
20292
20293         init.sh: correct an outdated comment
20294         * tests/init.sh (create_exe_shims_):  s/function/alias/
20295
20296         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
20297         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
20298         a file named "*.exe" is removed between the glob expansion and the
20299         processing of that oddly named file.
20300
20301 2010-09-17  Eric Blake  <eblake@redhat.com>
20302
20303         mirbsd: add some more support
20304         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
20305         in BSD family.
20306         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
20307         devices as OpenBSD.
20308         * m4/host-os.m4 (mirbsd): Add MirBSD.
20309
20310         tests: fix unportable assumption on sys/wait.h
20311         * tests/test-sys_wait.c (main): Relax test.
20312         * tests/test-stdlib.c (main): Likewise.
20313
20314         init.sh: accomodate directory with no .exes
20315         * tests/init.sh: Accomodate directory containing only scripts.
20316
20317         tests: avoid compiler warning
20318         * tests/test-stdlib.c (main): Use the variable.
20319
20320         fdutimens, fdutimensat: update signature, again
20321         * lib/utimens.h (gl_futimens): Delete, and move signature...
20322         (fdutimens): ...here.
20323         (fdutimensat): Rearrange signature.
20324         (lutimensat): Rename variable for clarity.
20325         * lib/fdutimensat.c (fdutimensat): Update signature.
20326         * lib/utimens.c (fdutimens): Likewise.
20327         (gl_futimens): Delete.
20328         (utimens, lutimens): Update callers.
20329         * lib/futimens.c (futimens): Likewise.
20330         * tests/test-fdutimensat.c: Likewise.
20331         * tests/test-utimens.c: Likewise.
20332         * tests/test-futimens.h: Update comment.
20333         * NEWS: Mention this.
20334         Suggested by Paul Eggert.
20335
20336 2010-09-17  Bruno Haible  <bruno@clisp.org>
20337
20338         Take over the maintenance of some older macros from Autoconf.
20339         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
20340         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
20341         GNU Autoconf.
20342         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
20343         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
20344
20345 2010-09-17  Eric Blake  <eblake@redhat.com>
20346
20347         fdutimensat: drop atflag validation
20348         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
20349         with valid fd, to close a race scenario where futimens is
20350         unsupported and FILE was replaced by a symlink.
20351         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
20352         accordingly.
20353         Suggested by Paul Eggert.
20354
20355 2010-09-16  Bruno Haible  <bruno@clisp.org>
20356
20357         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20358         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20359
20360 2010-09-16  Bruno Haible  <bruno@clisp.org>
20361
20362         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20363         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20364         login_tty exists.
20365         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20366
20367 2010-09-16  Bruno Haible  <bruno@clisp.org>
20368
20369         login_tty: Make the replacement code work on BSD systems.
20370         * lib/login_tty.c: Include <sys/ioctl.h>.
20371         (login_tty): Use ioctl TIOCSCTTY when available.
20372         * modules/login_tty (Depends-on): Add sys_ioctl.
20373         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20374
20375 2010-09-16  Bruno Haible  <bruno@clisp.org>
20376
20377         login_tty: Stricter unit test.
20378         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20379         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
20380         and tcgetsid() after login_tty.
20381         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20382
20383 2010-09-16  Bruno Haible  <bruno@clisp.org>
20384
20385         New module 'tcgetsid'.
20386         * lib/tcgetsid.c: New file.
20387         * m4/tcgetsid.m4: New file.
20388         * modules/tcgetsid: New file.
20389         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20390         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20391         GNULIB_TCGETSID, HAVE_TCGETSID.
20392         * lib/termios.in.h: Include <sys/types.h>.
20393         (tcgetsid): New declaration.
20394         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
20395         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
20396         * doc/posix-functions/tcgetsid.texi: Mention the new module.
20397         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
20398
20399 2010-09-16  Bruno Haible  <bruno@clisp.org>
20400
20401         Tests for module 'termios'.
20402         * modules/termios-c++-tests: New file.
20403         * modules/termios-tests: New file.
20404         * tests/test-termios-c++.cc: New file.
20405         * tests/test-termios.c: New file.
20406
20407         New module 'termios'.
20408         * modules/termios: New file.
20409         * lib/termios.in.h: New file.
20410         * m4/termios_h.m4: New file.
20411         * doc/posix-headers/termios.texi: Mention the new module.
20412
20413 2010-09-16  Eric Blake  <eblake@redhat.com>
20414
20415         fdutimensat: add an atflag parameter
20416         * lib/fdutimensat.c (fdutimensat): Add new parameter.
20417         * lib/utimens.h (fdutimensat): Update prototype.
20418         * tests/test-fdutimensat.c: Adjust test to match.
20419         * NEWS: Document the change.
20420         Suggested by Paul Eggert.
20421
20422 2010-09-16  Bruno Haible  <bruno@clisp.org>
20423
20424         Fix typos in comments.
20425         * lib/striconveh.h: Fix typo in comment.
20426         * lib/login_tty.c (login_tty): Likewise.
20427
20428 2010-09-15  Bruno Haible  <bruno@clisp.org>
20429
20430         stdlib: clarify MirBSD WEXITSTATUS bug
20431         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
20432         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20433
20434 2010-09-15  Eric Blake  <eblake@redhat.com>
20435
20436         stdlib: work around MirBSD WEXITSTATUS bug
20437         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
20438         * modules/stdlib (Depends-on): Add sys_wait.
20439         * tests/test-sys_wait.c (main): Enhance test.
20440         * tests/test-stdlib.c (main): Likewise.
20441         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
20442
20443         docs: mention MacOS issue with WEXITSTATUS(constant)
20444         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
20445         issue.
20446         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20447
20448         strnlen: add tests
20449         * modules/strnlen-tests: New file.
20450         * tests/test-strnlen.c: Likewise.
20451
20452 2010-09-14  Bruno Haible  <bruno@clisp.org>
20453
20454         unistr/base: Avoid link errors when module 'libunistring' is also used.
20455         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
20456         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
20457         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
20458         Declare also when HAVE_LIBUNISTRING is set.
20459         Reported by Pádraig Brady <P@draigbrady.com>.
20460
20461 2010-09-14  Eric Blake  <eblake@redhat.com>
20462
20463         test-rawmemchr: make more robust
20464         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
20465         (Depends-on, configure.ac): Add needed prerequisites to use it.
20466         * modules/memchr-tests (Files, Depends-on, configure.ac):
20467         Likewise, to avoid implicit reliance on memchr module prereqs.
20468         * tests/test-memchr.c (main): Ensure proper masking.
20469         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
20470         reads.
20471
20472         memchr: detect glibc Alpha bug
20473         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20474         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20475         Alpha.
20476         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20477         * tests/test-memchr.c (main): Enhance test.
20478         Reported by Nelson H. F. Beebe.
20479
20480 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20481
20482         fts, getcwd, glob: audit for dirfd returning -1
20483         * lib/fts.c (opendir): Remove #define; no longer used.
20484         (opendirat): New arg PDIR_FD.  All callers changed.
20485         (fts_build, _opendir2): Use new opendirat to avoid the need for
20486         dirfd, or for checking whether dirfd returns a negative value.
20487         Don't use opendir; always use openat followed by fdopendir.
20488         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20489         it.
20490         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20491         returns -1 here.
20492         * modules/fts (Depends-on): Remove dirfd.
20493         * modules/getcwd (Depends-on): Likewise.
20494
20495 2010-09-13  Eric Blake  <eblake@redhat.com>
20496
20497         float: fix broken MirBSD header
20498         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20499         * doc/posix-headers/float.texi (float.h): Document it.
20500
20501 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20502
20503         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20504         * lib/fts.c (opendirat): New arg extra_flags.
20505         (__opendir2): Use it to avoid following symlinks when opening
20506         a directory, if symlinks are not supposed to be followed.  See
20507         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20508
20509         fdopendir: preserve argument fd before returning
20510         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20511         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20512         (fdopendir): Use them, arranging for FD to be open to the same
20513         directory that it was when it started.  (It might be temporarily
20514         closed while fdopendir is running, so this not thread- or
20515         signal-safe.)  Be careful to do the right thing even when file
20516         descriptors are scarce and dup fails with errno == EMFILE.  See
20517         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20518
20519 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20520
20521         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20522         * NEWS: Document change.
20523         * m4/regex.m4: Disable test for regoff_t size.
20524
20525 2010-09-13  Jim Meyering  <meyering@redhat.com>
20526
20527         fts: don't operate on an invalid file descriptor after failed dup
20528         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20529         negative file descriptor.
20530
20531 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20532
20533         savedir: add streamsavedir, deprecate fdsavedir
20534         * NEWS: Mention deprecation of fdsavedir.
20535         * lib/savedir.c (streamsavedir): New extern function, whose name
20536         ends in "savedir" to be consistent with the others.  This differs
20537         from savedirstream in that it doesn't close its argument.  The
20538         next version of GNU tar will use this instead of fdsavedir, to
20539         avoid some race conditions and conserve file descriptors.
20540         (savedirstream): Reimplement as a wrapper around streamsavedir.
20541         (fdsavedir): Add a comment deprecating this function.  As far as
20542         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20543         * lib/savedir.h (streamsavedir): New decl.
20544         (fdsavedir): Add a comment deprecating this.
20545
20546 2010-09-10  Bruno Haible  <bruno@clisp.org>
20547
20548         langinfo: Fix last commit.
20549         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20550         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20551         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20552
20553 2010-09-10  Bruno Haible  <bruno@clisp.org>
20554
20555         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20556         * lib/progreloc.c (O_EXEC): Define fallback.
20557
20558 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20559
20560         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20561         * NEWS: Document recent changes to fcntl-h.
20562         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20563         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20564         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20565         Similarly for O_SEARCH; this last was already true, but not documented.
20566         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20567         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20568         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20569         Likewise.
20570         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20571         is zero, not whether it is defined.
20572         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20573         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20574         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20575
20576 2010-09-10  Bruno Haible  <bruno@clisp.org>
20577
20578         langinfo, nl_langinfo: Fix for IRIX 5.3.
20579         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20580         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20581         HAVE_LANGINFO_YESEXPR.
20582         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20583         HAVE_LANGINFO_YESEXPR.
20584         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20585         HAVE_LANGINFO_T_FMT_AMPM is 0.
20586         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20587         HAVE_LANGINFO_YESEXPR is 0.
20588         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20589         NOEXPR.
20590         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20591         * doc/posix-functions/nl_langinfo.texi: Likewise.
20592         Reported by Eric Blake.
20593
20594 2010-09-10  Bruno Haible  <bruno@clisp.org>
20595
20596         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20597         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20598         on FreeBSD 8.0 and OpenBSD 4.6.
20599         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20600         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20601         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20602         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20603         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20604         ac_includes_default.
20605         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20606
20607 2010-09-09  Eric Blake  <eblake@redhat.com>
20608
20609         strsignal: work around NetBSD bug
20610         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20611         * lib/string.in.h (includes): Likewise.
20612         * doc/posix-functions/strsignal.texi (strsignal): Document the
20613         bug.
20614         Reported by Nelson H. F. Beebe.
20615
20616         gnulib-tool: work with NetBSD /bin/sh
20617         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20618         (func_get_description, func_get_comment, func_get_status)
20619         (func_get_notice, func_get_applicability, func_get_filelist)
20620         (func_get_dependencies, func_get_autoconf_early_snippet)
20621         (func_get_autoconf_snippet, func_get_automake_snippet)
20622         (func_get_include_directive, func_get_link_directive)
20623         (func_get_license, func_get_maintainer, func_import): Avoid
20624         shell syntax errors from parsing syntax extensions.
20625
20626 2010-09-09  Bruno Haible  <bruno@clisp.org>
20627
20628         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20629         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20630         a reliable way to determine whether the 'alias' command works.
20631
20632 2010-09-08  Jim Meyering  <meyering@redhat.com>
20633
20634         init.sh: penalize a set-x-impaired shell; don't disqualify it
20635         * tests/init.sh: Too many shells corrupt application stderr when
20636         you set -x, so we can't afford to disqualify them, since at least
20637         on Irix-6.5, that would disqualify all bourne shells.
20638         Instead, use a two-pass approach.
20639         On the first pass, try to find a shell that meets the stricter
20640         condition that set -x does not corrupt stderr.
20641         If no shell meets the stricter condition, retest each candidate
20642         shell, but without that extra condition.  Finally, when
20643         VERBOSE=yes is requested and set -x might cause trouble, simply
20644         issue a warning and refrain from enabling debug output.
20645
20646 2010-09-08  Eric Blake  <eblake@redhat.com>
20647
20648         unsetenv: fix OpenBSD bug
20649         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20650         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20651         documentation.
20652         Reported by Jim Meyering.
20653
20654         strtod: work around IRIX 6.5 bug
20655         * lib/strtod.c (strtod): Reparse number on shorter string if
20656         exponent parse was invalid.
20657         * tests/test-strtod.c (main): Add check for "0x1p 2".
20658         Reported by Tom G. Christensen.
20659
20660         getopt: optimize previous patch
20661         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20662         empty variable.  Speed up awk script.
20663         Reported by Paolo Bonzini.
20664
20665 2010-09-08  Jim Meyering  <meyering@redhat.com>
20666
20667         test.sh: disqualify shells for which set -x corrupts stderr
20668         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20669         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20670         appear in stderr output.  For example, this command:
20671             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20672         prints "P=1" on those two systems:
20673
20674 2010-09-08  Bruno Haible  <bruno@clisp.org>
20675
20676         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20677         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20678         commands, because some shells ignore redirections when there is an
20679         error in the command lookup.
20680         Reported by Eric Blake.
20681
20682 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20683
20684         * lib/regex.h: Fix a mention of `regex_compile' (should be
20685         `re_compile_pattern').
20686         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20687         (re_set_registers): Correct name of parameter in comment.
20688
20689         * doc/regex.texi: Add documentation for missing syntax flags.
20690         Remove commented-out documentation of defunct syntax option
20691         RE_NO_EMPTY_ALTS.
20692         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20693         Add documentation of re_set_registers.
20694         Document trick to re-use a pattern buffer by setting fastmap manually.
20695         Update documentation of struct re_pattern_buffer per public members.
20696         Uncomment documentation of equivalence class operators and
20697         collating symbol operators, since they are now implemented,
20698         Explain leftmost-longest matching in relation to alternatives.
20699         Tidy documentation of substring matching.
20700         Remove POSIX documentation, which is done better in
20701         glibc, and refer the reader there. Keep BSD API documentation, as
20702         that is not readily available elsewhere.
20703
20704 2010-09-07  Eric Blake  <eblake@redhat.com>
20705
20706         getopt: handle POSIXLY_CORRECT set but not exported
20707         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20708         export state of POSIXLY_CORRECT, due to bash set -o posix.
20709         Reported by Dustin J. Mitchell.
20710
20711 2010-09-05  Bruno Haible  <bruno@clisp.org>
20712
20713         gnulib-tool: Highlight the changed options.
20714         * gnulib-tool (func_usage): Display the --import, --add-import,
20715         --remove-import explanations in bold font.
20716
20717 2010-09-06  Karl Berry  <karl@gnu.org>
20718
20719         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20720
20721 2010-09-05  Bruno Haible  <bruno@clisp.org>
20722
20723         uniwidth/width: Update comment.
20724         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20725         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20726
20727 2010-09-05  Bruno Haible  <bruno@clisp.org>
20728
20729         isinf, isnan: Relax license.
20730         * modules/isinf (License): Change from GPL to LGPL, with consent from
20731         Ben Pfaff.
20732         * modules/isnan (License): Likewise.
20733         Requested by Ludovic Courtès.
20734
20735 2010-09-04  Bruno Haible  <bruno@clisp.org>
20736
20737         gnulib-tool: Help migration from --import to --add-import or --update.
20738         * gnulib-tool: Emit a verbose error message when --import is used
20739         without any module name.
20740
20741 2010-09-04  Bruno Haible  <bruno@clisp.org>
20742
20743         Update doc about gnulib-tool.
20744         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20745         'gnulib-tool --update' in more detail.
20746         Reported by Eric Blake.
20747
20748 2010-09-04  Bruno Haible  <bruno@clisp.org>
20749
20750         gnulib-tool: Change --import. New options --add/remove-import.
20751         * gnulib-tool: New options --add-import, --remove-import.
20752         (func_usage): Document them.
20753         (have_associative): Define always.
20754         (func_import): In import mode, don't merge the specified settings with
20755         the cached settings. Implement remove-import mode.
20756         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20757         Explain when to use them versus --import.
20758         (Simple update): Use --add-import instead of --import.
20759         * NEWS: Mention the change.
20760
20761 2010-09-04  Bruno Haible  <bruno@clisp.org>
20762
20763         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20764         separate gnulib.mk.
20765
20766 2010-09-04  Bruno Haible  <bruno@clisp.org>
20767
20768         gnulib-tool: Don't talk about CVS any more.
20769         * gnulib-tool (func_usage, func_import): Write "version control"
20770         instead of CVS.
20771
20772 2010-09-04  Jim Meyering  <meyering@redhat.com>
20773
20774         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20775         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20776         false positives (whose names may be ill-chosen) when searching
20777         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20778         would cause a false-positive.
20779
20780         avoid coreutils "make distcheck" failure
20781         Coreutils tests with an absolute build directory name that contains
20782         a space.  Not quoting this directory name caused a failure.
20783         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20784         * tests/test-vc-list-files-cvs.sh: Likewise.
20785
20786 2010-09-04  Bruno Haible  <bruno@clisp.org>
20787
20788         gnulib-tool: Avoid error when run in a package without Makefile.am.
20789         * gnulib-tool: When collecting the m4dirs in a package that does not
20790         have a Makefile.am, eliminate those directories that contain no
20791         gnulib-cache.m4. Fix expression that counts these directories.
20792
20793 2010-09-04  Bruno Haible  <bruno@clisp.org>
20794
20795         update-copyright test: Improve output when perl is missing or too old.
20796         * tests/test-update-copyright.sh: Move test of Perl version down after
20797         the test whether Perl exists. Provide an explanation relating Perl's
20798         error message to Automake's SKIP: message.
20799
20800 2010-09-04  Bruno Haible  <bruno@clisp.org>
20801
20802         Don't augment PATH in TESTS_ENVIRONMENT.
20803         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20804         set abs_aux_dir instead of augmenting PATH.
20805         * modules/vc-list-files-tests (Makefile.am): Likewise.
20806         * tests/test-update-copyright.sh: Augment PATH here.
20807         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20808         path_prepend_.
20809         * tests/test-vc-list-files-git.sh: Likewise.
20810
20811 2010-09-04  Jim Meyering  <meyering@redhat.com>
20812
20813         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20814         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20815
20816 2010-09-04  Bruno Haible  <bruno@clisp.org>
20817
20818         strdup: Fix compilation error in C++ mode.
20819         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20820         the macro.
20821
20822 2010-09-04  Bruno Haible  <bruno@clisp.org>
20823
20824         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20825         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20826         macro into a function.
20827         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20828
20829 2010-09-04  Bruno Haible  <bruno@clisp.org>
20830
20831         Set PATH_SEPARATOR the same way autoconf does.
20832         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20833         the value of PATH_SEPARATOR the same way autoconf-generated configure
20834         scripts do.
20835         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20836         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20837
20838 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20839
20840         Set PATH_SEPARATOR the same way autoconf does.
20841         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20842         the same way autoconf-generated configure scripts do.
20843         * posix-modules: Likewise.
20844
20845 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20846
20847         hash: fix safe_hasher const typo
20848         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20849         const; otherwise, there is a type error later.
20850
20851 2010-09-02  Jim Meyering  <meyering@redhat.com>
20852
20853         test-update-copyright.sh: require perl 5.8.0
20854         * tests/test-update-copyright.sh: Require 5.8.0,
20855         which Tom G. Christensen has confirmed is adequate,
20856         while 5.6.1 is not.
20857
20858 2010-09-02  Eric Blake  <eblake@redhat.com>
20859
20860         tests: init.sh improvements for re-exec'ing with zsh
20861         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20862         -vx through shell re-exec.
20863         Reported by Tom G. Christensen.
20864
20865         wctype: fix typo in previous commit
20866         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20867         Reported by Ludovic Courtès.
20868
20869 2010-09-02  Jim Meyering  <meyering@redhat.com>
20870
20871         test-update-copyright.sh: skip test if Perl is too old
20872         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20873         Reported by Tom G. Christensen.
20874
20875 2010-09-02  Bruno Haible  <bruno@clisp.org>
20876
20877         wctype: Avoid compilation error on IRIX 6.5.30.
20878         * lib/wctype.in.h (iswblank): Declare with a replacement if
20879         REPLACE_ISWBLANK is set.
20880         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20881         declared. Set REPLACE_ISWBLANK.
20882         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20883         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20884         * doc/posix-headers/wctype.texi: Likewise.
20885         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20886
20887 2010-09-01  Bruno Haible  <bruno@clisp.org>
20888
20889         New module 'socketlib'.
20890         * modules/socketlib: New file.
20891         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20892         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20893         * modules/sockets (Depends-on): Add socketlib.
20894         Suggested by Sam Steingold <sds@gnu.org>.
20895
20896 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20897
20898         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20899
20900         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20901         when one needs search access to a directory but not read access.
20902         On systems where it is available, it works in some cases where
20903         O_RDONLY does not, namely on directories that are searchable but
20904         not readable, and which need only to be searchable.  If O_SEARCH
20905         is not available, fall back to the traditional method of using
20906         O_RDONLY.
20907
20908         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20909         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20910         when opening a directory that needs only to be searchable.
20911         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20912         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20913         * lib/openat-proc.c (openat_proc_name): Likewise.
20914         * lib/openat.c (openat_needs_fchdir): Likewise.
20915         * lib/save-cwd.c (save_cwd): Likewise.
20916         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20917
20918 2010-08-28  Bruno Haible  <bruno@clisp.org>
20919
20920         New module 'host-cpu-c-abi'.
20921         * modules/host-cpu-c-abi: New file.
20922         * m4/host-cpu-c-abi.m4: New file, based on part of
20923         clisp/src/m4/general.m4.
20924         Requested by Sam Steingold <sds@gnu.org>.
20925
20926 2010-08-31  Eric Blake  <eblake@redhat.com>
20927         and Jim Meyering  <meyering@redhat.com>
20928
20929         hash: factor, and guard against misbehaving hasher function
20930         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20931         of table->hasher's return value.  Also protect against a hash value
20932         so large that adding it to table->bucket results in a NULL pointer.
20933         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20934         Use it in place of open-coded check-and-abort.
20935
20936 2010-08-30  Bruno Haible  <bruno@clisp.org>
20937
20938         hash: silence spurious clang warning
20939         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20940         Reported by Eric Blake.
20941
20942 2010-08-30  Eric Blake  <eblake@redhat.com>
20943
20944         strstr, memmem, strcasestr: avoid leaked shell message
20945         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20946         FreeBSD.
20947         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20948         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20949
20950         tests: silence clang warning
20951         * tests/test-malloca.c (do_allocation): Avoid dead store.
20952
20953 2010-08-29  Bruno Haible  <bruno@clisp.org>
20954
20955         gettext: Fix recent mistake.
20956         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20957
20958 2010-08-29  Bruno Haible  <bruno@clisp.org>
20959
20960         selinux-h: Offer a --without-selinux option.
20961         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20962         --without-selinux was specified, skip all tests and define
20963         HAVE_SELINUX_SELINUX_H to 0.
20964         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20965         set LIB_SELINUX to empty.
20966         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20967         gl_LIBSELINUX. If --without-selinux was specified, replace
20968         selinux/context.h.
20969         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20970
20971 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20972             Bruno Haible  <bruno@clisp.org>
20973
20974         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20975         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20976         of HAVE_REALLOC.
20977         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20978         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20979         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20980         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20981
20982 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20983             Bruno Haible  <bruno@clisp.org>
20984
20985         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20986         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20987         HAVE_CALLOC.
20988         * lib/xmalloc.c: Update accordingly.
20989         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20990         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20991         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20992
20993 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20994             Bruno Haible  <bruno@clisp.org>
20995
20996         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20997         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20998         HAVE_MALLOC.
20999         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
21000         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
21001         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21002
21003 2010-08-29  Bruno Haible  <bruno@clisp.org>
21004
21005         Update modules list.
21006         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21007         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
21008         (String handling <string.h>): Add astrxfrm.
21009         (File system functions): Add readlinkat.
21010
21011 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21012
21013         Tests for module 'realloc-gnu'.
21014         * modules/realloc-gnu-tests: New file.
21015         * tests/test-realloc-gnu.c: New file.
21016
21017         Tests for module 'calloc-gnu'.
21018         * modules/calloc-gnu-tests: New file.
21019         * tests/test-calloc-gnu.c: New file.
21020
21021         Tests for module 'malloc-gnu'.
21022         * modules/malloc-gnu-tests: New file.
21023         * tests/test-malloc-gnu.c: New file.
21024
21025 2010-08-28  Bruno Haible  <bruno@clisp.org>
21026
21027         Rename module 'realloc' -> 'realloc-gnu'.
21028         * modules/realloc-gnu: New file, copied from modules/realloc.
21029         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
21030         obsolete.
21031         * modules/mgetgroups (Depends-on): Update.
21032         * doc/posix-functions/realloc.texi: Update.
21033         * NEWS: Mention the change.
21034
21035         Rename module 'calloc' -> 'calloc-gnu'.
21036         * modules/calloc-gnu: New file, copied from modules/calloc.
21037         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
21038         obsolete.
21039         * doc/posix-functions/calloc.texi: Update.
21040         * NEWS: Mention the change.
21041
21042         Rename module 'malloc' -> 'malloc-gnu'.
21043         * modules/malloc-gnu: New file, copied from modules/malloc.
21044         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
21045         obsolete.
21046         * modules/argp (Depends-on): Update.
21047         * modules/regex (Depends-on): Update.
21048         * doc/posix-functions/malloc.texi: Update.
21049         * NEWS: Mention the change.
21050
21051 2010-08-28  Eric Blake  <eblake@redhat.com>
21052
21053         pread, pwrite: add missing dependency
21054         * modules/pread (Depends-on): Add extensions.
21055         * modules/pwrite (Depends-on): Likewise.
21056
21057 2010-08-28  Bruno Haible  <bruno@clisp.org>
21058
21059         unistr/u*-strchr: Fix tests dependencies.
21060         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
21061         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
21062         Reported by Ian Beckwith <ianb@erislabs.net>.
21063
21064 2010-08-28  Bruno Haible  <bruno@clisp.org>
21065
21066         read-file: Don't occupy too much unused memory.
21067         * lib/read-file.c (fread_file): Shrink the buffer at the end.
21068
21069 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
21070             Eric Blake  <eblake@redhat.com>
21071             Bruno Haible  <bruno@clisp.org>
21072
21073         read-file: Avoid memory reallocations with regular files.
21074         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
21075         (fread_file): With regular files, use the remaining length as the
21076         initial buffer size.  Check against overflow.
21077         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
21078         sys_stat.
21079
21080 2010-08-28  Bruno Haible  <bruno@clisp.org>
21081
21082         ftello: Relax license.
21083         * modules/ftello (License): Relax to LGPLv2+.
21084         Reported by Eric Blake.
21085
21086 2010-08-28  Bruno Haible  <bruno@clisp.org>
21087
21088         Avoid relocwrapper link errors due to gnulib replacement functions.
21089         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
21090         function.
21091         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21092
21093 2010-08-28  Bruno Haible  <bruno@clisp.org>
21094
21095         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
21096         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
21097         defined.
21098         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
21099         Suggested by Eric Blake.
21100
21101 2010-08-28  Bruno Haible  <bruno@clisp.org>
21102
21103         sys_socket, netdb: Ensure socklen_t gets defined.
21104         * modules/sys_socket (Depends-on): Add socklen.
21105         * modules/netdb (Depends-on): Likewise.
21106         * modules/getaddrinfo (Depends-on): Remove socklen.
21107         * modules/getsockopt (Depends-on): Likewise.
21108         * modules/setsockopt (Depends-on): Likewise.
21109         * tests/test-sys_socket.c: Check that socklen_t is defined.
21110         * tests/test-netdb.c: Likewise.
21111         * m4/socklen.m4: Update comments.
21112         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21113
21114 2010-08-27  Eric Blake  <eblake@redhat.com>
21115
21116         login_tty: add missing dependency
21117         * modules/login_tty (Depends-on): Add pty.
21118
21119 2010-08-26  Eric Blake  <eblake@redhat.com>
21120
21121         lib-symbol-versions: fix m4 quoting
21122         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
21123         format for AC_LINK_IFELSE.
21124
21125         glob: fix compile test
21126         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
21127
21128         btowc: fix missing file
21129         * modules/btowc (Files): Also ship locale-fr.m4.
21130
21131         lseek: fix link test
21132         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
21133         AC_LINK_IFELSE.
21134
21135         include_next: silence autoconf 2.68 warning
21136         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
21137         AC_COMPILE_IFELSE as special.
21138         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
21139         autoconf < 2.68.
21140
21141         acl: fix compilation test
21142         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
21143         AC_COMPILE_IFELSE.
21144
21145 2010-08-26  Bruno Haible  <bruno@clisp.org>
21146
21147         Modernize AC_TRY_RUN invocations.
21148         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
21149         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21150         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
21151         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
21152         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21153         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21154         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21155         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21156         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21157         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21158         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21159         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21160         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21161         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21162         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21163         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21164         gl_MBRLEN_NUL_RETVAL): Likewise.
21165         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21166         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21167         Likewise.
21168         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21169         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21170         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21171         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21172         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21173         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21174         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
21175         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21176         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
21177         Likewise.
21178         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21179         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
21180         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21181         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21182         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21183         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
21184         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21185         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
21186         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21187         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21188
21189 2010-08-26  Bruno Haible  <bruno@clisp.org>
21190
21191         Modernize AC_TRY_LINK invocations.
21192         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
21193         AC_TRY_LINK.
21194         * m4/argp.m4 (gl_ARGP): Likewise.
21195         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
21196         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21197         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
21198         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21199         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21200         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
21201         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
21202         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21203         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21204         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21205         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21206         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
21207         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
21208         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21209         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21210         * m4/hostent.m4 (gl_HOSTENT): Likewise.
21211         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21212         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
21213         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21214         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
21215         Likewise.
21216         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
21217         Likewise.
21218         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
21219         Likewise.
21220         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21221         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
21222         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
21223         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21224         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
21225         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21226         * m4/servent.m4 (gl_SERVENT): Likewise.
21227         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21228         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
21229         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
21230         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
21231         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21232         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21233         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21234         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21235         * modules/tsearch-tests (configure.ac): Likewise.
21236
21237 2010-08-26  Bruno Haible  <bruno@clisp.org>
21238
21239         Modernize AC_TRY_COMPILE invocations.
21240         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
21241         AC_TRY_COMPILE.
21242         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
21243         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
21244         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21245         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21246         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21247         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21248         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21249         * m4/lock.m4 (gl_LOCK): Likewise.
21250         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
21251         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21252         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
21253         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21254         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21255         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
21256         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21257         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
21258         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21259         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21260         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21261         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21262         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
21263         extraneous semicolon.
21264
21265 2010-08-26  Jim Meyering  <meyering@redhat.com>
21266
21267         stat-time: relax license LGPL
21268         * modules/stat-time (License): Change from GPL to LGPL,
21269         with consent from all contributors, for use in libguile.
21270         Requested by Ludovic Courtès.
21271
21272 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
21273
21274         poll: return immediately on POLLHUP.
21275         * lib/poll.c (poll): Always set timeout before wait_timeout is
21276         computed.
21277
21278 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21279
21280         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
21281         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
21282         rmdir ("dir/.//"), unlinkat.
21283
21284 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21285
21286         stdbool: avoid spurious failure with modern xlc
21287         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21288
21289 2010-08-24  Bruno Haible  <bruno@clisp.org>
21290
21291         getloadavg: simplify code
21292         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
21293         gl_have_func. Update comments.
21294
21295 2010-08-24  Eric Blake  <eblake@redhat.com>
21296
21297         getloadavg: don't define SVR4 on cygwin
21298         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
21299         only define SVR4 when -lkvm is required.
21300         Reported by Yaakov Selkowitz.
21301
21302 2010-08-24  Bruno Haible  <bruno@clisp.org>
21303
21304         priv-set: fix comment
21305         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
21306
21307 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21308
21309         priv-set: fix comments
21310         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
21311         to match code, as suggested by David Bartley in:
21312         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
21313
21314 2010-08-23  Eric Blake  <eblake@redhat.com>
21315
21316         stdbool: avoid rejecting clang
21317         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21318         * tests/test-stdbool.c: Enable more tests if using the system
21319         <stdbool.h> instead of the gnulib replacement.
21320         (main): Move xlc bug test to a runtime test for all compilers.
21321         Reported by Anders Kaseorg.
21322
21323         argz: fix shell quoting issue
21324         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
21325         Reported by Charles Wilson.
21326
21327 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
21328             Erik Faye-Lund <kusmabite@gmail.com>
21329
21330         poll, select: handle ERROR_BROKEN_PIPE.
21331         * lib/poll.c (win32_compute_revents): Return POLLHUP when
21332         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21333         * lib/select.c (win32_compute_revents): Do not mark a pipe
21334         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21335
21336 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
21337
21338         fts: allow compilation with C++
21339         * lib/fts_.h: Specify extern "C" linkage with C++.
21340
21341 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21342
21343         Fix gnulib-tool sed script de-commentation for AIX sed.
21344         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
21345         sed.
21346
21347 2010-08-17  Eric Blake  <eblake@redhat.com>
21348
21349         test-stddef: test for (some) offsetof bugs
21350         * tests/test-stddef.c: Enhance test to ensure correct type of
21351         offsetof.
21352         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
21353         that we are not fixing at this time.
21354
21355 2010-08-15  Bruno Haible  <bruno@clisp.org>
21356
21357         stpncpy: Allow stpncpy to be defined as a macro.
21358         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21359         if it's already correctly declared.
21360         * lib/string.in.h (stpncpy): Undefine before redefining.
21361         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21362
21363 2010-08-14  Bruno Haible  <bruno@clisp.org>
21364
21365         Rename module 'memxfrm' to 'amemxfrm'.
21366         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21367         (amemxfrm): Renamed from memxfrm.
21368         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21369         (amemxfrm): Renamed from memxfrm.
21370         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21371         * NEWS: Mention the change.
21372         * MODULES.html.sh (String handling <string.h>): Update.
21373         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21374         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21375         * lib/unicase/u16-casexfrm.c: Likewise.
21376         * lib/unicase/u32-casexfrm.c: Likewise.
21377         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21378         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21379         * lib/uninorm/u16-normxfrm.c: Likewise.
21380         * lib/uninorm/u32-normxfrm.c: Likewise.
21381         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21382         memxfrm.
21383         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21384         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21385         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21386         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
21387         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21388         Suggested by Paul Eggert.
21389
21390 2010-08-14  Bruno Haible  <bruno@clisp.org>
21391
21392         Tests for module 'astrxfrm'.
21393         * modules/astrxfrm-tests: New file.
21394         * tests/test-astrxfrm.c: New file.
21395
21396         New module 'astrxfrm'.
21397         * lib/astrxfrm.h: New file.
21398         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
21399         * modules/astrxfrm: New file.
21400
21401 2010-08-14  Reuben Thomas <rrt@sc3d.org>
21402
21403         regex: Tweak doc.
21404         * doc/regex.texi (Overview): Don't mention regex.c.
21405         (GNU Regular Expression Compiling): Likewise.
21406         (Match-end-of-line Operator): Mention 'not_eol'.
21407
21408 2010-08-14  Brian Gough  <bjg@gnu.org>
21409             Bruno Haible  <bruno@clisp.org>
21410
21411         git-merge-changelog: add doc relating to use with bzr and hg.
21412         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
21413
21414 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
21415
21416         pthread: fix pthread.h creation for srcdir != builddir
21417         * modules/pthread (Makefile.am): Fix the rule to work also in a
21418         non-srcdir build.
21419
21420 2010-08-13  Karl Berry  <karl@gnu.org>
21421
21422         * doc/regex.texi (Predefined Syntaxes): @smallexample.
21423         * doc/posix-*/*: force line break before @url of POSIX
21424         specifications.
21425         Suggested by Werner Lemberg.
21426
21427 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21428
21429         strtod: fix const diagnostic
21430         * lib/strtod.c (strtod): Don't assign const char * to char *,
21431         as this elicits a warning from GCC when warnings are enabled.
21432
21433 2010-08-10  Pádraig Brady <P@draigbrady.com>
21434         and Eric Blake  <eblake@redhat.com>
21435
21436         copy-acl: ignore ENOTSUP on HP-UX
21437         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
21438         so that it is available for HP-UX.
21439         * lib/copy-acl.c (qcopy_acl): Use it.
21440         Reported by Patrick M. Callahan.
21441
21442 2010-08-10  Eric Blake  <eblake@redhat.com>
21443
21444         open, chown: relax license
21445         * modules/open (License): Change to LGPLv2+, with consent by all
21446         authors, for use in augeas.
21447         * modules/chown (License): Likewise.
21448         * modules/lchown (Likewise): Likewise.
21449         Requested by Adam Stokes.
21450
21451 2010-08-09  Karl Berry  <karl@gnu.org>
21452
21453         * build-aux/ar-lib: new file, import from Automake.
21454         * config/srclist.txt: autocheck for updates.
21455
21456 2010-08-09  Eric Blake  <eblake@redhat.com>
21457
21458         readlinkat: adjust client modules
21459         * modules/areadlinkat (Depends-on): Use readlinkat, not
21460         symlinkat.
21461         * modules/areadlinkat-with-size (Depends-on): Likewise.
21462
21463         mknod: be more vocal about danger of running tests as root
21464         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
21465         root, since that is just asking for problems.
21466         Suggested by Bruno Haible, based on a report by Rainer Tammer.
21467
21468         readlinkat: split into its own module
21469         * modules/symlinkat: Split readlinkat...
21470         * modules/readlinkat: ...into separate module.
21471         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21472         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21473         * lib/symlinkat.c (readlinkat): Move...
21474         * lib/readlinkat.c: ...into new file.
21475         * modules/symlinkat-tests: Split readlinkat test...
21476         * modules/readlinkat-tests: ...into separate module.
21477         * tests/test-symlinkat.c: Split...
21478         * tests/test-readlinkat.c: ...into new file.
21479         * NEWS: Document the split.
21480         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21481         * lib/unistd.in.h (readlinkat): Likewise.
21482         Suggested by Bruno Haible.
21483
21484 2010-08-08  Bruno Haible  <bruno@clisp.org>
21485
21486         memxfrm: Speed up.
21487         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21488         that usually only one call to strxfrm is necessary for each string
21489         part.
21490         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21491
21492 2010-08-07  Karl Berry  <karl@gnu.org>
21493
21494         * doc/posix-headers/limits.texi,
21495         * doc/posix-functions/malloc.texi,
21496         * doc/posix-functions/strsignal.texi: missing @item.
21497         * doc/ld-version-script.texi: spurious leading i.
21498         * doc/regex.texi (Interval Operators): no commas inside @var.
21499
21500 2010-08-01  Bruno Haible  <bruno@clisp.org>
21501
21502         Integrate the regex documentation.
21503         * doc/gnulib.texi: Define 'cn' index.
21504         (Regular expressions): New a chapter that includes regex.texi and
21505         regexprops-generic.texi.
21506         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21507         syntax.
21508
21509         Whitespace cleanup.
21510         * doc/regex.texi: Remove trailing spaces.
21511
21512         Add regex documentation.
21513         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21514         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21515         Written by Kathy A. Hargreaves and Karl Berry.
21516
21517 2010-08-01  Bruno Haible  <bruno@clisp.org>
21518
21519         link: Update documentation.
21520         * doc/posix-functions/link.texi: Update regarding Solaris.
21521
21522 2010-07-31  Bruno Haible  <bruno@clisp.org>
21523
21524         Update modules list.
21525         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21526         (String handling <string.h>): Add memcmp2, memxfrm.
21527         (Container data structures): Add xlist, xsublist, xoset.
21528         (Core language properties): Add alignof, unused-parameter.
21529         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21530         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21531         (Unibyte characters <ctype.h>): New section.
21532         (String handling <string.h>): New section.
21533         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21534         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21535         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21536         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21537         tan, tanh, tanl, y0, y1, yn.
21538         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21539         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21540         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21541         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21542         unlockpt, vdprintf, vdprintf-posix.
21543         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21544         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21545         xconcat-filename.
21546         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21547         getdtablesize, pipe2, pipe2-safer.
21548         (Security): New section.
21549         (Networking functions): Add accept4.
21550         (Signal handling): Add sigpipe.
21551         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21552         mbmemcasecoll.
21553         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21554         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21555         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21556         pipe-filter-ii.
21557         (Misc): Add argp-version-etc, login_tty, parse-duration.
21558
21559 2010-07-31  Bruno Haible  <bruno@clisp.org>
21560
21561         Improve doc in MODULES.html.
21562         * modules/linkat (Description): Add the word "function".
21563         * modules/mkfifo (Description): Likewise.
21564         * modules/mknod (Description): Likewise.
21565         * modules/remove (Description): Likewise.
21566         * modules/renameat (Description): Likewise.
21567         * modules/stat (Description): Likewise.
21568         * modules/symlink (Description): Likewise.
21569         * modules/unlink (Description): Likewise.
21570
21571 2010-07-31  Bruno Haible  <bruno@clisp.org>
21572
21573         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21574         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21575         option --enable/disable-c++ instead of --enable/disable-cxx.
21576         * NEWS: Mention the change.
21577
21578 2010-07-31  Bruno Haible  <bruno@clisp.org>
21579
21580         readlink, areadlink: Relax test a bit.
21581         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21582         alternative to ENOTDIR.
21583         * tests/test-areadlink.h (test_areadlink): Likewise.
21584         Reported by Rainer Tammer.
21585
21586 2010-07-31  Bruno Haible  <bruno@clisp.org>
21587
21588         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21589         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21590         character, perform the search using U_STRCHR.
21591         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21592         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21593         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21594         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21595         Suggested by Paolo Bonzini.
21596
21597 2010-07-31  Bruno Haible  <bruno@clisp.org>
21598
21599         unistr/u*-strstr: Fix dependencies.
21600         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21601         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21602         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21603
21604 2010-07-31  Bruno Haible  <bruno@clisp.org>
21605
21606         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21607         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21608         the beginning of the loop.
21609         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21610         cases in 'switch' statement.
21611
21612         unistr/u8-strchr: Fix several bugs.
21613         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21614         the string. When not found, return NULL, not a pointer near the end.
21615
21616         More tests for unistr/u8-strchr.
21617         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21618         that the function does not read past the first occurrence of the byte
21619         being searched.
21620         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21621         * tests/unistr/test-u16-strchr.c (main): New function.
21622         * tests/unistr/test-u32-strchr.c (main): New function.
21623
21624 2010-07-31  Bruno Haible  <bruno@clisp.org>
21625
21626         posix-modules: Ignore backup files of documentation files.
21627         * posix-modules: grep only through files named *.texi.
21628
21629 2010-07-31  Bruno Haible  <bruno@clisp.org>
21630
21631         symlinkat: Fix documentation.
21632         * doc/posix-functions/readlinkat.texi: Fix module name.
21633
21634 2010-07-31  Bruno Haible  <bruno@clisp.org>
21635
21636         fchownat: Replace also when chown has the trailing slash bug.
21637         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21638         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21639         introduced on 2010-04-10.
21640         Reported by Rainer Tammer.
21641
21642 2010-07-31  Bruno Haible  <bruno@clisp.org>
21643
21644         linkat: Work around AIX 7.1 bug.
21645         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21646         whether linkat handles trailing slash correctly. If not, replace linkat
21647         and define LINKAT_TRAILING_SLASH_BUG.
21648         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21649         check whether (fd1,file1) points to a directory if file1 or file2 ends
21650         in a slash. Code taken from lib/link.c.
21651         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21652         Reported by Rainer Tammer.
21653
21654 2010-07-31  Bruno Haible  <bruno@clisp.org>
21655
21656         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21657         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21658         This disables an xlc optimization that was causing wrong test results.
21659         Reported by Rainer Tammer.
21660
21661 2010-07-31  Bruno Haible  <bruno@clisp.org>
21662
21663         iconv: Work around AIX 6.1..7.1 bug.
21664         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21665         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21666         cross-compiling, guess no on all versions of AIX.
21667         Reported by Rainer Tammer.
21668
21669 2010-07-31  Bruno Haible  <bruno@clisp.org>
21670
21671         readlink: Relax test a bit.
21672         * tests/test-readlink.h (test_readlink): Allow different errno value
21673         when readlink is called with a file name that ends in / and refers to
21674         a file.
21675         Suggested by Eric Blake.
21676         Reported by Rainer Tammer.
21677
21678 2010-07-31  Bruno Haible  <bruno@clisp.org>
21679
21680         copysign: Does not require -lm on glibc systems.
21681         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21682         gl_COMMON_DOUBLE_MATHFUNC.
21683         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21684
21685 2010-07-31  Bruno Haible  <bruno@clisp.org>
21686
21687         duplocale: Work around AIX 7.1 bug.
21688         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21689         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21690         * lib/duplocale.c (rpl_duplocale): Update comment.
21691         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21692         Reported by Rainer Tammer.
21693
21694 2010-07-30  Bruno Haible  <bruno@clisp.org>
21695
21696         dirfd: Avoid link error on AIX 7.1.
21697         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21698         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21699         exist, set REPLACE_DIRFD.
21700         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21701         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21702         * doc/posix-functions/dirfd.texi: Update.
21703         Reported by Rainer Tammer.
21704
21705 2010-07-30  Eric Blake  <eblake@redhat.com>
21706
21707         strtod: next round of AIX fixes
21708         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21709         exponent.
21710         * tests/test-strtod.c (main): Enhance tests.
21711         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21712         Reported by Rainer Tammer.
21713
21714         futimens: fix configure check
21715         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21716         Reported by Bruno Haible.
21717
21718 2010-07-30  Bruno Haible  <bruno@clisp.org>
21719
21720         getline: Update regarding AIX.
21721         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21722         Reported by Rainer Tammer.
21723
21724 2010-07-30  Bruno Haible  <bruno@clisp.org>
21725
21726         wcwidth: Drop replacement on AIX 7.
21727         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21728         AIX 7.
21729         Reported by Rainer Tammer.
21730
21731 2010-07-30  Bruno Haible  <bruno@clisp.org>
21732
21733         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21734         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21735         a 'char *'.
21736         Reported by Rainer Tammer.
21737
21738 2010-07-30  Bruno Haible  <bruno@clisp.org>
21739
21740         unlink: Update regarding AIX.
21741         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21742         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21743         Reported by Rainer Tammer.
21744
21745 2010-07-30  Bruno Haible  <bruno@clisp.org>
21746
21747         symlink: Update regarding AIX.
21748         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21749         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21750         Reported by Rainer Tammer.
21751
21752 2010-07-30  Bruno Haible  <bruno@clisp.org>
21753
21754         strndup: Update regarding AIX.
21755         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21756         AIX 7.
21757         Reported by Rainer Tammer.
21758
21759 2010-07-30  Bruno Haible  <bruno@clisp.org>
21760
21761         stat: Update regarding AIX.
21762         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21763         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21764         Reported by Rainer Tammer.
21765
21766 2010-07-30  Bruno Haible  <bruno@clisp.org>
21767
21768         truncl: Fix autoconf test.
21769         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21770         whether truncl works.
21771         Reported by Rainer Tammer.
21772
21773 2010-07-30  Bruno Haible  <bruno@clisp.org>
21774
21775         round: Update regarding AIX.
21776         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21777         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21778         Reported by Rainer Tammer.
21779
21780 2010-07-30  Bruno Haible  <bruno@clisp.org>
21781
21782         rename: Update regarding AIX.
21783         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21784         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21785         Reported by Rainer Tammer.
21786
21787 2010-07-30  Bruno Haible  <bruno@clisp.org>
21788
21789         printf.m4: Update regarding AIX.
21790         * m4/printf.m4: Update comments regarding AIX.
21791         Reported by Rainer Tammer.
21792
21793 2010-07-30  Bruno Haible  <bruno@clisp.org>
21794
21795         iconv: Update regarding AIX.
21796         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21797         AIX 7.
21798         Reported by Rainer Tammer.
21799
21800 2010-07-30  Bruno Haible  <bruno@clisp.org>
21801
21802         getopt: Update regarding AIX.
21803         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21804         no on AIX.
21805         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21806         Reported by Rainer Tammer.
21807
21808 2010-07-30  Bruno Haible  <bruno@clisp.org>
21809
21810         ldexpl; Update regarding AIX.
21811         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21812         on AIX 7.
21813         Reported by Rainer Tammer.
21814
21815 2010-07-30  Bruno Haible  <bruno@clisp.org>
21816
21817         frexpl: Update regarding AIX.
21818         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21819         on AIX 7.
21820         Reported by Rainer Tammer.
21821
21822 2010-07-30  Bruno Haible  <bruno@clisp.org>
21823
21824         open, fopen: Update regarding AIX.
21825         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21826         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21827         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21828         * doc/posix-functions/fopen.texi: Likewise.
21829         Reported by Rainer Tammer.
21830
21831 2010-07-30  Bruno Haible  <bruno@clisp.org>
21832
21833         chown: Update doc regarding AIX.
21834         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21835         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21836         Reported by Rainer Tammer.
21837
21838 2010-07-30  Eric Blake  <eblake@redhat.com>
21839
21840         strtod: fix bug in replacement function on AIX
21841         * lib/strtod.c (strtod): Special case broken "0x" parse in
21842         underlying strtod.
21843         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21844         * doc/posix-functions/strtod.texi (strtod): Likewise.
21845         Reported by Rainer Tammer.
21846
21847 2010-07-30  Bruno Haible  <bruno@clisp.org>
21848
21849         mbrlen: Fix cross-compilation guess for AIX.
21850         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21851         guess. Leftover from 2008-12-22.
21852
21853 2010-07-30  Bruno Haible  <bruno@clisp.org>
21854
21855         mbrtowc: Fix cross-compilation guess for AIX.
21856         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21857         guess. Leftover from 2008-12-21.
21858
21859 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21860
21861         init.sh: work around trap limitation of some shells
21862         * tests/init.sh (setup_): Move exit trap outside of shell function.
21863
21864 2010-07-29  Eric Blake  <eblake@redhat.com>
21865
21866         strtod: aid debugging
21867         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21868         understanding why strtod is rejected.
21869
21870 2010-07-28  Bruno Haible  <bruno@clisp.org>
21871
21872         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21873         * lib/unistr/u8-chr.c: Include <string.h>.
21874         * tests/unistr/test-u8-chr.c: Likewise.
21875         * tests/unistr/test-u16-chr.c: Likewise.
21876         * tests/unistr/test-u32-chr.c: Likewise.
21877         * tests/unistr/test-u8-strchr.c: Likewise.
21878         * tests/unistr/test-u16-strchr.c: Likewise.
21879         * tests/unistr/test-u32-strchr.c: Likewise.
21880         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21881         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21882         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21883         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21884
21885 2010-07-28  Bruno Haible  <bruno@clisp.org>
21886
21887         Use spaces for indentation, not tabs.
21888         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21889
21890 2010-07-27  Bruno Haible  <bruno@clisp.org>
21891
21892         mbspcasecmp: Fix function specification.
21893         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21894         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21895         Reported by Eric Blake <eblake@redhat.com>.
21896
21897 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21898
21899         timespec: use cast and not conditional, as truncation isn't possible
21900         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21901         instead of a conditional.  Comment about the situation in more detail.
21902         This undoes most of the 2009-10-29 patch.
21903
21904 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21905
21906         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21907         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21908         * lib/unistr/u8-strchr.c: Likewise.
21909         * modules/unistr/u8-chr: Depend on memchr.
21910
21911         unistr/u*-strchr: add tests
21912         * modules/unistr/u8-strchr-tests: New file.
21913         * modules/unistr/u16-strchr-tests: New file.
21914         * modules/unistr/u32-strchr-tests: New file.
21915         * tests/unistr/test-strchr.h: New file.
21916         * tests/unistr/test-u8-strchr.c: New file.
21917         * tests/unistr/test-u16-strchr.c: New file.
21918         * tests/unistr/test-u32-strchr.c: New file.
21919
21920         unistr/u*-chr: test multibyte sequences more
21921         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21922         test vector.
21923         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21924         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21925         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21926
21927         unistr/u*-chr: test multibyte sequences
21928         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21929
21930         unistr/u*-chr: prepare for multibyte tests
21931         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21932         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21933         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21934         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21935         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21936         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21937
21938 2010-07-18  Bruno Haible  <bruno@clisp.org>
21939
21940         unistr/u8-strchr: Optimize non-ASCII argument case.
21941         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21942         because the first byte often matches anyway.
21943         Reported by Pádraig Brady <P@draigbrady.com>.
21944
21945 2010-07-15  Karl Berry  <karl@gnu.org>
21946
21947         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21948
21949 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21950
21951         getcwd: on Solaris, work better if ancestors are inaccessible
21952         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21953         buffer and size, try again with a large buffer.  This works better
21954         on Solaris, since its getcwd succeeds even if the path to the root
21955         is inaccessible, and this is helpful in common cases such as .zfs
21956         hidden directories.  Problem reported by J Chapman Flack in
21957         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21958         Use system getcwd if it's declared, not merely if it's partly
21959         working; use the partly-working test only to avoid needless effort
21960         if the system getcwd fails.
21961         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21962         comment that was already obsolete and is now even more obsolete.
21963         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21964         now might call strdup.
21965
21966 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21967
21968         pthread: Add enough so that coreutils/src/sort.c compiles.
21969         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21970         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21971         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21972         Include <sys/types.h>, in case it defines pthread_t.
21973         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21974         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21975         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21976         (pthread_rwlockattr_t, pthread_spinlock_t):
21977         New typedefs, if HAVE_PTHREAD_T is not defined.
21978         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21979         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21980         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21981         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21982         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21983         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21984         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21985         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21986         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21987         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21988         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21989         New macros.
21990         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21991         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21992         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21993         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21994         (pthread_spin_unlock): New dummy functions.
21995         (pthread_create): Return EAGAIN; don't set errno.
21996         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21997         require AC_C_INLINE.
21998         * modules/pthread (Depends-on): Add sched, time.
21999         (pthread.h): Use AM_V_GEN.
22000
22001 2010-07-13  Bruno Haible  <bruno@clisp.org>
22002
22003         striconveh: Don't malloc memory if the result buffer is sufficient.
22004         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
22005         buffer if its size is sufficient.
22006         Reported by Ludovic Courtès <ludo@gnu.org>.
22007
22008 2010-07-13  Bruno Haible  <bruno@clisp.org>
22009
22010         strtod: Add safety check.
22011         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
22012
22013 2010-07-12  Bruno Haible  <bruno@clisp.org>
22014
22015         Unify tests that set gl_cv_func_ldexpl_no_libm.
22016         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
22017         gl_FUNC_LDEXPL.
22018         (gl_FUNC_LDEXPL): Invoke it.
22019         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22020
22021 2010-07-12  Bruno Haible  <bruno@clisp.org>
22022
22023         Unify tests that set gl_cv_func_ldexp_no_libm.
22024         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
22025         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
22026         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
22027         (configure.ac): Simply invoke gl_FUNC_LDEXP.
22028         * modules/strtod (Files): Add m4/ldexp.m4.
22029
22030 2010-07-12  Bruno Haible  <bruno@clisp.org>
22031
22032         Unify tests that set gl_cv_func_frexpl_no_libm.
22033         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
22034         gl_FUNC_FREXPL_NO_LIBM.
22035         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
22036         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22037
22038 2010-07-12  Bruno Haible  <bruno@clisp.org>
22039
22040         Unify tests that set gl_cv_func_frexp_no_libm.
22041         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
22042         gl_FUNC_FREXP_NO_LIBM.
22043         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
22044         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22045
22046 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22047
22048         memcoll: clarify sizes versus lengths, document better, and tweak perf
22049         * lib/memcoll.c (strcoll_loop, memcoll0):
22050         Improve quality of descriptive comments.  Name variables
22051         consistently as to whether they are lengths (which do not include
22052         terminating null) versus sizes (which do).
22053         * lib/xmemcoll.c (xmemcoll0): Likewise.
22054         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
22055         returned when s1size == 0; this is easier to compile and saves
22056         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
22057
22058 2010-07-12  Bruno Haible  <bruno@clisp.org>
22059
22060         Tests for module '_Exit'.
22061         * modules/_Exit-tests: New file.
22062         * tests/test-_Exit.sh: New file.
22063         * tests/test-_Exit.c: New file.
22064
22065         New module '_Exit'.
22066         * lib/stdlib.in.h (__attribute__): New macro.
22067         (_Exit): New declaration.
22068         * lib/_Exit.c: New file.
22069         * m4/_Exit.m4: New file.
22070         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
22071         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
22072         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
22073         * modules/_Exit: New file.
22074         * tests/test-stdlib-c++.cc (_Exit): Check signature.
22075         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
22076
22077 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22078
22079         strtod: make it more-accurate typically, and don't require libm
22080         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
22081         Include limits.h.  Don't include string.h.
22082         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
22083         (locale_isspace): New function, so that no casts are needed to
22084         check whether *s is a space.
22085         (ldexp): Provide an unused dummy if not available.
22086         (scale_radix_exp, parse_number, underlying_strtod): New functions.
22087         (strtod): Use them.  This implementation prefers to use the
22088         underlying strtod if available, falling back on our own code
22089         only to fix known bugs.  This is more likely to produce an
22090         accurate result.  Also, it avoids the use of libm functions.
22091         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
22092         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
22093         was absent, but it caused a test failure with coreutils.
22094         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
22095         with libm.
22096         * modules/strtod (Makefile.am, Link): libm is no longer needed.
22097         * modules/strtod-tests (Makefile.am): Likewise.
22098
22099 2010-07-11  Pádraig Brady  <P@draigBrady.com>
22100             Bruno Haible  <bruno@clisp.org>
22101
22102         unistr/u8-strchr: Optimize ASCII argument case.
22103         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
22104
22105 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
22106
22107         (x)memcoll: minor tweaks
22108         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
22109         is after the type that it qualifies.
22110         (memcoll0): Likewise.
22111         * lib/memcoll.h (memcoll0): Likewise.
22112         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
22113         * lib/xmemcoll.h (xmemcoll0): Likewise.
22114         * lib/memcoll.c (memcoll0): Correct the comment.  This function
22115         differs from memcoll in that the NUL byte is part of the argument.
22116         Omit the abort-checks, as performance is a real issue here.  Plus,
22117         the checks were wrong anyway (an off-by-one error).  Omit local
22118         variable 'diff', as it's a bit clearer that way.
22119         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
22120         no longer needed.
22121
22122 2010-07-08  Chen Guo <chenguo4@yahoo.com>
22123
22124         (x)memcoll: speedup when input is known to be NUL delimited
22125         * lib/memcoll.c: Include stdlib.
22126         (memcoll0): New function.
22127         (strcoll_loop): New function, refactored for use in both memcoll
22128         and memcoll0.
22129         * lib/memcoll.h (memcoll0): Add prototype.
22130         * lib/xmemcoll.c (xmemcoll0): New function.
22131         (collate_error): New function, refactored for use in both xmemcoll
22132         and xmemcoll0.
22133         * lib/xmemcoll.h (xmemcoll0): Add prototype.
22134         * m4/memcoll.m4: add inline invocation.
22135
22136 2010-07-06  Pádraig Brady  <P@draigBrady.com>
22137
22138         * build-aux/bootstrap: Remove any local translations
22139         from the translation project synchronization directory,
22140         so that local only translations are not distributed.
22141
22142 2010-07-04  Bruno Haible  <bruno@clisp.org>
22143
22144         fsusage: Clarify which code applies to which platforms.
22145         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
22146         platform.
22147         * lib/fsusage.c (get_fs_usage): Likewise.
22148
22149 2010-07-04  Bruno Haible  <bruno@clisp.org>
22150
22151         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
22152         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
22153         Reported by Martin Lambers <marlam@marlam.de>.
22154
22155 2010-07-04  Jim Meyering  <meyering@redhat.com>
22156
22157         hash: once again explicitly disallow insertion of NULL
22158         * lib/hash.c (hash_insert0): Reinstate just-removed test:
22159         inserting a NULL pointer cannot work with these functions.
22160         Add a comment with details.
22161         This reverts part of the 2010-07-01 commit, 5bef1a35
22162         "hash: extend module to deal with non-pointer keys".
22163
22164 2010-07-01  Bruno Haible  <bruno@clisp.org>
22165
22166         stdbool: Update doc.
22167         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
22168         Info from Christian Weisgerber <naddy@mips.inka.de>.
22169
22170 2010-07-01  Jim Meyering  <meyering@redhat.com>
22171
22172         hash: extend module to deal with non-pointer keys
22173         * lib/hash.c (hash_insert0): New interface, much like hash_insert
22174         but that allows insertion of non-pointer entries.
22175         Do not disallow an ENTRY value of NULL.
22176         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
22177         * lib/hash.h (hash_insert0): Declare.
22178
22179 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22180
22181         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
22182         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
22183         not present (i.e. with autoconf 2.59 and when using gettextize, not
22184         gnulib), require AC_GNU_SOURCE instead.
22185
22186 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
22187
22188         idpriv-drop: Fix tests.
22189         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
22190         not to the test-idpriv-droptemp program.
22191
22192 2010-06-29  Bruno Haible  <bruno@clisp.org>
22193
22194         string: Fix syntax error with g++ 2.96.
22195         * lib/string.in.h (__pure__): Remove definition.
22196         (_GL_ATTRIBUTE_PURE): New macro.
22197         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
22198         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
22199         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22200
22201 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
22202
22203         unitypes: Fix bug introduced on 2010-05-18.
22204         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
22205
22206 2010-06-22  Eric Blake  <eblake@redhat.com>
22207
22208         memmem: slight optimization
22209         * lib/str-two-way.h (critical_factorization): Update comments.
22210         Reduce work during factorization phase.
22211         Reported by Carlos Bueno <carlos@bueno.org>.
22212
22213 2010-06-21  Bruno Haible  <bruno@clisp.org>
22214
22215         Fix HAVE_CALLOC_POSIX misnomer.
22216         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
22217         !HAVE_CALLOC_POSIX.
22218         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
22219         HAVE_CALLOC_POSIX.
22220         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
22221         instead of HAVE_CALLOC_POSIX.
22222         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
22223         HAVE_CALLOC_POSIX.
22224
22225         Use modern idiom for calloc() replacement.
22226         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
22227         AC_FUNC_CALLOC.
22228         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
22229         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
22230         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22231         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
22232         (gl_REPLACE_CALLOC): New macro.
22233
22234 2010-06-21  Bruno Haible  <bruno@clisp.org>
22235
22236         Fix HAVE_REALLOC_POSIX misnomer.
22237         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
22238         !HAVE_REALLOC_POSIX.
22239         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
22240         HAVE_REALLOC_POSIX.
22241         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
22242         instead of HAVE_REALLOC_POSIX.
22243         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
22244         HAVE_REALLOC_POSIX.
22245
22246         Use modern idiom for realloc() replacement.
22247         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
22248         AC_FUNC_REALLOC.
22249         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
22250         Autoconf's AC_FUNC_REALLOC.
22251         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22252         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
22253         (gl_REPLACE_REALLOC): New macro.
22254         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22255
22256 2010-06-21  Bruno Haible  <bruno@clisp.org>
22257
22258         Fix HAVE_MALLOC_POSIX misnomer.
22259         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
22260         !HAVE_MALLOC_POSIX.
22261         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
22262         HAVE_MALLOC_POSIX.
22263         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
22264         instead of HAVE_MALLOC_POSIX.
22265         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
22266         HAVE_MALLOC_POSIX.
22267
22268         Use modern idiom for malloc() replacement.
22269         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
22270         AC_FUNC_MALLOC.
22271         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
22272         Autoconf's AC_FUNC_MALLOC.
22273         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22274         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
22275         (gl_REPLACE_MALLOC): New macro.
22276         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22277
22278 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
22279
22280         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
22281         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
22282         This macro takes 3 arguments, not 4.
22283
22284 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
22285
22286         ipv6: fix detection under mingw
22287         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
22288         in6_addr.
22289
22290 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
22291
22292         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
22293         that strtod() works when cross-compiling to a glibc version known
22294         to work.
22295
22296 2010-06-15  Bruno Haible  <bruno@clisp.org>
22297
22298         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
22299
22300 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
22301
22302         select: Correct timeout.
22303         * lib/select.c (rpl_select): Compute wait_timeout correctly.
22304
22305 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22306
22307         git-version-gen: init shell var to avoid env var influence
22308         * build-aux/git-version-gen (v): Init shell var to empty.
22309
22310 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
22311
22312         priv-set: Don't assume that priv.h exists merely because getppriv does.
22313         See Jan Andersen's bug report about AIX 5L in
22314         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
22315         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
22316         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
22317         * lib/priv-set.h: Likewise.
22318         * tests/test-priv-set.c: Likewise.
22319
22320 2010-06-13  Bruno Haible  <bruno@clisp.org>
22321
22322         relocatable: Make it easier to test whether to install wrappers.
22323         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
22324         RELOCATABLE_VIA_WRAPPER.
22325
22326 2010-06-13  Bruno Haible  <bruno@clisp.org>
22327
22328         gnulib-tool: Display specified modules and dependencies differently.
22329         * gnulib-tool (func_show_module_list): New function.
22330         (func_import, func_create_testdir): Invoke it.
22331         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22332
22333 2010-06-13  Bruno Haible  <bruno@clisp.org>
22334
22335         gnulib-tool: Align code of func_import and func_create_testdir.
22336         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
22337         specified_modules.
22338
22339 2010-06-12  Jim Meyering  <meyering@redhat.com>
22340
22341         test-inttostr: avoid spurious failure on Solaris 9
22342         * tests/test-inttostr.c (main): Skip the test when snprintf fails
22343         to accept "%ju".  Reported by Bruno Haible.
22344
22345 2010-06-11  Jim Meyering  <meyering@redhat.com>
22346
22347         test-sys_socket: mark variables as used more readably
22348         * tests/test-sys_socket.c (main): Mark otherwise unused variables
22349         as "used" explicitly via (void) statement casts.  This is more
22350         readable than using them in an artificial return expression.
22351         Suggestion from Bruno Haible.
22352
22353 2010-06-11  Bruno Haible  <bruno@clisp.org>
22354
22355         Avoid some more warnings from "gcc -Wwrite-strings".
22356         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
22357         to 'const char *'.
22358         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22359         * tests/test-c-strcasestr.c (main): Likewise.
22360         * tests/test-mbscasestr1.c (main): Likewise.
22361         * tests/test-mbscasestr2.c (main): Likewise.
22362         * tests/test-memmem.c (main): Likewise.
22363         * tests/test-strstr.c (main): Likewise.
22364         * tests/test-strcasestr.c (main): Likewise.
22365
22366 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22367
22368         init.sh: change framework_failure_ to fail with status 99, not 1
22369         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22370         automake's parallel-tests rule that this is an unexpected failure,
22371         even if the test is listed in XFAIL_TESTS.
22372
22373 2010-06-11  Jim Meyering  <meyering@redhat.com>
22374
22375         test-inttostr: avoid warnings about 4-6KB literal strings
22376         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22377         Include "macros.h", for its definition of ASSERT.
22378         (CK): s/assert/ASSERT/
22379         * modules/inttostr-tests (Files): Add macros.h.
22380
22381         init.sh: don't use $ME_ or skip_ before they are defined
22382         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22383         their first uses.  Also hoist their companions: warn_, fail_,
22384         framework_failure_, $stderr_fileno.  Prompted by a patch from
22385         Stefano Lattarini.
22386
22387         test-sys_socket: avoid set-but-not-used warnings from gcc
22388         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22389         avoid warning about set-but-not-used variables.
22390
22391         test-xvasprintf: avoid 'const' discard warnings
22392         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
22393         "const" when assigning from literal strings.
22394         (test_xasprintf): Add "void" in function argument list to placate
22395         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
22396
22397         tests: avoid compilation warnings in argmatch and exclude tests...
22398         in packages that define ARGMATCH_DIE_DECL, like coreutils.
22399         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
22400         Since it always exits, declare with the "noreturn" attribute.
22401         * tests/test-argmatch.c: Likewise.
22402
22403         tests: avoid 'const' discard warnings in mbsstr tests
22404         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
22405         * tests/test-mbsstr2.c (main): Likewise.
22406
22407         test-verify: avoid warning from gcc's -Wmissing-declarations
22408         * tests/test-verify.c (function): Declare to be static.
22409
22410         test-inttostr.c: include <string.h> for use of strcmp
22411         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
22412
22413         test-linkat: avoid failed assertion on "other" architectures
22414         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
22415         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
22416         sparc: https://bugs.launchpad.net/bugs/591968
22417
22418 2010-06-11  Jim Meyering  <meyering@redhat.com>
22419
22420         printf.m4: avoid autoconf's "Expanded Before Required" warning
22421         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
22422         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
22423         autoconf warning.
22424
22425 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
22426
22427         Replacement header templates are now named with ".in", not "_".
22428         * doc/gnulib-intro.texi: Correct.
22429
22430 2010-06-10  Jim Meyering  <meyering@redhat.com>
22431
22432         inttostr-tests: depend on snprintf, not snprintf-posix
22433         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
22434         snprintf-posix, to avoid this aclocal failure:
22435           missing file gnulib-tests/vasnprintf.c
22436           configure.ac:45: error: expected source file, required through \
22437           AC_LIBSOURCES, not found
22438
22439 2010-06-10  Jim Meyering  <meyering@redhat.com>
22440
22441         inttostr: add a new function, inttostr, and tests
22442         The namesake function was not available.  The existence of the
22443         template file, inttostr.c makes its addition nontrivial.
22444         * lib/anytostr.c: Rename from inttostr.c.
22445         (anytostr): Rename from inttostr.
22446         * lib/inttostr.c: New file.
22447         * modules/inttostr (Files): Add anytostr.c.
22448         (Makefile.am): Set lib_SOURCES instead of ...
22449         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
22450         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
22451         * lib/offtostr.c: Likewise.
22452         * lib/uinttostr.c: Likewise.
22453         * lib/umaxtostr.c: Likewise.
22454         * modules/inttostr-tests: New file.
22455         * tests/test-inttostr.c: New file.  Test these functions.
22456
22457 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
22458             Bruno Haible  <bruno@clisp.org>
22459
22460         Add "Extending Gnulib" chapter to manual.
22461         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
22462         chapter.
22463         (Extending Gnulib): New chapter.
22464         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
22465         chapter.
22466
22467 2010-06-09  Bruno Haible  <bruno@clisp.org>
22468
22469         Avoid relocwrapper link errors due to gnulib replacement functions.
22470         * lib/areadlink.c: Use the system's malloc, realloc functions.
22471         (areadlink): Set errno to ENOMEM explicitly.
22472         * modules/areadlink (Depends-on): Remove malloc-posix.
22473         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22474
22475 2010-06-09  Bruno Haible  <bruno@clisp.org>
22476
22477         Avoid relocwrapper link errors due to gnulib replacement functions.
22478         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22479         * lib/malloca.c: Likewise.
22480         * lib/relocatable.c: Likewise.
22481         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22482         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22483         * lib/setenv.c: Use the system's malloc, realloc functions.
22484         * lib/strerror.c: Use the system's sprintf function.
22485         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22486
22487 2010-06-04  Bruno Haible  <bruno@clisp.org>
22488
22489         Prefer documented low-level autoconf macro names.
22490         * m4/lib-link.m4: Use m4_translit instead of translit.
22491         * m4/environ.m4: Likewise.
22492         * m4/mathfunc.m4: Likewise.
22493         * m4/onceonly.m4: Likewise.
22494         * m4/stdint.m4: Likewise.
22495         Suggested by Eric Blake.
22496
22497 2010-06-04  Martin Lambers  <marlam@marlam.de>
22498             Bruno Haible  <bruno@clisp.org>
22499
22500         havelib: Allow library names with '+' characters.
22501         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22502         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22503
22504 2010-06-09  Bruno Haible  <bruno@clisp.org>
22505
22506         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22507         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22508         realloc failed.
22509
22510 2010-06-08  Peter Simons  <simons@cryp.to>
22511
22512         maint.mk: make the news-check rule more configurable
22513         * top/maint.mk (news-check-lines-spec): New variable.
22514         (news-check): Use "sed -n 1,10p" in place of "head".
22515
22516 2010-06-07  Jim Meyering  <meyering@redhat.com>
22517
22518         do-release-commit-and-tag: fix typo in --help
22519         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22520
22521         regex: avoid new dead-code warning with gcc-4.6.0
22522         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22523         if-block containing a while-loop.  It's been unused for at least
22524         5 years.
22525
22526 2010-06-05  Bruno Haible  <bruno@clisp.org>
22527
22528         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22529         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22530
22531 2010-06-04  Bruno Haible  <bruno@clisp.org>
22532
22533         Update to GNU gettext 0.18.1.
22534         * modules/gettext (configure.ac): Require gettext infrastructure from
22535         version 0.18.1.
22536
22537 2010-06-03  Bruno Haible  <bruno@clisp.org>
22538
22539         Don't use AC_LIBOBJ with file names in subdirectories.
22540         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22541         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22542         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22543         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22544         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22545         gl_LIBUNISTRING_LIBSOURCE.
22546         (Makefile.am): Augment lib_SOURCES here, conditionally.
22547         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22548
22549 2010-06-03  Bruno Haible  <bruno@clisp.org>
22550
22551         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22552         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22553         expansion does not end with a newline.
22554         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22555         unnecessary newline.
22556
22557 2010-06-03  Bruno Haible  <bruno@clisp.org>
22558
22559         Reduce dependencies.
22560         * tests/test-quotearg.h: New file, extracted from
22561         tests/test-quotearg.c.
22562         * tests/test-quotearg-simple.c: New file, extracted from
22563         tests/test-quotearg.c.
22564         * tests/test-quotearg.c: Don't include <ctype.h>.
22565         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22566         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22567         use_quote_double_quotes, use_quotearg_colon): Moved to
22568         tests/test-quotearg.h.
22569         (results_g, flag_results, custom_quotes, custom_results): Moved
22570         to tests/test-quotearg-simple.c.
22571         (main): Moved the part that does not depend on gettext to
22572         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22573         performed.
22574         * modules/quotearg-simple: New file.
22575         * modules/quotearg-simple-tests: New file.
22576         * modules/quotearg (Depends-on): Add quotearg-simple.
22577         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22578         (Files): Add tests/test-quotearg.h.
22579         Reported by Paolo Bonzini.
22580
22581 2010-06-03  Bruno Haible  <bruno@clisp.org>
22582
22583         Reduce dependencies.
22584         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22585
22586 2010-06-03  Bruno Haible  <bruno@clisp.org>
22587
22588         time: Undefine more broken macros.
22589         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22590         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22591         Reported by Eric Blake.
22592
22593 2010-06-03  Bruno Haible  <bruno@clisp.org>
22594
22595         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22596         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22597         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22598         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22599         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22600         Reported by Ludovic Courtès <ludo@gnu.org>.
22601
22602 2010-06-02  Eric Blake  <eblake@redhat.com>
22603
22604         time: work with mingw + pthreads-win32 library
22605         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22606         if timespec is defined only in pthread.h.
22607         * modules/time (Makefile.am): Substitute it.
22608         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22609         <pthread.h>, when needed.
22610         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22611         from the library.
22612
22613 2010-05-31  Bruno Haible  <bruno@clisp.org>
22614
22615         Avoid expanding two macros in the wrong order.
22616         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22617         gl_LIBUNISTRING if it is defined.
22618         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22619         autoconf >= 2.64.
22620         Reported by Ludovic Courtès <ludo@gnu.org>.
22621
22622 2010-05-27  Jim Meyering  <meyering@redhat.com>
22623
22624         maint.mk: also prohibit "#undef" of always-defined symbols
22625         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22626         Allow more than one space before the symbol name.
22627         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22628         the regexp uses alternation.
22629
22630 2010-05-26  Eric Blake  <eblake@redhat.com>
22631
22632         maint.mk: avoid echo -e
22633         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22634         Convert all uses of echo -* to printf.
22635         Reported by Matthias Bolte.
22636
22637 2010-05-25  Bruno Haible  <bruno@clisp.org>
22638
22639         Update to GNU gettext 0.18, part 2.
22640         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22641         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22642
22643 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22644
22645         Add missing include in test-pwrite.c.
22646         * tests/test-pwrite.c: Include string.h, for strcmp.
22647
22648 2010-05-24  Bruno Haible  <bruno@clisp.org>
22649
22650         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22651
22652 2010-05-24  Bruno Haible  <bruno@clisp.org>
22653
22654         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22655         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22656         iconveh_error argument.
22657         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22658         U_STRCONV_TO_LOCALE.
22659         * lib/unistr/u16-strcoll.c: Likewise.
22660         * lib/unistr/u32-strcoll.c: Likewise.
22661         * modules/unistr/u8-strcoll (Depends-on): Add
22662         uniconv/u8-strconv-to-enc, localcharset. Remove
22663         uniconv/u8-strconv-to-locale.
22664         (configure.ac): Bump version number.
22665         * modules/unistr/u16-strcoll (Depends-on): Add
22666         uniconv/u16-strconv-to-enc, localcharset. Remove
22667         uniconv/u16-strconv-to-locale.
22668         (configure.ac): Bump version number.
22669         * modules/unistr/u32-strcoll (Depends-on): Add
22670         uniconv/u32-strconv-to-enc, localcharset. Remove
22671         uniconv/u32-strconv-to-locale.
22672         (configure.ac): Bump version number.
22673
22674 2010-05-24  Bruno Haible  <bruno@clisp.org>
22675
22676         Avoid a test failure on NetBSD 5.0.
22677         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22678         an iconv() bug.
22679
22680 2010-05-24  Bruno Haible  <bruno@clisp.org>
22681
22682         Adjust #include directive style.
22683         * modules/regex (Includes): Recommend to write <regex.h>.
22684
22685 2010-05-24  Bruno Haible  <bruno@clisp.org>
22686
22687         regex: Don't require alloca.
22688         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22689         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22690         only inside if (0).
22691
22692 2010-05-23  Jim Meyering  <meyering@redhat.com>
22693
22694         test-renameat.c: include <sys/stat.h>
22695         * tests/test-renameat.c: Include <sys/stat.h>; required for
22696         definition of S_IS* macros.
22697
22698 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22699
22700         Update maintainer documentation for 'relocatable-prog' module.
22701         * doc/relocatable-maint.texi: Update.
22702         Comments by Bruno Haible.
22703
22704 2010-05-23  Bruno Haible  <bruno@clisp.org>
22705
22706         git-merge-changelog: Enable --split-merged-entry by default.
22707         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22708         (usage): Don't mention this option any more.
22709         Reported by Ralf Wildenhues.
22710
22711 2010-05-23  Jim Meyering  <meyering@redhat.com>
22712
22713         test-pwrite: do not leave behind a test file named "out"
22714         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22715         The trivial-looking use of init.sh is really necessary.
22716         It ensures that the temporary file, "out", is created in
22717         a temporary directory, and removed upon termination.
22718         * tests/test-pwrite.sh: Re-add file.
22719         * modules/pwrite-tests: Reference it.
22720
22721 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22722
22723         Fix output redirection buglet in init.sh.
22724         * tests/init.sh: Fix redirection of stderr.
22725
22726 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22727
22728         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22729
22730 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22731
22732         * modules/valgrind-tests: New file.
22733         * m4/valgrind-tests.m4: New file.
22734         * doc/valgrind-tests.texi: New file.
22735         * doc/gnulib.texi (Running self-tests under valgrind): New
22736         section.
22737
22738 2010-05-19  Bruno Haible  <bruno@clisp.org>
22739
22740         Clean up dead code in recent commit.
22741         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22742         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22743         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22744         Suggested by Paolo Bonzini.
22745
22746 2010-05-19  Bruno Haible  <bruno@clisp.org>
22747
22748         Avoid valgrind error reports from libunistring.
22749         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22750         * modules/libunistring (Files): Add it.
22751         * modules/libunistring-optional (Files): Likewise.
22752
22753 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22754             Bruno Haible  <bruno@clisp.org>
22755
22756         New module 'libunistring-optional'.
22757         * modules/libunistring-optional: New file.
22758         * m4/libunistring-base.m4: New file.
22759         * m4/libunistring-optional.m4: New file.
22760         * lib/unicase.in.h: Renamed from lib/unicase.h.
22761         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22762         * lib/unictype.in.h: Renamed from lib/unictype.h.
22763         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22764         * lib/uniname.in.h: Renamed from lib/uniname.h.
22765         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22766         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22767         * lib/unistr.in.h: Renamed from lib/unistr.h.
22768         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22769         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22770         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22771         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22772         gl_LIBUNISTRING. If the library was found, determine the installed
22773         version and set LIBUNISTRING_VERSION.
22774         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22775         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22776         handle a configuration option --with-included-libunistring.
22777         * modules/libunistring (Files): Add m4/absolute-header.m4.
22778         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22779         Add m4/libunistring-base.m4.
22780         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22781         (Makefile.am): Build unicase.h from unicase.in.h.
22782         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22783         Add m4/libunistring-base.m4.
22784         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22785         (Makefile.am): Build uniconv.h from uniconv.in.h.
22786         * modules/unictype/base (Files): Use unictype.in.h instead of
22787         unictype.h. Add m4/libunistring-base.m4.
22788         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22789         (Makefile.am): Build unictype.h from unictype.in.h.
22790         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22791         Add m4/libunistring-base.m4.
22792         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22793         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22794         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22795         Add m4/libunistring-base.m4.
22796         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22797         (Makefile.am): Build uniname.h from uniname.in.h.
22798         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22799         Add m4/libunistring-base.m4.
22800         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22801         (Makefile.am): Build uninorm.h from uninorm.in.h.
22802         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22803         unistdio.h. Add m4/libunistring-base.m4.
22804         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22805         (Makefile.am): Build unistdio.h from unistdio.in.h.
22806         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22807         Add m4/libunistring-base.m4.
22808         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22809         (Makefile.am): Build unistr.h from unistr.in.h.
22810         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22811         Add m4/libunistring-base.m4.
22812         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22813         (Makefile.am): Build unitypes.h from unitypes.in.h.
22814         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22815         Add m4/libunistring-base.m4.
22816         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22817         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22818         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22819         uniwidth.h. Add m4/libunistring-base.m4.
22820         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22821         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22822         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22823         instead of augmenting lib_SOURCES.
22824         * modules/unicase/empty-suffix-context: Likewise.
22825         * modules/unicase/locale-language: Likewise.
22826         * modules/unicase/tolower: Likewise.
22827         * modules/unicase/totitle: Likewise.
22828         * modules/unicase/toupper: Likewise.
22829         * modules/unicase/u8-casecmp: Likewise.
22830         * modules/unicase/u8-casecoll: Likewise.
22831         * modules/unicase/u8-casefold: Likewise.
22832         * modules/unicase/u8-casexfrm: Likewise.
22833         * modules/unicase/u8-ct-casefold: Likewise.
22834         * modules/unicase/u8-ct-tolower: Likewise.
22835         * modules/unicase/u8-ct-totitle: Likewise.
22836         * modules/unicase/u8-ct-toupper: Likewise.
22837         * modules/unicase/u8-is-cased: Likewise.
22838         * modules/unicase/u8-is-casefolded: Likewise.
22839         * modules/unicase/u8-is-lowercase: Likewise.
22840         * modules/unicase/u8-is-titlecase: Likewise.
22841         * modules/unicase/u8-is-uppercase: Likewise.
22842         * modules/unicase/u8-prefix-context: Likewise.
22843         * modules/unicase/u8-suffix-context: Likewise.
22844         * modules/unicase/u8-tolower: Likewise.
22845         * modules/unicase/u8-totitle: Likewise.
22846         * modules/unicase/u8-toupper: Likewise.
22847         * modules/unicase/u16-casecmp: Likewise.
22848         * modules/unicase/u16-casecoll: Likewise.
22849         * modules/unicase/u16-casefold: Likewise.
22850         * modules/unicase/u16-casexfrm: Likewise.
22851         * modules/unicase/u16-ct-casefold: Likewise.
22852         * modules/unicase/u16-ct-tolower: Likewise.
22853         * modules/unicase/u16-ct-totitle: Likewise.
22854         * modules/unicase/u16-ct-toupper: Likewise.
22855         * modules/unicase/u16-is-cased: Likewise.
22856         * modules/unicase/u16-is-casefolded: Likewise.
22857         * modules/unicase/u16-is-lowercase: Likewise.
22858         * modules/unicase/u16-is-titlecase: Likewise.
22859         * modules/unicase/u16-is-uppercase: Likewise.
22860         * modules/unicase/u16-prefix-context: Likewise.
22861         * modules/unicase/u16-suffix-context: Likewise.
22862         * modules/unicase/u16-tolower: Likewise.
22863         * modules/unicase/u16-totitle: Likewise.
22864         * modules/unicase/u16-toupper: Likewise.
22865         * modules/unicase/u32-casecmp: Likewise.
22866         * modules/unicase/u32-casecoll: Likewise.
22867         * modules/unicase/u32-casefold: Likewise.
22868         * modules/unicase/u32-casexfrm: Likewise.
22869         * modules/unicase/u32-ct-casefold: Likewise.
22870         * modules/unicase/u32-ct-tolower: Likewise.
22871         * modules/unicase/u32-ct-totitle: Likewise.
22872         * modules/unicase/u32-ct-toupper: Likewise.
22873         * modules/unicase/u32-is-cased: Likewise.
22874         * modules/unicase/u32-is-casefolded: Likewise.
22875         * modules/unicase/u32-is-lowercase: Likewise.
22876         * modules/unicase/u32-is-titlecase: Likewise.
22877         * modules/unicase/u32-is-uppercase: Likewise.
22878         * modules/unicase/u32-prefix-context: Likewise.
22879         * modules/unicase/u32-suffix-context: Likewise.
22880         * modules/unicase/u32-tolower: Likewise.
22881         * modules/unicase/u32-totitle: Likewise.
22882         * modules/unicase/u32-toupper: Likewise.
22883         * modules/unicase/ulc-casecmp: Likewise.
22884         * modules/unicase/ulc-casecoll: Likewise.
22885         * modules/unicase/ulc-casexfrm: Likewise.
22886         * modules/uniconv/u8-conv-from-enc: Likewise.
22887         * modules/uniconv/u8-conv-to-enc: Likewise.
22888         * modules/uniconv/u8-strconv-from-enc: Likewise.
22889         * modules/uniconv/u8-strconv-from-locale: Likewise.
22890         * modules/uniconv/u8-strconv-to-enc: Likewise.
22891         * modules/uniconv/u8-strconv-to-locale: Likewise.
22892         * modules/uniconv/u16-conv-from-enc: Likewise.
22893         * modules/uniconv/u16-conv-to-enc: Likewise.
22894         * modules/uniconv/u16-strconv-from-enc: Likewise.
22895         * modules/uniconv/u16-strconv-from-locale: Likewise.
22896         * modules/uniconv/u16-strconv-to-enc: Likewise.
22897         * modules/uniconv/u16-strconv-to-locale: Likewise.
22898         * modules/uniconv/u32-conv-from-enc: Likewise.
22899         * modules/uniconv/u32-conv-to-enc: Likewise.
22900         * modules/uniconv/u32-strconv-from-enc: Likewise.
22901         * modules/uniconv/u32-strconv-from-locale: Likewise.
22902         * modules/uniconv/u32-strconv-to-enc: Likewise.
22903         * modules/uniconv/u32-strconv-to-locale: Likewise.
22904         * modules/unictype/bidicategory-byname: Likewise.
22905         * modules/unictype/bidicategory-name: Likewise.
22906         * modules/unictype/bidicategory-of: Likewise.
22907         * modules/unictype/bidicategory-test: Likewise.
22908         * modules/unictype/block-list: Likewise.
22909         * modules/unictype/block-test: Likewise.
22910         * modules/unictype/category-C: Likewise.
22911         * modules/unictype/category-Cc: Likewise.
22912         * modules/unictype/category-Cf: Likewise.
22913         * modules/unictype/category-Cn: Likewise.
22914         * modules/unictype/category-Co: Likewise.
22915         * modules/unictype/category-Cs: Likewise.
22916         * modules/unictype/category-L: Likewise.
22917         * modules/unictype/category-Ll: Likewise.
22918         * modules/unictype/category-Lm: Likewise.
22919         * modules/unictype/category-Lo: Likewise.
22920         * modules/unictype/category-Lt: Likewise.
22921         * modules/unictype/category-Lu: Likewise.
22922         * modules/unictype/category-M: Likewise.
22923         * modules/unictype/category-Mc: Likewise.
22924         * modules/unictype/category-Me: Likewise.
22925         * modules/unictype/category-Mn: Likewise.
22926         * modules/unictype/category-N: Likewise.
22927         * modules/unictype/category-Nd: Likewise.
22928         * modules/unictype/category-Nl: Likewise.
22929         * modules/unictype/category-No: Likewise.
22930         * modules/unictype/category-P: Likewise.
22931         * modules/unictype/category-Pc: Likewise.
22932         * modules/unictype/category-Pd: Likewise.
22933         * modules/unictype/category-Pe: Likewise.
22934         * modules/unictype/category-Pf: Likewise.
22935         * modules/unictype/category-Pi: Likewise.
22936         * modules/unictype/category-Po: Likewise.
22937         * modules/unictype/category-Ps: Likewise.
22938         * modules/unictype/category-S: Likewise.
22939         * modules/unictype/category-Sc: Likewise.
22940         * modules/unictype/category-Sk: Likewise.
22941         * modules/unictype/category-Sm: Likewise.
22942         * modules/unictype/category-So: Likewise.
22943         * modules/unictype/category-Z: Likewise.
22944         * modules/unictype/category-Zl: Likewise.
22945         * modules/unictype/category-Zp: Likewise.
22946         * modules/unictype/category-Zs: Likewise.
22947         * modules/unictype/category-and: Likewise.
22948         * modules/unictype/category-and-not: Likewise.
22949         * modules/unictype/category-byname: Likewise.
22950         * modules/unictype/category-name: Likewise.
22951         * modules/unictype/category-none: Likewise.
22952         * modules/unictype/category-of: Likewise.
22953         * modules/unictype/category-or: Likewise.
22954         * modules/unictype/category-test: Likewise.
22955         * modules/unictype/combining-class: Likewise.
22956         * modules/unictype/ctype-alnum: Likewise.
22957         * modules/unictype/ctype-alpha: Likewise.
22958         * modules/unictype/ctype-blank: Likewise.
22959         * modules/unictype/ctype-cntrl: Likewise.
22960         * modules/unictype/ctype-digit: Likewise.
22961         * modules/unictype/ctype-graph: Likewise.
22962         * modules/unictype/ctype-lower: Likewise.
22963         * modules/unictype/ctype-print: Likewise.
22964         * modules/unictype/ctype-punct: Likewise.
22965         * modules/unictype/ctype-space: Likewise.
22966         * modules/unictype/ctype-upper: Likewise.
22967         * modules/unictype/ctype-xdigit: Likewise.
22968         * modules/unictype/decimal-digit: Likewise.
22969         * modules/unictype/digit: Likewise.
22970         * modules/unictype/mirror: Likewise.
22971         * modules/unictype/numeric: Likewise.
22972         * modules/unictype/property-alphabetic: Likewise.
22973         * modules/unictype/property-ascii-hex-digit: Likewise.
22974         * modules/unictype/property-bidi-arabic-digit: Likewise.
22975         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22976         * modules/unictype/property-bidi-block-separator: Likewise.
22977         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22978         * modules/unictype/property-bidi-common-separator: Likewise.
22979         * modules/unictype/property-bidi-control: Likewise.
22980         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22981         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22982         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22983         * modules/unictype/property-bidi-european-digit: Likewise.
22984         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22985         * modules/unictype/property-bidi-left-to-right: Likewise.
22986         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22987         * modules/unictype/property-bidi-other-neutral: Likewise.
22988         * modules/unictype/property-bidi-pdf: Likewise.
22989         * modules/unictype/property-bidi-segment-separator: Likewise.
22990         * modules/unictype/property-bidi-whitespace: Likewise.
22991         * modules/unictype/property-byname: Likewise.
22992         * modules/unictype/property-combining: Likewise.
22993         * modules/unictype/property-composite: Likewise.
22994         * modules/unictype/property-currency-symbol: Likewise.
22995         * modules/unictype/property-dash: Likewise.
22996         * modules/unictype/property-decimal-digit: Likewise.
22997         * modules/unictype/property-default-ignorable-code-point: Likewise.
22998         * modules/unictype/property-deprecated: Likewise.
22999         * modules/unictype/property-diacritic: Likewise.
23000         * modules/unictype/property-extender: Likewise.
23001         * modules/unictype/property-format-control: Likewise.
23002         * modules/unictype/property-grapheme-base: Likewise.
23003         * modules/unictype/property-grapheme-extend: Likewise.
23004         * modules/unictype/property-grapheme-link: Likewise.
23005         * modules/unictype/property-hex-digit: Likewise.
23006         * modules/unictype/property-hyphen: Likewise.
23007         * modules/unictype/property-id-continue: Likewise.
23008         * modules/unictype/property-id-start: Likewise.
23009         * modules/unictype/property-ideographic: Likewise.
23010         * modules/unictype/property-ids-binary-operator: Likewise.
23011         * modules/unictype/property-ids-trinary-operator: Likewise.
23012         * modules/unictype/property-ignorable-control: Likewise.
23013         * modules/unictype/property-iso-control: Likewise.
23014         * modules/unictype/property-join-control: Likewise.
23015         * modules/unictype/property-left-of-pair: Likewise.
23016         * modules/unictype/property-line-separator: Likewise.
23017         * modules/unictype/property-logical-order-exception: Likewise.
23018         * modules/unictype/property-lowercase: Likewise.
23019         * modules/unictype/property-math: Likewise.
23020         * modules/unictype/property-non-break: Likewise.
23021         * modules/unictype/property-not-a-character: Likewise.
23022         * modules/unictype/property-numeric: Likewise.
23023         * modules/unictype/property-other-alphabetic: Likewise.
23024         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
23025         * modules/unictype/property-other-grapheme-extend: Likewise.
23026         * modules/unictype/property-other-id-continue: Likewise.
23027         * modules/unictype/property-other-id-start: Likewise.
23028         * modules/unictype/property-other-lowercase: Likewise.
23029         * modules/unictype/property-other-math: Likewise.
23030         * modules/unictype/property-other-uppercase: Likewise.
23031         * modules/unictype/property-paired-punctuation: Likewise.
23032         * modules/unictype/property-paragraph-separator: Likewise.
23033         * modules/unictype/property-pattern-syntax: Likewise.
23034         * modules/unictype/property-pattern-white-space: Likewise.
23035         * modules/unictype/property-private-use: Likewise.
23036         * modules/unictype/property-punctuation: Likewise.
23037         * modules/unictype/property-quotation-mark: Likewise.
23038         * modules/unictype/property-radical: Likewise.
23039         * modules/unictype/property-sentence-terminal: Likewise.
23040         * modules/unictype/property-soft-dotted: Likewise.
23041         * modules/unictype/property-space: Likewise.
23042         * modules/unictype/property-terminal-punctuation: Likewise.
23043         * modules/unictype/property-test: Likewise.
23044         * modules/unictype/property-titlecase: Likewise.
23045         * modules/unictype/property-unassigned-code-value: Likewise.
23046         * modules/unictype/property-unified-ideograph: Likewise.
23047         * modules/unictype/property-uppercase: Likewise.
23048         * modules/unictype/property-variation-selector: Likewise.
23049         * modules/unictype/property-white-space: Likewise.
23050         * modules/unictype/property-xid-continue: Likewise.
23051         * modules/unictype/property-xid-start: Likewise.
23052         * modules/unictype/property-zero-width: Likewise.
23053         * modules/unictype/scripts: Likewise.
23054         * modules/unictype/syntax-c-ident: Likewise.
23055         * modules/unictype/syntax-c-whitespace: Likewise.
23056         * modules/unictype/syntax-java-ident: Likewise.
23057         * modules/unictype/syntax-java-whitespace: Likewise.
23058         * modules/unilbrk/u8-possible-linebreaks: Likewise.
23059         * modules/unilbrk/u8-width-linebreaks: Likewise.
23060         * modules/unilbrk/u16-possible-linebreaks: Likewise.
23061         * modules/unilbrk/u16-width-linebreaks: Likewise.
23062         * modules/unilbrk/u32-possible-linebreaks: Likewise.
23063         * modules/unilbrk/u32-width-linebreaks: Likewise.
23064         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
23065         * modules/unilbrk/ulc-width-linebreaks: Likewise.
23066         * modules/uniname/uniname: Likewise.
23067         * modules/uninorm/canonical-decomposition: Likewise.
23068         * modules/uninorm/composition: Likewise.
23069         * modules/uninorm/decomposing-form: Likewise.
23070         * modules/uninorm/decomposition: Likewise.
23071         * modules/uninorm/filter: Likewise.
23072         * modules/uninorm/nfc: Likewise.
23073         * modules/uninorm/nfd: Likewise.
23074         * modules/uninorm/nfkc: Likewise.
23075         * modules/uninorm/nfkd: Likewise.
23076         * modules/uninorm/u8-normalize: Likewise.
23077         * modules/uninorm/u8-normcmp: Likewise.
23078         * modules/uninorm/u8-normcoll: Likewise.
23079         * modules/uninorm/u8-normxfrm: Likewise.
23080         * modules/uninorm/u16-normalize: Likewise.
23081         * modules/uninorm/u16-normcmp: Likewise.
23082         * modules/uninorm/u16-normcoll: Likewise.
23083         * modules/uninorm/u16-normxfrm: Likewise.
23084         * modules/uninorm/u32-normalize: Likewise.
23085         * modules/uninorm/u32-normcmp: Likewise.
23086         * modules/uninorm/u32-normcoll: Likewise.
23087         * modules/uninorm/u32-normxfrm: Likewise.
23088         * modules/unistdio/u8-asnprintf: Likewise.
23089         * modules/unistdio/u8-asprintf: Likewise.
23090         * modules/unistdio/u8-snprintf: Likewise.
23091         * modules/unistdio/u8-sprintf: Likewise.
23092         * modules/unistdio/u8-u8-asnprintf: Likewise.
23093         * modules/unistdio/u8-u8-asprintf: Likewise.
23094         * modules/unistdio/u8-u8-snprintf: Likewise.
23095         * modules/unistdio/u8-u8-sprintf: Likewise.
23096         * modules/unistdio/u8-u8-vasnprintf: Likewise.
23097         * modules/unistdio/u8-u8-vasprintf: Likewise.
23098         * modules/unistdio/u8-u8-vsnprintf: Likewise.
23099         * modules/unistdio/u8-u8-vsprintf: Likewise.
23100         * modules/unistdio/u8-vasnprintf: Likewise.
23101         * modules/unistdio/u8-vasprintf: Likewise.
23102         * modules/unistdio/u8-vsnprintf: Likewise.
23103         * modules/unistdio/u8-vsprintf: Likewise.
23104         * modules/unistdio/u16-asnprintf: Likewise.
23105         * modules/unistdio/u16-asprintf: Likewise.
23106         * modules/unistdio/u16-snprintf: Likewise.
23107         * modules/unistdio/u16-sprintf: Likewise.
23108         * modules/unistdio/u16-u16-asnprintf: Likewise.
23109         * modules/unistdio/u16-u16-asprintf: Likewise.
23110         * modules/unistdio/u16-u16-snprintf: Likewise.
23111         * modules/unistdio/u16-u16-sprintf: Likewise.
23112         * modules/unistdio/u16-u16-vasnprintf: Likewise.
23113         * modules/unistdio/u16-u16-vasprintf: Likewise.
23114         * modules/unistdio/u16-u16-vsnprintf: Likewise.
23115         * modules/unistdio/u16-u16-vsprintf: Likewise.
23116         * modules/unistdio/u16-vasnprintf: Likewise.
23117         * modules/unistdio/u16-vasprintf: Likewise.
23118         * modules/unistdio/u16-vsnprintf: Likewise.
23119         * modules/unistdio/u16-vsprintf: Likewise.
23120         * modules/unistdio/u32-asnprintf: Likewise.
23121         * modules/unistdio/u32-asprintf: Likewise.
23122         * modules/unistdio/u32-snprintf: Likewise.
23123         * modules/unistdio/u32-sprintf: Likewise.
23124         * modules/unistdio/u32-u32-asnprintf: Likewise.
23125         * modules/unistdio/u32-u32-asprintf: Likewise.
23126         * modules/unistdio/u32-u32-snprintf: Likewise.
23127         * modules/unistdio/u32-u32-sprintf: Likewise.
23128         * modules/unistdio/u32-u32-vasnprintf: Likewise.
23129         * modules/unistdio/u32-u32-vasprintf: Likewise.
23130         * modules/unistdio/u32-u32-vsnprintf: Likewise.
23131         * modules/unistdio/u32-u32-vsprintf: Likewise.
23132         * modules/unistdio/u32-vasnprintf: Likewise.
23133         * modules/unistdio/u32-vasprintf: Likewise.
23134         * modules/unistdio/u32-vsnprintf: Likewise.
23135         * modules/unistdio/u32-vsprintf: Likewise.
23136         * modules/unistdio/ulc-asnprintf: Likewise.
23137         * modules/unistdio/ulc-asprintf: Likewise.
23138         * modules/unistdio/ulc-fprintf: Likewise.
23139         * modules/unistdio/ulc-snprintf: Likewise.
23140         * modules/unistdio/ulc-sprintf: Likewise.
23141         * modules/unistdio/ulc-vasnprintf: Likewise.
23142         * modules/unistdio/ulc-vasprintf: Likewise.
23143         * modules/unistdio/ulc-vfprintf: Likewise.
23144         * modules/unistdio/ulc-vsnprintf: Likewise.
23145         * modules/unistdio/ulc-vsprintf: Likewise.
23146         * modules/unistr/u8-check: Likewise.
23147         * modules/unistr/u8-chr: Likewise.
23148         * modules/unistr/u8-cmp: Likewise.
23149         * modules/unistr/u8-cmp2: Likewise.
23150         * modules/unistr/u8-cpy: Likewise.
23151         * modules/unistr/u8-cpy-alloc: Likewise.
23152         * modules/unistr/u8-endswith: Likewise.
23153         * modules/unistr/u8-mblen: Likewise.
23154         * modules/unistr/u8-mbsnlen: Likewise.
23155         * modules/unistr/u8-mbtouc: Likewise.
23156         * modules/unistr/u8-mbtouc-unsafe: Likewise.
23157         * modules/unistr/u8-mbtoucr: Likewise.
23158         * modules/unistr/u8-move: Likewise.
23159         * modules/unistr/u8-next: Likewise.
23160         * modules/unistr/u8-prev: Likewise.
23161         * modules/unistr/u8-set: Likewise.
23162         * modules/unistr/u8-startswith: Likewise.
23163         * modules/unistr/u8-stpcpy: Likewise.
23164         * modules/unistr/u8-stpncpy: Likewise.
23165         * modules/unistr/u8-strcat: Likewise.
23166         * modules/unistr/u8-strchr: Likewise.
23167         * modules/unistr/u8-strcmp: Likewise.
23168         * modules/unistr/u8-strcoll: Likewise.
23169         * modules/unistr/u8-strcpy: Likewise.
23170         * modules/unistr/u8-strcspn: Likewise.
23171         * modules/unistr/u8-strdup: Likewise.
23172         * modules/unistr/u8-strlen: Likewise.
23173         * modules/unistr/u8-strmblen: Likewise.
23174         * modules/unistr/u8-strmbtouc: Likewise.
23175         * modules/unistr/u8-strncat: Likewise.
23176         * modules/unistr/u8-strncmp: Likewise.
23177         * modules/unistr/u8-strncpy: Likewise.
23178         * modules/unistr/u8-strnlen: Likewise.
23179         * modules/unistr/u8-strpbrk: Likewise.
23180         * modules/unistr/u8-strrchr: Likewise.
23181         * modules/unistr/u8-strspn: Likewise.
23182         * modules/unistr/u8-strstr: Likewise.
23183         * modules/unistr/u8-strtok: Likewise.
23184         * modules/unistr/u8-to-u16: Likewise.
23185         * modules/unistr/u8-to-u32: Likewise.
23186         * modules/unistr/u8-uctomb: Likewise.
23187         * modules/unistr/u16-check: Likewise.
23188         * modules/unistr/u16-chr: Likewise.
23189         * modules/unistr/u16-cmp: Likewise.
23190         * modules/unistr/u16-cmp2: Likewise.
23191         * modules/unistr/u16-cpy: Likewise.
23192         * modules/unistr/u16-cpy-alloc: Likewise.
23193         * modules/unistr/u16-endswith: Likewise.
23194         * modules/unistr/u16-mblen: Likewise.
23195         * modules/unistr/u16-mbsnlen: Likewise.
23196         * modules/unistr/u16-mbtouc: Likewise.
23197         * modules/unistr/u16-mbtouc-unsafe: Likewise.
23198         * modules/unistr/u16-mbtoucr: Likewise.
23199         * modules/unistr/u16-move: Likewise.
23200         * modules/unistr/u16-next: Likewise.
23201         * modules/unistr/u16-prev: Likewise.
23202         * modules/unistr/u16-set: Likewise.
23203         * modules/unistr/u16-startswith: Likewise.
23204         * modules/unistr/u16-stpcpy: Likewise.
23205         * modules/unistr/u16-stpncpy: Likewise.
23206         * modules/unistr/u16-strcat: Likewise.
23207         * modules/unistr/u16-strchr: Likewise.
23208         * modules/unistr/u16-strcmp: Likewise.
23209         * modules/unistr/u16-strcoll: Likewise.
23210         * modules/unistr/u16-strcpy: Likewise.
23211         * modules/unistr/u16-strcspn: Likewise.
23212         * modules/unistr/u16-strdup: Likewise.
23213         * modules/unistr/u16-strlen: Likewise.
23214         * modules/unistr/u16-strmblen: Likewise.
23215         * modules/unistr/u16-strmbtouc: Likewise.
23216         * modules/unistr/u16-strncat: Likewise.
23217         * modules/unistr/u16-strncmp: Likewise.
23218         * modules/unistr/u16-strncpy: Likewise.
23219         * modules/unistr/u16-strnlen: Likewise.
23220         * modules/unistr/u16-strpbrk: Likewise.
23221         * modules/unistr/u16-strrchr: Likewise.
23222         * modules/unistr/u16-strspn: Likewise.
23223         * modules/unistr/u16-strstr: Likewise.
23224         * modules/unistr/u16-strtok: Likewise.
23225         * modules/unistr/u16-to-u32: Likewise.
23226         * modules/unistr/u16-to-u8: Likewise.
23227         * modules/unistr/u16-uctomb: Likewise.
23228         * modules/unistr/u32-check: Likewise.
23229         * modules/unistr/u32-chr: Likewise.
23230         * modules/unistr/u32-cmp: Likewise.
23231         * modules/unistr/u32-cmp2: Likewise.
23232         * modules/unistr/u32-cpy: Likewise.
23233         * modules/unistr/u32-cpy-alloc: Likewise.
23234         * modules/unistr/u32-endswith: Likewise.
23235         * modules/unistr/u32-mblen: Likewise.
23236         * modules/unistr/u32-mbsnlen: Likewise.
23237         * modules/unistr/u32-mbtouc: Likewise.
23238         * modules/unistr/u32-mbtouc-unsafe: Likewise.
23239         * modules/unistr/u32-mbtoucr: Likewise.
23240         * modules/unistr/u32-move: Likewise.
23241         * modules/unistr/u32-next: Likewise.
23242         * modules/unistr/u32-prev: Likewise.
23243         * modules/unistr/u32-set: Likewise.
23244         * modules/unistr/u32-startswith: Likewise.
23245         * modules/unistr/u32-stpcpy: Likewise.
23246         * modules/unistr/u32-stpncpy: Likewise.
23247         * modules/unistr/u32-strcat: Likewise.
23248         * modules/unistr/u32-strchr: Likewise.
23249         * modules/unistr/u32-strcmp: Likewise.
23250         * modules/unistr/u32-strcoll: Likewise.
23251         * modules/unistr/u32-strcpy: Likewise.
23252         * modules/unistr/u32-strcspn: Likewise.
23253         * modules/unistr/u32-strdup: Likewise.
23254         * modules/unistr/u32-strlen: Likewise.
23255         * modules/unistr/u32-strmblen: Likewise.
23256         * modules/unistr/u32-strmbtouc: Likewise.
23257         * modules/unistr/u32-strncat: Likewise.
23258         * modules/unistr/u32-strncmp: Likewise.
23259         * modules/unistr/u32-strncpy: Likewise.
23260         * modules/unistr/u32-strnlen: Likewise.
23261         * modules/unistr/u32-strpbrk: Likewise.
23262         * modules/unistr/u32-strrchr: Likewise.
23263         * modules/unistr/u32-strspn: Likewise.
23264         * modules/unistr/u32-strstr: Likewise.
23265         * modules/unistr/u32-strtok: Likewise.
23266         * modules/unistr/u32-to-u16: Likewise.
23267         * modules/unistr/u32-to-u8: Likewise.
23268         * modules/unistr/u32-uctomb: Likewise.
23269         * modules/uniwbrk/u8-wordbreaks: Likewise.
23270         * modules/uniwbrk/u16-wordbreaks: Likewise.
23271         * modules/uniwbrk/u32-wordbreaks: Likewise.
23272         * modules/uniwbrk/ulc-wordbreaks: Likewise.
23273         * modules/uniwbrk/wordbreak-property: Likewise.
23274         * modules/uniwidth/u8-strwidth: Likewise.
23275         * modules/uniwidth/u8-width: Likewise.
23276         * modules/uniwidth/u16-strwidth: Likewise.
23277         * modules/uniwidth/u16-width: Likewise.
23278         * modules/uniwidth/u32-strwidth: Likewise.
23279         * modules/uniwidth/u32-width: Likewise.
23280         * modules/uniwidth/width: Likewise.
23281         * modules/unicase/cased-tests (Makefile.am): Link all test programs
23282         with $(LIBUNISTRING).
23283         * modules/unicase/ignorable-tests: Likewise.
23284         * modules/unicase/locale-language-tests: Likewise.
23285         * modules/unicase/tolower-tests: Likewise.
23286         * modules/unicase/totitle-tests: Likewise.
23287         * modules/unicase/toupper-tests: Likewise.
23288         * modules/unicase/u8-casecmp-tests: Likewise.
23289         * modules/unicase/u8-casecoll-tests: Likewise.
23290         * modules/unicase/u8-casefold-tests: Likewise.
23291         * modules/unicase/u8-is-cased-tests: Likewise.
23292         * modules/unicase/u8-is-casefolded-tests: Likewise.
23293         * modules/unicase/u8-is-lowercase-tests: Likewise.
23294         * modules/unicase/u8-is-titlecase-tests: Likewise.
23295         * modules/unicase/u8-is-uppercase-tests: Likewise.
23296         * modules/unicase/u8-tolower-tests: Likewise.
23297         * modules/unicase/u8-totitle-tests: Likewise.
23298         * modules/unicase/u8-toupper-tests: Likewise.
23299         * modules/unicase/u16-casecmp-tests: Likewise.
23300         * modules/unicase/u16-casecoll-tests: Likewise.
23301         * modules/unicase/u16-casefold-tests: Likewise.
23302         * modules/unicase/u16-is-cased-tests: Likewise.
23303         * modules/unicase/u16-is-casefolded-tests: Likewise.
23304         * modules/unicase/u16-is-lowercase-tests: Likewise.
23305         * modules/unicase/u16-is-titlecase-tests: Likewise.
23306         * modules/unicase/u16-is-uppercase-tests: Likewise.
23307         * modules/unicase/u16-tolower-tests: Likewise.
23308         * modules/unicase/u16-totitle-tests: Likewise.
23309         * modules/unicase/u16-toupper-tests: Likewise.
23310         * modules/unicase/u32-casecmp-tests: Likewise.
23311         * modules/unicase/u32-casecoll-tests: Likewise.
23312         * modules/unicase/u32-casefold-tests: Likewise.
23313         * modules/unicase/u32-is-cased-tests: Likewise.
23314         * modules/unicase/u32-is-casefolded-tests: Likewise.
23315         * modules/unicase/u32-is-lowercase-tests: Likewise.
23316         * modules/unicase/u32-is-titlecase-tests: Likewise.
23317         * modules/unicase/u32-is-uppercase-tests: Likewise.
23318         * modules/unicase/u32-tolower-tests: Likewise.
23319         * modules/unicase/u32-totitle-tests: Likewise.
23320         * modules/unicase/u32-toupper-tests: Likewise.
23321         * modules/unicase/ulc-casecmp-tests: Likewise.
23322         * modules/unicase/ulc-casecoll-tests: Likewise.
23323         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
23324         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
23325         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
23326         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
23327         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
23328         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
23329         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
23330         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
23331         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
23332         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
23333         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
23334         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
23335         * modules/unictype/bidicategory-byname-tests: Likewise.
23336         * modules/unictype/bidicategory-name-tests: Likewise.
23337         * modules/unictype/bidicategory-of-tests: Likewise.
23338         * modules/unictype/bidicategory-test-tests: Likewise.
23339         * modules/unictype/block-list-tests: Likewise.
23340         * modules/unictype/block-of-tests: Likewise.
23341         * modules/unictype/block-test-tests: Likewise.
23342         * modules/unictype/category-C-tests: Likewise.
23343         * modules/unictype/category-Cc-tests: Likewise.
23344         * modules/unictype/category-Cf-tests: Likewise.
23345         * modules/unictype/category-Cn-tests: Likewise.
23346         * modules/unictype/category-Co-tests: Likewise.
23347         * modules/unictype/category-Cs-tests: Likewise.
23348         * modules/unictype/category-L-tests: Likewise.
23349         * modules/unictype/category-Ll-tests: Likewise.
23350         * modules/unictype/category-Lm-tests: Likewise.
23351         * modules/unictype/category-Lo-tests: Likewise.
23352         * modules/unictype/category-Lt-tests: Likewise.
23353         * modules/unictype/category-Lu-tests: Likewise.
23354         * modules/unictype/category-M-tests: Likewise.
23355         * modules/unictype/category-Mc-tests: Likewise.
23356         * modules/unictype/category-Me-tests: Likewise.
23357         * modules/unictype/category-Mn-tests: Likewise.
23358         * modules/unictype/category-N-tests: Likewise.
23359         * modules/unictype/category-Nd-tests: Likewise.
23360         * modules/unictype/category-Nl-tests: Likewise.
23361         * modules/unictype/category-No-tests: Likewise.
23362         * modules/unictype/category-P-tests: Likewise.
23363         * modules/unictype/category-Pc-tests: Likewise.
23364         * modules/unictype/category-Pd-tests: Likewise.
23365         * modules/unictype/category-Pe-tests: Likewise.
23366         * modules/unictype/category-Pf-tests: Likewise.
23367         * modules/unictype/category-Pi-tests: Likewise.
23368         * modules/unictype/category-Po-tests: Likewise.
23369         * modules/unictype/category-Ps-tests: Likewise.
23370         * modules/unictype/category-S-tests: Likewise.
23371         * modules/unictype/category-Sc-tests: Likewise.
23372         * modules/unictype/category-Sk-tests: Likewise.
23373         * modules/unictype/category-Sm-tests: Likewise.
23374         * modules/unictype/category-So-tests: Likewise.
23375         * modules/unictype/category-Z-tests: Likewise.
23376         * modules/unictype/category-Zl-tests: Likewise.
23377         * modules/unictype/category-Zp-tests: Likewise.
23378         * modules/unictype/category-Zs-tests: Likewise.
23379         * modules/unictype/category-and-not-tests: Likewise.
23380         * modules/unictype/category-and-tests: Likewise.
23381         * modules/unictype/category-byname-tests: Likewise.
23382         * modules/unictype/category-name-tests: Likewise.
23383         * modules/unictype/category-none-tests: Likewise.
23384         * modules/unictype/category-of-tests: Likewise.
23385         * modules/unictype/category-or-tests: Likewise.
23386         * modules/unictype/category-test-withtable-tests: Likewise.
23387         * modules/unictype/combining-class-tests: Likewise.
23388         * modules/unictype/ctype-alnum-tests: Likewise.
23389         * modules/unictype/ctype-alpha-tests: Likewise.
23390         * modules/unictype/ctype-blank-tests: Likewise.
23391         * modules/unictype/ctype-cntrl-tests: Likewise.
23392         * modules/unictype/ctype-digit-tests: Likewise.
23393         * modules/unictype/ctype-graph-tests: Likewise.
23394         * modules/unictype/ctype-lower-tests: Likewise.
23395         * modules/unictype/ctype-print-tests: Likewise.
23396         * modules/unictype/ctype-punct-tests: Likewise.
23397         * modules/unictype/ctype-space-tests: Likewise.
23398         * modules/unictype/ctype-upper-tests: Likewise.
23399         * modules/unictype/ctype-xdigit-tests: Likewise.
23400         * modules/unictype/decimal-digit-tests: Likewise.
23401         * modules/unictype/digit-tests: Likewise.
23402         * modules/unictype/mirror-tests: Likewise.
23403         * modules/unictype/numeric-tests: Likewise.
23404         * modules/unictype/property-alphabetic-tests: Likewise.
23405         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
23406         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
23407         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
23408         * modules/unictype/property-bidi-block-separator-tests: Likewise.
23409         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
23410         * modules/unictype/property-bidi-common-separator-tests: Likewise.
23411         * modules/unictype/property-bidi-control-tests: Likewise.
23412         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
23413         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
23414         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
23415         * modules/unictype/property-bidi-european-digit-tests: Likewise.
23416         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
23417         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
23418         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
23419         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
23420         * modules/unictype/property-bidi-pdf-tests: Likewise.
23421         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
23422         * modules/unictype/property-bidi-whitespace-tests: Likewise.
23423         * modules/unictype/property-byname-tests: Likewise.
23424         * modules/unictype/property-combining-tests: Likewise.
23425         * modules/unictype/property-composite-tests: Likewise.
23426         * modules/unictype/property-currency-symbol-tests: Likewise.
23427         * modules/unictype/property-dash-tests: Likewise.
23428         * modules/unictype/property-decimal-digit-tests: Likewise.
23429         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
23430         * modules/unictype/property-deprecated-tests: Likewise.
23431         * modules/unictype/property-diacritic-tests: Likewise.
23432         * modules/unictype/property-extender-tests: Likewise.
23433         * modules/unictype/property-format-control-tests: Likewise.
23434         * modules/unictype/property-grapheme-base-tests: Likewise.
23435         * modules/unictype/property-grapheme-extend-tests: Likewise.
23436         * modules/unictype/property-grapheme-link-tests: Likewise.
23437         * modules/unictype/property-hex-digit-tests: Likewise.
23438         * modules/unictype/property-hyphen-tests: Likewise.
23439         * modules/unictype/property-id-continue-tests: Likewise.
23440         * modules/unictype/property-id-start-tests: Likewise.
23441         * modules/unictype/property-ideographic-tests: Likewise.
23442         * modules/unictype/property-ids-binary-operator-tests: Likewise.
23443         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
23444         * modules/unictype/property-ignorable-control-tests: Likewise.
23445         * modules/unictype/property-iso-control-tests: Likewise.
23446         * modules/unictype/property-join-control-tests: Likewise.
23447         * modules/unictype/property-left-of-pair-tests: Likewise.
23448         * modules/unictype/property-line-separator-tests: Likewise.
23449         * modules/unictype/property-logical-order-exception-tests: Likewise.
23450         * modules/unictype/property-lowercase-tests: Likewise.
23451         * modules/unictype/property-math-tests: Likewise.
23452         * modules/unictype/property-non-break-tests: Likewise.
23453         * modules/unictype/property-not-a-character-tests: Likewise.
23454         * modules/unictype/property-numeric-tests: Likewise.
23455         * modules/unictype/property-other-alphabetic-tests: Likewise.
23456         * modules/unictype/property-other-default-ignorable-code-point-tests:
23457         Likewise.
23458         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
23459         * modules/unictype/property-other-id-continue-tests: Likewise.
23460         * modules/unictype/property-other-id-start-tests: Likewise.
23461         * modules/unictype/property-other-lowercase-tests: Likewise.
23462         * modules/unictype/property-other-math-tests: Likewise.
23463         * modules/unictype/property-other-uppercase-tests: Likewise.
23464         * modules/unictype/property-paired-punctuation-tests: Likewise.
23465         * modules/unictype/property-paragraph-separator-tests: Likewise.
23466         * modules/unictype/property-pattern-syntax-tests: Likewise.
23467         * modules/unictype/property-pattern-white-space-tests: Likewise.
23468         * modules/unictype/property-private-use-tests: Likewise.
23469         * modules/unictype/property-punctuation-tests: Likewise.
23470         * modules/unictype/property-quotation-mark-tests: Likewise.
23471         * modules/unictype/property-radical-tests: Likewise.
23472         * modules/unictype/property-sentence-terminal-tests: Likewise.
23473         * modules/unictype/property-soft-dotted-tests: Likewise.
23474         * modules/unictype/property-space-tests: Likewise.
23475         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23476         * modules/unictype/property-test-tests: Likewise.
23477         * modules/unictype/property-titlecase-tests: Likewise.
23478         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23479         * modules/unictype/property-unified-ideograph-tests: Likewise.
23480         * modules/unictype/property-uppercase-tests: Likewise.
23481         * modules/unictype/property-variation-selector-tests: Likewise.
23482         * modules/unictype/property-white-space-tests: Likewise.
23483         * modules/unictype/property-xid-continue-tests: Likewise.
23484         * modules/unictype/property-xid-start-tests: Likewise.
23485         * modules/unictype/property-zero-width-tests: Likewise.
23486         * modules/unictype/scripts-tests: Likewise.
23487         * modules/unictype/syntax-c-ident-tests: Likewise.
23488         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23489         * modules/unictype/syntax-java-ident-tests: Likewise.
23490         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23491         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23492         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23493         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23494         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23495         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23496         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23497         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23498         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23499         * modules/uniname/uniname-tests: Likewise.
23500         * modules/uninorm/canonical-decomposition-tests: Likewise.
23501         * modules/uninorm/compat-decomposition-tests: Likewise.
23502         * modules/uninorm/composition-tests: Likewise.
23503         * modules/uninorm/decomposing-form-tests: Likewise.
23504         * modules/uninorm/decomposition-tests: Likewise.
23505         * modules/uninorm/filter-tests: Likewise.
23506         * modules/uninorm/nfc-tests: Likewise.
23507         * modules/uninorm/nfd-tests: Likewise.
23508         * modules/uninorm/nfkc-tests: Likewise.
23509         * modules/uninorm/nfkd-tests: Likewise.
23510         * modules/uninorm/u8-normcmp-tests: Likewise.
23511         * modules/uninorm/u8-normcoll-tests: Likewise.
23512         * modules/uninorm/u16-normcmp-tests: Likewise.
23513         * modules/uninorm/u16-normcoll-tests: Likewise.
23514         * modules/uninorm/u32-normcmp-tests: Likewise.
23515         * modules/uninorm/u32-normcoll-tests: Likewise.
23516         * modules/unistdio/u8-asnprintf-tests: Likewise.
23517         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23518         * modules/unistdio/u8-vasprintf-tests: Likewise.
23519         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23520         * modules/unistdio/u8-vsprintf-tests: Likewise.
23521         * modules/unistdio/u16-asnprintf-tests: Likewise.
23522         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23523         * modules/unistdio/u16-vasprintf-tests: Likewise.
23524         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23525         * modules/unistdio/u16-vsprintf-tests: Likewise.
23526         * modules/unistdio/u32-asnprintf-tests: Likewise.
23527         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23528         * modules/unistdio/u32-vasprintf-tests: Likewise.
23529         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23530         * modules/unistdio/u32-vsprintf-tests: Likewise.
23531         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23532         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23533         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23534         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23535         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23536         * modules/unistr/u8-check-tests: Likewise.
23537         * modules/unistr/u8-chr-tests: Likewise.
23538         * modules/unistr/u8-cmp-tests: Likewise.
23539         * modules/unistr/u8-cmp2-tests: Likewise.
23540         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23541         * modules/unistr/u8-cpy-tests: Likewise.
23542         * modules/unistr/u8-mblen-tests: Likewise.
23543         * modules/unistr/u8-mbsnlen-tests: Likewise.
23544         * modules/unistr/u8-mbtouc-tests: Likewise.
23545         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23546         * modules/unistr/u8-mbtoucr-tests: Likewise.
23547         * modules/unistr/u8-move-tests: Likewise.
23548         * modules/unistr/u8-next-tests: Likewise.
23549         * modules/unistr/u8-prev-tests: Likewise.
23550         * modules/unistr/u8-set-tests: Likewise.
23551         * modules/unistr/u8-stpcpy-tests: Likewise.
23552         * modules/unistr/u8-stpncpy-tests: Likewise.
23553         * modules/unistr/u8-strcat-tests: Likewise.
23554         * modules/unistr/u8-strcmp-tests: Likewise.
23555         * modules/unistr/u8-strcoll-tests: Likewise.
23556         * modules/unistr/u8-strcpy-tests: Likewise.
23557         * modules/unistr/u8-strdup-tests: Likewise.
23558         * modules/unistr/u8-strlen-tests: Likewise.
23559         * modules/unistr/u8-strmblen-tests: Likewise.
23560         * modules/unistr/u8-strmbtouc-tests: Likewise.
23561         * modules/unistr/u8-strncat-tests: Likewise.
23562         * modules/unistr/u8-strncmp-tests: Likewise.
23563         * modules/unistr/u8-strncpy-tests: Likewise.
23564         * modules/unistr/u8-strnlen-tests: Likewise.
23565         * modules/unistr/u8-to-u16-tests: Likewise.
23566         * modules/unistr/u8-to-u32-tests: Likewise.
23567         * modules/unistr/u8-uctomb-tests: Likewise.
23568         * modules/unistr/u16-check-tests: Likewise.
23569         * modules/unistr/u16-chr-tests: Likewise.
23570         * modules/unistr/u16-cmp-tests: Likewise.
23571         * modules/unistr/u16-cmp2-tests: Likewise.
23572         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23573         * modules/unistr/u16-cpy-tests: Likewise.
23574         * modules/unistr/u16-mblen-tests: Likewise.
23575         * modules/unistr/u16-mbsnlen-tests: Likewise.
23576         * modules/unistr/u16-mbtouc-tests: Likewise.
23577         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23578         * modules/unistr/u16-mbtoucr-tests: Likewise.
23579         * modules/unistr/u16-move-tests: Likewise.
23580         * modules/unistr/u16-next-tests: Likewise.
23581         * modules/unistr/u16-prev-tests: Likewise.
23582         * modules/unistr/u16-set-tests: Likewise.
23583         * modules/unistr/u16-stpcpy-tests: Likewise.
23584         * modules/unistr/u16-stpncpy-tests: Likewise.
23585         * modules/unistr/u16-strcat-tests: Likewise.
23586         * modules/unistr/u16-strcmp-tests: Likewise.
23587         * modules/unistr/u16-strcoll-tests: Likewise.
23588         * modules/unistr/u16-strcpy-tests: Likewise.
23589         * modules/unistr/u16-strdup-tests: Likewise.
23590         * modules/unistr/u16-strlen-tests: Likewise.
23591         * modules/unistr/u16-strmblen-tests: Likewise.
23592         * modules/unistr/u16-strmbtouc-tests: Likewise.
23593         * modules/unistr/u16-strncat-tests: Likewise.
23594         * modules/unistr/u16-strncmp-tests: Likewise.
23595         * modules/unistr/u16-strncpy-tests: Likewise.
23596         * modules/unistr/u16-strnlen-tests: Likewise.
23597         * modules/unistr/u16-to-u32-tests: Likewise.
23598         * modules/unistr/u16-to-u8-tests: Likewise.
23599         * modules/unistr/u16-uctomb-tests: Likewise.
23600         * modules/unistr/u32-check-tests: Likewise.
23601         * modules/unistr/u32-chr-tests: Likewise.
23602         * modules/unistr/u32-cmp-tests: Likewise.
23603         * modules/unistr/u32-cmp2-tests: Likewise.
23604         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23605         * modules/unistr/u32-cpy-tests: Likewise.
23606         * modules/unistr/u32-mblen-tests: Likewise.
23607         * modules/unistr/u32-mbsnlen-tests: Likewise.
23608         * modules/unistr/u32-mbtouc-tests: Likewise.
23609         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23610         * modules/unistr/u32-mbtoucr-tests: Likewise.
23611         * modules/unistr/u32-move-tests: Likewise.
23612         * modules/unistr/u32-next-tests: Likewise.
23613         * modules/unistr/u32-prev-tests: Likewise.
23614         * modules/unistr/u32-set-tests: Likewise.
23615         * modules/unistr/u32-stpcpy-tests: Likewise.
23616         * modules/unistr/u32-stpncpy-tests: Likewise.
23617         * modules/unistr/u32-strcat-tests: Likewise.
23618         * modules/unistr/u32-strcmp-tests: Likewise.
23619         * modules/unistr/u32-strcoll-tests: Likewise.
23620         * modules/unistr/u32-strcpy-tests: Likewise.
23621         * modules/unistr/u32-strdup-tests: Likewise.
23622         * modules/unistr/u32-strlen-tests: Likewise.
23623         * modules/unistr/u32-strmblen-tests: Likewise.
23624         * modules/unistr/u32-strmbtouc-tests: Likewise.
23625         * modules/unistr/u32-strncat-tests: Likewise.
23626         * modules/unistr/u32-strncmp-tests: Likewise.
23627         * modules/unistr/u32-strncpy-tests: Likewise.
23628         * modules/unistr/u32-strnlen-tests: Likewise.
23629         * modules/unistr/u32-to-u16-tests: Likewise.
23630         * modules/unistr/u32-to-u8-tests: Likewise.
23631         * modules/unistr/u32-uctomb-tests: Likewise.
23632         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23633         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23634         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23635         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23636         * modules/uniwidth/u8-strwidth-tests: Likewise.
23637         * modules/uniwidth/u8-width-tests: Likewise.
23638         * modules/uniwidth/u16-strwidth-tests: Likewise.
23639         * modules/uniwidth/u16-width-tests: Likewise.
23640         * modules/uniwidth/u32-strwidth-tests: Likewise.
23641         * modules/uniwidth/u32-width-tests: Likewise.
23642         * modules/uniwidth/width-tests: Likewise.
23643
23644 2010-05-18  Richard Jones  <rjones@redhat.com>
23645
23646         doc: users.txt: list hivex
23647         * users.txt: Add hivex.
23648
23649 2010-05-18  Richard Jones  <rjones@redhat.com>
23650
23651         doc: users.txt: list febootstrap
23652         * users.txt: Add febootstrap.
23653
23654 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23655
23656         bootstrap: fix an error when gnulib is not used as a git submodule
23657         * build-aux/bootstrap (gnulib_path): If its length is zero then
23658         assign "gnulib" to it.
23659         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23660
23661 2010-05-16  Bruno Haible  <bruno@clisp.org>
23662
23663         Avoid autoconf warnings about AM_ICONV.
23664         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23665         2.64.
23666
23667 2010-05-16  Bruno Haible  <bruno@clisp.org>
23668
23669         absolute-header: Make the macro usable in more situations.
23670         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23671         from gl_ABSOLUTE_HEADER.
23672         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23673
23674 2010-05-16  James Youngman  <jay@gnu.org>
23675
23676         doc: update users.txt
23677         * users.txt: Add CSSC.
23678
23679 2010-05-16  Jim Meyering  <meyering@redhat.com>
23680
23681         init.sh: fix an error in the previous change; add more comments
23682         * tests/init.sh: Compare exit code in loop against 9, not 2.
23683         Patch by Bruno Haible.
23684         Make the two tests more similar by adding an empty "then" clause.
23685         Add comments.
23686
23687         init.sh: avoid unnecessary shell re-exec
23688         * tests/init.sh: Improve the re-exec-required check to first test the
23689         current shell.  If it passes the test, do not search for a shell that
23690         does pass, and do not re-exec.  This test is particularly contorted to
23691         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23692         of $(...) evokes a syntax error and causes immediate shell exit with
23693         status 2.  Bruno Haible reported that the re-exec made it impossible
23694         to single-step through any init.sh-using script.
23695
23696 2010-05-16  Bruno Haible  <bruno@clisp.org>
23697
23698         Fix collision between gnulib's and libintl's printf replacements.
23699         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23700         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23701         (printf): When using GNU C, map the __printf__ function to rpl_printf
23702         via __asm__. When not using GNU C, define rpl_printf instead of
23703         __printf__.
23704         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23705         commit.
23706         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23707         commit.
23708         * m4/asm-underscore.m4: New file.
23709         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23710         * modules/stdio (Files): Add m4/asm-underscore.m4.
23711         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23712         Reported by Ben Pfaff.
23713
23714 2010-05-16  Bruno Haible  <bruno@clisp.org>
23715
23716         verify: Avoid skipping the test on openSUSE 11.0.
23717         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23718
23719 2010-05-13  Bruno Haible  <bruno@clisp.org>
23720
23721         Avoid useless warnings from G++.
23722         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23723         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23724         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23725
23726 2010-05-11  Jim Meyering  <meyering@redhat.com>
23727
23728         maint.mk: tweak preceding change
23729         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23730         regexps tighter by anchoring at EOL, and make the new group "shy"
23731         for slightly decreased overhead.
23732
23733 2010-05-11  Eric Blake  <eblake@redhat.com>
23734
23735         maint.mk: gnulib doesn't guarantee NSIG
23736         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23737
23738 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23739
23740         test-pwrite.c: Remove unused variable declaration.
23741         * tests/test-pwrite.c (main): Remove read_buf declaration.
23742
23743         Remove useless test-pwrite.sh file.
23744         * tests/test-pwrite.sh: Delete file.
23745         * modules/pwrite-tests: Remove references.
23746         Reported by Bruno Haible.
23747
23748 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23749
23750         init.sh: fix a typo
23751         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23752
23753 2010-05-10  Jim Meyering  <meyering@redhat.com>
23754
23755         maint.mk: avoid using a temporary file in the always-defined-macros check
23756         * top/maint.mk (.re-defmac): Remove rule.
23757         (gl_trap_): Remove definition.
23758         (sc_prohibit_always-defined_macros): Rewrite not to create and
23759         depend on a temporary file.  Instead, depend on GNU grep's ability
23760         to read a list of regular expressions from stdin when given "-f -".
23761
23762 2010-05-09  Bruno Haible  <bruno@clisp.org>
23763
23764         Update to GNU gettext 0.18, part 1.
23765         * m4/gettext.m4: Update to GNU gettext 0.18.
23766         * m4/intl.m4: Likewise.
23767         * m4/po.m4: Likewise.
23768         * modules/gettext (Files): Add m4/fcntl-o.m4.
23769         (configure.ac): Require gettext infrastructure from version 0.18.
23770
23771 2010-05-09  Jim Meyering  <meyering@redhat.com>
23772
23773         init.sh: enable MALLOC_PERTURB_
23774         * tests/init.sh: Enable glibc's malloc-perturbing option.
23775
23776         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23777         With my recent change in init.sh from the two-line form:
23778             -#   : ${srcdir=.}
23779             -#   . "$srcdir/init.sh"; path_prepend_ .
23780             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23781         I noticed that using the one-line form would cause this test
23782         to fail with a false-positive, or to stop working altogether,
23783         depending on whether help-version changed or all the tests did.
23784         * top/maint.mk (_hv_regex): Remove this definition.
23785         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23786         (_hv_regex_strong): Use a stronger regex to check for conformance.
23787         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23788         Give a separate diagnostic for lack of conforming use.
23789
23790         maint.mk: prohibit definition of symbols defined by gnulib
23791         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23792         definition of symbols defined by gnulib.
23793
23794 2010-05-09  Bruno Haible  <bruno@clisp.org>
23795
23796         acl: Avoid test failure on Cygwin-hosted mingw.
23797         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23798
23799 2010-05-09  Bruno Haible  <bruno@clisp.org>
23800
23801         error: Use system's fcntl function.
23802         * lib/error.c (fcntl): Undefine.
23803
23804 2010-05-09  Jim Meyering  <meyering@redhat.com>
23805
23806         verify: adjust formatting to be more consistent
23807         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23808         argument-list '('s, and after one comma.
23809
23810 2010-05-09  Bruno Haible  <bruno@clisp.org>
23811
23812         error: More reliable output on mingw.
23813         * lib/error.c: Include <windows.h>.
23814         (is_open): New function.
23815         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23816         defined.
23817
23818 2010-05-09  Bruno Haible  <bruno@clisp.org>
23819
23820         vasnprintf: Fix syntax errors in libintl build on mingw.
23821         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23822         pad_ourselves and prec_ourselves after use.
23823
23824 2010-05-08  Bruno Haible  <bruno@clisp.org>
23825
23826         * lib/config.charset: Update comments for Cygwin 1.7.
23827         * lib/localcharset.c: Likewise.
23828
23829 2010-05-07  Jim Meyering  <meyering@redhat.com>
23830
23831         init.sh: improve comments
23832         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23833         . "${srcdir=.}/init.sh"; path_prepend_ .
23834         Add a note about path_prepend_ and the alternative of using
23835         TESTS_ENVIRONMENT.
23836
23837 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23838
23839         exclude: Unescape hashed patterns in wildcard mode.
23840         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23841         to the hash list.
23842         * tests/test-exclude8.sh: New test case.
23843         * modules/exclude-tests: Add new test.
23844
23845 2010-05-05  Eric Blake  <eblake@redhat.com>
23846
23847         verify: automate tests
23848         * modules/verify-tests: New module.
23849         * tests/test-verify.sh: New file.
23850         * tests/test-verify.c: Guard each negative test with a unique id.
23851         Also avoid warning about unused left hand of comma expressions.
23852
23853 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23854
23855         Further improvements to verify.h, suggested by Eric Blake.
23856         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23857         the GL_* versions, to avoid collision with OpenGL.
23858         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23859         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23860         than testing merely whether it's defined.
23861
23862         Modify verify.h to pacify gcc -Wredundant_decls.
23863         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23864         These use the prefix "GL_" since they're likely to be useful elsewhere.
23865         We may need to break them out into a different .h file.
23866         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23867         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23868         of verify_function__.
23869
23870 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23871
23872         Tests for module pwrite.
23873         * modules/pwrite-tests: New file.
23874         * tests/test-pwrite.sh: New file.
23875         * tests/test-pwrite.c: New file.
23876
23877         New module pwrite.
23878         * lib/unistd.in.h (pwrite): New declaration.
23879         * lib/pwrite.c: New file, from glibc with modifications.
23880         * m4/pwrite.m4: New file.
23881         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23882         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23883         REPLACE_PWRITE.
23884         * modules/pwrite: New file.
23885         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23886         REPLACE_PWRITE.
23887         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23888         * doc/posix-functions/pwrite.texi: Mention the new module.
23889
23890 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23891
23892         pread: Update documentation.
23893         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23894
23895 2010-05-04  Eric Blake  <eblake@redhat.com>
23896
23897         docs: update cygwin progress
23898         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23899         this bug.
23900         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23901         Added in cygwin 1.7.2.
23902         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23903         Likewise.
23904         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23905         Likewise.
23906         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23907         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23908         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23909         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23910         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23911         Mention nproc module.
23912         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23913         bug in cygwin 1.7.5 addition.
23914         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23915         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23916         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23917         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23918         1.7.5.
23919         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23920         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23921         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23922         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23923         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23924         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23925         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23926         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23927         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23928         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23929         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23930         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23931         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23932         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23933         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23934         Likewise.
23935         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23936         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23937         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23938         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23939         Likewise.
23940         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23941         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23942         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23943         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23944         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23945         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23946         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23947         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23948         Likewise.
23949         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23950         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23951         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23952         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23953         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23954         Likewise.
23955         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23956         Likewise.
23957         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23958         Likewise.
23959         * doc/glibc-functions/xdrrec_endofrecord.texi
23960         (xdrrec_endofrecord): Likewise.
23961         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23962         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23963         Likewise.
23964         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23965         Likewise.
23966
23967 2010-05-04  Jim Meyering  <meyering@redhat.com>
23968
23969         gendocs.sh: make its "-s FILE" option more useful
23970         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23971         $PACKAGE to reflect the probably-different basename of "FILE".
23972
23973 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23974
23975         bootstrap: don't ignore download_po_files failure
23976         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23977         failure.
23978
23979 2010-05-03  Jim Meyering  <meyering@redhat.com>
23980
23981         maint.mk: allow to pass options to gendocs.sh
23982         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23983         (gendocs_options_): New overridable variable.
23984
23985         gnu-web-doc-update: don't ignore configure or build failure
23986         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23987
23988         announce-gen: backslash-escape '@'s in --help output
23989         * build-aux/announce-gen: Fix syntax errors.
23990
23991         maint.mk, announce-gen: allow project-specific announcement mail headers
23992         * top/maint.mk (translation_project_): Define default.
23993         (announcement_Cc_, announcement_mail_headers_): Likewise.
23994         (announcement): Invoke announce-gen with new --mail-headers option.
23995         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23996
23997         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23998         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23999         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
24000         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
24001         line in the "err2" output file when running "make check" in verbose
24002         mode (i.e., with set -x enabled).
24003
24004 2010-05-03  Bruno Haible  <bruno@clisp.org>
24005
24006         wctob: Fix for weird platforms.
24007         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
24008         argument value.
24009
24010 2010-05-03  Jim Meyering  <meyering@redhat.com>
24011
24012         maint.mk: prohibit unwarranted use of <strings.h>
24013         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
24014         strings.h in a file that does not also use strcasecmp, strncasecmp,
24015         ffs or ffsll.
24016
24017         maint.mk: remove obsolete comments
24018         * top/maint.mk: Remove stale, commented-out rules.
24019
24020 2010-05-02  Bruno Haible  <bruno@clisp.org>
24021
24022         wcwidth: Declare also when it's aliased.
24023         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
24024         macro.
24025
24026 2010-05-02  Bruno Haible  <bruno@clisp.org>
24027
24028         Fix regression from 2010-04-25.
24029         * gnulib-tool (func_modules_transitive_closure): Check the status of
24030         all modules, not only of the tests that are of the form foo-tests where
24031         foo is a module.
24032
24033 2010-05-02  Bruno Haible  <bruno@clisp.org>
24034
24035         wctob: Work around nasty Cygwin 1.7.2 bug.
24036         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
24037         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
24038
24039 2010-05-01  Bruno Haible  <bruno@clisp.org>
24040
24041         fpurge: Sharper test.
24042         * tests/test-fpurge.c (main): Add one more ftell check.
24043         * modules/fpurge-tests (Depends-on): Add ftell.
24044         Suggested by Eric Blake.
24045
24046 2010-05-01  Bruno Haible  <bruno@clisp.org>
24047
24048         ftello: Another test.
24049         * tests/test-ftello3.c: New file.
24050         * modules/ftello-tests (Files): Add it.
24051         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24052         MOSTLYCLEANFILES.
24053
24054         ftell: Another test.
24055         * tests/test-ftell3.c: New file.
24056         * modules/ftell-tests (Files): Add it.
24057         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24058         MOSTLYCLEANFILES.
24059
24060 2010-05-01  Bruno Haible  <bruno@clisp.org>
24061
24062         ftell, ftello: Work around Solaris bug.
24063         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
24064         * lib/ftello.c: Include stdio-impl.h.
24065         (ftello): On Solaris, when _IOWRT is set, compute the result without
24066         looking at _IOREAD.
24067         * modules/ftello (Files): Add lib/stdio-impl.h.
24068         * doc/posix-functions/ftell.texi: Mention Solaris bug.
24069         * doc/posix-functions/ftello.texi: Likewise.
24070         Reported by Eric Blake.
24071
24072 2010-05-01  Bruno Haible  <bruno@clisp.org>
24073
24074         freading: Adapt to special meaning of _IOREAD flag on Solaris.
24075         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
24076         the _IOWRT flag is also set.
24077
24078 2010-05-01  Bruno Haible  <bruno@clisp.org>
24079
24080         Fix doc about a HP-UX stdio bug.
24081         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
24082         * doc/posix-functions/ftello.texi: Likewise.
24083
24084 2010-05-01  Bruno Haible  <bruno@clisp.org>
24085
24086         lseek test: Fix failure on Solaris.
24087         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
24088         output.
24089
24090 2010-04-30  Jim Meyering  <meyering@redhat.com>
24091
24092         bootstrap: don't ignore failure to generate po*/Makevars
24093         * build-aux/bootstrap (with_gettext): Don't ignore failure
24094         to create po/Makevars or runtime-po/Makevars.
24095
24096 2010-04-29  Eric Blake  <eblake@redhat.com>
24097
24098         headers: relax license to LGPLv2+
24099         * modules/fcntl-h (License): Relax license.
24100         * modules/getopt-posix (License): Likewise.
24101         * modules/locale (License): Likewise.
24102         * modules/math (License): Likewise.
24103         * modules/pty (License): Likewise.
24104         * modules/sched (License): Likewise.
24105         * modules/search (License): Likewise.
24106         * modules/spawn (License): Likewise.
24107         * modules/stdarg (License): Likewise.
24108         * modules/sysexits (License): Likewise.
24109
24110 2010-04-29  Jim Meyering  <meyering@redhat.com>
24111
24112         inttypes: relax license to LGPLv2+
24113         * modules/inttypes (License): Relax license.
24114
24115 2010-04-29  Simon Josefsson  <simon@josefsson.org>
24116
24117         * top/maint.mk (indent): Run twice to produce idempotent results.
24118
24119 2010-04-28  Bruno Haible  <bruno@clisp.org>
24120
24121         getdate: Generate getdate.c in the source directory.
24122         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
24123         MOSTLYCLEANFILES.
24124         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
24125
24126 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
24127
24128         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
24129         is not declared as a const *; avoid warnings in that case.
24130
24131 2010-04-28  Eric Blake  <eblake@redhat.com>
24132
24133         canonicalize-lgpl: avoid compiler warning
24134         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
24135         declaration' / 'extraneous semicolon' warning with some compilers.
24136         Reported by Andreas Gruenbacher.
24137
24138 2010-04-28  Jim Meyering  <meyering@redhat.com>
24139
24140         init.sh: ensure a more reliable exit status when exiting via trap
24141         * tests/init.sh (setup_): Don't rely on $? in signal handler.
24142         Inspired by patches from Dmitry V. Levin.
24143         Also trap on signal 3 (SIGQUIT).
24144
24145 2010-04-27  Bruno Haible  <bruno@clisp.org>
24146
24147         Update doc about utimes().
24148         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
24149         'utimens' module.
24150         Reported by Andreas Gruenbacher <agruen@suse.de>.
24151
24152 2010-04-27  Eric Blake  <eblake@redhat.com>
24153
24154         full-read, full-write: relax license
24155         * modules/full-read (License): Drop to LGPLv2+.
24156         * modules/full-write (License): Likewise.
24157         * modules/safe-read (License): Likewise.
24158         * modules/safe-write (License): Likewise.
24159
24160         pthread: mention library for linking
24161         * modules/pthread (Link): Mention $(LIB_PTHREAD).
24162
24163 2010-04-27  Jim Meyering  <meyering@redhat.com>
24164
24165         maint.mk: fix a bug introduced in last change
24166         * top/maint.mk (gl_assured_headers_): Now that all names are on
24167         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
24168         is not anchored to end of word, it should be adequate.
24169
24170         maint.mk: avoid side-effect in latest syntax-check
24171         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
24172         to run commands via $(shell...), and hence to incur cost only when
24173         the new rule is actually run.
24174
24175         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
24176         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
24177         and use that to create a regexp used to detect all #if HAVE_..._H uses.
24178         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
24179         (gl_assured_headers_, az_, AZ_): Define.
24180         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
24181
24182 2010-04-26  Jim Meyering  <jim@meyering.net>
24183             Bruno Haible  <bruno@clisp.org>
24184
24185         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
24186         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
24187         Prompted by an exchange with Gilles Espinasse.
24188
24189 2010-04-26  Jim Meyering  <meyering@redhat.com>
24190
24191         git-version-gen: aesthetic tweak
24192         * build-aux/git-version-gen: Use "$nl" rather than a literal,
24193         so that the command remains on a single line.
24194
24195 2010-04-26  Eric Blake  <eblake@redhat.com>
24196
24197         git-version-gen: allow use on EBCDIC hosts
24198         * build-aux/git-version-gen (dirty): Use literal rather than tying
24199         ourselves to ascii.
24200         Reported by Steve Goetze.
24201
24202 2010-04-25  Bruno Haible  <bruno@clisp.org>
24203
24204         netdb: Add support for GNULIB_POSIXCHECK.
24205         * lib/netdb.in.h: Include warn-on-use.h.
24206         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
24207         functions are used when GNULIB_POSIXCHECK is defined and the
24208         getaddrinfo module is not in use.
24209         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
24210         freeaddrinfo, gai_strerror, getnameinfo are declared.
24211         * modules/netdb (Depends-on): Add warn-on-use.
24212         (Makefile.am): Include warn-on-use.h in netdb.h.
24213
24214 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
24215
24216         build: avoid "make check" failure without .git/ directory
24217         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
24218         there is no .git/ directory.
24219
24220 2010-04-25  Bruno Haible  <bruno@clisp.org>
24221
24222         ptsname: Fix misuse of ttyname_r.
24223         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
24224         of errno.
24225
24226 2010-04-25  Bruno Haible  <bruno@clisp.org>
24227
24228         ttyname_r: Make it work on Solaris 10.
24229         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
24230         if the system function has the POSIX declaration. Test whether the
24231         function fails if the buffer is less than 128 bytes large.
24232         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
24233         system's ttyname_r function. Provide a reasonably large buffer.
24234         * modules/ttyname_r (Depends-on): Add extensions.
24235         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
24236
24237 2010-04-25  Bruno Haible  <bruno@clisp.org>
24238
24239         Use the 'extensions' module for some more functions on Solaris.
24240         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
24241         module.
24242         * doc/posix-functions/ctime_r.texi: Likewise.
24243         * doc/posix-functions/getgrgid_r.texi: Likewise.
24244         * doc/posix-functions/getgrnam_r.texi: Likewise.
24245         * doc/posix-functions/getpwnam_r.texi: Likewise.
24246         * doc/posix-functions/getpwuid_r.texi: Likewise.
24247         * doc/posix-functions/readdir_r.texi: Likewise.
24248         * doc/posix-functions/sigwait.texi: Likewise.
24249         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
24250         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
24251
24252 2010-04-25  Bruno Haible  <bruno@clisp.org>
24253
24254         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
24255         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
24256         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
24257         * lib/ttyname_r.c: Include <limits.h>.
24258         (ttyname_r): Define using the system's ttyname_r function, if it exists
24259         and not on Solaris.
24260         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
24261         set.
24262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
24263         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
24264         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
24265         Reported by Simon Josefsson.
24266
24267 2010-04-25  Bruno Haible  <bruno@clisp.org>
24268
24269         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
24270         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
24271         * doc/posix-functions/ctime_r.texi: Likewise.
24272         * doc/posix-functions/getgrgid_r.texi: Likewise.
24273         * doc/posix-functions/getgrnam_r.texi: Likewise.
24274         * doc/posix-functions/getlogin_r.texi: Likewise.
24275         * doc/posix-functions/getpwnam_r.texi: Likewise.
24276         * doc/posix-functions/getpwuid_r.texi: Likewise.
24277         * doc/posix-functions/readdir_r.texi: Likewise.
24278         * doc/posix-functions/sigwait.texi: Likewise.
24279         * doc/posix-functions/ttyname_r.texi: Likewise.
24280         Reported by Simon Josefsson.
24281
24282 2010-04-25  Bruno Haible  <bruno@clisp.org>
24283
24284         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
24285         * gnulib-tool (func_usage): Document that --with-*-tests options apply
24286         also to --create-testdir.
24287         (func_acceptable): Don't consider the status of *-tests modules here.
24288         (func_modules_transitive_closure): Consider it here, before including a
24289         test module.
24290         (func_import, func_create_testdir): Set inc_all_direct_tests,
24291         inc_all_indirect_tests.
24292         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
24293         --create-testdir and --create-megatestdir.
24294
24295 2010-04-25  Bruno Haible  <bruno@clisp.org>
24296
24297         gnulib-tool: Add --without-*-tests options.
24298         * gnulib-tool (func_usage): Document the --without-*-tests options.
24299         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
24300         excl_unportable_tests): New variables.
24301         Fail if they are specified with --import or --update.
24302         (func_acceptable): Respect the excl_*_tests variables.
24303         (func_import): Set the excl_*_tests variables to empty.
24304
24305 2010-04-25  Simon Josefsson  <simon@josefsson.org>
24306             Bruno Haible  <bruno@clisp.org>
24307
24308         Work around a MacOS X 10.4 bug with openpty.
24309         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
24310         * tests/test-openpty.c (main): Close the master side explicitly.
24311
24312 2010-04-25  Bruno Haible  <bruno@clisp.org>
24313
24314         strnlen: Fix a C++ test error on MacOS X and Solaris.
24315         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
24316         the function is not declared.
24317         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
24318         Simon Josefsson.
24319
24320 2010-04-24  Bruno Haible  <bruno@clisp.org>
24321
24322         Avoid a gcc warning.
24323         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
24324         of correct type for %08lx directive.
24325         Reported by Eric Blake.
24326
24327 2010-04-24  Bruno Haible  <bruno@clisp.org>
24328
24329         vasnprintf: Correct errno value in case of out-of-memory.
24330         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
24331         or sprintf. Use the errno value from SNPRINTF or sprintf.
24332         Reported by Ian Beckwith <ianb@erislabs.net>.
24333
24334 2010-04-24  Bruno Haible  <bruno@clisp.org>
24335
24336         ansi-c++-opt: Find correct compiler when cross-compiling.
24337         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
24338         AC_CHECK_PROGS.
24339         Reported by Simon Josefsson.
24340
24341 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
24342
24343         vc-list-files: Add support for subversion
24344         * build-aux/vc-list-files: Use "svn list" to generate the list of
24345         files controlled by subversion.
24346
24347 2010-04-23  Jim Meyering  <meyering@redhat.com>
24348
24349         vc-list-files tests: convert to use init.sh
24350         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
24351         path_prepend_.
24352         Use Exit, not exit.
24353         Use skip_ rather than open coding it.
24354         Remove trap set-up and compare definitions.
24355         * tests/test-vc-list-files-git.sh: Likewise.
24356         * modules/vc-list-files-tests (Files): Add tests/init.sh.
24357
24358 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24359
24360         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24361         backup files.
24362
24363 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24364
24365         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24366
24367 2010-04-20  Eric Blake  <eblake@redhat.com>
24368
24369         tests: be robust to ignored SIGPIPE
24370         * tests/test-select-in.sh: Consume all output.
24371         * tests/test-lseek.sh: Check correct exit status, while avoiding
24372         EPIPE.
24373
24374 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24375             Bruno Haible  <bruno@clisp.org>
24376
24377         visibility: Don't use -fvisibility if it leads to a warning.
24378         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24379         yes, don't pretend that visibility works if it leads to a warning.
24380         Reported by Mike Gran <spk121@yahoo.com>.
24381
24382 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24383
24384         * build-aux/bootstrap: Use "git -h" for testing for supported options
24385         instead of "git --help".  The short-form option only shows a summary,
24386         and doesn't layout the full man page.  Grep for the full option name
24387         in the summary, too.
24388
24389 2010-04-19  Bruno Haible  <bruno@clisp.org>
24390
24391         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
24392         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
24393         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
24394         mention of RELOCATABLE_STRIP.
24395         Reported by Sylvain Beucler <beuc@beuc.net>.
24396
24397 2010-04-19  Bruno Haible  <bruno@clisp.org>
24398
24399         * lib/diffseq.h: Fix typo in comment.
24400         Reported by Eric Blake.
24401
24402 2010-04-19  Bruno Haible  <bruno@clisp.org>
24403
24404         ioctl: Move autoconf macro to a .m4 file.
24405         * m4/ioctl.m4: New file, extracted from modules/ioctl.
24406         * modules/ioctl (Files): Add it.
24407         (configure.ac): Simply invoke gl_FUNC_IOCTL.
24408         Reported by Ian Beckwith <ianb@erislabs.net>.
24409
24410 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
24411             Bruno Haible  <bruno@clisp.org>
24412
24413         diffseq: Accommodate use-case with abstract arrays.
24414         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
24415         is not defined.
24416         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
24417         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
24418
24419 2010-04-18  Bruno Haible  <bruno@clisp.org>
24420
24421         * doc/posix-headers/stdbool.texi: More precise wording.
24422
24423 2010-04-17  Jim Meyering  <meyering@redhat.com>
24424
24425         maint.mk: use gnu-style indentation in an embedded perl script
24426         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
24427         Rename variable: s/two/last_two_bytes/
24428
24429 2010-04-16  Eric Blake  <eblake@redhat.com>
24430
24431         test-stdbool: skip test that fails with Solaris CC
24432         * tests/test-stdbool.c (f): Skip test that causes compilation
24433         error under buggy C++ compiler.
24434         * lib/stdbool.in.h: Document the limitation.
24435         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
24436
24437         setenv: allow compilation with C++
24438         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
24439         register keyword.
24440
24441         stdint: allow test to pass with C++
24442         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
24443
24444         getopt: allow compilation with C++
24445         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
24446         struct.
24447         * lib/getopt.c (_getopt_internal_r): Use correct type.
24448         Reported by Dagobert Michelson, via Joel E. Denny.
24449
24450 2010-04-16  Bruno Haible  <bruno@clisp.org>
24451
24452         Override netdb.h always.
24453         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
24454         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
24455         Reported by Ludovic Courtès <ludo@gnu.org>.
24456
24457 2010-04-15  Bruno Haible  <bruno@clisp.org>
24458
24459         openpty: Fix mistake from 2010-03-21.
24460         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
24461         Reported by Simon Josefsson.
24462
24463 2010-04-15  Eric Blake  <eblake@redhat.com>
24464
24465         test-forkpty: fix expected signature
24466         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
24467         Reported by Simon Josefsson.
24468
24469 2010-04-15  Jim Meyering  <meyering@redhat.com>
24470
24471         maint.mk: texinfo_suffix_re_: correct the default regexp
24472         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24473
24474         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24475         make it configurable via texinfo_suffix_re_.
24476
24477 2010-04-14  Eric Blake  <eblake@redhat.com>
24478
24479         strtok_r: relax license to LGPLv2+
24480         * modules/strtok_r (License): Relax license.
24481         Reported by Matthias Bolte.
24482
24483 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24484
24485         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24486         version 1.4.4 by default instead of requiring the libgcrypt
24487         version used during build.  This makes it possible to use the
24488         application with older but still binary compatible libgcrypt
24489         versions.
24490
24491 2010-04-13  Eric Blake  <eblake@redhat.com>
24492
24493         getopt-gnu: match recent glibc fixes and posix ruling
24494         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24495         '+' handling, when requesting extensions.
24496         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24497         'W;' handling.
24498         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24499         * doc/posix-functions/getopt.texi (getopt): Document this.
24500         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24501         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24502         Likewise.
24503
24504         getopt: merge bug fixes from glibc
24505         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24506         diagnostics.  Honor '+:' correctly.  Reject ';'.
24507
24508         getopt-posix: detect MacOS bug
24509         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24510         optind when missing a required argument.
24511         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24512         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24513         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24514         Likewise.
24515
24516         getopt-posix: avoid spurious failure on Solaris
24517         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24518         an indicator that setting optind=1 is sufficient for reset.
24519
24520         getopt-posix: avoid spurious failure on FreeBSD
24521         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24522         in POSIX mode, since the m4 test uses it.
24523
24524         gnulib-tool: silence warning on BSD sh
24525         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24526
24527 2010-04-13  Jim Meyering  <meyering@redhat.com>
24528
24529         doc: users.txt: GNU patch now uses gnulib
24530         * users.txt: Add patch.
24531
24532 2010-04-12  Jim Meyering  <meyering@redhat.com>
24533
24534         maint.mk: generate more concise timing data for syntax-check rules
24535         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24536         " done" from each line that reports a syntax-check test duration.
24537
24538 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24539
24540         git-version-gen: use "git update-index..." rather than "git status"
24541         * build-aux/git-version-gen: Use git update-index --refresh, not
24542         "git status".  With some versions of git, "git status" would fail
24543         to update the index and result in an unwarranted "-dirty" suffix.
24544
24545 2010-04-11  Jim Meyering  <meyering@redhat.com>
24546
24547         openat: correct formatting (no semantic change)
24548         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24549         Suggested by Bruno Haible.
24550
24551 2010-04-11  Bruno Haible  <bruno@clisp.org>
24552
24553         Stricter declaration checking in testdirs.
24554         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24555         If for_tests is true, augment AM_CPPFLAGS to define
24556         GNULIB_STRICT_CHECKING.
24557         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24558         GNULIB_STRICT_CHECKING is defined, verify that the function is
24559         declared.
24560
24561 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24562             Bruno Haible  <bruno@clisp.org>
24563
24564         libunistring: Improve configure output.
24565         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24566         Don't say "consider installing GNU libunistring" when checking again
24567         with libiconv.
24568
24569 2010-04-11  Bruno Haible  <bruno@clisp.org>
24570
24571         libunistring: Correct value of $LTLIBUNISTRING.
24572         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24573         correct the value of $LTLIBUNISTRING.
24574
24575 2010-04-11  Bruno Haible  <bruno@clisp.org>
24576
24577         havelib: Add static libraries to LIBS in the right order.
24578         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24579         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24580
24581 2010-04-11  Bruno Haible  <bruno@clisp.org>
24582
24583         libunistring: Detect libunistring also when it depends on libiconv.
24584         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24585         the second AC_LIB_HAVE_LINKFLAGS invocation.
24586
24587 2010-04-11  James Youngman  <jay@gnu.org>
24588
24589         close-stream: declare local scalars to be "const"
24590         * lib/close-stream.c (close_stream): Make boolean variables const
24591         to document the fact that we set but do not change them.
24592
24593 2010-04-11  Bruno Haible  <bruno@clisp.org>
24594
24595         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24596
24597 2010-04-11  Jim Meyering  <meyering@redhat.com>
24598
24599         maint.mk: don't include dist-check.mk
24600         * top/maint.mk: Remove bogus include directive.
24601
24602         maint.mk: improve empty-line-at-EOF check
24603         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24604         solution, rather than tail+Perl-based one.  The latter would read
24605         a few kilobytes from the end of each file, and did not handle empty
24606         files properly.
24607
24608         maint.mk: print the elapsed time for each syntax-check rule
24609         * top/maint.mk (sc_m_rules_): Save start time in a file.
24610         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24611         (local-check): Interpose the .z rules
24612
24613 2010-04-11  Jim Meyering  <meyering@redhat.com>
24614
24615         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24616         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24617         empty file with one that ends in an empty line.
24618
24619 2010-04-10  Bruno Haible  <bruno@clisp.org>
24620
24621         mkdir: Make it work on mingw64.
24622         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24623         * lib/mkdir.c: Update comment.
24624         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
24625
24626 2010-04-10  Bruno Haible  <bruno@clisp.org>
24627
24628         Don't override improved macro from newer autoconf.
24629         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24630         autoconf >= 2.62.
24631         Reported by Joel E. Denny <jdenny@clemson.edu>.
24632
24633 2010-04-10  Jim Meyering  <meyering@redhat.com>
24634
24635         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24636         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24637
24638         maint.mk: correct a diagnostic
24639         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24640         in diagnostic; now use $prohibit.
24641
24642 2010-04-10  Bruno Haible  <address@hidden>
24643
24644         fchownat: Fix a C++ test error on Solaris 8.
24645         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24646         the function does not exist.
24647
24648 2010-04-10  Bruno Haible  <bruno@clisp.org>
24649
24650         vasnprintf: Add more tests.
24651         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24652         (test_function): Test converting an invalid wide string.
24653
24654         vasnprintf: Correct handling of unconvertible wide string arguments.
24655         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24656         VASNPRINTF.
24657         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24658         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24659         smaller than the expected maximum need for the directive. Set errno to
24660         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24661         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24662         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24663         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24664         * modules/vasnprintf (Files): Add m4/printf.m4.
24665         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24666
24667 2010-04-10  Bruno Haible  <bruno@clisp.org>
24668
24669         vasnprintf: Fix crash in %ls directive.
24670         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24671         string is passed as argument to %ls, with no precision and no width.
24672         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24673
24674 2010-04-10  Bruno Haible  <bruno@clisp.org>
24675
24676         vasnprintf: Fix multiple test failures on mingw.
24677         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24678         _snprintf, or snwprintf, not _snwprintf.
24679
24680 2010-04-10  Bruno Haible  <bruno@clisp.org>
24681
24682         write: Fix a C++ test error on mingw.
24683         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24684
24685 2010-04-10  Bruno Haible  <bruno@clisp.org>
24686
24687         vasnprintf test: Reduce code duplication.
24688         * tests/test-vasnprintf.c (test_function): New function, extracted from
24689         test_vasnprintf.
24690         (test_vasnprintf, test_asnprintf): Invoke it.
24691
24692 2010-04-10  Bruno Haible  <bruno@clisp.org>
24693
24694         strnlen: Fix warning in C++ mode on MacOS X.
24695         * lib/string.in.h (strnlen): Use the modern idiom.
24696         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24697         defining strnlen as a macro already in <config.h>.
24698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24699         REPLACE_STRNLEN.
24700         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24701         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24702
24703 2010-04-08  James Youngman  <jay@gnu.org>
24704
24705         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24706         the example.
24707
24708 2010-04-09  Jim Meyering  <meyering@redhat.com>
24709
24710         maint.mk: print better diagnostic when there is no $(_hv_file)
24711         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24712         announce that when $(_hv_file) (aka help-version) does not exist.
24713
24714         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24715         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24716         not try to interpret its random input bytes.  Jarno Rajahalme reported
24717         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24718         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24719         (mktempd_): Likewise, just in case.
24720
24721         ftruncate: add two years to projected module removal date: 2012
24722         * m4/ftruncate.m4: Adjust comments.
24723
24724         ftruncate: mark module as obsolete; even MinGW provides it, now
24725         * modules/ftruncate (Status): Obsolete.
24726         (Notice): Say that.
24727         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24728         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24729
24730 2010-04-08  Bruno Haible  <bruno@clisp.org>
24731
24732         Fix side effects from tests-related modules.
24733         * modules/dprintf-posix (Comment): New section.
24734         * modules/fprintf-posix (Comment): Likewise.
24735         * modules/obstack-printf-posix (Comment): Likewise.
24736         * modules/printf-posix (Comment): Likewise.
24737         * modules/snprintf-posix (Comment): Likewise.
24738         * modules/sprintf-posix (Comment): Likewise.
24739         * modules/vasnprintf-posix (Comment): Likewise.
24740         * modules/vasprintf-posix (Comment): Likewise.
24741         * modules/vdprintf-posix (Comment): Likewise.
24742         * modules/vfprintf-posix (Comment): Likewise.
24743         * modules/vprintf-posix (Comment): Likewise.
24744         * modules/vsnprintf-posix (Comment): Likewise.
24745         * modules/vsprintf-posix (Comment): Likewise.
24746         * modules/xprintf-posix (Comment): Likewise.
24747         * modules/xvasprintf-posix (Comment): Likewise.
24748         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24749         * modules/floorf-tests (Depends-on): Likewise.
24750         * modules/round-tests (Depends-on): Likewise.
24751         * modules/roundf-tests (Depends-on): Likewise.
24752         * modules/trunc-tests (Depends-on): Likewise.
24753         * modules/truncf-tests (Depends-on): Likewise.
24754         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24755         'fprintf-posix' module is not present.
24756         * tests/test-floorf2.c (check): Likewise.
24757         * tests/test-trunc2.c (check): Likewise.
24758         * tests/test-truncf2.c (check): Likewise.
24759         * tests/test-round2.c (equal): Likewise.
24760         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24761
24762 2010-04-07  Karl Berry  <karl@gnu.org>
24763
24764         * config/srclist.txt,
24765         * config/srclistvars.sh,
24766         * config/srclist-update: doc fixes.
24767
24768 2010-04-07  Jim Meyering  <meyering@redhat.com>
24769
24770         maint.mk: add a PATH crosschecking syntax-check rule
24771         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24772         Useful if you use a test like the one in help-version (coreutils,
24773         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24774         printed by prog --version.
24775
24776 2010-04-06  Bruno Haible  <bruno@clisp.org>
24777
24778         Fix link error on mingw.
24779         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24780         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24781
24782 2010-04-06  Bruno Haible  <bruno@clisp.org>
24783
24784         Assume rmdir exists.
24785         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24786
24787 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24788
24789         doc: update users.txt
24790         * users.txt: Add gcal.
24791
24792 2010-04-06  Jim Meyering  <meyering@redhat.com>
24793
24794         init.sh: simply unset TMPDIR rather than risking env -i
24795         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24796         although it probably works fine on all Unix-based systems, some
24797         systems (Cygwin?) cannot tolerate a totally cleared environment.
24798         Suggestion from Eric Blake.
24799
24800 2010-04-06  Jim Meyering  <meyering@redhat.com>
24801
24802         init.sh: portability fix: use env's POSIX-specified -i option not -u
24803         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24804         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24805
24806 2010-04-05  Bruno Haible  <bruno@clisp.org>
24807
24808         btowc: Work around Cygwin 1.7.2 bug.
24809         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24810         does not map NUL to 0.
24811         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24812
24813 2010-04-05  Bruno Haible  <bruno@clisp.org>
24814
24815         Make the multithread modules work on Cygwin 1.7.2.
24816         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24817         imported symbols can be declared weak, so that it returns "no" on
24818         Cygwin 1.7.2.
24819
24820 2010-04-05  Bruno Haible  <bruno@clisp.org>
24821
24822         Use the module 'strncat'.
24823         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24824
24825         Tests for module 'strncat'.
24826         * modules/strncat-tests: New file.
24827         * tests/test-strncat.c: New file.
24828
24829         New module 'strncat'.
24830         * lib/string.in.h (strncat): New declaration.
24831         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24832         * m4/strncat.m4: New file, based on m4/memchr.m4.
24833         * modules/strncat: New file.
24834         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24835         is declared.
24836         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24837         REPLACE_STRNCAT.
24838         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24839         REPLACE_STRNCAT.
24840         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24841         module.
24842         * tests/test-string-c++.cc: Check signature of strncat.
24843
24844 2010-04-05  Jim Meyering  <meyering@redhat.com>
24845
24846         xstrtoumax-tests: convert to use init.sh
24847         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24848         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24849         Use Exit, not exit.
24850         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24851
24852         xstrtoimax-tests: convert to use init.sh
24853         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24854         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24855         Use Exit, not exit.
24856         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24857
24858 2010-04-05  Bruno Haible  <bruno@clisp.org>
24859
24860         sys_socket: Avoid #define replacements in C++ mode.
24861         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24862         warning to the function if possible, rather than #defining the symbol
24863         to a dysfunctional alias.
24864
24865 2010-04-05  Bruno Haible  <bruno@clisp.org>
24866
24867         fseeko: Fix C++ test error on mingw.
24868         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24869         gl_FUNC_FSEEKO.
24870         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24871         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24872         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24873         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24874
24875 2010-04-05  Bruno Haible  <bruno@clisp.org>
24876
24877         duplocale: Improve test output.
24878         * tests/test-duplocale.c (main): Print reason for skipped test.
24879
24880 2010-04-05  Bruno Haible  <bruno@clisp.org>
24881
24882         Assume rmdir exists.
24883         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24884         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24885
24886 2010-04-05  Bruno Haible  <bruno@clisp.org>
24887
24888         Fix link error on Solaris 8 with cc.
24889         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24890
24891 2010-04-05  Bruno Haible  <bruno@clisp.org>
24892
24893         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24894         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24895
24896 2010-04-05  Bruno Haible  <bruno@clisp.org>
24897
24898         vasprintf: Update documentation.
24899         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24900
24901 2010-04-05  Bruno Haible  <bruno@clisp.org>
24902
24903         ptsname: Improve test.
24904         * tests/test-ptsname.c (main): Also try the various master names of BSD
24905         systems.
24906
24907 2010-04-05  Bruno Haible  <bruno@clisp.org>
24908
24909         memchr: Avoid a possible C++ test error.
24910         * lib/string.in.h (memchr): Provide declaration if function is missing.
24911         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24912         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24913         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24914         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24915
24916 2010-04-05  Bruno Haible  <bruno@clisp.org>
24917
24918         strtok_r: Improve idiom.
24919         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24920         AC_LIBOBJ is used.
24921
24922 2010-04-05  Bruno Haible  <bruno@clisp.org>
24923
24924         strdup: Improve idiom.
24925         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24926         AC_LIBOBJ is used.
24927         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24928         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24929         when AC_LIBOBJ is used.
24930
24931 2010-04-05  Bruno Haible  <bruno@clisp.org>
24932
24933         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24934         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24935         don't set REPLACE_MBSINIT to 1.
24936         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24937         don't set REPLACE_MBRTOWC to 1.
24938         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24939         exist, don't set REPLACE_MBSRTOWCS to 1.
24940         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24941         exist, don't set REPLACE_MBSNRTOWCS to 1.
24942         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24943         don't set REPLACE_WCRTOMB to 1.
24944         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24945         exist, don't set REPLACE_WCSRTOMBS to 1.
24946         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24947         exist, don't set REPLACE_WCSNRTOMBS to 1.
24948
24949 2010-04-05  Bruno Haible  <bruno@clisp.org>
24950
24951         ldexpl: Improve idiom.
24952         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24953         make sure to set HAVE_DECL_LDEXPL to 0.
24954
24955 2010-04-05  Jim Meyering  <meyering@redhat.com>
24956
24957         xstrtol-tests: convert to use init.sh
24958         * modules/xstrtol-tests (Files): Add tests/init.sh.
24959         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24960         Use Exit, not exit.
24961         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24962
24963         atexit-tests: convert to use init.sh
24964         * modules/atexit-tests (Files): Add tests/init.sh.
24965         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24966         Use Exit, not exit.
24967         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24968
24969         init.sh: fix typo
24970         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24971
24972         init.sh: make it easier for a test script to write to the tty, ...
24973         when using automake's parallel-tests mode.
24974         * tests/init.sh (stderr_fileno_): Define overridable variable.
24975         (warn_): New function, to use it.
24976         (fail_, skip_, framework_failure_): Use warn_.
24977
24978 2010-04-04  Bruno Haible  <bruno@clisp.org>
24979
24980         btowc: Avoid warning.
24981         * lib/btowc.c: Include <stdlib.h>.
24982         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24983
24984 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24985             Bruno Haible  <bruno@clisp.org>
24986
24987         wchar: Port to NetBSD 1.5.
24988         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24989         * lib/wctype.in.h (WEOF): Likewise.
24990
24991 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24992             Bruno Haible  <bruno@clisp.org>
24993
24994         Port extended stdio to NetBSD 1.5.
24995         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24996         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24997         older.
24998
24999 2010-04-04  Bruno Haible  <bruno@clisp.org>
25000
25001         string: Remove unused substitution.
25002         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
25003         HAVE_DECL_STRERROR.
25004         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
25005
25006 2010-04-04  Bruno Haible  <bruno@clisp.org>
25007
25008         strtod: Avoid a possible C++ test error.
25009         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
25010         set REPLACE_STRTOD.
25011
25012 2010-04-04  Bruno Haible  <bruno@clisp.org>
25013
25014         strerror: Update documentation.
25015         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
25016
25017 2010-04-04  Bruno Haible  <bruno@clisp.org>
25018
25019         stdio: Fix some C++ test errors on Solaris 8 with GCC.
25020         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
25021         _GL_CXXALIAS_SYS_CAST.
25022
25023 2010-04-04  Bruno Haible  <bruno@clisp.org>
25024
25025         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25026         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
25027         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
25028         REPLACE_FREXPL to 1.
25029         * doc/posix-functions/frexpl.texi: Update documentation.
25030
25031 2010-04-04  Bruno Haible  <bruno@clisp.org>
25032
25033         math: Fix some C++ test errors on Solaris 8 and Cygwin.
25034         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
25035
25036 2010-04-04  Bruno Haible  <bruno@clisp.org>
25037
25038         Implement nanosleep for native Windows.
25039         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
25040
25041 2010-04-04  Bruno Haible  <bruno@clisp.org>
25042
25043         math: Fix some C++ test errors on Solaris 8.
25044         * lib/math.in.h (truncf, trunc): Use simpler idiom.
25045
25046 2010-04-04  Bruno Haible  <bruno@clisp.org>
25047
25048         math: Fix some C++ test errors on Cygwin.
25049         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
25050         truncl): Provide declaration if the system does not have it.
25051         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
25052         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
25053         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
25054         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
25055         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
25056         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
25057         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
25058         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
25059         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
25060         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
25061         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
25062         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
25063         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
25064         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
25065         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
25066         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
25067         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
25068         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25069         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25070         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
25071         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25072         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25073
25074 2010-04-04  Bruno Haible  <bruno@clisp.org>
25075
25076         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
25077         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
25078         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
25079         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
25080         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25081         * m4/isinf.m4 (gl_ISINF): Likewise.
25082         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25083
25084 2010-04-04  Bruno Haible  <bruno@clisp.org>
25085
25086         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
25087         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25088
25089 2010-04-04  Bruno Haible  <bruno@clisp.org>
25090
25091         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
25092         * modules/tmpfile (configure.ac): Update.
25093
25094         tmpfile: Fix C++ test error on mingw.
25095         * lib/stdio.in.h (tmpfile): New declaration.
25096         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
25097         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
25098         * modules/tmpfile (Depends-on): Add stdio.
25099         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25100         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
25101         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
25102         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
25103         REPLACE_TMPFILE.
25104         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
25105
25106 2010-04-04  Bruno Haible  <bruno@clisp.org>
25107
25108         ioctl: Fix C++ test error on mingw.
25109         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
25110         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
25111         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
25112
25113 2010-04-03  Bruno Haible  <bruno@clisp.org>
25114
25115         wcwidth: Fix C++ test error on mingw.
25116         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
25117         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
25118         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
25119
25120 2010-04-03  Bruno Haible  <bruno@clisp.org>
25121
25122         nanosleep: Fix C++ test error on mingw.
25123         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
25124         * lib/time.in.h (nanosleep): Use modern idiom.
25125         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
25126         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
25127         REPLACE_NANOSLEEP to 1.
25128         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
25129         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
25130
25131 2010-04-03  Bruno Haible  <bruno@clisp.org>
25132
25133         strptime: Fix C++ test error on mingw.
25134         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
25135         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
25136         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
25137         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
25138         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
25139         not REPLACE_STRPTIME.
25140         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
25141         REPLACE_STRPTIME.
25142
25143 2010-04-03  Bruno Haible  <bruno@clisp.org>
25144
25145         timegm: Fix C++ test error on mingw.
25146         * lib/time.in.h (timegm): Use modern idiom.
25147         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
25148         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
25149         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
25150         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
25151
25152 2010-04-03  Bruno Haible  <bruno@clisp.org>
25153
25154         timegm: Assume declaration if function exists.
25155         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
25156         if it exists. Don't clobber ac_cv_func_timegm.
25157
25158 2010-04-03  Bruno Haible  <bruno@clisp.org>
25159
25160         time_r: Fix C++ test error on mingw.
25161         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
25162         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
25163         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
25164         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
25165         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
25166
25167 2010-04-03  Bruno Haible  <bruno@clisp.org>
25168
25169         time_r: Minor updates.
25170         * modules/time_r (Description): Mention the provided functions.
25171         * lib/time_r.c: Don't include <string.h>.
25172         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
25173         * doc/posix-functions/localtime_r.texi: Likewise.
25174
25175 2010-04-03  Bruno Haible  <bruno@clisp.org>
25176
25177         time: Fix regression introduced on 2010-03-08.
25178         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
25179         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
25180
25181 2010-04-03  Jim Meyering  <meyering@redhat.com>
25182
25183         maint.mk: don't silently disable project-specific syntax-check rules
25184         * top/maint.mk (_prohibit_regexp): Define, to help people realize
25185         that they need to convert their project-specific syntax-check rules
25186         to use the new _sc_search_regexp.
25187
25188 2010-04-03  Bruno Haible  <bruno@clisp.org>
25189
25190         fchdir: Fix regression introduced on 2010-03-08.
25191         * lib/unistd.in.h (fchdir): Fix declaration.
25192         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
25193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
25194         REPLACE_FCHDIR.
25195         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
25196         REPLACE_FCHDIR.
25197
25198 2010-04-03  Bruno Haible  <bruno@clisp.org>
25199
25200         getpagesize: Fix C++ test error on mingw.
25201         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
25202         system does not declare the function.
25203         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
25204         declared.
25205         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25206         HAVE_DECL_GETPAGESIZE.
25207         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
25208
25209 2010-04-03  Bruno Haible  <bruno@clisp.org>
25210
25211         stdio: Make C++ tests work on mingw.
25212         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
25213         does not declare the function.
25214
25215 2010-04-03  Bruno Haible  <bruno@clisp.org>
25216
25217         ftello: Fix C++ test error on mingw.
25218         * lib/stdio.in.h (ftello): Use modern idiom.
25219         * lib/ftello.c (ftello): Renamed from rpl_ftello.
25220         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
25221         is missing and that it needs to be replaced.
25222         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
25223         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
25224         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
25225
25226 2010-04-03  Bruno Haible  <bruno@clisp.org>
25227
25228         fseeko: Fix C++ test error on mingw.
25229         * lib/stdio.in.h (fseeko): Use modern idiom.
25230         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
25231         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
25232         is missing and that it needs to be replaced.
25233         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
25234         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
25235         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
25236
25237 2010-04-03  Bruno Haible  <bruno@clisp.org>
25238
25239         mkstemp: Fix C++ test error on mingw.
25240         * lib/stdlib.in.h (mkstemp): Use modern idiom.
25241         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
25242         function is missing and that it needs to be replaced.
25243         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
25244         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
25245
25246 2010-04-03  Bruno Haible  <bruno@clisp.org>
25247
25248         stpncpy: Fix C++ test error on mingw.
25249         * lib/string.in.h (stpncpy): Use modern idiom.
25250         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
25251         function is missing and that it needs to be replaced.
25252         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25253         REPLACE_STPNCPY.
25254         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
25255
25256 2010-04-03  Bruno Haible  <bruno@clisp.org>
25257
25258         sys_stat: Fix C++ test error on mingw.
25259         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
25260         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
25261
25262 2010-04-03  Bruno Haible  <bruno@clisp.org>
25263
25264         pty: Update doc.
25265         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
25266
25267 2010-04-03  Bruno Haible  <bruno@clisp.org>
25268
25269         unistd: Fix C++ test error on mingw.
25270         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
25271
25272 2010-04-03  Bruno Haible  <bruno@clisp.org>
25273
25274         Update doc regarding mingw.
25275         * doc/glibc-functions/openpty.texi: Update regarding mingw.
25276         * doc/glibc-functions/login_tty.texi: Likewise.
25277         * doc/glibc-functions/forkpty.texi: Likewise.
25278
25279 2010-04-03  Bruno Haible  <bruno@clisp.org>
25280
25281         stdlib: Avoid compilation failure of c-strtold on mingw.
25282         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
25283
25284 2010-04-03  Bruno Haible  <bruno@clisp.org>
25285
25286         locale: Make C++ tests work on Cygwin and mingw.
25287         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
25288         cannot provide the function.
25289         Reported by Simon Josefsson.
25290
25291 2010-04-03  Bruno Haible  <bruno@clisp.org>
25292
25293         localename: Port to MacOS X 10.6.
25294         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
25295         memory layout of the locales in MacOS X 10.6 as well.
25296         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
25297
25298 2010-04-02  Bruno Haible  <bruno@clisp.org>
25299
25300         gnulib-tool: Ensure that long-running tests are executed last.
25301         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
25302         running tests after the one for the other tests.
25303
25304 2010-04-02  Bruno Haible  <bruno@clisp.org>
25305
25306         gnulib-tool: Ensure the tests in the main directory are executed first.
25307         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
25308         start with the current directory.
25309
25310 2010-04-02  Bruno Haible  <bruno@clisp.org>
25311
25312         Tests for module 'havelib', moved here from GNU gettext.
25313         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
25314         modifications.
25315         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
25316         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
25317         with modifications.
25318         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
25319         modifications.
25320         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
25321         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
25322         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
25323         with modifications.
25324         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
25325         with modifications.
25326         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
25327         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
25328         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
25329         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
25330         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
25331         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
25332         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
25333         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
25334         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
25335         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
25336         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
25337         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
25338         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
25339         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
25340         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
25341         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
25342         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
25343         with modifications.
25344         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
25345         with modifications.
25346         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
25347         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
25348         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
25349         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
25350         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
25351         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
25352         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
25353         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
25354         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
25355         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
25356         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
25357         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25358         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25359         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25360         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25361         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25362         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25363         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25364         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25365         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25366         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25367         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25368         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25369         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25370         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25371         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25372         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25373         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25374         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25375         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25376         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25377         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25378         * tests/havelib/rpathx/rpathx.c: New file, from
25379         gettext/autoconf-lib-link.
25380         * tests/havelib/rpathx/Makefile.am: New file, from
25381         gettext/autoconf-lib-link.
25382         * tests/havelib/rpathx/configure.ac: New file, from
25383         gettext/autoconf-lib-link with modifications.
25384         * tests/havelib/rpathy/rpathy.c: New file, from
25385         gettext/autoconf-lib-link.
25386         * tests/havelib/rpathy/Makefile.am: New file, from
25387         gettext/autoconf-lib-link.
25388         * tests/havelib/rpathy/configure.ac: New file, from
25389         gettext/autoconf-lib-link with modifications.
25390         * tests/havelib/rpathz/rpathz.c: New file, from
25391         gettext/autoconf-lib-link.
25392         * tests/havelib/rpathz/Makefile.am: New file, from
25393         gettext/autoconf-lib-link.
25394         * tests/havelib/rpathz/configure.ac: New file, from
25395         gettext/autoconf-lib-link with modifications.
25396         * tests/havelib/rpathlx/usex.c: New file, from
25397         gettext/autoconf-lib-link.
25398         * tests/havelib/rpathlx/Makefile.am: New file, from
25399         gettext/autoconf-lib-link.
25400         * tests/havelib/rpathlx/configure.ac: New file, from
25401         gettext/autoconf-lib-link with modifications.
25402         * tests/havelib/rpathly/usey.c: New file, from
25403         gettext/autoconf-lib-link.
25404         * tests/havelib/rpathly/Makefile.am: New file, from
25405         gettext/autoconf-lib-link.
25406         * tests/havelib/rpathly/configure.ac: New file, from
25407         gettext/autoconf-lib-link with modifications.
25408         * tests/havelib/rpathlz/usez.c: New file, from
25409         gettext/autoconf-lib-link.
25410         * tests/havelib/rpathlz/Makefile.am: New file, from
25411         gettext/autoconf-lib-link.
25412         * tests/havelib/rpathlz/configure.ac: New file, from
25413         gettext/autoconf-lib-link with modifications.
25414         * tests/havelib/rpathlyx/usey.c: New file, from
25415         gettext/autoconf-lib-link.
25416         * tests/havelib/rpathlyx/Makefile.am: New file, from
25417         gettext/autoconf-lib-link.
25418         * tests/havelib/rpathlyx/configure.ac: New file, from
25419         gettext/autoconf-lib-link with modifications.
25420         * tests/havelib/rpathlzyx/usez.c: New file, from
25421         gettext/autoconf-lib-link.
25422         * tests/havelib/rpathlzyx/Makefile.am: New file, from
25423         gettext/autoconf-lib-link.
25424         * tests/havelib/rpathlzyx/configure.ac: New file, from
25425         gettext/autoconf-lib-link with modifications.
25426         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
25427         with modifications.
25428
25429 2010-04-02  Bruno Haible  <bruno@clisp.org>
25430
25431         gnulib-tool: Create distributed built sources also for the tests.
25432         * gnulib-tool (func_create_testdir): Also generate distributed built
25433         sources in the tests directory.
25434
25435 2010-04-02  Bruno Haible  <bruno@clisp.org>
25436
25437         gnulib-tool: Obey user's environment variables.
25438         * gnulib-tool (func_create_testdir): When creating built sources,
25439         respect the environment variables for autoconf, automake, etc. given by
25440         the user.
25441
25442 2010-04-02  Bruno Haible  <bruno@clisp.org>
25443
25444         gnulib-tool: Provide the value of --m4-base to modules.
25445         * gnulib-tool (func_import, func_create_testdir): Emit a definition
25446         of gl_m4_base.
25447
25448 2010-04-02  Eric Blake  <eblake@redhat.com>
25449
25450         maint.mk: fix some fallout
25451         * NEWS: Document the incompatible change, and its effect on cfg.mk.
25452         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
25453
25454 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25455
25456         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
25457         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
25458         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
25459         (sc_cast_of_x_alloc_return_value): Likewise.
25460         (sc_cast_of_alloca_return_value): Likewise.
25461         (sc_space_tab): Likewise.
25462         (sc_prohibit_atoi_atof): Likewise.
25463         (sc_prohibit_magic_number_exit): Likewise.
25464         (sc_error_exit_success): Likewise.
25465         (sc_file_system): Likewise.
25466         (sc_prohibit_have_config_h): Likewise.
25467         (sc_require_config_h): Likewise.
25468         (sc_prohibit_HAVE_MBRTOWC): Likewise.
25469         (sc_obsolete_symbols): Likewise.
25470         (sc_changelog): Likewise.
25471         (sc_program_name): Likewise.
25472         (sc_the_the): Likewise.
25473         (sc_trailing_blank): Likewise.
25474         (sc_two_space_separator_in_usage): Likewise.
25475         (sc_useless_cpp_parens): Likewise.
25476         (sc_GPL_version): Likewise.
25477         (sc_GFDL_version): Likewise.
25478         (sc_texinfo_acronym): Likewise.
25479         (sc_prohibit_cvs_keyword): Likewise.
25480         (sc_prohibit_stat_st_blocks): Likewise.
25481         (sc_prohibit_S_IS_definition): Likewise.
25482         (sc_redundant_const): Likewise.
25483         (sc_makefile_TAB_only_indentation): Likewise.
25484         (sc_m4_quote_check): Likewise.
25485         (sc_makefile_path_separator_check): Likewise.
25486         (sc_copyright_check): Likewise.
25487         (sc_Wundef_boolean): Likewise.
25488         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25489
25490         maint.mk: match 0 or more whitespace-before-function-call '('
25491         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25492         that have zero or two-and-more spaces between the function name
25493         and the open parenthesis.
25494         (sc_error_message_warn_fatal): Likewise.
25495         (sc_error_message_uppercase): Likewise.
25496         (sc_error_message_period): Likewise.
25497
25498 2010-03-31  Eric Blake  <eblake@redhat.com>
25499
25500         maint.mk: check for [ as well as test
25501         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25502         Based on a libvirt report by Matthias Bolte.
25503
25504         gnumakefile: don't squelch _version output
25505         * top/GNUmakefile (_version): Create one-shot dependency rather
25506         than using $(shell) when version must be regenerated.
25507         (_autoreconf): Run verbosely, by default.
25508
25509         sys_time: avoid compiler warnings
25510         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25511         unconditional, fixing regression from 2010-03-29.
25512         Reported by Simon Josefsson.
25513
25514 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25515
25516         maint.mk: s/_header_without_use/_sc_header_without_use/
25517         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25518         (sc_prohibit_assert_without_use): Use the new name.
25519         (sc_prohibit_close_stream_without_use): Likewise.
25520         (sc_prohibit_getopt_without_use): Likewise.
25521         (sc_prohibit_quotearg_without_use): Likewise.
25522         (sc_prohibit_quote_without_use): Likewise.
25523         (sc_prohibit_long_options_without_use): Likewise.
25524         (sc_prohibit_inttostr_without_use): Likewise.
25525         (sc_prohibit_ignore_value_without_use): Likewise.
25526         (sc_prohibit_error_without_use): Likewise.
25527         (sc_prohibit_xalloc_without_use): Likewise.
25528         (sc_prohibit_hash_without_use): Likewise.
25529         (sc_prohibit_hash_pjw_without_use): Likewise.
25530         (sc_prohibit_safe_read_without_use): Likewise.
25531         (sc_prohibit_argmatch_without_use): Likewise.
25532         (sc_prohibit_canonicalize_without_use): Likewise.
25533         (sc_prohibit_root_dev_ino_without_use): Likewise.
25534         (sc_prohibit_openat_without_use): Likewise.
25535         (sc_prohibit_c_ctype_without_use): Likewise.
25536         (sc_prohibit_signal_without_use): Likewise.
25537         (sc_prohibit_intprops_without_use): Likewise.
25538
25539 2010-03-30  Eric Blake  <eblake@redhat.com>
25540
25541         maint: improve module indicators
25542         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25543         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25544         columns, and avoid extra macro expansion.
25545
25546         fdopendir: work around FreeBSD bug
25547         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25548         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25549         * modules/dirent (Makefile.am): Substitute it.
25550         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25551         declaration.
25552         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25553         fix.
25554         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25555
25556 2010-03-29  Bruno Haible  <bruno@clisp.org>
25557
25558         Emit #pragma system_header after the inclusion guard, not before.
25559         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25560         guard that spans the entire file, not before. This enables an
25561         optimization in GCC's preprocessor.
25562         * lib/ctype.in.h: Likewise.
25563         * lib/dirent.in.h: Likewise.
25564         * lib/errno.in.h: Likewise.
25565         * lib/float.in.h: Likewise.
25566         * lib/getopt.in.h: Likewise.
25567         * lib/iconv.in.h: Likewise.
25568         * lib/langinfo.in.h: Likewise.
25569         * lib/locale.in.h: Likewise.
25570         * lib/math.in.h: Likewise.
25571         * lib/netdb.in.h: Likewise.
25572         * lib/netinet_in.in.h: Likewise.
25573         * lib/pty.in.h: Likewise.
25574         * lib/sched.in.h: Likewise.
25575         * lib/se-selinux.in.h: Likewise.
25576         * lib/search.in.h: Likewise.
25577         * lib/spawn.in.h: Likewise.
25578         * lib/stdarg.in.h: Likewise.
25579         * lib/stdint.in.h: Likewise.
25580         * lib/string.in.h: Likewise.
25581         * lib/strings.in.h: Likewise.
25582         * lib/sys_file.in.h: Likewise.
25583         * lib/sys_ioctl.in.h: Likewise.
25584         * lib/sys_time.in.h: Likewise.
25585         * lib/sys_times.in.h: Likewise.
25586         * lib/sys_utsname.in.h: Likewise.
25587         * lib/sys_wait.in.h: Likewise.
25588         * lib/sysexits.in.h: Likewise.
25589         * lib/wctype.in.h: Likewise.
25590
25591 2010-03-28  James Youngman  <jay@gnu.org>
25592
25593         save-cwd: don't leak a file descriptor when the caller execs.
25594         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25595         saved file descriptor.
25596         * modules/save-cwd (Depends-on): Depend on cloexec.
25597
25598 2010-03-29  Bruno Haible  <bruno@clisp.org>
25599
25600         Remove vestiges of fts-lgpl module.
25601         * lib/fts_.h: Assume GNULIB_FTS is 1.
25602         * lib/fts.c: Likewise.
25603         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25604
25605 2010-03-28  Bruno Haible  <bruno@clisp.org>
25606
25607         Fix definition of tests witness macro.
25608         * gnulib-tool (func_import): Fix definition of witness macro.
25609
25610 2010-03-28  Bruno Haible  <bruno@clisp.org>
25611
25612         Fix ioctl's protoype on glibc systems.
25613         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25614         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25615         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25616         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25617         signature. If not, arrange to replace the ioctl function.
25618         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25619         REPLACE_IOCTL.
25620         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25621         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25622         Reported by Ludovic Courtès <ludo@gnu.org>.
25623
25624 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25625
25626         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25627         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25628         made it so grep -r --include=GLOB* ... did not work.
25629
25630 2010-03-26  Jim Meyering  <meyering@redhat.com>
25631             Eric Blake  <eblake@redhat.com>
25632
25633         maint.mk: prohibit use of test's -o and -a operators
25634         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25635
25636 2010-03-28  Bruno Haible  <bruno@clisp.org>
25637
25638         Remove unused GNULIB_XYZ macro definitions.
25639         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25640         invocation.
25641
25642 2010-03-28  Bruno Haible  <bruno@clisp.org>
25643
25644         Mark privileged tests modules.
25645         * modules/idpriv-drop-tests (Status): New section.
25646         * modules/idpriv-droptemp-tests (Status): New section.
25647
25648 2010-03-28  Bruno Haible  <bruno@clisp.org>
25649
25650         Split C++ tests into separate tests modules.
25651         * modules/dirent-c++-tests: New file, extracted from
25652         modules/dirent-tests.
25653         * modules/dirent-tests: Depend on it.
25654         * modules/fcntl-h-c++-tests: New file, extracted from
25655         modules/fcntl-h-tests.
25656         * modules/fcntl-h-tests: Depend on it.
25657         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25658         * modules/glob-tests: Depend on it.
25659         * modules/iconv-h-c++-tests: New file, extracted from
25660         modules/iconv-h-tests.
25661         * modules/iconv-h-tests: Depend on it.
25662         * modules/langinfo-c++-tests: New file, extracted from
25663         modules/langinfo-tests.
25664         * modules/langinfo-tests: Depend on it.
25665         * modules/locale-c++-tests: New file, extracted from
25666         modules/locale-tests.
25667         * modules/locale-tests: Depend on it.
25668         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25669         * modules/math-tests: Depend on it.
25670         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25671         * modules/pty-tests: Depend on it.
25672         * modules/search-c++-tests: New file, extracted from
25673         modules/search-tests.
25674         * modules/search-tests: Depend on it.
25675         * modules/signal-c++-tests: New file, extracted from
25676         modules/signal-tests.
25677         * modules/signal-tests: Depend on it.
25678         * modules/spawn-c++-tests: New file, extracted from
25679         modules/spawn-tests.
25680         * modules/spawn-tests: Depend on it.
25681         * modules/stdio-c++-tests: New file, extracted from
25682         modules/stdio-tests.
25683         * modules/stdio-tests: Depend on it.
25684         * modules/stdlib-c++-tests: New file, extracted from
25685         modules/stdlib-tests.
25686         * modules/stdlib-tests: Depend on it.
25687         * modules/string-c++-tests: New file, extracted from
25688         modules/string-tests.
25689         * modules/string-tests: Depend on it.
25690         * modules/sys_ioctl-c++-tests: New file, extracted from
25691         modules/sys_ioctl-tests.
25692         * modules/sys_ioctl-tests: Depend on it.
25693         * modules/sys_select-c++-tests: New file, extracted from
25694         modules/sys_select-tests.
25695         * modules/sys_select-tests: Depend on it.
25696         * modules/sys_socket-c++-tests: New file, extracted from
25697         modules/sys_socket-tests.
25698         * modules/sys_socket-tests: Depend on it.
25699         * modules/sys_stat-c++-tests: New file, extracted from
25700         modules/sys_stat-tests.
25701         * modules/sys_stat-tests: Depend on it.
25702         * modules/sys_time-c++-tests: New file, extracted from
25703         modules/sys_time-tests.
25704         * modules/sys_time-tests: Depend on it.
25705         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25706         * modules/time-tests: Depend on it.
25707         * modules/unistd-c++-tests: New file, extracted from
25708         modules/unistd-tests.
25709         * modules/unistd-tests: Depend on it.
25710         * modules/wchar-c++-tests: New file, extracted from
25711         modules/wchar-tests.
25712         * modules/wchar-tests: Depend on it.
25713         * modules/wctype-c++-tests: New file, extracted from
25714         modules/wctype-tests.
25715         * modules/wctype-tests: Depend on it.
25716         Reported by Simon Josefsson.
25717
25718 2010-03-28  Bruno Haible  <bruno@clisp.org>
25719
25720         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25721         * gnulib-tool (func_exists_module): New function, extracted from
25722         func_verify_module.
25723         (func_verify_module): Use it.
25724         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25725         'foo' only if 'foo' exists.
25726         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25727         module.
25728
25729 2010-03-28  Bruno Haible  <bruno@clisp.org>
25730
25731         gnulib-tool: Add support for special categories of tests.
25732         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25733         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25734         (func_usage): Document them.
25735         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25736         inc_unportable_tests, inc_all_tests): New variables.
25737         (func_acceptable): Consider these variables.
25738         (func_modules_transitive_closure): Make it work when the 'Status' field
25739         consists of multiple words.
25740         (func_import): Store and restore the values of inc_cxx_tests,
25741         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25742         inc_all_tests in gnulib-comp.m4.
25743         (func_create_testdir): Set inc_all_tests to true.
25744         * doc/gnulib.texi (Extra tests modules): New section.
25745         Suggested by Jim Meyering.
25746
25747 2010-03-28  Bruno Haible  <bruno@clisp.org>
25748
25749         ansi-c++-opt: Allow turning off the C++ build by default.
25750         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25751         gl_CXX_CHOICE_DEFAULT_NO is defined.
25752         Requested by Eric Blake.
25753
25754 2010-03-28  Bruno Haible  <bruno@clisp.org>
25755
25756         unistd: Avoid #define replacements in C++ mode.
25757         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25758         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25759         setsockopt, shutdown, select): In C++, attach a warning to the function
25760         if possible, rather than #defining the symbol to a dysfunctional alias.
25761         Reported by John W. Eaton <jwe@gnu.org>.
25762
25763 2010-03-28  Bruno Haible  <bruno@clisp.org>
25764
25765         Fix link errors on mingw.
25766         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25767         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25768         $(LIBSOCKET).
25769         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25770         $(LIBSOCKET).
25771
25772 2010-03-28  Bruno Haible  <bruno@clisp.org>
25773             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25774
25775         lib-ignore: Determine different options for different compilers.
25776         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25777         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25778         Add comments.
25779         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25780         * NEWS: Mention the change.
25781
25782 2010-03-27  Bruno Haible  <bruno@clisp.org>
25783
25784         Remove unused GNULIB_XYZ macro definitions.
25785         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25786         * modules/fseek (configure.ac): Likewise.
25787         * modules/ioctl (configure.ac): Likewise.
25788         * modules/open (configure.ac): Likewise.
25789         * modules/stdlib-safer (configure.ac): Likewise.
25790
25791 2010-03-27  Bruno Haible  <bruno@clisp.org>
25792
25793         Add a remark about certain modules.
25794         * modules/malloc (Comment): New section.
25795         * modules/realloc (Comment): Likewise.
25796         * modules/sigpipe (Comment): Likewise.
25797
25798 2010-03-27  Bruno Haible  <bruno@clisp.org>
25799
25800         Resolve conflict between the two kinds of module indicators.
25801         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25802         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25803         * modules/canonicalize (configure.ac): Invoke
25804         gl_MODULE_INDICATOR_FOR_TESTS.
25805         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25806         GNULIB_XYZ.
25807         * tests/test-dirent-c++.cc: Likewise.
25808         * tests/test-dirent-safer.c: Likewise.
25809         * tests/test-dup2.c: Likewise.
25810         * tests/test-fchdir.c: Likewise.
25811         * tests/test-fcntl-h-c++.cc: Likewise.
25812         * tests/test-getopt.c: Likewise.
25813         * tests/test-getopt.h: Likewise.
25814         * tests/test-langinfo-c++.cc: Likewise.
25815         * tests/test-locale-c++.cc: Likewise.
25816         * tests/test-math-c++.cc: Likewise.
25817         * tests/test-pty-c++.cc: Likewise.
25818         * tests/test-search-c++.cc: Likewise.
25819         * tests/test-signal-c++.cc: Likewise.
25820         * tests/test-spawn-c++.cc: Likewise.
25821         * tests/test-stdio-c++.cc: Likewise.
25822         * tests/test-stdlib-c++.cc: Likewise.
25823         * tests/test-string-c++.cc: Likewise.
25824         * tests/test-sys_ioctl-c++.cc: Likewise.
25825         * tests/test-sys_select-c++.cc: Likewise.
25826         * tests/test-sys_socket-c++.cc: Likewise.
25827         * tests/test-sys_stat-c++.cc: Likewise.
25828         * tests/test-sys_time-c++.cc: Likewise.
25829         * tests/test-time-c++.cc: Likewise.
25830         * tests/test-unistd-c++.cc: Likewise.
25831         * tests/test-wchar-c++.cc: Likewise.
25832         * tests/uninorm/test-u8-nfc.c: Likewise.
25833         * tests/uninorm/test-u8-nfd.c: Likewise.
25834         * tests/uninorm/test-u8-nfkc.c: Likewise.
25835         * tests/uninorm/test-u8-nfkd.c: Likewise.
25836         * tests/uninorm/test-u16-nfc.c: Likewise.
25837         * tests/uninorm/test-u16-nfd.c: Likewise.
25838         * tests/uninorm/test-u16-nfkc.c: Likewise.
25839         * tests/uninorm/test-u16-nfkd.c: Likewise.
25840         * tests/uninorm/test-u32-nfc.c: Likewise.
25841         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25842         * tests/uninorm/test-u32-nfd.c: Likewise.
25843         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25844         * tests/uninorm/test-u32-nfkc.c: Likewise.
25845         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25846         * tests/uninorm/test-u32-nfkd.c: Likewise.
25847         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25848         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25849
25850 2010-03-27  Bruno Haible  <bruno@clisp.org>
25851
25852         Distinguish two kinds of module indicators.
25853         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25854         gl_MODULE_INDICATOR.
25855         (gl_MODULE_INDICATOR): New macro.
25856         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25857         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25858         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25859         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25860         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25861         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25862         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25863         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25864         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25865         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25866         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25867         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25868         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25869         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25870         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25871         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25872         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25873         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25874         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25875         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25876         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25877         * modules/cloexec (configure.ac): Likewise.
25878         * modules/getopt-gnu (configure.ac): Likewise.
25879         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25880         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25881         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25882         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25883
25884 2010-03-27  Bruno Haible  <bruno@clisp.org>
25885
25886         New module description field 'Comment'.
25887         * gnulib-tool: New option --extract-comment.
25888         (func_usage): Document it.
25889         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25890         (func_get_comment): New function.
25891         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25892
25893 2010-03-27  Bruno Haible  <bruno@clisp.org>
25894
25895         Addendum to 2010-02-07 commit.
25896         * gnulib-tool (func_usage): Document --extract-applicability option.
25897
25898 2010-03-27  Bruno Haible  <bruno@clisp.org>
25899
25900         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25901         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25902         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25903         rather than link errors.
25904
25905 2010-03-27  Bruno Haible  <bruno@clisp.org>
25906
25907         Avoid side effects from tests-related modules on the compilation of lib.
25908         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25909         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25910         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25911         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25912         macro.
25913         (func_import): Define a witness macro. Assign it a value that depends
25914         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25915         tests-related modules.
25916         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25917         Reported by Jim Meyering.
25918
25919 2010-03-27  Bruno Haible  <bruno@clisp.org>
25920
25921         Factorize common .m4 code.
25922         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25923         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25924         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25925         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25926         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25927         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25928         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25929         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25930         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25931         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25932         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25933         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25934         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25935         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25936         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25937         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25938         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25939         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25940         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25941         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25942         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25943         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25944         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25945         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25946         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25947         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25948         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25949         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25950         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25951         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25952         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25953         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25954
25955 2010-03-27  Bruno Haible  <bruno@clisp.org>
25956
25957         Fix a compilation error on Cygwin with g++ >= 4.3.
25958         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25959         if it is undefined or if we alias it to chmod.
25960         (lstat): Don't warn about the use of this function if it is undefined
25961         or if we alias it to stat.
25962         Reported by Simon Josefsson.
25963
25964 2010-03-27  Bruno Haible  <bruno@clisp.org>
25965
25966         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25967         * modules/getlogin (configure.ac): Update.
25968
25969         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25970         * modules/getlogin_r (configure.ac): Update.
25971
25972         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25973         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25974         * modules/inet_ntop (configure.ac): Update.
25975
25976         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25977         * modules/inet_pton (configure.ac): Update.
25978
25979         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25980         * modules/mbslen (configure.ac): Update.
25981
25982         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25983         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25984         * modules/forkpty (configure.ac): Update.
25985         * modules/openpty (configure.ac): Update.
25986
25987 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25988
25989         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25990         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25991
25992 2010-03-25  Eric Blake  <eblake@redhat.com>
25993
25994         maint: use pragma consistently across replacement headers
25995         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25996         * lib/dirent.in.h (system_header): Likewise.
25997         * lib/errno.in.h (system_header): Likewise.
25998         * lib/float.in.h (system_header): Likewise.
25999         * lib/getopt.in.h (system_header): Likewise.
26000         * lib/iconv.in.h (system_header): Likewise.
26001         * lib/inttypes.in.h (system_header): Likewise.
26002         * lib/langinfo.in.h (system_header): Likewise.
26003         * lib/locale.in.h (system_header): Likewise.
26004         * lib/math.in.h (system_header): Likewise.
26005         * lib/netdb.in.h (system_header): Likewise.
26006         * lib/netinet_in.in.h (system_header): Likewise.
26007         * lib/pty.in.h (system_header): Likewise.
26008         * lib/sched.in.h (system_header): Likewise.
26009         * lib/se-selinux.in.h (system_header): Likewise.
26010         * lib/search.in.h (system_header): Likewise.
26011         * lib/spawn.in.h (system_header): Likewise.
26012         * lib/stdarg.in.h (system_header): Likewise.
26013         * lib/stdint.in.h (system_header): Likewise.
26014         * lib/string.in.h (system_header): Likewise.
26015         * lib/strings.in.h (system_header): Likewise.
26016         * lib/sys_file.in.h (system_header): Likewise.
26017         * lib/sys_ioctl.in.h (system_header): Likewise.
26018         * lib/sys_socket.in.h (system_header): Likewise.
26019         * lib/sys_times.in.h (system_header): Likewise.
26020         * lib/sys_utsname.in.h (system_header): Likewise.
26021         * lib/sys_wait.in.h (system_header): Likewise.
26022         * lib/sysexits.in.h (system_header): Likewise.
26023         * lib/unistd.in.h (system_header): Likewise.
26024         * lib/wctype.in.h (system_header): Likewise.
26025
26026         arpa/inet: fix mingw compilation warning
26027         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
26028         Reported by Matthew Bolte.
26029
26030 2010-03-25  Bruno Haible  <bruno@clisp.org>
26031
26032         Avoid collision between gnulib wrapper and libintl wrapper.
26033         * lib/printf.c (printf): Don't define if a printf wrapper is already
26034         defined in intl/printf.c.
26035         Reported by Michel Boaventura <michel@michelboaventura.com>.
26036
26037 2010-03-25  Bruno Haible  <bruno@clisp.org>
26038
26039         Use ANSI C.
26040         * lib/readutmp.h (getutent): Provide ANSI C prototype.
26041
26042 2010-03-25  Bruno Haible  <bruno@clisp.org>
26043
26044         Minor formatting changes.
26045         * lib/acosl.c: Insert space before function argument list.
26046         * lib/argz.c: Likewise.
26047         * lib/asinl.c: Likewise.
26048         * lib/expl.c: Likewise.
26049         * lib/gen-uni-tables.c: Likewise.
26050         * lib/gettext.h: Likewise.
26051         * lib/glthread/lock.h: Likewise.
26052         * lib/tanl.c: Likewise.
26053         * lib/uniname/uniname.c: Likewise.
26054         * tests/test-idpriv-drop.c: Likewise.
26055         * tests/test-idpriv-droptemp.c: Likewise.
26056         * tests/test-lock.c: Likewise.
26057         * tests/test-tls.c: Likewise.
26058         * lib/argp-help.c: Insert space before function-like macro argument
26059         list.
26060         * lib/memcmp.c: Likewise.
26061         * tests/test-base64.c: Likewise.
26062         * lib/localename.c: Insert space before sizeof's argument list.
26063         * lib/safe-alloc.h: Likewise.
26064         * lib/file-set.h: Insert space before macro argument list.
26065         * tests/test-argp.c: Likewise.
26066         * lib/argp-namefrob.h: Insert space before function parameter list.
26067         * lib/getaddrinfo.c: Likewise.
26068         * lib/netdb.in.h: Likewise.
26069         * lib/parse-duration.h: Likewise.
26070         * lib/parse-duration.c: Likewise.
26071         * lib/poll.c: Likewise.
26072         * lib/select.c: Likewise.
26073         * lib/trim.h: Likewise.
26074         * tests/test-usleep.c: Likewise.
26075         * lib/ldexpl.c: Insert space before function parameter list and before
26076         function argument list.
26077         * lib/logl.c: Likewise.
26078         * lib/sqrtl.c: Likewise.
26079         * lib/trim.c: Likewise.
26080         * lib/cosl.c: Use GNU style indentation. Insert space before function
26081         argument list.
26082         * lib/sinl.c: Likewise.
26083         * lib/tsearch.c: Insert space after 'for'.
26084         Reported by Jim Meyering.
26085
26086 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
26087
26088         * maint.mk (sc_Wundef_boolean): Check for the presence of the
26089         config header before grepping, as it's not present before
26090         autoreconf/configure are run.  Reported by Simon Josefsson.
26091
26092 2010-03-23  Bruno Haible  <bruno@clisp.org>
26093
26094         pt_chown: Make it work with automake < 1.11.
26095         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
26096         Reported by Simon Josefsson.
26097
26098 2010-03-23  Bruno Haible  <bruno@clisp.org>
26099
26100         pt_chown: Don't depend on GPLed modules.
26101         * lib/pt_chown.c: Don't include idpriv.h.
26102         (main): Don't drop privileges.
26103         * modules/pt_chown (Depends-on): Remove idpriv-drop.
26104         Reported by Simon Josefsson.
26105
26106 2010-03-24  Simon Josefsson  <simon@josefsson.org>
26107
26108         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
26109         suggestions from karl@freefriends.org (Karl Berry).
26110
26111 2010-03-22  Eric Blake  <eblake@redhat.com>
26112
26113         gethostname: further tweaks
26114         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
26115         are overriding gethostname.
26116         Suggested by Bruno Haible.
26117
26118 2010-03-21  Bruno Haible  <bruno@clisp.org>
26119
26120         Fix comments.
26121         * lib/forkpty.c (rpl_forkpty): Fix comment.
26122         * lib/openpty.c (rpl_openpty): Likewise.
26123         Reported by Eric Blake.
26124
26125 2010-03-22  Eric Blake  <eblake@redhat.com>
26126
26127         gethostname: fix build on mingw
26128         * lib/unistd.in.h (includes): Work around fact that mingw
26129         <winsock2.h> re-includes <unistd.h>, by avoiding any
26130         redeclarations if we are being included by <winsock2.h>.
26131         Reported by Matthias Bolte.
26132
26133 2010-03-21  Bruno Haible  <bruno@clisp.org>
26134
26135         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26136         * lib/forkpty.c (forkpty): New replacement function, from glibc with
26137         modifications.
26138         * lib/pty.in.h (forkpty): Update declaration. Add comments.
26139         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
26140         provide the replacement.
26141         * modules/forkpty (Depends-on): Add openpty, login_tty.
26142         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
26143         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
26144         * doc/glibc-functions/forkpty.texi: More supported platforms.
26145         * config/srclist.txt: Add forkpty.c (commented).
26146
26147 2010-03-21  Bruno Haible  <bruno@clisp.org>
26148
26149         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
26150         (Makefile.am): Verify that PTY_LIB is defined.
26151
26152         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
26153
26154 2010-03-21  Bruno Haible  <bruno@clisp.org>
26155
26156         Tests for module 'login_tty'.
26157         * modules/login_tty-tests: New file.
26158         * tests/test-login_tty.c: New file.
26159
26160         New module 'login_tty'.
26161         * lib/login_tty.c: New file.
26162         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
26163         * modules/login_tty: New file.
26164         * doc/glibc-functions/login_tty.texi: Mention the new module.
26165
26166 2010-03-21  Bruno Haible  <bruno@clisp.org>
26167
26168         login_tty: Documentation.
26169         * doc/glibc-functions/login_tty.texi: New file.
26170         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
26171
26172 2010-03-21  Bruno Haible  <bruno@clisp.org>
26173
26174         pty: Consistent macro naming.
26175         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
26176         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
26177         * modules/pty (configure.ac): Update.
26178
26179 2010-03-21  Bruno Haible  <bruno@clisp.org>
26180
26181         Tests for openpty: Make stricter.
26182         * tests/test-openpty.c (main): Add test of canonical processing and
26183         erase.
26184         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
26185
26186         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26187         * lib/openpty.c (openpty): New replacement function.
26188         * lib/pty.in.h: Include <termios.h>.
26189         (openpty): Update declaration. Add comments.
26190         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
26191         is not declared, arrange to provide the replacement. Check for _getpty
26192         and posix_openpt.
26193         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
26194         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
26195         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
26196         * modules/pty-tests (test_pty_c___LDADD): New variable.
26197         * doc/glibc-functions/openpty.texi: More supported platforms.
26198
26199 2010-03-21  Bruno Haible  <bruno@clisp.org>
26200
26201         setenv: Tweaks.
26202         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
26203         the test program.
26204         * doc/posix-functions/setenv.texi: Update platforms list.
26205
26206 2010-03-21  Bruno Haible  <bruno@clisp.org>
26207
26208         New module 'unlockpt'.
26209         * lib/unlockpt.c: New file, from glibc with modifications.
26210         * m4/unlockpt.m4: New file.
26211         * modules/unlockpt: New file.
26212         * lib/stdlib.in.h (unlockpt): New declaration.
26213         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
26214         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
26215         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
26216         HAVE_UNLOCKPT.
26217         * doc/posix-functions/unlockpt.texi: Mention the new module.
26218         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
26219         * config/srclist.txt: Add unlockpt.c (commented).
26220
26221 2010-03-21  Jim Meyering  <meyering@redhat.com>
26222
26223         maint.mk: prohibit inclusion of "intprops.h" without use
26224         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
26225
26226 2010-03-21  Bruno Haible  <bruno@clisp.org>
26227
26228         New module 'grantpt'.
26229         * lib/grantpt.c: New file, from glibc with modifications.
26230         * m4/grantpt.m4: New file.
26231         * modules/grantpt: New file.
26232         * lib/stdlib.in.h (grantpt): New declaration.
26233         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
26234         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
26235         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
26236         HAVE_GRANTPT.
26237         * doc/posix-functions/grantpt.texi: Mention the new module.
26238         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
26239         * config/srclist.txt: Add grantpt.c (commented).
26240
26241 2010-03-21  Bruno Haible  <bruno@clisp.org>
26242
26243         New module 'pt_chown'.
26244         * lib/pt_chown.c: New file, from glibc with modifications.
26245         * lib/pty-private.h: New file, from glibc with modifications.
26246         * modules/pt_chown: New file.
26247         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
26248
26249 2010-03-21  Bruno Haible  <bruno@clisp.org>
26250
26251         Tests for module 'ptsname'.
26252         * modules/ptsname-tests: New file.
26253         * tests/test-ptsname.c: New file.
26254
26255         New module 'ptsname'.
26256         * lib/ptsname.c: New file, from glibc with modifications.
26257         * m4/ptsname.m4: New file.
26258         * modules/ptsname: New file.
26259         * lib/stdlib.in.h (ptsname): New declaration.
26260         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
26261         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
26262         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
26263         HAVE_PTSNAME.
26264         * doc/posix-functions/ptsname.texi: Mention the new module.
26265         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
26266         * config/srclist.txt: Add ptsname.c (commented).
26267
26268 2010-03-21  Bruno Haible  <bruno@clisp.org>
26269
26270         Tests for module 'ttyname_r'.
26271         * modules/ttyname_r-tests: New file.
26272         * tests/test-ttyname_r.c: New file.
26273
26274         New module 'ttyname_r'.
26275         * lib/ttyname_r.c: New file.
26276         * m4/ttyname_r.m4: New file.
26277         * modules/ttyname_r: New file.
26278         * lib/unistd.in.h (ttyname_r): New declaration.
26279         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
26280         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
26281         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
26282         HAVE_TTYNAME_R.
26283         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
26284         * doc/posix-functions/ttyname_r.texi: Mention the new module.
26285
26286 2010-03-20  Bruno Haible  <bruno@clisp.org>
26287
26288         signal: Undefine macro definitions in C++ mode.
26289         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
26290         sigfillset): Undefine macro definitions from the system header in C++
26291         mode.
26292         Reported by John W. Eaton <jwe@gnu.org>.
26293
26294 2010-03-20  Bruno Haible  <bruno@clisp.org>
26295
26296         Ensure no #include statements inside extern "C" { ... }.
26297         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
26298         contain #include statements.
26299         * lib/time.in.h: Likewise.
26300
26301 2010-03-20  Bruno Haible  <bruno@clisp.org>
26302
26303         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
26304         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
26305         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
26306         Reported by John W. Eaton <jwe@gnu.org>.
26307
26308 2010-03-20  Bruno Haible  <bruno@clisp.org>
26309
26310         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
26311         Reported by Jim Meyering.
26312
26313 2010-03-20  Bruno Haible  <bruno@clisp.org>
26314
26315         pipe: Set errno upon failure.
26316         * lib/pipe.h: Specify that when -1 is returned, errno is set.
26317         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
26318         errno value in error message.
26319
26320 2010-03-20  Bruno Haible  <bruno@clisp.org>
26321             Jim Meyering  <meyering@redhat.com>
26322
26323         lchown: Avoid "unused variable" warning.
26324         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
26325
26326 2010-03-20  Bruno Haible  <bruno@clisp.org>
26327
26328         Work around unlink() bug on MacOS X 10.5.6.
26329         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
26330         attempting to unlink a parent directory.
26331         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
26332         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
26333         activate for the replacement function.
26334         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
26335
26336 2010-03-20  Bruno Haible  <bruno@clisp.org>
26337
26338         Fix link errors on Solaris 8.
26339         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
26340         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
26341
26342 2010-03-19  Jim Meyering  <meyering@redhat.com>
26343
26344         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
26345         The _LIBC implementation of build_range_exp correctly honors the
26346         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
26347         However, the non-_LIBC implementation would ignore that syntax-bit
26348         flag and return REG_ERANGE unconditionally.
26349         This change makes it honor that flag.
26350         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
26351         Make two pointer parameters "const".
26352         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
26353         (parse_bracket_exp): Update caller.
26354
26355         regex.m4: correct the reversed range endpoint ([b-a]) test
26356         * m4/regex.m4: When requiring that [b-a] evoke failure,
26357         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26358         test pass once again for x86-based systems.
26359
26360 2010-03-19  Bruno Haible  <bruno@clisp.org>
26361
26362         scandir: Fix link error on Solaris 8.
26363         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26364         macros.
26365
26366 2010-03-19  Bruno Haible  <bruno@clisp.org>
26367
26368         getusershell: Fix documentation.
26369         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26370         module.
26371         * doc/glibc-functions/setusershell.texi: Likewise.
26372
26373         getusershell: Provide declaration, missing on Solaris 9.
26374         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26375         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26376         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26377         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26379         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
26380         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26381         HAVE_GETUSERSHELL.
26382         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26383
26384 2010-03-19  Bruno Haible  <bruno@clisp.org>
26385
26386         wctype: Provide iswblank function.
26387         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26388         exists and is fine.
26389         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26390         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26391         * tests/test-wctype.c (main): Re-enable the iswblank tests.
26392         * doc/posix-functions/iswblank.texi: Update.
26393
26394 2010-03-19  Bruno Haible  <bruno@clisp.org>
26395
26396         Tests of module 'pty' in C++ mode.
26397         * modules/pty-tests: New file.
26398         * tests/test-pty-c++.cc: New file.
26399         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26400
26401 2010-03-19  Eric Blake  <eblake@redhat.com>
26402
26403         logb: fix documentation
26404         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
26405         1.5 declaration bug.
26406
26407         forkpty, openpty: prefer glibc's const-safe prototype
26408         * lib/forkpty.c (rpl_forkpty): New file.
26409         * lib/openpty.c (rpl_openpty): Likewise.
26410         * modules/forkpty (Files): Distribute it.
26411         * modules/openpty (Files): Likewise.
26412         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
26413         check...
26414         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
26415         replacement for for non-const BSD signature.
26416         * modules/pty (Makefile.am): Substitute witnesses.
26417         * lib/pty.in.h (forkpty, openpty): Declare replacements.
26418         * tests/test-forkpty.c: Update signature check.
26419         * tests/test-openpty.c: Likewise.
26420         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
26421         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26422
26423         forkpty, openpty: split functions into new modules
26424         * modules/pty (Makefile.am): Substitute new witnesses.
26425         (Libraries): Move library detection...
26426         * modules/forkpty: ...into new module.
26427         * modules/openpty: Another new module.
26428         * modules/pty-tests: Rename and split...
26429         * modules/forkpty-tests: ...to this...
26430         * modules/openpty-tests: ...and this.
26431         * tests/test-pty.c: Rename and split...
26432         * tests/test-forkpty.c: ...to this...
26433         * tests/test-openpty.c: ...and this.
26434         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
26435         (gl_PTY): Split library searching...
26436         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
26437         (gl_FORKPTY, gl_OPENPTY): New macros.
26438         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
26439         * NEWS: Mention the split.
26440         * MODULES.html.sh (Misc): Document the modules.
26441         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
26442         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26443
26444         pty: improve replacement header
26445         * lib/pty.in.h: New file.
26446         * modules/pty (Files): Ship it.
26447         (Makefile.am): Always build replacement.
26448         * m4/pty.m4: Rename...
26449         * m4/pty_h.m4: ...to this.
26450         (gl_PTY): Modernize setting of witness macros; update check of
26451         forkpty to take proper advantage of cache.
26452         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
26453
26454         getopt: avoid compiler warning
26455         * lib/getopt.c (attribute_hidden): Remove unused macro.
26456
26457 2010-03-18  Bruno Haible  <bruno@clisp.org>
26458
26459         Fix link errors on Solaris 8.
26460         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
26461         * modules/search-tests (test_search_c___LDADD): Likewise.
26462         * modules/signal-tests (test_signal_c___LDADD): Likewise.
26463         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
26464         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
26465         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
26466         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
26467         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
26468         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
26469
26470 2010-03-18  Bruno Haible  <bruno@clisp.org>
26471
26472         Fix bug introduced on 2010-03-14.
26473         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26474         (gl_SPAWN_H): Require it.
26475         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26476         Reported by Simon Josefsson.
26477
26478 2010-03-18  Bruno Haible  <bruno@clisp.org>
26479
26480         Fix typo introduced on 2009-12-31.
26481         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26482         posix_spawn_file_actions_adddup2.
26483
26484 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26485         and Eric Blake  <eblake@redhat.com>
26486
26487         test-vc-list-files-git: make more robust
26488         * tests/test-vc-list-files-git.sh: Unset problematic environment
26489         variables.  Chain commands together.
26490
26491 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26492
26493         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26494         `AC_CHECK_DECL' invocation.
26495
26496 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26497
26498         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26499         appears before executable statements. Suggested by Petr Sumbera
26500         <Petr.Sumbera@Sun.COM>.
26501
26502 2010-03-14  Bruno Haible  <bruno@clisp.org>
26503
26504         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26505         portability problems. Instead use a simpler test.
26506         (main): Check that invalid arguments are rejected only on Linux.
26507
26508 2010-03-14  Bruno Haible  <bruno@clisp.org>
26509
26510         Fix bug introduced on 2009-12-31.
26511         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26512         gl_PREREQ_SYS_H_WINSOCK2 always.
26513         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26514         SYS_SOCKET_H variable.
26515         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26516         Update comments.
26517         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26518         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26519         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26520         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26521         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26522
26523 2010-03-14  Bruno Haible  <bruno@clisp.org>
26524
26525         Fix values returned by sinl, cosl.
26526         * lib/trigl.h: Add specification comments.
26527         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26528         that combines the values from the precomputed table with the values of
26529         the Chebyshev polynomials.
26530
26531 2010-03-14  Bruno Haible  <bruno@clisp.org>
26532
26533         Fix compilation error when modules 'posix_spawn[p]' are not used.
26534         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26535         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26536
26537 2010-03-14  Bruno Haible  <bruno@clisp.org>
26538
26539         Fix compilation error on mingw when module 'time_r' is not used.
26540         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26541         is 1.
26542         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26543         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26544         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26545         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26546
26547 2010-03-14  Bruno Haible  <bruno@clisp.org>
26548
26549         Fix compilation error with Sun C.
26550         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26551         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26552         instead of GCC specific ULONG_LONG_MAX.
26553         * lib/xstrtoll.c: Likewise.
26554         * lib/xstrtoull.c: Likewise.
26555
26556 2010-03-13  Bruno Haible  <bruno@clisp.org>
26557
26558         Allow the user to disable C++ code and tests.
26559         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26560         (gl_PROG_ANSI_CXX): Require it.
26561
26562 2010-03-13  Bruno Haible  <bruno@clisp.org>
26563
26564         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26565         cases.
26566
26567 2010-03-13  Bruno Haible  <bruno@clisp.org>
26568
26569         Test that gnulib does not break the standard C++ headers.
26570         * tests/test-locale-c++2.cc: New file.
26571         * modules/locale-tests (Files): Add it.
26572         (Makefile.am): Compile it for test-locale-c++.
26573         * tests/test-math-c++2.cc: New file.
26574         * modules/math-tests (Files): Add it.
26575         (Makefile.am): Compile it for test-math-c++.
26576         * tests/test-signal-c++2.cc: New file.
26577         * modules/signal-tests (Files): Add it.
26578         (Makefile.am): Compile it for test-signal-c++.
26579         * tests/test-stdio-c++2.cc: New file.
26580         * modules/stdio-tests (Files): Add it.
26581         (Makefile.am): Compile it for test-stdio-c++.
26582         * tests/test-stdlib-c++2.cc: New file.
26583         * modules/stdlib-tests (Files): Add it.
26584         (Makefile.am): Compile it for test-stdlib-c++.
26585         * tests/test-string-c++2.cc: New file.
26586         * modules/string-tests (Files): Add it.
26587         (Makefile.am): Compile it for test-string-c++.
26588         * tests/test-time-c++2.cc: New file.
26589         * modules/time-tests (Files): Add it.
26590         (Makefile.am): Compile it for test-time-c++.
26591         Reported by John W. Eaton <jwe@gnu.org>.
26592
26593 2010-03-13  Bruno Haible  <bruno@clisp.org>
26594
26595         * gnulib-tool (func_usage): Clarify which options are available for
26596         --create-testdir and --create-megatestdir.
26597
26598 2010-03-13  Bruno Haible  <bruno@clisp.org>
26599
26600         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26601         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26602         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26603         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26604         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26605         when appropriate.
26606         Reported by Jim Meyering.
26607
26608 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26609
26610         * gnulib-tool (func_import): Explain origin of code.
26611
26612 2010-03-12  Bruno Haible  <bruno@clisp.org>
26613
26614         Fix problem with automake's definition of CXXLINK.
26615         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26616         Reported by Simon Josefsson and Ludovic Courtès.
26617
26618 2010-03-12  Bruno Haible  <bruno@clisp.org>
26619
26620         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26621         stable releases.
26622
26623 2010-03-11  Bruno Haible  <bruno@clisp.org>
26624
26625         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26626         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26627         whether the system provides one variant or multiple variants of the
26628         function.
26629         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26630         C++ compilers.
26631         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26632         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26633         Reported by Jim Meyering.
26634
26635 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26636
26637         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26638
26639 2010-03-08  Bruno Haible  <bruno@clisp.org>
26640
26641         gnulib-tool: Add support for --libtool in --create-testdir.
26642         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26643         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26644
26645 2010-03-08  Eric Blake  <eblake@redhat.com>
26646
26647         gnulib-tool.texi: mention possibility of git submodule
26648         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26649         submodules.
26650         * doc/.gitignore: Ignore another generated file.
26651
26652 2010-03-08  Karl Berry  <karl@gnu.org>
26653
26654         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26655         of committing gnulib files while skipping others.
26656
26657 2010-03-07  Bruno Haible  <bruno@clisp.org>
26658
26659         Tests of module 'wctype' in C++ mode.
26660         * tests/test-wctype-c++.cc: New file.
26661         * modules/wctype-tests (Files): Add it and tests/signature.h.
26662         (Depends-on): Add ansi-c++-opt.
26663         (Makefile.am): Arrange to compile and run test-wctype-c++.
26664
26665         Tests of module 'wchar' in C++ mode.
26666         * tests/test-wchar-c++.cc: New file.
26667         * modules/wchar-tests (Files): Add it and tests/signature.h.
26668         (Depends-on): Add ansi-c++-opt.
26669         (Makefile.am): Arrange to compile and run test-wchar-c++.
26670         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26671         gl_MODULE_INDICATOR.
26672
26673         Tests of module 'unistd' in C++ mode.
26674         * tests/test-unistd-c++.cc: New file.
26675         * modules/unistd-tests (Files): Add it and tests/signature.h.
26676         (Depends-on): Add ansi-c++-opt.
26677         (Makefile.am): Arrange to compile and run test-unistd-c++.
26678         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26679         gl_MODULE_INDICATOR.
26680
26681         Tests of module 'time' in C++ mode.
26682         * tests/test-time-c++.cc: New file.
26683         * modules/time-tests (Files): Add it and tests/signature.h.
26684         (Depends-on): Add ansi-c++-opt.
26685         (Makefile.am): Arrange to compile and run test-time-c++.
26686         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26687
26688         Tests of module 'sys_time' in C++ mode.
26689         * tests/test-sys_time-c++.cc: New file.
26690         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26691         (Depends-on): Add ansi-c++-opt.
26692         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26693         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26694         gl_MODULE_INDICATOR.
26695
26696         Tests of module 'sys_stat' in C++ mode.
26697         * tests/test-sys_stat-c++.cc: New file.
26698         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26699         (Depends-on): Add ansi-c++-opt.
26700         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26701         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26702         gl_MODULE_INDICATOR.
26703
26704         Tests of module 'sys_socket' in C++ mode.
26705         * tests/test-sys_socket-c++.cc: New file.
26706         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26707         (Depends-on): Add ansi-c++-opt.
26708         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26709         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26710         gl_MODULE_INDICATOR.
26711
26712         Tests of module 'sys_select' in C++ mode.
26713         * tests/test-sys_select-c++.cc: New file.
26714         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26715         (Depends-on): Add ansi-c++-opt.
26716         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26717         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26718         gl_MODULE_INDICATOR.
26719
26720         Tests of module 'sys_ioctl' in C++ mode.
26721         * tests/test-sys_ioctl-c++.cc: New file.
26722         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26723         (Depends-on): Add ansi-c++-opt.
26724         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26725         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26726         gl_MODULE_INDICATOR.
26727
26728         Tests of module 'string' in C++ mode.
26729         * tests/test-string-c++.cc: New file.
26730         * modules/string-tests (Files): Add it and tests/signature.h.
26731         (Depends-on): Add ansi-c++-opt.
26732         (Makefile.am): Arrange to compile and run test-string-c++.
26733         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26734         gl_MODULE_INDICATOR.
26735
26736         Tests of module 'stdlib' in C++ mode.
26737         * tests/test-stdlib-c++.cc: New file.
26738         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26739         (Depends-on): Add ansi-c++-opt.
26740         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26741         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26742         gl_MODULE_INDICATOR.
26743
26744         Tests of module 'stdio' in C++ mode.
26745         * tests/test-stdio-c++.cc: New file.
26746         * modules/stdio-tests (Files): Add it and tests/signature.h.
26747         (Depends-on): Add ansi-c++-opt.
26748         (Makefile.am): Arrange to compile and run test-stdio-c++.
26749         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26750         gl_MODULE_INDICATOR.
26751
26752         Tests of module 'spawn' in C++ mode.
26753         * tests/test-spawn-c++.cc: New file.
26754         * modules/spawn-tests (Files): Add it and tests/signature.h.
26755         (Depends-on): Add ansi-c++-opt.
26756         (Makefile.am): Arrange to compile and run test-spawn-c++.
26757         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26758         gl_MODULE_INDICATOR.
26759
26760         Tests of module 'signal' in C++ mode.
26761         * tests/test-signal-c++.cc: New file.
26762         * modules/signal-tests (Files): Add it and tests/signature.h.
26763         (Depends-on): Add ansi-c++-opt.
26764         (Makefile.am): Arrange to compile and run test-signal-c++.
26765         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26766         gl_MODULE_INDICATOR.
26767
26768         Tests of module 'search' in C++ mode.
26769         * tests/test-search-c++.cc: New file.
26770         * modules/search-tests (Files): Add it and tests/signature.h.
26771         (Depends-on): Add ansi-c++-opt.
26772         (Makefile.am): Arrange to compile and run test-search-c++.
26773         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26774         gl_MODULE_INDICATOR.
26775
26776         Tests of module 'math' in C++ mode.
26777         * tests/test-math-c++.cc: New file.
26778         * modules/math-tests (Files): Add it and tests/signature.h.
26779         (Depends-on): Add ansi-c++-opt.
26780         (Makefile.am): Arrange to compile and run test-math-c++.
26781         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26782
26783         Tests of module 'locale' in C++ mode.
26784         * tests/test-locale-c++.cc: New file.
26785         * modules/locale-tests (Files): Add it and tests/signature.h.
26786         (Depends-on): Add ansi-c++-opt.
26787         (Makefile.am): Arrange to compile and run test-locale-c++.
26788         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26789         gl_MODULE_INDICATOR.
26790
26791         Tests of module 'langinfo' in C++ mode.
26792         * tests/test-langinfo-c++.cc: New file.
26793         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26794         (Depends-on): Add ansi-c++-opt.
26795         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26796         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26797         gl_MODULE_INDICATOR.
26798
26799         Tests of module 'iconv-h' in C++ mode.
26800         * tests/test-iconv-h-c++.cc: New file.
26801         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26802         (Depends-on): Add ansi-c++-opt.
26803         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26804
26805         Tests of module 'glob' in C++ mode.
26806         * tests/test-glob-c++.cc: New file.
26807         * modules/glob-tests (Files): Add it.
26808         (Depends-on): Add ansi-c++-opt.
26809         (Makefile.am): Arrange to compile and run test-glob-c++.
26810
26811         Tests of module 'fcntl-h' in C++ mode.
26812         * tests/test-fcntl-h-c++.cc: New file.
26813         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26814         (Depends-on): Add ansi-c++-opt.
26815         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26816         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26817         gl_MODULE_INDICATOR.
26818
26819         Tests of module 'dirent' in C++ mode.
26820         * tests/test-dirent-c++.cc: New file.
26821         * modules/dirent-tests (Files): Add it and tests/signature.h.
26822         (Depends-on): Add ansi-c++-opt.
26823         (Makefile.am): Arrange to compile and run test-dirent-c++.
26824         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26825         gl_MODULE_INDICATOR.
26826
26827         New module 'ansi-c++-opt'.
26828         * modules/ansi-c++-opt: New file.
26829         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26830
26831         Document C++ namespace mode.
26832         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26833
26834         wctype: Avoid #define replacements in C++ mode.
26835         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26836         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26837         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26838         In C++, define a namespaced alias symbol.
26839         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26840         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26841         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26842         rule.
26843
26844         wchar: Avoid #define replacements in C++ mode.
26845         * lib/wchar.in.h: Include c++defs.h.
26846         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26847         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26848         symbol.
26849         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26850         * modules/wchar (Depends-on): Add c++defs.
26851         (Makefile.am): Update wchar.h rule.
26852
26853         unistd: Avoid #define replacements in C++ mode.
26854         * lib/unistd.in.h: Include c++defs.h.
26855         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26856         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26857         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26858         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26859         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26860         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26861         symbol.
26862         (environ): Update.
26863         * modules/unistd (Depends-on): Add c++defs.
26864         (Makefile.am): Update unistd.h rule.
26865
26866         time: Avoid #define replacements in C++ mode.
26867         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26868         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26869         define a namespaced alias symbol.
26870         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26871         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26872         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26873         * modules/time (Depends-on): Add c++defs, warn-on-use.
26874         (Makefile.am): Update time.h rule.
26875         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26876         * modules/nanosleep (configure.ac): Likewise.
26877         * modules/strptime (configure.ac): Likewise.
26878         * modules/timegm (configure.ac): Likewise.
26879
26880         sys_time: Avoid #define replacements in C++ mode.
26881         * lib/sys_time.in.h: Include c++defs.h.
26882         (gettimeofday): In C++, define a namespaced alias symbol.
26883         * modules/sys_time (Depends-on): Add c++defs.
26884         (Makefile.am): Update sys/time.h rule.
26885
26886         sys_stat: Avoid #define replacements in C++ mode.
26887         * lib/sys_stat.in.h: Include c++defs.h.
26888         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26889         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26890         namespaced alias symbol.
26891         In C++, define a namespaced alias symbol.
26892         * modules/sys_stat (Depends-on): Add c++defs.
26893         (Makefile.am): Update sys/stat.h rule.
26894
26895         sys_socket: Avoid #define replacements in C++ mode.
26896         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26897         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26898         definitions also when the system has a <sys/socket.h>.
26899         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26900         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26901         In C++, define a namespaced alias symbol.
26902         * modules/sys_socket (Depends-on): Add c++defs.
26903         (Makefile.am): Update sys/socket.h rule.
26904
26905         sys_select: Avoid #define replacements in C++ mode.
26906         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26907         definitions also when the system has a <sys/select.h>.
26908         (select): In C++, define a namespaced alias symbol.
26909         * modules/sys_select (Depends-on): Add c++defs.
26910         (Makefile.am): Update sys/select.h rule.
26911
26912         sys_ioctl: Avoid #define replacements in C++ mode.
26913         * lib/sys_ioctl.in.h: Include c++defs.h.
26914         (ioctl): In C++, define a namespaced alias symbol.
26915         * modules/sys_ioctl (Depends-on): Add c++defs.
26916         (Makefile.am): Update sys/ioctl.h rule.
26917
26918         string: Avoid #define replacements in C++ mode.
26919         * lib/string.in.h: Include c++defs.h.
26920         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26921         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26922         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26923         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26924         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26925         * modules/string (Depends-on): Add c++defs.
26926         (Makefile.am): Update string.h rule.
26927
26928         stdlib: Avoid #define replacements in C++ mode.
26929         * lib/stdlib.in.h: Include c++defs.h.
26930         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26931         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26932         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26933         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26934         symbol.
26935         * modules/stdlib (Depends-on): Add c++defs.
26936         (Makefile.am): Update stdlib.h rule.
26937
26938         stdio: Avoid #define replacements in C++ mode.
26939         * lib/stdio.in.h: Include c++defs.h.
26940         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26941         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26942         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26943         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26944         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26945         namespaced alias symbol.
26946         * modules/stdio (Depends-on): Add c++defs.
26947         (Makefile.am): Update stdio.h rule.
26948
26949         spawn: Avoid #define replacements in C++ mode.
26950         * lib/spawn.in.h: Include c++defs.h.
26951         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26952         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26953         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26954         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26955         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26956         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26957         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26958         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26959         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26960         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26961         In C++, define a namespaced alias symbol.
26962         * modules/spawn (Depends-on): Add c++defs.
26963         (Makefile.am): Update spawn.h rule.
26964
26965         signal: Avoid #define replacements in C++ mode.
26966         * lib/signal.in.h: Include c++defs.h.
26967         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26968         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26969         namespaced alias symbol.
26970         * modules/signal (Depends-on): Add c++defs.
26971         (Makefile.am): Update signal.h rule.
26972
26973         search: Avoid #define replacements in C++ mode.
26974         * lib/search.in.h: Include c++defs.h.
26975         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26976         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26977         symbol.
26978         * modules/search (Depends-on): Add c++defs.
26979         (Makefile.am): Update search.h rule.
26980
26981         math: Avoid #define replacements in C++ mode.
26982         * lib/math.in.h: Include c++defs.h.
26983         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26984         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26985         trunc, truncl): In C++, define a namespaced alias symbol.
26986         * modules/math (Depends-on): Add c++defs.
26987         (Makefile.am): Update math.h rule.
26988
26989         locale: Avoid #define replacements in C++ mode.
26990         * lib/locale.in.h: Include c++defs.h.
26991         (duplocale): In C++, define a namespaced alias symbol.
26992         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26993         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26994         * modules/locale (Depends-on): Add c++defs.
26995         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26996
26997         langinfo: Avoid #define replacements in C++ mode.
26998         * lib/langinfo.in.h: Include c++defs.h.
26999         (nl_langinfo): In C++, define a namespaced alias symbol.
27000         * modules/langinfo (Depends-on): Add c++defs.
27001         (Makefile.am): Update langinfo.h rule.
27002
27003         iconv-h: Avoid #define replacements in C++ mode.
27004         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
27005         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
27006         symbol.
27007         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
27008         whenever iconv is present.
27009         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
27010         (Makefile.am): Update iconv.h rule.
27011
27012         glob: Avoid #define replacements in C++ mode.
27013         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
27014         (_gl_glob_errfunc_fn): New type.
27015         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
27016         symbol.
27017         * modules/glob (Depends-on): Add c++defs, warn-on-use.
27018         (Makefile.am): Update glob.h rule.
27019
27020         fcntl-h: Avoid #define replacements in C++ mode.
27021         * lib/fcntl.in.h: Include c++defs.h.
27022         (fcntl, open, openat): In C++, define a namespaced alias symbol.
27023         * modules/fcntl-h (Depends-on): Add c++defs.
27024         (Makefile.am): Update fcntl.h rule.
27025
27026         dirent: Avoid #define replacements in C++ mode.
27027         * lib/dirent.in.h: Include c++defs.h.
27028         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
27029         namespaced alias symbol.
27030         (dirfd): Update declaration.
27031         * modules/dirent (Depends-on): Add c++defs.
27032         (Makefile.am): Update dirent.h rule.
27033
27034         ctype: Make it usable in C++ code.
27035         * lib/ctype.in.h: Include c++defs.h.
27036         (isblank): Declare as extern "C".
27037         * modules/ctype (Depends-on): Add c++defs.
27038         (Makefile.am): Update ctype.h rule.
27039
27040         New module 'c++defs'.
27041         * modules/c++defs: New file.
27042         * build-aux/c++defs.h: New file.
27043         Reported by John W. Eaton <jwe@gnu.org>.
27044
27045 2010-03-07  Bruno Haible  <bruno@clisp.org>
27046
27047         logb: Provide missing declaration for Cygwin.
27048         * lib/math.in.h (logb): New declaration.
27049         * m4/logb.m4: New file.
27050         * modules/logb (Files): Add m4/logb.m4.
27051         (Depends-on): Add math.
27052         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
27053         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
27054         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
27055         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
27056         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
27057
27058 2010-03-07  Bruno Haible  <bruno@clisp.org>
27059
27060         Fix test-cond link error.
27061         * tests/test-cond.c: Include <stdio.h>.
27062
27063 2010-03-07  Bruno Haible  <bruno@clisp.org>
27064
27065         Fix test-dirent-safer link error.
27066         * modules/dirent-safer-tests (Makefile.am): Define
27067         test_dirent_safer_LDADD.
27068
27069 2010-03-07  Bruno Haible  <bruno@clisp.org>
27070
27071         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
27072         among default module list.
27073
27074 2010-03-07  Bruno Haible  <bruno@clisp.org>
27075
27076         Fix link error on platforms with GNU libiconv.
27077         * modules/unistr/u8-strcoll-tests (Makefile): Define
27078         test_u8_strcoll_LDADD.
27079         * modules/unistr/u16-strcoll-tests (Makefile): Define
27080         test_u16_strcoll_LDADD.
27081         * modules/unistr/u32-strcoll-tests (Makefile): Define
27082         test_u32_strcoll_LDADD.
27083
27084 2010-03-07  Bruno Haible  <bruno@clisp.org>
27085
27086         Use POSIX declarations for socket functions.
27087         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
27088         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
27089         rpl_sendto): Change declaration to match POSIX.
27090         * lib/connect.c (rpl_connect): Likewise.
27091         * lib/accept.c (rpl_accept): Likewise.
27092         * lib/bind.c (rpl_bind): Likewise.
27093         * lib/getpeername.c (rpl_getpeername): Likewise.
27094         * lib/getsockname.c (rpl_getsockname): Likewise.
27095         * lib/recv.c (rpl_recv): Likewise.
27096         * lib/send.c (rpl_send): Likewise.
27097         * lib/recvfrom.c (rpl_recvfrom): Likewise.
27098         * lib/sendto.c (rpl_sendto): Likewise.
27099
27100 2010-03-06  Bruno Haible  <bruno@clisp.org>
27101
27102         Clarify access, euidaccess, faccessat.
27103         * doc/posix-functions/faccessat.texi: Mention security problem under
27104         "Other problems", not "Portability problems".
27105         * doc/posix-functions/access.texi: Likewise. Mention a related security
27106         problem.
27107         * doc/glibc-functions/euidaccess.texi: Mention security problems.
27108         * lib/euidaccess.c: Add comments about platforms.
27109         * lib/unistd.in.h (access, euidaccess): Add warnings.
27110
27111 2010-03-07  Bruno Haible  <bruno@clisp.org>
27112
27113         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
27114         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
27115         (POSIX_SPAWN_SETSCHEDULER): Likewise.
27116         (POSIX_SPAWN_USEVFORK): Define in a way that works when
27117         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27118         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
27119         declare when POSIX_SPAWN_SETSCHEDULER is zero.
27120         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
27121         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
27122         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
27123         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
27124         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
27125         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
27126         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
27127         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
27128         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
27129         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
27130         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
27131         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
27132         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
27133         Likewise.
27134         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
27135         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
27136         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
27137         Likewise.
27138         * tests/test-spawn.c (main): Make it work when
27139         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27140
27141 2010-03-07  Bruno Haible  <bruno@clisp.org>
27142
27143         Fix incorrect Makefile.am generation in German locale.
27144         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27145         Execute sed command with character range in C locale.
27146
27147 2010-03-06  Bruno Haible  <bruno@clisp.org>
27148
27149         Tests for module 'iconv-h'.
27150         * modules/iconv-h-tests: New file.
27151         * tests/test-iconv-h.c: New file.
27152
27153         New module 'iconv-h'.
27154         * modules/iconv-h: New file.
27155         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
27156         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
27157         (configure.ac): Remove gl_ICONV_H.
27158         (Makefile.am): Remove rule for iconv.h.
27159
27160 2010-03-06  Bruno Haible  <bruno@clisp.org>
27161
27162         More consistent naming of *.m4 files.
27163         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
27164         * modules/wctype (Files): Update.
27165
27166         More consistent naming of *.m4 files.
27167         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
27168         * modules/wchar (Files): Update.
27169
27170 2010-03-06  Jim Meyering  <meyering@redhat.com>
27171
27172         euidaccess: relax license to LGPLv2+
27173         * modules/euidaccess (License): Relax to LGPLv2+.
27174
27175 2010-03-06  Bruno Haible  <bruno@clisp.org>
27176
27177         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
27178         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
27179         (Makefile.am): Augment lib_SOURCES instead.
27180
27181 2010-03-04  Jim Meyering  <meyering@redhat.com>
27182
27183         utime: remove obsolete module
27184         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
27185         unnecessary for years, and has been marked as obsolete for 10 months.
27186         * modules/utime: Remove file.
27187         * lib/utime.c: Remove file.
27188         * m4/utime.m4: Remove file.
27189         * m4/utimes-null.m4: Remove file.
27190         * doc/posix-functions/utime.texi (utime): Remove reference to
27191         the module.  Move the sole "fixed by gnulib" item into the
27192         "problems not fixed by Gnulib" list.
27193         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
27194
27195 2010-03-05  Simon Josefsson  <simon@josefsson.org>
27196
27197         * modules/exit (License): Relax license to LGPLv2+.
27198         (Status): Mark as obsolete.
27199         * NEWS: Mention deprecated 'exit' module.
27200         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
27201         of now obsolete 'exit'.
27202
27203 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27204
27205         fts-lgpl: remove unused module
27206         * modules/fts-lgpl: Remove.
27207         * MODULES.html.sh (func_all_modules): Adjust.
27208         * check-module (find_included_lib_files): Adjust.
27209         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
27210
27211 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
27212
27213         copy-acl: enhance Solaris ACL error handling
27214         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
27215         * lib/set-mode-acl.c (qset_acl): Likewise.
27216
27217 2010-03-02  Bruno Haible  <bruno@clisp.org>
27218
27219         spawn: Don't override the system defined values on FreeBSD 8.
27220         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
27221         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
27222         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
27223         if HAVE_POSIX_SPAWN is 1.
27224         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
27225
27226 2010-03-01  Bruno Haible  <bruno@clisp.org>
27227
27228         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
27229         regarding Automake.
27230
27231 2010-02-25  Bruno Haible  <bruno@clisp.org>
27232
27233         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
27234         * gnulib-tool: Define 'echo' as a function only before the ksh alias
27235         setting, not afterwards.
27236         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27237
27238 2010-02-24  Eric Blake  <eblake@redhat.com>
27239
27240         bootstrap, git-version-gen: use timestamp
27241         * build-aux/git-version-gen (scriptversion): Force UTC.
27242         * build-aux/bootstrap (scriptversion): New variable.
27243
27244         bootstrap: allow older git
27245         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
27246         older than 1.6.4.  Requested by the libvirt project.
27247
27248 2010-02-23  Eric Blake  <eblake@redhat.com>
27249
27250         warn-on-use: work with old autoconf
27251         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
27252         AS_VAR semantics of autoconf 2.60.
27253         Reported by Bruno Haible.
27254
27255         bootstrap: improve some comments
27256         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
27257         clarification comments.
27258
27259         gettimeofday: provide correct function
27260         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
27261         when replacement is declared, otherwise provide gettimeofday.
27262         Reported by Michael Goffioul.
27263
27264 2010-02-23  Jim Meyering  <meyering@redhat.com>
27265
27266         lib-ignore: relax license to "unlimited", not LGPLv2+
27267         * modules/lib-ignore (License): Relax to "unlimited".
27268
27269 2010-02-23  Jim Meyering  <meyering@redhat.com>
27270
27271         lib-ignore: relax license to LGPLv2+
27272         * modules/lib-ignore (License): Relax to LGPLv2+.
27273
27274 2010-02-22  Eric Blake  <eblake@redhat.com>
27275
27276         lseek: avoid bash 3.2 broken pipe bug
27277         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
27278         warning from bash 3.2.
27279         Reported by Ben Pfaff, with analysis from Bruno Haible.
27280
27281         bootstrap: support non-FSF copyright holder
27282         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
27283         bootstrap.conf override of COPYRIGHT_HOLDER.
27284         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
27285
27286         bootstrap: interoperate with gettext 0.14.1
27287         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
27288
27289         bootstrap: allow for alternate submodule location
27290         * build-aux/bootstrap (gnulib_path): New variable; use instead of
27291         hardcoding submodule location.
27292         (gnulib_mk): Allow direct use of Makefile.am.
27293
27294         bootstrap: use GNULIB_SRCDIR to reduce disk usage
27295         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
27296         rather than reconfiguring where the submodule points.
27297
27298         gettimeofday: restore support for platforms that lack function
27299         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
27300         replacement if function is missing.
27301         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
27302         * modules/sys_time (Makefile.am): Substitute it.
27303         * lib/sys_time.in.h (gettimeofday): Check it.
27304         Reported by Michael Goffioul.
27305
27306 2010-02-21  Bruno Haible  <bruno@clisp.org>
27307
27308         * lib/stdio.in.h (obstack_printf): Fix typo.
27309
27310 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
27311
27312         vc-list-files: use bzr ls's -R option
27313         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
27314         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
27315
27316 2010-02-21  Jim Meyering  <meyering@redhat.com>
27317
27318         init.sh: fix EXEEXT shims to work also for names like test-prog
27319         * tests/init.sh: Re-exec a better shell, when needed.
27320         If the current shell lacks support for posix $(...), an init.sh-using
27321         test will now try to find a shell that supports that.  If EXEEXT is
27322         nonempty, we also require support for hyphen-in-alias-name and shell
27323         substitutions like ${var#glob}.  Failure to find such a shell results
27324         in a skipped test.
27325
27326 2010-02-21  Bruno Haible  <bruno@clisp.org>
27327
27328         Really work around around "broken pipe" error message from bash 3.2.
27329         * gnulib-tool (func_reset_sigpipe): Remove function.
27330         (echo): In bash 3.2, define to a function that uses printf.
27331         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
27332
27333 2010-02-20  Bruno Haible  <bruno@clisp.org>
27334
27335         Restore support for automake 1.9.6 with autoconf 2.61.
27336         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
27337         Reported by James Youngman <jay@gnu.org>.
27338
27339 2010-02-20  Bruno Haible  <bruno@clisp.org>
27340
27341         Improve *printf warning condition.
27342         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
27343         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
27344         and the function is overridden due to SIGPIPE emulation.
27345
27346 2010-02-20  Bruno Haible  <bruno@clisp.org>
27347
27348         * lib/stdio.in.h: Tweak comments.
27349
27350 2010-02-19  Bruno Haible  <bruno@clisp.org>
27351
27352         Make it easier to find modules. New gnulib-tool option '--find'.
27353         * gnulib-tool: New option --find.
27354         (func_usage): Document it.
27355         (func_sanitize_modulelist): New function, extracted from
27356         func_all_modules.
27357         (func_all_modules): Invoke it.
27358         * doc/gnulib-tool.texi (Which modules?): New node.
27359
27360 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27361
27362         * lib/sys_select.in.h: Provide select replacement even if
27363         sys/select.h exists on a system, for Interix.
27364
27365 2010-02-18  Jim Meyering  <meyering@redhat.com>
27366
27367         init.sh: don't use $(...) just yet
27368         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27369         to accommodate e.g., Solaris' /bin/sh.
27370
27371 2010-02-17  Bruno Haible  <bruno@clisp.org>
27372
27373         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27374         Reported by Ludovic Courtès <ludo@gnu.org>.
27375
27376 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27377
27378         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27379         linking with -lintl.
27380
27381 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27382
27383         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27384         if not provided by the system's netdb.h.  Reported by
27385         ludo@gnu.org (Ludovic Courtès).
27386
27387 2010-02-15  Jim Meyering  <meyering@redhat.com>
27388
27389         init.sh: improve portability and efficiency
27390         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27391         "dummy" in a for loop.
27392         Use '!', not '^' to select the complement of a character set used
27393         in a "case" statement.
27394         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
27395         Suggestions from Eric Blake.
27396
27397         init.sh: automatically accommodate programs with the .exe suffix
27398         Automatically arrange for an invocation of "prog" to execute the
27399         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
27400         may use the simpler "prog", yet still work when built on a system
27401         that requires specifying the added suffix.
27402         Do this by constructing a function named "prog" that invokes
27403         "prog.exe" for each .exe file in selected directories.
27404         * tests/init.sh (find_exe_basenames_): New function.
27405         (create_exe_shim_functions_): New function.
27406         (path_prepend_): Use it.
27407
27408         maint.mk: mark syntax-check sc_*.m rules as .PHONY
27409         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
27410         "make -t syntax-check" doesn't create a ton of sc_*.m files.
27411
27412 2010-02-14  Jim Meyering  <meyering@redhat.com>
27413
27414         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
27415         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27416         (sc_prohibit_hash_pjw_without_use): New rule.
27417
27418         maint.mk: allow the default upload destination dir to be overridden
27419         * top/maint.mk (upload_dest_dir_): Define with a default that
27420         preserves the status quo.
27421         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
27422         Reported by Peter Simons.
27423
27424         maint.mk: prohibit inclusion of "hash.h" without_use
27425         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
27426
27427 2010-02-10  Jim Meyering  <meyering@redhat.com>
27428
27429         maint.mk: prohibit inclusion of "ignore-value.h" without_use
27430         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
27431
27432 2010-02-09  Eric Blake  <ebb9@byu.net>
27433         and Bruno Haible  <bruno@clisp.org>
27434
27435         obstack-printf-posix: ensure declaration
27436         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
27437         extracted from gl_FUNC_OBSTACK_PRINTF.
27438         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
27439         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27440         Likewise.
27441         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
27442         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
27443         0.
27444
27445 2010-02-08  Bruno Haible  <bruno@clisp.org>
27446
27447         gnulib-tool: Fix typo in 2010-02-07 commit.
27448         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
27449         Reported by Eric Blake.
27450
27451 2010-02-07  Bruno Haible  <bruno@clisp.org>
27452
27453         gnulib-tool: Fix up caching patches.
27454         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
27455         option --no-cache. Use associative arrays when supported by the shell.
27456         (sed_comments): New variable.
27457         (modcache): Renamed from do_cache.
27458         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
27459         abbreviate unnecessarily.
27460         (have_associative): New variable.
27461         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
27462         way also for ksh and zsh.
27463         (func_init_sed_convert_to_cache_statements): New function, extracted
27464         from func_cache_lookup_module. Add support for associative arrays.
27465         Don't set the c_MODULE_cached variable here. Ignore all lines before
27466         the first field header. Remove only the final newline, not all trailing
27467         newlines. Support empty fields correctly. Limit the use of 'eval' to
27468         assignments.
27469         (func_get_description, func_get_status, func_get_notice,
27470         func_get_applicability, func_get_filelist, func_get_dependencies,
27471         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27472         func_get_automake_snippet, func_get_include_directive,
27473         func_get_link_directive, func_get_license, func_get_maintainer):
27474         Update documentation. List the unoptimized code first. Add support for
27475         associative arrays. Limit the use of 'eval' to assignments.
27476         (func_get_applicability): Undo stylistic pessimisations.
27477         (func_get_automake_snippet, func_get_include_directive): Reduce code
27478         duplication.
27479         (func_modules_transitive_closure, func_modules_add_dummy,
27480         func_modules_notice, func_modules_to_filelist, func_add_file,
27481         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27482         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27483         func_create_testdir, func_create_megatestdir): Update documentation.
27484
27485 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27486
27487         * gnulib-tool (func_cache_lookup_module): Store the module name
27488         belonging to the cache variable; error out if two different
27489         module names map to the same cache variable name.
27490
27491 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27492
27493         gnulib-tool: Make caching optional.
27494         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27495         Update matching short versions of --no-changelog.
27496         (func_usage): Update.
27497         (sed_extract_cache_prog): Renamed from ...
27498         (sed_extract_prog): ... this; revert to old extraction script.
27499         (func_get_description, func_get_status)
27500         (func_get_notice, func_get_applicability, func_get_filelist)
27501         (func_get_dependencies, func_get_autoconf_early_snippet)
27502         (func_get_autoconf_snippet, func_get_automake_snippet)
27503         (func_get_include_directive, func_get_link_directive)
27504         (func_get_license, func_get_maintainer): If $do_cache is false,
27505         use old, non-caching extraction scripts.
27506         Suggestion by Bruno Haible.
27507
27508 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27509
27510         gnulib-tool: cache module metainformation.
27511         * gnulib-tool (sed_extract_prog): Match newline before each
27512         header, and rewrite header to a shell variable suffix.
27513         (func_cache_var, func_cache_lookup_module): New functions,
27514         to turn a module name into a cache variable prefix, and to
27515         look up and cache module metainformation.
27516         (func_get_description, func_get_status)
27517         (func_get_notice, func_get_applicability, func_get_filelist)
27518         (func_get_dependencies, func_get_autoconf_early_snippet)
27519         (func_get_autoconf_snippet, func_get_automake_snippet)
27520         (func_get_include_directive, func_get_link_directive)
27521         (func_get_license, func_get_maintainer): Use
27522         func_cache_lookup_module.
27523
27524 2010-02-07  Bruno Haible  <bruno@clisp.org>
27525
27526         fnctl: Fix missing dependency.
27527         * modules/fcntl (Depends-on): Add getdtablesize.
27528         Reported by John W. Eaton <jwe@gnu.org>.
27529
27530 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27531
27532         Argp: fix recognition of short alias options.
27533
27534         * lib/argp-parse.c (convert_options): Fix improper use of
27535         `|' between character values.
27536         * tests/test-argp.c (group1_option): New alias option
27537         --read (-r).
27538         (group1_parser): Special handling for 'r'.
27539         (test15): New test case.
27540         (test_fun): Add test15.
27541         * tests/test-argp-2.sh: Update expected --help and --usage
27542         outputs.
27543
27544 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27545
27546         * tests/test-argp.c: Fix indentation.
27547
27548 2010-02-04  Eric Blake  <ebb9@byu.net>
27549
27550         gettimeofday: expose type of second argument
27551         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27552         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27553         * tests/test-gettimeofday.c: Use it to silence warning.
27554         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27555         the issue.
27556
27557 2010-02-03  Jim Meyering  <meyering@redhat.com>
27558
27559         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27560         * lib/regcomp.c (TYPE_SIGNED): Define.
27561         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27562
27563         regcomp.c: avoid a new -Wshadow warning
27564         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27565
27566 2010-02-01  Jim Meyering  <meyering@redhat.com>
27567
27568         removing useless parentheses in cpp #define directives
27569         For motivation, see commit c0221df4, "define STREQ(a,b)
27570         consistently, removing useless parentheses"
27571         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27572         * lib/mountlist.c (MNT_IGNORE): Likewise.
27573         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27574
27575 2010-02-01  Eric Blake  <ebb9@byu.net>
27576
27577         sys_time: use link-warning
27578         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27579         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27580         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27581         * modules/sys_time (Depends-on): Add warn-on-use.
27582         (Makefile.am): Always build replacement.
27583         (configure.ac): Update substitutions.
27584         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27585         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27586         bother with SYS_TIME_H.
27587         * modules/gettimeofday (configure.ac): Declare indicator.
27588         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27589         in use.
27590
27591         closein-tests: silence compiler warning
27592         * tests/test-closein.c (main): Ignore fread result.
27593         * modules/closein-tests (Depends-on): Add ignore-value.
27594
27595         tests: silence warning about system return
27596         * tests/test-areadlink-with-size.c (main): Ignore system result.
27597         * tests/test-areadlink.c (main): Likewise.
27598         * tests/test-areadlinkat-with-size.c (main): Likewise.
27599         * tests/test-areadlinkat.c (main): Likewise.
27600         * tests/test-canonicalize-lgpl.c (main): Likewise.
27601         * tests/test-canonicalize.c (main): Likewise.
27602         * tests/test-chown.c (main): Likewise.
27603         * tests/test-fchownat.c (main): Likewise.
27604         * tests/test-fdutimensat.c (main): Likewise.
27605         * tests/test-fstatat.c (main): Likewise.
27606         * tests/test-futimens.c (main): Likewise.
27607         * tests/test-lchown.c (main): Likewise.
27608         * tests/test-link.c (main): Likewise.
27609         * tests/test-linkat.c (main): Likewise.
27610         * tests/test-lstat.c (main): Likewise.
27611         * tests/test-mkdir.c (main): Likewise.
27612         * tests/test-mkdirat.c (main): Likewise.
27613         * tests/test-mkfifo.c (main): Likewise.
27614         * tests/test-mkfifoat.c (main): Likewise.
27615         * tests/test-mknod.c (main): Likewise.
27616         * tests/test-readlink.c (main): Likewise.
27617         * tests/test-remove.c (main): Likewise.
27618         * tests/test-rename.c (main): Likewise.
27619         * tests/test-renameat.c (main): Likewise.
27620         * tests/test-rmdir.c (main): Likewise.
27621         * tests/test-symlink.c (main): Likewise.
27622         * tests/test-symlinkat.c (main): Likewise.
27623         * tests/test-unlink.c (main): Likewise.
27624         * tests/test-unlinkat.c (main): Likewise.
27625         * tests/test-utimens.c (main): Likewise.
27626         * tests/test-utimensat.c (main): Likewise.
27627         * modules/areadlink-tests (Depends-on): Add ignore-value.
27628         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27629         * modules/areadlinkat-tests (Depends-on): Likewise.
27630         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27631         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27632         * modules/canonicalize-tests (Depends-on): Likewise.
27633         * modules/chown-tests (Depends-on): Likewise.
27634         * modules/fdutimensat-tests (Depends-on): Likewise.
27635         * modules/futimens-tests (Depends-on): Likewise.
27636         * modules/lchown-tests (Depends-on): Likewise.
27637         * modules/link-tests (Depends-on): Likewise.
27638         * modules/linkat-tests (Depends-on): Likewise.
27639         * modules/lstat-tests (Depends-on): Likewise.
27640         * modules/mkdir-tests (Depends-on): Likewise.
27641         * modules/mkfifo-tests (Depends-on): Likewise.
27642         * modules/mkfifoat-tests (Depends-on): Likewise.
27643         * modules/mknod-tests (Depends-on): Likewise.
27644         * modules/openat-tests (Depends-on): Likewise.
27645         * modules/readlink-tests (Depends-on): Likewise.
27646         * modules/remove-tests (Depends-on): Likewise.
27647         * modules/rename-tests (Depends-on): Likewise.
27648         * modules/renameat-tests (Depends-on): Likewise.
27649         * modules/rmdir-tests (Depends-on): Likewise.
27650         * modules/symlink-tests (Depends-on): Likewise.
27651         * modules/symlinkat-tests (Depends-on): Likewise.
27652         * modules/unlink-tests (Depends-on): Likewise.
27653         * modules/utimens-tests (Depends-on): Likewise.
27654         * modules/utimensat-tests (Depends-on): Likewise.
27655
27656 2010-01-31  Bruno Haible  <bruno@clisp.org>
27657
27658         Perform the same test for many <math.h> functions.
27659         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27660         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27661         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27662         of gl_MATHFUNC.
27663         * modules/acos (configure.ac): Likewise.
27664         * modules/asin (configure.ac): Likewise.
27665         * modules/atan (configure.ac): Likewise.
27666         * modules/atan2 (configure.ac): Likewise.
27667         * modules/cbrt (configure.ac): Likewise.
27668         * modules/copysign (configure.ac): Likewise.
27669         * modules/cos (configure.ac): Likewise.
27670         * modules/cosh (configure.ac): Likewise.
27671         * modules/erf (configure.ac): Likewise.
27672         * modules/erfc (configure.ac): Likewise.
27673         * modules/exp (configure.ac): Likewise.
27674         * modules/fmod (configure.ac): Likewise.
27675         * modules/hypot (configure.ac): Likewise.
27676         * modules/j0 (configure.ac): Likewise.
27677         * modules/j1 (configure.ac): Likewise.
27678         * modules/jn (configure.ac): Likewise.
27679         * modules/lgamma (configure.ac): Likewise.
27680         * modules/log (configure.ac): Likewise.
27681         * modules/log10 (configure.ac): Likewise.
27682         * modules/log1p (configure.ac): Likewise.
27683         * modules/pow (configure.ac): Likewise.
27684         * modules/remainder (configure.ac): Likewise.
27685         * modules/sin (configure.ac): Likewise.
27686         * modules/sinh (configure.ac): Likewise.
27687         * modules/tan (configure.ac): Likewise.
27688         * modules/tanh (configure.ac): Likewise.
27689         * modules/y0 (configure.ac): Likewise.
27690         * modules/y1 (configure.ac): Likewise.
27691         * modules/yn (configure.ac): Likewise.
27692         Suggested by Paolo Bonzini.
27693
27694 2010-01-31  Bruno Haible  <bruno@clisp.org>
27695
27696         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27697
27698 2010-01-31  Bruno Haible  <bruno@clisp.org>
27699
27700         Work around getdelim() bug on FreeBSD 8.0.
27701         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27702         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27703         not work.
27704         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27705         is 1.
27706         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27707         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27708         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27709         a non-zero size.
27710         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27711
27712 2010-01-31  Bruno Haible  <bruno@clisp.org>
27713
27714         Work around getline() bug on FreeBSD 8.0.
27715         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27716         and a non-zero size.
27717         * tests/test-getline.c (main): Likewise.
27718         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27719         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27720
27721 2010-01-28  Eric Blake  <ebb9@byu.net>
27722
27723         regex: fix build failure
27724         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27725         platforms.
27726
27727 2010-01-28  Jim Meyering  <meyering@redhat.com>
27728
27729         regex: do not ignore memory allocation failure
27730         * lib/regex_internal.c (create_cd_newstate): Detect
27731         re_node_set_init_copy failure.   Extracted from glibc commit
27732         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27733
27734         regex: sync more white-space changes from libc
27735         * lib/regex_internal.c: White-space only changes.
27736         * lib/regexec.c: Likewise.
27737
27738         regex: add many uses of __attribute_warn_unused_result__
27739         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27740         * lib/regexec.c: Likewise.
27741         Extracted from a messy glibc commit.
27742
27743         regcomp.c: spelling and merge-artifact from glibc
27744         * lib/regcomp.c: Merge remainder of glibc's
27745         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27746
27747         regcomp.c: sync white-space changes from glibc
27748         * lib/regcomp.c: Merge to accommodate white space
27749         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27750
27751         regcomp.c: do not ignore internal return values
27752         * lib/regcomp.c: Do not ignore internal return values.
27753         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27754         but without its white-space changes and spelling fixes.
27755
27756         regex_internal.h: define __attribute_warn_unused_result__
27757         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27758
27759         maint: add a syntax-check rule to check for vulnerable Makefile.in
27760         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27761
27762 2010-01-27  Jim Meyering  <meyering@redhat.com>
27763
27764         ncftpput-ftp: clean up spaces
27765         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27766         Remove trailing blanks.
27767
27768 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27769
27770         * build-aux/git-version-gen: Fix copyright statement.
27771         * build-aux/gnupload: Likewise.
27772         * tests/test-arcfour.c: Likewise.
27773         * tests/test-arctwo.c: Likewise.
27774         * tests/test-count-one-bits.c: Likewise.
27775         * tests/test-crc.c: Likewise.
27776         * tests/test-des.c: Likewise.
27777         * tests/test-gc-arcfour.c: Likewise.
27778         * tests/test-gc-arctwo.c: Likewise.
27779         * tests/test-gc-des.c: Likewise.
27780         * tests/test-gc-hmac-md5.c: Likewise.
27781         * tests/test-gc-hmac-sha1.c: Likewise.
27782         * tests/test-gc-md2.c: Likewise.
27783         * tests/test-gc-md4.c: Likewise.
27784         * tests/test-gc-md5.c: Likewise.
27785         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27786         * tests/test-gc-rijndael.c: Likewise.
27787         * tests/test-gc-sha1.c: Likewise.
27788         * tests/test-gc.c: Likewise.
27789         * tests/test-gethostname.c: Likewise.
27790         * tests/test-gettimeofday.c: Likewise.
27791         * tests/test-hash.c: Likewise.
27792         * tests/test-hmac-md5.c: Likewise.
27793         * tests/test-hmac-sha1.c: Likewise.
27794         * tests/test-md2.c: Likewise.
27795         * tests/test-md4.c: Likewise.
27796         * tests/test-md5.c: Likewise.
27797         * tests/test-memchr.c: Likewise.
27798         * tests/test-memchr2.c: Likewise.
27799         * tests/test-memcmp.c: Likewise.
27800         * tests/test-memmem.c: Likewise.
27801         * tests/test-memrchr.c: Likewise.
27802         * tests/test-rawmemchr.c: Likewise.
27803         * tests/test-read-file.c: Likewise.
27804         * tests/test-rijndael.c: Likewise.
27805         * tests/test-sockets.c: Likewise.
27806         * tests/test-strchrnul.c: Likewise.
27807         * tests/test-strstr.c: Likewise.
27808         * tests/test-strtod.c: Likewise.
27809         * build-aux/ncftpput-ftp: Likewise.
27810
27811 2010-01-26  Eric Blake  <ebb9@byu.net>
27812
27813         ignore-value: update recommended header name
27814         * modules/ignore-value (Include): Only use <> for headers that
27815         exist in glibc.
27816
27817 2010-01-26  Jim Meyering  <meyering@redhat.com>
27818
27819         test-userspec.c: avoid compiler warnings
27820         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27821         and "initialization discards qualifiers..." warnings.
27822         Put the first "uid" in its own scope, and make char* members "const".
27823
27824 2010-01-25  Bruno Haible  <bruno@clisp.org>
27825
27826         gnulib-tool: Make warning diagnostics consistent.
27827         * gnulib-tool (func_warning): New function.
27828         Use it everywhere where gnulib-tool produces output to stderr and it is
27829         not a fatal error.
27830
27831 2010-01-25  Bruno Haible  <bruno@clisp.org>
27832
27833         Fix test dependencies.
27834         * modules/xstrtol-tests (Depends-on): Add inttypes.
27835         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27836
27837 2010-01-25 Pádraig Brady <P@draigBrady.com>
27838
27839         syntax-check: detect incorrect boolean macro values in config.h
27840         * modules/maintainer-makefile (configure.ac): Parameterize the location
27841         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27842         The logic is from Eric Blake and the location indicated by Jim Meyering.
27843         Note the more natural CONFIG_HEADER name is prohibited by automake
27844         for backwards compatibility reasons.
27845         * top/maint.mk (sc_Wundef_boolean): New rule.
27846
27847 2010-01-25  Jim Meyering  <meyering@redhat.com>
27848
27849         bootstrap: detect MacOS 10.6's shasum, too
27850         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27851         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27852
27853 2010-01-23  Jim Meyering  <meyering@redhat.com>
27854
27855         xstrtoll: new module
27856         * modules/xstrtoll: New file.
27857         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27858         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27859         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27860         ./configure fails if you use this module and lack "long long".
27861         * modules/xstrtoll-tests: New module.
27862         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27863         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27864         new init.sh-based test framework.
27865
27866 2010-01-24  Bruno Haible  <bruno@clisp.org>
27867
27868         Tests for module 'yn'.
27869         * modules/yn-tests: New file.
27870         * tests/test-yn.c: New file.
27871
27872         Tests for module 'y1'.
27873         * modules/y1-tests: New file.
27874         * tests/test-y1.c: New file.
27875
27876         Tests for module 'y0'.
27877         * modules/y0-tests: New file.
27878         * tests/test-y0.c: New file.
27879
27880         Tests for module 'tanh'.
27881         * modules/tanh-tests: New file.
27882         * tests/test-tanh.c: New file.
27883
27884         Tests for module 'tan'.
27885         * modules/tan-tests: New file.
27886         * tests/test-tan.c: New file.
27887
27888         Tests for module 'sqrt'.
27889         * modules/sqrt-tests: New file.
27890         * tests/test-sqrt.c: New file.
27891
27892         Tests for module 'sinh'.
27893         * modules/sinh-tests: New file.
27894         * tests/test-sinh.c: New file.
27895
27896         Tests for module 'sin'.
27897         * modules/sin-tests: New file.
27898         * tests/test-sin.c: New file.
27899
27900         Tests for module 'rint'.
27901         * modules/rint-tests: New file.
27902         * tests/test-rint.c: New file.
27903
27904         Tests for module 'remainder'.
27905         * modules/remainder-tests: New file.
27906         * tests/test-remainder.c: New file.
27907
27908         Tests for module 'pow'.
27909         * modules/pow-tests: New file.
27910         * tests/test-pow.c: New file.
27911
27912         Tests for module 'nextafter'.
27913         * modules/nextafter-tests: New file.
27914         * tests/test-nextafter.c: New file.
27915
27916         Tests for module 'modf'.
27917         * modules/modf-tests: New file.
27918         * tests/test-modf.c: New file.
27919
27920         Tests for module 'logb'.
27921         * modules/logb-tests: New file.
27922         * tests/test-logb.c: New file.
27923
27924         Tests for module 'log1p'.
27925         * modules/log1p-tests: New file.
27926         * tests/test-log1p.c: New file.
27927
27928         Tests for module 'log10'.
27929         * modules/log10-tests: New file.
27930         * tests/test-log10.c: New file.
27931
27932         Tests for module 'log'.
27933         * modules/log-tests: New file.
27934         * tests/test-log.c: New file.
27935
27936         Tests for module 'lgamma'.
27937         * modules/lgamma-tests: New file.
27938         * tests/test-lgamma.c: New file.
27939
27940         Tests for module 'ldexp'.
27941         * modules/ldexp-tests: New file.
27942         * tests/test-ldexp.c: New file.
27943
27944         Tests for module 'jn'.
27945         * modules/jn-tests: New file.
27946         * tests/test-jn.c: New file.
27947
27948         Tests for module 'j1'.
27949         * modules/j1-tests: New file.
27950         * tests/test-j1.c: New file.
27951
27952         Tests for module 'j0'.
27953         * modules/j0-tests: New file.
27954         * tests/test-j0.c: New file.
27955
27956         Tests for module 'hypot'.
27957         * modules/hypot-tests: New file.
27958         * tests/test-hypot.c: New file.
27959
27960         Tests for module 'fmod'.
27961         * modules/fmod-tests: New file.
27962         * tests/test-fmod.c: New file.
27963
27964         Tests for module 'fabs'.
27965         * modules/fabs-tests: New file.
27966         * tests/test-fabs.c: New file.
27967
27968         Tests for module 'exp'.
27969         * modules/exp-tests: New file.
27970         * tests/test-exp.c: New file.
27971
27972         Tests for module 'erfc'.
27973         * modules/erfc-tests: New file.
27974         * tests/test-erfc.c: New file.
27975
27976         Tests for module 'erf'.
27977         * modules/erf-tests: New file.
27978         * tests/test-erf.c: New file.
27979
27980         Tests for module 'cosh'.
27981         * modules/cosh-tests: New file.
27982         * tests/test-cosh.c: New file.
27983
27984         Tests for module 'cos'.
27985         * modules/cos-tests: New file.
27986         * tests/test-cos.c: New file.
27987
27988         Tests for module 'copysign'.
27989         * modules/copysign-tests: New file.
27990         * tests/test-copysign.c: New file.
27991
27992         Tests for module 'cbrt'.
27993         * modules/cbrt-tests: New file.
27994         * tests/test-cbrt.c: New file.
27995
27996         Tests for module 'atan2'.
27997         * modules/atan2-tests: New file.
27998         * tests/test-atan2.c: New file.
27999
28000         Tests for module 'atan'.
28001         * modules/atan-tests: New file.
28002         * tests/test-atan.c: New file.
28003
28004         Tests for module 'asin'.
28005         * modules/asin-tests: New file.
28006         * tests/test-asin.c: New file.
28007
28008         Tests for module 'acos'.
28009         * modules/acos-tests: New file.
28010         * tests/test-acos.c: New file.
28011
28012 2010-01-24  Bruno Haible  <bruno@clisp.org>
28013
28014         Fix tests for common <math.h> functions.
28015         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
28016         code snippet that references the function pointer, rather than merely
28017         calling the function. Substitute the FUNC_LIBM variable.
28018         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
28019         * modules/acos (configure.ac): Likewise.
28020         * modules/asin (configure.ac): Likewise.
28021         * modules/atan (configure.ac): Likewise.
28022         * modules/atan2 (configure.ac): Likewise.
28023         * modules/cbrt (configure.ac): Likewise.
28024         * modules/copysign (configure.ac): Likewise.
28025         * modules/cos (configure.ac): Likewise.
28026         * modules/cosh (configure.ac): Likewise.
28027         * modules/erf (configure.ac): Likewise.
28028         * modules/erfc (configure.ac): Likewise.
28029         * modules/exp (configure.ac): Likewise.
28030         * modules/fabs (configure.ac): Likewise.
28031         * modules/fmod (configure.ac): Likewise.
28032         * modules/hypot (configure.ac): Likewise.
28033         * modules/j0 (configure.ac): Likewise.
28034         * modules/j1 (configure.ac): Likewise.
28035         * modules/jn (configure.ac): Likewise.
28036         * modules/ldexp (configure.ac): Likewise.
28037         * modules/lgamma (configure.ac): Likewise.
28038         * modules/log (configure.ac): Likewise.
28039         * modules/log10 (configure.ac): Likewise.
28040         * modules/log1p (configure.ac): Likewise.
28041         * modules/logb (configure.ac): Likewise.
28042         * modules/modf (configure.ac): Likewise.
28043         * modules/nextafter (configure.ac): Likewise.
28044         * modules/pow (configure.ac): Likewise.
28045         * modules/remainder (configure.ac): Likewise.
28046         * modules/rint (configure.ac): Likewise.
28047         * modules/sin (configure.ac): Likewise.
28048         * modules/sinh (configure.ac): Likewise.
28049         * modules/tan (configure.ac): Likewise.
28050         * modules/tanh (configure.ac): Likewise.
28051         * modules/y0 (configure.ac): Likewise.
28052         * modules/y1 (configure.ac): Likewise.
28053         * modules/yn (configure.ac): Likewise.
28054
28055 2010-01-24  Bruno Haible  <bruno@clisp.org>
28056
28057         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
28058         * tests/test-acosl.c (x): New variable.
28059         (main): Store argument in x and fetch it from x.
28060         * tests/test-asinl.c (x): New variable.
28061         (main): Store argument in x and fetch it from x.
28062         * tests/test-atanl.c (x): New variable.
28063         (main): Store argument in x and fetch it from x.
28064         * tests/test-cosl.c (x): New variable.
28065         (main): Store argument in x and fetch it from x.
28066         * tests/test-expl.c (x): New variable.
28067         (main): Store argument in x and fetch it from x.
28068         * tests/test-logl.c (x): New variable.
28069         (main): Store argument in x and fetch it from x.
28070         * tests/test-sinl.c (x): New variable.
28071         (main): Store argument in x and fetch it from x.
28072         * tests/test-sqrtl.c (x): New variable.
28073         (main): Store argument in x and fetch it from x.
28074         * tests/test-tanl.c (x): New variable.
28075         (main): Store argument in x and fetch it from x.
28076
28077 2010-01-24  Bruno Haible  <bruno@clisp.org>
28078
28079         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
28080         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
28081         assignments to the initial TESTS_ENVIRONMENT.
28082         * doc/gnulib.texi (Unit test modules): Document it.
28083         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
28084         TESTS_ENVIRONMENT.
28085         * modules/btowc-tests (Makefile.am): Likewise.
28086         * modules/c-stack-tests (Makefile.am): Likewise.
28087         * modules/c-strcase-tests (Makefile.am): Likewise.
28088         * modules/copy-file-tests (Makefile.am): Likewise.
28089         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
28090         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
28091         * modules/mbrtowc-tests (Makefile.am): Likewise.
28092         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28093         * modules/mbscasestr-tests (Makefile.am): Likewise.
28094         * modules/mbschr-tests (Makefile.am): Likewise.
28095         * modules/mbscspn-tests (Makefile.am): Likewise.
28096         * modules/mbsinit-tests (Makefile.am): Likewise.
28097         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28098         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
28099         * modules/mbspbrk-tests (Makefile.am): Likewise.
28100         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28101         * modules/mbsrchr-tests (Makefile.am): Likewise.
28102         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
28103         * modules/mbsspn-tests (Makefile.am): Likewise.
28104         * modules/mbsstr-tests (Makefile.am): Likewise.
28105         * modules/nl_langinfo-tests (Makefile.am): Likewise.
28106         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
28107         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28108         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28109         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28110         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28111         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
28112         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28113         * modules/wcrtomb-tests (Makefile.am): Likewise.
28114         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
28115         * modules/wcsrtombs-tests (Makefile.am): Likewise.
28116         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
28117         assignments from TESTS_ENVIRONMENT.
28118         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
28119         augmentation.
28120         * modules/argp-version-etc-tests (Makefile.am): Likewise.
28121         * modules/atexit-tests (Makefile.am): Likewise.
28122         * modules/binary-io-tests (Makefile.am): Likewise.
28123         * modules/closein-tests (Makefile.am): Likewise.
28124         * modules/dprintf-posix-tests (Makefile.am): Likewise.
28125         * modules/exclude-tests (Makefile.am): Likewise.
28126         * modules/fflush-tests (Makefile.am): Likewise.
28127         * modules/fpending-tests (Makefile.am): Likewise.
28128         * modules/fprintf-posix-tests (Makefile.am): Likewise.
28129         * modules/freadahead-tests (Makefile.am): Likewise.
28130         * modules/freadptr-tests (Makefile.am): Likewise.
28131         * modules/freadseek-tests (Makefile.am): Likewise.
28132         * modules/fseek-tests (Makefile.am): Likewise.
28133         * modules/fseeko-tests (Makefile.am): Likewise.
28134         * modules/ftell-tests (Makefile.am): Likewise.
28135         * modules/ftello-tests (Makefile.am): Likewise.
28136         * modules/idpriv-drop-tests (Makefile.am): Likewise.
28137         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
28138         * modules/lseek-tests (Makefile.am): Likewise.
28139         * modules/parse-duration-tests (Makefile.am): Likewise.
28140         * modules/perror-tests (Makefile.am): Likewise.
28141         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
28142         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
28143         * modules/pipe-tests (Makefile.am): Likewise.
28144         * modules/pread-tests (Makefile.am): Likewise.
28145         * modules/printf-posix-tests (Makefile.am): Likewise.
28146         * modules/select-tests (Makefile.am): Likewise.
28147         * modules/sigpipe-tests (Makefile.am): Likewise.
28148         * modules/tsearch-tests (Makefile.am): Likewise.
28149         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
28150         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
28151         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28152         * modules/uniwidth/width-tests (Makefile.am): Likewise.
28153         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
28154         * modules/version-etc-tests (Makefile.am): Likewise.
28155         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28156         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28157         * modules/xalloc-die-tests (Makefile.am): Likewise.
28158         * modules/xprintf-posix-tests (Makefile.am): Likewise.
28159         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28160         * modules/xstrtol-tests (Makefile.am): Likewise.
28161         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28162         * modules/yesno-tests (Makefile.am): Likewise.
28163         Suggested by Jim Meyering.
28164
28165 2010-01-24  Bruno Haible  <bruno@clisp.org>
28166
28167         More documentation.
28168         * doc/gnulib.texi (Writing modules): New chapter.
28169         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
28170         the new chapter.
28171
28172 2010-01-24  Jim Meyering  <meyering@redhat.com>
28173
28174         maint.mk: do not prepend "./" after filtering
28175         * top/maint.mk (_prepend_srcdir_prefix): New variable
28176         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
28177         "./" when $(srcdir) is ".".
28178
28179         define STREQ(a,b) consistently, removing useless parentheses
28180         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
28181         since the only risk is that "a" or "b" contains an unparenthesized
28182         comma, but if either did that, STREQ would have 3 or more arguments.
28183         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
28184         * lib/fts.c (STREQ): Remove unnecessary parentheses.
28185         * lib/hash-triple.c (STREQ): Likewise.
28186         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
28187         * lib/getugroups.c (STREQ): Likewise.
28188
28189 2010-01-23  Jim Meyering  <meyering@redhat.com>
28190
28191         maint.mk: fix syntax-check in a non-srcdir build directory
28192         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
28193         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
28194
28195 2010-01-22  Jim Meyering  <meyering@redhat.com>
28196
28197         userspec: add unit tests
28198         * tests/test-userspec.c: New file.
28199         * modules/userspec-tests: Likewise.
28200
28201 2010-01-21  Jim Meyering  <meyering@redhat.com>
28202
28203         maint.mk: handle source file names containing "." robustly
28204         * top/maint.mk (_dot_escaped_srcdir): Define.
28205         (VC_LIST): Use it in LHS of sed substitution.
28206
28207 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
28208
28209         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
28210         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
28211         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
28212         from a non-srcdir build.
28213
28214 2010-01-20  Eric Blake  <ebb9@byu.net>
28215
28216         warn-on-use: use instead of link-warning
28217         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
28218         * modules/unistd (Depends-on, Makefile.am): Likewise.
28219         * modules/arpa_inet (Depends-on): Replace link-warning with
28220         warn-on-use.
28221         (Makefile.am): Update rules accordingly.
28222         * modules/ctype (Depends-on, Makefile.am): Likewise.
28223         * modules/dirent (Depends-on, Makefile.am): Likewise.
28224         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
28225         * modules/inttypes (Depends-on, Makefile.am): Likewise.
28226         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28227         * modules/locale (Depends-on, Makefile.am): Likewise.
28228         * modules/math (Depends-on, Makefile.am): Likewise.
28229         * modules/search (Depends-on, Makefile.am): Likewise.
28230         * modules/signal (Depends-on, Makefile.am): Likewise.
28231         * modules/spawn (Depends-on, Makefile.am): Likewise.
28232         * modules/stdlib (Depends-on, Makefile.am): Likewise.
28233         * modules/string (Depends-on, Makefile.am): Likewise.
28234         * modules/strings (Depends-on, Makefile.am): Likewise.
28235         * modules/sys_file (Depends-on, Makefile.am): Likewise.
28236         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
28237         * modules/sys_select (Depends-on, Makefile.am): Likewise.
28238         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
28239         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
28240         * modules/sys_times (Depends-on, Makefile.am): Likewise.
28241         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28242         * modules/wchar (Depends-on, Makefile.am): Likewise.
28243         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
28244         should be poisoned.
28245         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
28246         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
28247         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
28248         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28249         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28250         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28251         * m4/math_h.m4 (gl_MATH_H): Likewise.
28252         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28253         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28254         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28255         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28256         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28257         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28258         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28259         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
28260         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28261         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28262         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28263         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28264         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28265         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28266         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28267         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28268         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
28269         GL_LINK_WARNING.
28270         * lib/ctype.in.h: Likewise.
28271         * lib/dirent.in.h: Likewise.
28272         * lib/fcntl.in.h: Likewise.
28273         * lib/inttypes.in.h: Likewise.
28274         * lib/langinfo.in.h: Likewise.
28275         * lib/locale.in.h: Likewise.
28276         * lib/math.in.h: Likewise.
28277         * lib/search.in.h: Likewise.
28278         * lib/signal.in.h: Likewise.
28279         * lib/spawn.in.h: Likewise.
28280         * lib/stdio.in.h: Likewise.
28281         * lib/stdlib.in.h: Likewise.
28282         * lib/string.in.h: Likewise.
28283         * lib/strings.in.h: Likewise.
28284         * lib/sys_file.in.h: Likewise.
28285         * lib/sys_ioctl.in.h: Likewise.
28286         * lib/sys_select.in.h: Likewise.
28287         * lib/sys_socket.in.h: Likewise.
28288         * lib/sys_stat.in.h: Likewise.
28289         * lib/sys_times.in.h: Likewise.
28290         * lib/sys_utsname.in.h: Likewise.
28291         * lib/unistd.in.h: Likewise.
28292         * lib/wchar.in.h: Likewise.
28293
28294 2010-01-20  Bruno Haible  <bruno@clisp.org>
28295
28296         Avoid duplicate -lm.
28297         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
28298         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
28299         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
28300         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
28301         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
28302         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
28303         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
28304         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
28305         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
28306         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
28307         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
28308         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28309         Reported by Paolo Bonzini.
28310
28311 2010-01-19  Bruno Haible  <bruno@clisp.org>
28312
28313         langinfo, nl_langinfo: Relicense under LGPLv2+.
28314         * modules/langinfo (License): Change to LGPLv2+.
28315         * modules/nl_langinfo (License): Likewise.
28316         Patch by David Lutterkort <lutter@redhat.com>.
28317
28318 2010-01-19  Bruno Haible  <bruno@clisp.org>
28319
28320         Avoid compilation error with cc on OSF/1 5.1.
28321         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
28322         statement, not before.
28323         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28324
28325 2010-01-18  Bruno Haible  <bruno@clisp.org>
28326
28327         Avoid a link error due to the __printf__ symbol.
28328         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
28329         and 2.6.x.
28330         (__format__, __printf__): Remove definitions.
28331         * lib/argp-fmtstream.h: Likewise.
28332         * lib/argp.h: Likewise.
28333         * lib/error.h: Likewise.
28334         * lib/vasnprintf.h: Likewise.
28335         * lib/xprintf.h: Likewise.
28336         * lib/xvasprintf.h: Likewise.
28337         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28338
28339 2010-01-18  Bruno Haible  <bruno@clisp.org>
28340
28341         Tests for module 'tanl'.
28342         * modules/tanl-tests: New file.
28343         * tests/test-tanl.c: New file.
28344
28345         Tests for module 'sqrtl'.
28346         * modules/sqrtl-tests: New file.
28347         * tests/test-sqrtl.c: New file.
28348
28349         Tests for module 'sinl'.
28350         * modules/sinl-tests: New file.
28351         * tests/test-sinl.c: New file.
28352
28353         Tests for module 'logl'.
28354         * modules/logl-tests: New file.
28355         * tests/test-logl.c: New file.
28356
28357         Tests for module 'expl'.
28358         * modules/expl-tests: New file.
28359         * tests/test-expl.c: New file.
28360
28361         Tests for module 'cosl'.
28362         * modules/cosl-tests: New file.
28363         * tests/test-cosl.c: New file.
28364
28365         Tests for module 'atanl'.
28366         * modules/atanl-tests: New file.
28367         * tests/test-atanl.c: New file.
28368
28369         Tests for module 'asinl'.
28370         * modules/asinl-tests: New file.
28371         * tests/test-asinl.c: New file.
28372
28373         Tests for module 'acosl'.
28374         * modules/acosl-tests: New file.
28375         * tests/test-acosl.c: New file.
28376
28377         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28378         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28379         tanl): Use the standard gnulib idiom.
28380         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28381         * lib/sinl.c: Likewise.
28382         * lib/tanl.c: Don't include trigl.c.
28383         (kernel_tanl): Make static.
28384         * lib/sincosl.c: Include trigl.h first.
28385         * lib/trigl.c: Likewise.
28386         * m4/acosl.m4: New file.
28387         * m4/asinl.m4: New file.
28388         * m4/atanl.m4: New file.
28389         * m4/cosl.m4: New file.
28390         * m4/expl.m4: New file.
28391         * m4/logl.m4: New file.
28392         * m4/sinl.m4: New file.
28393         * m4/sqrtl.m4: New file.
28394         * m4/tanl.m4: New file.
28395         * m4/mathl.m4: Remove file.
28396         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
28397         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28398         Don't initialize GNULIB_MATHL.
28399         * modules/acosl: New file.
28400         * modules/asinl: New file.
28401         * modules/atanl: New file.
28402         * modules/cosl: New file.
28403         * modules/expl: New file.
28404         * modules/logl: New file.
28405         * modules/sinl: New file.
28406         * modules/sqrtl: New file.
28407         * modules/tanl: New file.
28408         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
28409         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
28410         substitute GNULIB_MATHL.
28411         * modules/mathl: Rewritten.
28412         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
28413         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
28414         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
28415         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
28416         * doc/posix-functions/expl.texi: Mention the 'expl' module.
28417         * doc/posix-functions/logl.texi: Mention the 'logl' module.
28418         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
28419         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
28420         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
28421
28422 2010-01-18  Bruno Haible  <bruno@clisp.org>
28423
28424         sqrt: Make gl_FUNC_SQRT requirable.
28425         * m4/sqrt.m4: New file.
28426         * modules/sqrt (Files): Add it.
28427         (configure.ac): Invoke gl_FUNC_SQRT.
28428
28429 2010-01-18  Bruno Haible  <bruno@clisp.org>
28430
28431         New modules for common <math.h> functions.
28432         * m4/mathfunc.m4: New file.
28433         * modules/acos: New file.
28434         * modules/asin: New file.
28435         * modules/atan: New file.
28436         * modules/atan2: New file.
28437         * modules/cbrt: New file.
28438         * modules/copysign: New file.
28439         * modules/cos: New file.
28440         * modules/cosh: New file.
28441         * modules/erf: New file.
28442         * modules/erfc: New file.
28443         * modules/exp: New file.
28444         * modules/fabs: New file.
28445         * modules/fmod: New file.
28446         * modules/hypot: New file.
28447         * modules/j0: New file.
28448         * modules/j1: New file.
28449         * modules/jn: New file.
28450         * modules/ldexp: New file.
28451         * modules/lgamma: New file.
28452         * modules/log: New file.
28453         * modules/log10: New file.
28454         * modules/log1p: New file.
28455         * modules/logb: New file.
28456         * modules/modf: New file.
28457         * modules/nextafter: New file.
28458         * modules/pow: New file.
28459         * modules/remainder: New file.
28460         * modules/rint: New file.
28461         * modules/sin: New file.
28462         * modules/sinh: New file.
28463         * modules/sqrt: New file.
28464         * modules/tan: New file.
28465         * modules/tanh: New file.
28466         * modules/y0: New file.
28467         * modules/y1: New file.
28468         * modules/yn: New file.
28469         * doc/posix-functions/acos.texi: Mention the 'acos' module.
28470         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28471         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28472         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28473         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28474         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28475         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28476         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28477         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28478         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28479         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28480         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28481         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28482         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28483         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28484         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28485         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28486         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28487         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28488         * doc/posix-functions/log.texi: Mention the 'log' module.
28489         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28490         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28491         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28492         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28493         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28494         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28495         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28496         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28497         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28498         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28499         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28500         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28501         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28502         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28503         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28504         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28505
28506 2010-01-18  Jim Meyering  <meyering@redhat.com>
28507
28508         ignore-value: relax license to LGPLv2+
28509         * modules/ignore-value (License): Relax to LGPLv2+.
28510
28511         getdate: don't leak when TZ contains two or more '"'s
28512         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28513         double quote in TZ after the first one.
28514
28515         readtokens: do not leak internal token_lengths buffer
28516         * lib/readtokens.c (readtokens): Free the local, lengths,
28517         when the supplied "token_lengths" parameter is NULL.
28518
28519 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28520
28521         Fix a couple of missing LIBTHREAD link failures on AIX.
28522         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28523         $(LIBTHREAD).
28524         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28525
28526         Link test-poll against INET_PTON_LIB.
28527         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28528         for inet_pton on Solaris 10.
28529
28530 2010-01-17  Bruno Haible  <bruno@clisp.org>
28531
28532         unistdio/*-sprintf: Fix typo in module description.
28533         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28534         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28535         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28536         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28537         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28538         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28539         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28540         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28541
28542 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28543
28544         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28545         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28546         variables in shell case patterns, for AIX and HP-UX ksh.
28547
28548         Split large sed scripts, for HP-UX sed.
28549         * modules/stdio: Split sed scripts around 50 sed commands,
28550         to avoid HP-UX limit of 99 commands, in the near future.
28551         * modules/string: Likewise.
28552         * modules/unistd: Likewise.
28553
28554         gnulib-tool: avoid writing in the current directory.
28555         * gnulib-tool (func_emit_lib_Makefile_am)
28556         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28557         not in the current directory, so concurrent gnulib-tool
28558         instances do not interfere.
28559
28560 2010-01-16  Jim Meyering  <meyering@redhat.com>
28561
28562         doc: update users.txt
28563         * users.txt: Add grep.
28564         (diffutils, gzip): Update URLs.
28565
28566 2010-01-12  Bruno Haible  <bruno@clisp.org>
28567
28568         posix_spawn: Avoid test failure on Cygwin.
28569         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28570         characters.
28571         Reported by Simon Josefsson.
28572
28573 2010-01-12  Bruno Haible  <bruno@clisp.org>
28574
28575         * tests/test-cond.c (main): When skipping the test, show the reason.
28576
28577 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28578
28579         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28580
28581 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28582
28583         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28584         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28585
28586 2010-01-12  Eric Blake  <ebb9@byu.net>
28587
28588         build: guarantee AS_VAR_IF
28589         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28590         (gl_AS_VAR_IF): Move...
28591         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28592         Reported by Simon Josefsson.
28593
28594 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28595
28596         * lib/stdio.in.h: Fix typo.
28597
28598 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28599
28600         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28601         libgpg-error.
28602
28603 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28604
28605         * tests/test-xalloc-die.sh: Use $EXEEXT.
28606
28607 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28608             Bruno Haible  <bruno@clisp.org>
28609
28610         getlogin, getlogin_r: Avoid test failure.
28611         * tests/test-getlogin.c: Include <stdio.h>.
28612         (main): Skip the test when the function fails because stdin is not a
28613         tty.
28614         * tests/test-getlogin_r.c: Include <stdio.h>.
28615         (main): Skip the test when the function fails because stdin is not a
28616         tty.
28617
28618 2010-01-11  Eric Blake  <ebb9@byu.net>
28619
28620         tests: avoid more large file warnings
28621         * tests/test-fflush.c: Avoid warning about ftell use.
28622         * tests/test-fseek.c: Avoid warning about fseek use.
28623
28624 2010-01-10  Bruno Haible  <bruno@clisp.org>
28625
28626         nproc: Work better on Linux when /proc and /sys are not mounted.
28627         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28628         as lower bound when, on glibc/Linux systems,
28629         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28630         Suggested by Pádraig Brady <P@draigbrady.com>.
28631         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28632
28633         nproc: Refactor.
28634         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28635         extracted from num_processors.
28636         (num_processors): Call it.
28637
28638 2010-01-11  Jim Meyering  <meyering@redhat.com>
28639
28640         utimecmp: avoid new warning from upcoming gcc-4.5.0
28641         * lib/utimecmp.c (BILLION): Define using #define rather than an
28642         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28643
28644 2010-01-11  Eric Blake  <ebb9@byu.net>
28645
28646         math: add portability warnings for classification macros
28647         * modules/math (Depends-on): Add warn-on-use.
28648         (Makefile.am): Provide new substitutions.
28649         * m4/math_h.m4 (gl_MATH_H): Require inline.
28650         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28651         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28652         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28653         implement warnings.
28654
28655         unistd: warn on use of environ without module
28656         * modules/unistd (Depends-on): Add warn-on-use.
28657         (Makefile.am): Provide new substitutions.
28658         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28659         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28660
28661         stdio: warn on suspicious uses
28662         * modules/stdio (Depends-on): Add warn-on-use.
28663         (Makefile.am): Provide new substitutions.
28664         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28665         fseeko.
28666         * lib/stdio.in.h (gets): Always warn on use.
28667         (fseek, ftell): Adjust when warnings are issued, and honor
28668         _GL_NO_LARGE_FILES as a way to silence the warning.
28669         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28670         any warning about large file offsets.
28671         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28672         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28673         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28674         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28675         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28676         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28677         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28678         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28679
28680         warn-on-use: new module
28681         * modules/warn-on-use: New file.
28682         * build-aux/warn-on-use.h: Likewise.
28683         * m4/warn-on-use.m4: Likewise.
28684         * MODULES.html.sh (Support for building): Mention it.
28685
28686 2010-01-10  Bruno Haible  <bruno@clisp.org>
28687
28688         Tests for module 'unistr/u32-strdup'.
28689         * modules/unistr/u32-strdup-tests: New file.
28690         * tests/unistr/test-u32-strdup.c: New file.
28691
28692         Tests for module 'unistr/u16-strdup'.
28693         * modules/unistr/u16-strdup-tests: New file.
28694         * tests/unistr/test-u16-strdup.c: New file.
28695
28696         Tests for module 'unistr/u8-strdup'.
28697         * modules/unistr/u8-strdup-tests: New file.
28698         * tests/unistr/test-u8-strdup.c: New file.
28699         * tests/unistr/test-strdup.h: New file.
28700
28701         Tests for module 'unistr/u32-strncmp'.
28702         * modules/unistr/u32-strncmp-tests: New file.
28703         * tests/unistr/test-u32-strncmp.c: New file.
28704
28705         Tests for module 'unistr/u16-strncmp'.
28706         * modules/unistr/u16-strncmp-tests: New file.
28707         * tests/unistr/test-u16-strncmp.c: New file.
28708
28709         Tests for module 'unistr/u8-strncmp'.
28710         * modules/unistr/u8-strncmp-tests: New file.
28711         * tests/unistr/test-u8-strncmp.c: New file.
28712         * tests/unistr/test-strncmp.h: New file.
28713
28714         Tests for module 'unistr/u32-strcoll'.
28715         * modules/unistr/u32-strcoll-tests: New file.
28716         * tests/unistr/test-u32-strcoll.c: New file.
28717
28718         Tests for module 'unistr/u16-strcoll'.
28719         * modules/unistr/u16-strcoll-tests: New file.
28720         * tests/unistr/test-u16-strcoll.c: New file.
28721
28722         Tests for module 'unistr/u8-strcoll'.
28723         * modules/unistr/u8-strcoll-tests: New file.
28724         * tests/unistr/test-u8-strcoll.c: New file.
28725
28726         Tests for module 'unistr/u32-strcmp'.
28727         * modules/unistr/u32-strcmp-tests: New file.
28728         * tests/unistr/test-u32-strcmp.c: New file.
28729         * tests/unistr/test-u32-strcmp.h: New file.
28730
28731         Tests for module 'unistr/u16-strcmp'.
28732         * modules/unistr/u16-strcmp-tests: New file.
28733         * tests/unistr/test-u16-strcmp.c: New file.
28734         * tests/unistr/test-u16-strcmp.h: New file.
28735
28736         Tests for module 'unistr/u8-strcmp'.
28737         * modules/unistr/u8-strcmp-tests: New file.
28738         * tests/unistr/test-u8-strcmp.c: New file.
28739         * tests/unistr/test-u8-strcmp.h: New file.
28740         * tests/unistr/test-strcmp.h: New file.
28741
28742         Tests for module 'unistr/u32-strncat'.
28743         * modules/unistr/u32-strncat-tests: New file.
28744         * tests/unistr/test-u32-strncat.c: New file.
28745
28746         Tests for module 'unistr/u16-strncat'.
28747         * modules/unistr/u16-strncat-tests: New file.
28748         * tests/unistr/test-u16-strncat.c: New file.
28749
28750         Tests for module 'unistr/u8-strncat'.
28751         * modules/unistr/u8-strncat-tests: New file.
28752         * tests/unistr/test-u8-strncat.c: New file.
28753         * tests/unistr/test-strncat.h: New file.
28754
28755         Tests for module 'unistr/u32-strcat'.
28756         * modules/unistr/u32-strcat-tests: New file.
28757         * tests/unistr/test-u32-strcat.c: New file.
28758
28759         Tests for module 'unistr/u16-strcat'.
28760         * modules/unistr/u16-strcat-tests: New file.
28761         * tests/unistr/test-u16-strcat.c: New file.
28762
28763         Tests for module 'unistr/u8-strcat'.
28764         * modules/unistr/u8-strcat-tests: New file.
28765         * tests/unistr/test-u8-strcat.c: New file.
28766         * tests/unistr/test-strcat.h: New file.
28767
28768         Tests for module 'unistr/u32-stpncpy'.
28769         * modules/unistr/u32-stpncpy-tests: New file.
28770         * tests/unistr/test-u32-stpncpy.c: New file.
28771
28772         Tests for module 'unistr/u16-stpncpy'.
28773         * modules/unistr/u16-stpncpy-tests: New file.
28774         * tests/unistr/test-u16-stpncpy.c: New file.
28775
28776         Tests for module 'unistr/u8-stpncpy'.
28777         * modules/unistr/u8-stpncpy-tests: New file.
28778         * tests/unistr/test-u8-stpncpy.c: New file.
28779         * tests/unistr/test-stpncpy.h: New file.
28780
28781         Tests for module 'unistr/u32-strncpy'.
28782         * modules/unistr/u32-strncpy-tests: New file.
28783         * tests/unistr/test-u32-strncpy.c: New file.
28784
28785         Tests for module 'unistr/u16-strncpy'.
28786         * modules/unistr/u16-strncpy-tests: New file.
28787         * tests/unistr/test-u16-strncpy.c: New file.
28788
28789         Tests for module 'unistr/u8-strncpy'.
28790         * modules/unistr/u8-strncpy-tests: New file.
28791         * tests/unistr/test-u8-strncpy.c: New file.
28792         * tests/unistr/test-strncpy.h: New file.
28793
28794         Tests for module 'unistr/u32-stpcpy'.
28795         * modules/unistr/u32-stpcpy-tests: New file.
28796         * tests/unistr/test-u32-stpcpy.c: New file.
28797
28798         Tests for module 'unistr/u16-stpcpy'.
28799         * modules/unistr/u16-stpcpy-tests: New file.
28800         * tests/unistr/test-u16-stpcpy.c: New file.
28801
28802         Tests for module 'unistr/u8-stpcpy'.
28803         * modules/unistr/u8-stpcpy-tests: New file.
28804         * tests/unistr/test-u8-stpcpy.c: New file.
28805         * tests/unistr/test-stpcpy.h: New file.
28806
28807         Tests for module 'unistr/u32-strcpy'.
28808         * modules/unistr/u32-strcpy-tests: New file.
28809         * tests/unistr/test-u32-strcpy.c: New file.
28810
28811         Tests for module 'unistr/u16-strcpy'.
28812         * modules/unistr/u16-strcpy-tests: New file.
28813         * tests/unistr/test-u16-strcpy.c: New file.
28814
28815         Tests for module 'unistr/u8-strcpy'.
28816         * modules/unistr/u8-strcpy-tests: New file.
28817         * tests/unistr/test-u8-strcpy.c: New file.
28818         * tests/unistr/test-strcpy.h: New file.
28819
28820         Tests for module 'unistr/u32-strnlen'.
28821         * modules/unistr/u32-strnlen-tests: New file.
28822         * tests/unistr/test-u32-strnlen.c: New file.
28823
28824         Tests for module 'unistr/u16-strnlen'.
28825         * modules/unistr/u16-strnlen-tests: New file.
28826         * tests/unistr/test-u16-strnlen.c: New file.
28827
28828         Tests for module 'unistr/u8-strnlen'.
28829         * modules/unistr/u8-strnlen-tests: New file.
28830         * tests/unistr/test-u8-strnlen.c: New file.
28831         * tests/unistr/test-strnlen.h: New file.
28832
28833         Tests for module 'unistr/u32-strlen'.
28834         * modules/unistr/u32-strlen-tests: New file.
28835         * tests/unistr/test-u32-strlen.c: New file.
28836
28837         Tests for module 'unistr/u16-strlen'.
28838         * modules/unistr/u16-strlen-tests: New file.
28839         * tests/unistr/test-u16-strlen.c: New file.
28840
28841         Tests for module 'unistr/u8-strlen'.
28842         * modules/unistr/u8-strlen-tests: New file.
28843         * tests/unistr/test-u8-strlen.c: New file.
28844
28845         Tests for module 'unistr/u32-prev'.
28846         * modules/unistr/u32-prev-tests: New file.
28847         * tests/unistr/test-u32-prev.c: New file.
28848
28849         Tests for module 'unistr/u16-prev'.
28850         * modules/unistr/u16-prev-tests: New file.
28851         * tests/unistr/test-u16-prev.c: New file.
28852
28853         Tests for module 'unistr/u8-prev'.
28854         * modules/unistr/u8-prev-tests: New file.
28855         * tests/unistr/test-u8-prev.c: New file.
28856
28857         Tests for module 'unistr/u32-next'.
28858         * modules/unistr/u32-next-tests: New file.
28859         * tests/unistr/test-u32-next.c: New file.
28860
28861         Tests for module 'unistr/u16-next'.
28862         * modules/unistr/u16-next-tests: New file.
28863         * tests/unistr/test-u16-next.c: New file.
28864
28865         Tests for module 'unistr/u8-next'.
28866         * modules/unistr/u8-next-tests: New file.
28867         * tests/unistr/test-u8-next.c: New file.
28868
28869         Tests for module 'unistr/u32-strmbtouc'.
28870         * modules/unistr/u32-strmbtouc-tests: New file.
28871         * tests/unistr/test-u32-strmbtouc.c: New file.
28872
28873         Tests for module 'unistr/u16-strmbtouc'.
28874         * modules/unistr/u16-strmbtouc-tests: New file.
28875         * tests/unistr/test-u16-strmbtouc.c: New file.
28876
28877         Tests for module 'unistr/u8-strmbtouc'.
28878         * modules/unistr/u8-strmbtouc-tests: New file.
28879         * tests/unistr/test-u8-strmbtouc.c: New file.
28880
28881         Tests for module 'unistr/u32-strmblen'.
28882         * modules/unistr/u32-strmblen-tests: New file.
28883         * tests/unistr/test-u32-strmblen.c: New file.
28884
28885         Tests for module 'unistr/u16-strmblen'.
28886         * modules/unistr/u16-strmblen-tests: New file.
28887         * tests/unistr/test-u16-strmblen.c: New file.
28888
28889         Tests for module 'unistr/u8-strmblen'.
28890         * modules/unistr/u8-strmblen-tests: New file.
28891         * tests/unistr/test-u8-strmblen.c: New file.
28892
28893         Tests for module 'unistr/u32-cpy-alloc'.
28894         * modules/unistr/u32-cpy-alloc-tests: New file.
28895         * tests/unistr/test-u32-cpy-alloc.c: New file.
28896
28897         Tests for module 'unistr/u16-cpy-alloc'.
28898         * modules/unistr/u16-cpy-alloc-tests: New file.
28899         * tests/unistr/test-u16-cpy-alloc.c: New file.
28900
28901         Tests for module 'unistr/u8-cpy-alloc'.
28902         * modules/unistr/u8-cpy-alloc-tests: New file.
28903         * tests/unistr/test-u8-cpy-alloc.c: New file.
28904         * tests/unistr/test-cpy-alloc.h: New file.
28905
28906         Tests for module 'unistr/u32-mbsnlen'.
28907         * modules/unistr/u32-mbsnlen-tests: New file.
28908         * tests/unistr/test-u32-mbsnlen.c: New file.
28909
28910         Tests for module 'unistr/u16-mbsnlen'.
28911         * modules/unistr/u16-mbsnlen-tests: New file.
28912         * tests/unistr/test-u16-mbsnlen.c: New file.
28913
28914         Tests for module 'unistr/u8-mbsnlen'.
28915         * modules/unistr/u8-mbsnlen-tests: New file.
28916         * tests/unistr/test-u8-mbsnlen.c: New file.
28917
28918         Tests for module 'unistr/u32-chr'.
28919         * modules/unistr/u32-chr-tests: New file.
28920         * tests/unistr/test-u32-chr.c: New file.
28921
28922         Tests for module 'unistr/u16-chr'.
28923         * modules/unistr/u16-chr-tests: New file.
28924         * tests/unistr/test-u16-chr.c: New file.
28925
28926         Tests for module 'unistr/u8-chr'.
28927         * modules/unistr/u8-chr-tests: New file.
28928         * tests/unistr/test-u8-chr.c: New file.
28929         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28930
28931         Tests for module 'unistr/u32-cmp2'.
28932         * modules/unistr/u32-cmp2-tests: New file.
28933         * tests/unistr/test-u32-cmp2.c: New file.
28934
28935         Tests for module 'unistr/u16-cmp2'.
28936         * modules/unistr/u16-cmp2-tests: New file.
28937         * tests/unistr/test-u16-cmp2.c: New file.
28938
28939         Tests for module 'unistr/u8-cmp2'.
28940         * modules/unistr/u8-cmp2-tests: New file.
28941         * tests/unistr/test-u8-cmp2.c: New file.
28942         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28943
28944         Tests for module 'unistr/u32-cmp'.
28945         * modules/unistr/u32-cmp-tests: New file.
28946         * tests/unistr/test-u32-cmp.c: New file.
28947
28948         Tests for module 'unistr/u16-cmp'.
28949         * modules/unistr/u16-cmp-tests: New file.
28950         * tests/unistr/test-u16-cmp.c: New file.
28951
28952         Tests for module 'unistr/u8-cmp'.
28953         * modules/unistr/u8-cmp-tests: New file.
28954         * tests/unistr/test-u8-cmp.c: New file.
28955         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28956
28957         Tests for module 'unistr/u32-set'.
28958         * modules/unistr/u32-set-tests: New file.
28959         * tests/unistr/test-u32-set.c: New file.
28960
28961         Tests for module 'unistr/u16-set'.
28962         * modules/unistr/u16-set-tests: New file.
28963         * tests/unistr/test-u16-set.c: New file.
28964
28965         Tests for module 'unistr/u8-set'.
28966         * modules/unistr/u8-set-tests: New file.
28967         * tests/unistr/test-u8-set.c: New file.
28968         * tests/unistr/test-set.h: New file.
28969
28970         Tests for module 'unistr/u32-move'.
28971         * modules/unistr/u32-move-tests: New file.
28972         * tests/unistr/test-u32-move.c: New file.
28973
28974         Tests for module 'unistr/u16-move'.
28975         * modules/unistr/u16-move-tests: New file.
28976         * tests/unistr/test-u16-move.c: New file.
28977
28978         Tests for module 'unistr/u8-move'.
28979         * modules/unistr/u8-move-tests: New file.
28980         * tests/unistr/test-u8-move.c: New file.
28981         * tests/unistr/test-move.h: New file.
28982
28983         Tests for module 'unistr/u32-cpy'.
28984         * modules/unistr/u32-cpy-tests: New file.
28985         * tests/unistr/test-u32-cpy.c: New file.
28986
28987         Tests for module 'unistr/u16-cpy'.
28988         * modules/unistr/u16-cpy-tests: New file.
28989         * tests/unistr/test-u16-cpy.c: New file.
28990
28991         Tests for module 'unistr/u8-cpy'.
28992         * modules/unistr/u8-cpy-tests: New file.
28993         * tests/unistr/test-u8-cpy.c: New file.
28994         * tests/unistr/test-cpy.h: New file.
28995
28996 2010-01-09  Bruno Haible  <bruno@clisp.org>
28997
28998         Tests for module 'unistr/u32-uctomb'.
28999         * modules/unistr/u32-uctomb-tests: New file.
29000         * tests/unistr/test-u32-uctomb.c: New file.
29001
29002         Tests for module 'unistr/u16-uctomb'.
29003         * modules/unistr/u16-uctomb-tests: New file.
29004         * tests/unistr/test-u16-uctomb.c: New file.
29005
29006         Tests for module 'unistr/u8-uctomb'.
29007         * modules/unistr/u8-uctomb-tests: New file.
29008         * tests/unistr/test-u8-uctomb.c: New file.
29009
29010         Tests for module 'unistr/u32-mbtoucr'.
29011         * modules/unistr/u32-mbtoucr-tests: New file.
29012         * tests/unistr/test-u32-mbtoucr.c: New file.
29013
29014         Tests for module 'unistr/u16-mbtoucr'.
29015         * modules/unistr/u16-mbtoucr-tests: New file.
29016         * tests/unistr/test-u16-mbtoucr.c: New file.
29017
29018         Tests for module 'unistr/u8-mbtoucr'.
29019         * modules/unistr/u8-mbtoucr-tests: New file.
29020         * tests/unistr/test-u8-mbtoucr.c: New file.
29021
29022         Tests for module 'unistr/u32-mbtouc'.
29023         * modules/unistr/u32-mbtouc-tests: New file.
29024         * tests/unistr/test-u32-mbtouc.c: New file.
29025
29026         Tests for module 'unistr/u16-mbtouc'.
29027         * modules/unistr/u16-mbtouc-tests: New file.
29028         * tests/unistr/test-u16-mbtouc.c: New file.
29029
29030         Tests for module 'unistr/u8-mbtouc'.
29031         * modules/unistr/u8-mbtouc-tests: New file.
29032         * tests/unistr/test-u8-mbtouc.c: New file.
29033
29034         Tests for module 'unistr/u32-mbtouc-unsafe'.
29035         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
29036         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
29037         * tests/unistr/test-u32-mbtouc.h: New file.
29038
29039         Tests for module 'unistr/u16-mbtouc-unsafe'.
29040         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
29041         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
29042         * tests/unistr/test-u16-mbtouc.h: New file.
29043
29044         Tests for module 'unistr/u8-mbtouc-unsafe'.
29045         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
29046         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
29047         * tests/unistr/test-u8-mbtouc.h: New file.
29048
29049         Tests for module 'unistr/u32-mblen'.
29050         * modules/unistr/u32-mblen-tests: New file.
29051         * tests/unistr/test-u32-mblen.c: New file.
29052
29053         Tests for module 'unistr/u16-mblen'.
29054         * modules/unistr/u16-mblen-tests: New file.
29055         * tests/unistr/test-u16-mblen.c: New file.
29056
29057         Tests for module 'unistr/u8-mblen'.
29058         * modules/unistr/u8-mblen-tests: New file.
29059         * tests/unistr/test-u8-mblen.c: New file.
29060
29061         Tests for module 'unistr/u32-to-u16'.
29062         * modules/unistr/u32-to-u16-tests: New file.
29063         * tests/unistr/test-u32-to-u16.c: New file.
29064
29065         Tests for module 'unistr/u32-to-u8'.
29066         * modules/unistr/u32-to-u8-tests: New file.
29067         * tests/unistr/test-u32-to-u8.c: New file.
29068
29069         Tests for module 'unistr/u16-to-u32'.
29070         * modules/unistr/u16-to-u32-tests: New file.
29071         * tests/unistr/test-u16-to-u32.c: New file.
29072
29073         Tests for module 'unistr/u16-to-u8'.
29074         * modules/unistr/u16-to-u8-tests: New file.
29075         * tests/unistr/test-u16-to-u8.c: New file.
29076
29077         Tests for module 'unistr/u8-to-u32'.
29078         * modules/unistr/u8-to-u32-tests: New file.
29079         * tests/unistr/test-u8-to-u32.c: New file.
29080
29081         Tests for module 'unistr/u8-to-u16'.
29082         * modules/unistr/u8-to-u16-tests: New file.
29083         * tests/unistr/test-u8-to-u16.c: New file.
29084
29085         Tests for module 'unistr/u32-check'.
29086         * modules/unistr/u32-check-tests: New file.
29087         * tests/unistr/test-u32-check.c: New file.
29088
29089         Tests for module 'unistr/u16-check'.
29090         * modules/unistr/u16-check-tests: New file.
29091         * tests/unistr/test-u16-check.c: New file.
29092
29093         Tests for module 'unistr/u8-check'.
29094         * modules/unistr/u8-check-tests: New file.
29095         * tests/unistr/test-u8-check.c: New file.
29096
29097         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
29098         (category_equals): New function.
29099         (main): Add more tests.
29100         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
29101
29102         * tests/unictype/test-bidi_byname.c (main): Add more tests.
29103
29104 2010-01-10  Bruno Haible  <bruno@clisp.org>
29105
29106         unistr/u*-strcoll: Try harder to distinguish different strings.
29107         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
29108         compare s1 and s2 to see if they are different.
29109
29110 2010-01-10  Bruno Haible  <bruno@clisp.org>
29111
29112         unistr/u*-stpncpy: Fix the return value.
29113         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
29114         description of the return value consistent with stpncpy in glibc.
29115         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
29116         written non-NUL unit.
29117
29118 2010-01-10  Bruno Haible  <bruno@clisp.org>
29119
29120         unistr/u*-next: Add missing dependencies.
29121         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
29122         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
29123         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
29124
29125 2010-01-10  Bruno Haible  <bruno@clisp.org>
29126
29127         unistr/u8-mbsnlen: Fix return value for incomplete character.
29128         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
29129         u8_mblen.
29130         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
29131         Remove unistr/u8-mblen.
29132         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
29133         u16_mblen.
29134         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
29135         Remove unistr/u16-mblen.
29136
29137 2010-01-10  Bruno Haible  <bruno@clisp.org>
29138
29139         wchar: Fix compilation error when <wchar.h> is used from coreutils.
29140         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
29141         Reported by Brian Gough <bjg@gnu.org> and
29142         Chris Clayton <chris2553@googlemail.com> via
29143         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
29144
29145 2010-01-09  Bruno Haible  <bruno@clisp.org>
29146
29147         unistr/u16-to-u32: Reject invalid input.
29148         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
29149         u16_mbtouc.
29150         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
29151         Remove unistr/u16-mbtouc.
29152
29153         unistr/u16-to-u8: Reject invalid input.
29154         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
29155         u16_mbtouc.
29156         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
29157         Remove unistr/u16-mbtouc.
29158
29159         unistr/u8-to-u32: Reject invalid input.
29160         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
29161         u8_mbtouc.
29162         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
29163         Remove unistr/u8-mbtouc.
29164
29165         unistr/u8-to-u16: Reject invalid input.
29166         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
29167         u8_mbtouc.
29168         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
29169         Remove unistr/u8-mbtouc.
29170
29171 2010-01-09  Bruno Haible  <bruno@clisp.org>
29172
29173         Tests for module 'getlogin'.
29174         * modules/getlogin-tests: New file.
29175         * tests/test-getlogin.c: New file.
29176
29177         New module 'getlogin'.
29178         * lib/unistd.in.h (getlogin): New declaration.
29179         * lib/getlogin.c: New file.
29180         * m4/getlogin.m4: New file.
29181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
29182         HAVE_GETLOGIN.
29183         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
29184         HAVE_GETLOGIN.
29185         * modules/getlogin: New file.
29186         * doc/posix-functions/getlogin.texi: Mention the new module.
29187         Reported by John W. Eaton <jwe@gnu.org>.
29188
29189 2010-01-09  Bruno Haible  <bruno@clisp.org>
29190
29191         getlogin_r: Support for native Windows.
29192         * lib/getlogin_r.c: Include <windows.h>
29193         (getlogin_r): Implement for native Windows.
29194         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
29195         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
29196         via John W. Eaton <jwe@gnu.org>.
29197
29198 2010-01-09  Bruno Haible  <bruno@clisp.org>
29199
29200         getlogin_r: Small fixes.
29201         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
29202         succeeds.
29203         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
29204         before testing whether getlogin_r is declared. No need to set
29205         HAVE_DECL_GETLOGIN_R to 1.
29206         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
29207
29208 2010-01-09  Bruno Haible  <bruno@clisp.org>
29209
29210         * lib/unistd.in.h (getlogin_r): Add comment.
29211
29212 2010-01-09  Bruno Haible  <bruno@clisp.org>
29213
29214         Tests for module 'getlogin_r'.
29215         * modules/getlogin_r-tests: New file.
29216         * tests/test-getlogin_r.c: New file.
29217
29218 2010-01-09  Jim Meyering  <meyering@redhat.com>
29219
29220         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
29221         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
29222         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
29223
29224 2010-01-08  Simon Josefsson  <simon@josefsson.org>
29225
29226         * lib/dup2.c (rpl_dup2): Improve comment.
29227
29228 2010-01-08  Eric Blake  <ebb9@byu.net>
29229
29230         maint.mk: allow packages to add makefile @@ exceptions
29231         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
29232         (sc_makefile_check): Rename...
29233         (sc_makefile_at_at_check): ...to this, and use hook.
29234
29235         dup2: work around mingw bug
29236         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
29237         Reported by Simon Josefsson.
29238
29239 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
29240
29241         glob: Fix C++ compilation.
29242         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
29243         C++.
29244
29245 2010-01-07  Bruno Haible  <bruno@clisp.org>
29246
29247         Fix indentation of wctype.in.h, broken since 2007-01-06.
29248         * lib/wctype.in.h: Fix indentation of preprocessor directives.
29249
29250 2010-01-07  Bruno Haible  <bruno@clisp.org>
29251
29252         mbslen: Avoid collision with system function.
29253         * lib/string.in.h [MirBSD]: Include <wchar.h>.
29254         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
29255         * m4/mbslen.m4: New file.
29256         * modules/mbslen (Files): Add it.
29257         (configure.ac): Invoke gl_MBSLEN.
29258         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
29259         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
29260         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
29261         via Ian Beckwith <ianb@erislabs.net>.
29262
29263 2010-01-07  Bruno Haible  <bruno@clisp.org>
29264
29265         dirent: Document the last fix.
29266         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
29267
29268 2010-01-07  Bruno Haible  <bruno@clisp.org>
29269
29270         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
29271         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
29272         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
29273         va_list are defined.
29274         * doc/posix-headers/stdio.texi: Document the bug of missing types.
29275         Reported by Eric Blake.
29276
29277 2010-01-07  Bruno Haible  <bruno@clisp.org>
29278
29279         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
29280         * modules/xlist (Depends-on): Add 'list',
29281         * modules/xoset (Depends-on): Add 'oset'.
29282         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29283
29284 2010-01-07  Bruno Haible  <bruno@clisp.org>
29285
29286         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
29287         * doc/posix-functions/strncasecmp.texi: Likewise.
29288
29289 2010-01-07  Bruno Haible  <bruno@clisp.org>
29290
29291         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
29292
29293 2010-01-07  John W. Eaton  <jwe@octave.org>
29294
29295         wctype: allow C++ use
29296         * lib/wctype.in.h: Add extern "C" block for C++.
29297
29298 2010-01-06  Eric Blake  <ebb9@byu.net>
29299
29300         maint.mk: detect incorrect GFDL usage
29301         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
29302
29303 2010-01-06  Jim Meyering  <meyering@redhat.com>
29304         and Eric Blake  <ebb9@byu.net>
29305
29306         maint.mk: ignore multi-line copyright in NEWS
29307         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
29308
29309 2010-01-06  Eric Blake  <ebb9@byu.net>
29310
29311         select: add missing dependency
29312         * modules/select-tests (Depends-on): Move sockets dependency...
29313         * modules/select (Depends-on): ...here.
29314         Reported by Ian Beckwith.
29315
29316         doc: regenerate INSTALL
29317         * doc/INSTALL: Reflect recent autoconf update.
29318         * doc/INSTALL.ISO: Likewise.
29319         * doc/INSTALL.UTF-8: Likewise.
29320
29321         pread: fix compilation on glibc
29322         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
29323         Reported by Ralf Wildenhues.
29324
29325         dirent: fix test failure
29326         * lib/dirent.in.h (includes): Guarantee ino_t.
29327         Reported by Ralf Wildenhues.
29328
29329 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
29330
29331         linkat, renameat: avoid bad free
29332         * lib/at-func2.c (at_func2): Fix typo.
29333         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
29334
29335 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29336
29337         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
29338         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
29339         to avoid failure of symlink test later.
29340
29341 2010-01-06  Eric Blake  <ebb9@byu.net>
29342
29343         stdio, unistd: guarantee ssize_t
29344         * lib/unistd.in.h (includes): Ensure that types required by POSIX
29345         2008 are exposed when needed.
29346         * lib/stdio.in.h (includes): Likewise.
29347         Reported by Ralf Wildenhues.
29348
29349 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
29350
29351         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
29352         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
29353         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
29354
29355 2010-01-06  Jim Meyering  <meyering@redhat.com>
29356
29357         readtokens: this module *does* require xalloc.h
29358         It uses only functions that were omitted by the old syntax-check rule.
29359         * lib/readtokens.c: Include "xalloc.h" once again.
29360         * modules/readtokens (Depends-on): Add xalloc.
29361         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29362
29363 2010-01-05  Eric Blake  <ebb9@byu.net>
29364
29365         maint: support 'make announcement' from a VPATH build
29366         * top/maint.mk (announcement): Look for correct NEWS file.
29367
29368 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29369
29370         utimens (fdutimens): ignore a negative FD, per contract
29371         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29372         when we have a valid file descriptor.  Otherwise, using a brand
29373         new glibc (with just-patched futimens that now fails with EBADF)
29374         would cause this function to fail with ENOSYS.
29375         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29376         See also http://bugzilla.redhat.com/552320.
29377
29378 2010-01-05  Eric Blake  <ebb9@byu.net>
29379
29380         strcase: document what it provides
29381         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29382         gnulib module.
29383         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29384         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29385
29386 2010-01-05  Jim Meyering  <meyering@redhat.com>
29387
29388         maint: remove useless inclusions of "xalloc.h"
29389         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29390         * lib/readtokens.c: Likewise.
29391         * lib/same.c: Likewise.
29392         * modules/getloadavg (Depends-on): Remove xalloc.
29393         * modules/readtokens: Likewise.
29394         * modules/same: Likewise.
29395
29396         maint.mk: include 4 more function names in alloca.h-checking regexp
29397         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
29398         regexp.  Before, we would give a false-positive (saying alloca.h
29399         is included unnecessarily) when the only uses involved omitted symbols.
29400
29401         xalloc.h: use consistent formatting
29402         * lib/xalloc.h: Move declarations to start in the first column.
29403
29404 2010-01-05  Eric Blake  <ebb9@byu.net>
29405
29406         mkdir: avoid xalloc
29407         * lib/mkdir.c (includes): Drop unused header.
29408         Reported by John W. Eaton.
29409
29410 2010-01-04  Jim Meyering  <meyering@redhat.com>
29411
29412         nl_langinfo: avoid configure-time syntax error
29413         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
29414         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
29415         the empty string.  Don't let that provoke a shell syntax error.
29416
29417         regcomp, regexec, fnmatch: avoid array bounds read error
29418         * lib/regcomp.c (build_equiv_class): From glibc:
29419         Use only the low 24 bits of a findidx return value as an index
29420         into the weights array.  Patch by Ulrich Drepper:
29421         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
29422         * lib/regexec.c (check_node_accept_bytes): Likewise.
29423         * lib/fnmatch_loop.c (FCT): Likewise.
29424
29425         regcomp: skip collseq lookup when there are no rules
29426         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
29427         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
29428
29429         regcomp: recognize ill-formed { } expressions
29430         * lib/regcomp.c (parse_dup_op): From glibc:
29431         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
29432
29433         regcomp: fix typo in comment
29434         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
29435         s/satisfy/satisfies/.
29436
29437         regcomp: sync from glibc: remove dead store
29438         * lib/regcomp.c (duplicate_node_closure): Remove useless
29439         search_duplicated_node call and dead store.
29440
29441         regcomp: sync from glibc; always use nl_langinfo
29442         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
29443         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
29444         * modules/regex (Depends-on): Add nl_langinfo.
29445
29446 2010-01-04  Eric Blake  <ebb9@byu.net>
29447
29448         fdopendir: fix configure test
29449         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
29450
29451 2010-01-01  Bruno Haible  <bruno@clisp.org>
29452
29453         wchar: Remove unused configure check.
29454         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
29455
29456 2010-01-01  Eric Blake  <ebb9@byu.net>
29457
29458         headers: make check of system header explicit
29459         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
29460         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
29461         ourselves.
29462         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29463         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29464         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29465         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
29466         internals.
29467         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
29468         missing.
29469         Suggested by Bruno Haible.
29470
29471 2010-01-01  Jim Meyering  <meyering@redhat.com>
29472
29473         ChangeLog: tweak to eliminate unnecessary copyright line
29474         * ChangeLog: Remove a copyright line that was mistakenly updated
29475         by today's update-copyright run.  Reported by Eric Blake.
29476
29477         test-update-copyright: don't let envvar setting cause test failure
29478         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29479
29480 2010-01-01  Bruno Haible  <bruno@clisp.org>
29481
29482         localename: Avoid gcc warning.
29483         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29484         function if it is not used.
29485
29486 2010-01-01  Jim Meyering  <meyering@redhat.com>
29487
29488         update nearly all FSF copyright year lists to include 2010
29489         Use the same procedure as for 2009, outlined in
29490         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29491
29492         version-etc: set COPYRIGHT_YEAR to 2010
29493         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29494
29495 2009-12-31  Eric Blake  <ebb9@byu.net>
29496
29497         doc: correct availability of cygwin 1.5.x getopt
29498         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29499         variables.
29500         * doc/posix-functions/opterr.texi (opterr): Likewise.
29501         * doc/posix-functions/optind.texi (optind): Likewise.
29502         * doc/posix-functions/optopt.texi (optopt): Likewise.
29503         * doc/posix-functions/tzname.texi (tzname): Likewise.
29504
29505         openat: update maintainer
29506         * modules/openat (Maintainer): Add myself.
29507
29508         utimens: avoid shadowing warning
29509         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29510         buffers into one, to avoid shadowing, as well as avoiding a
29511         redundant stat.
29512         Reported by Jim Meyering.
29513
29514         test-dup2: avoid compiler warning
29515         * tests/test-dup2.c (is_inheritable): Only define if used.
29516
29517 2010-01-01  Bruno Haible  <bruno@clisp.org>
29518
29519         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29520         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29521         defined, use wctomb instead of wcrtomb.
29522
29523 2010-01-01  Bruno Haible  <bruno@clisp.org>
29524
29525         iconv: Reject native Solaris iconv.
29526         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29527         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29528
29529 2009-12-31  Bruno Haible  <bruno@clisp.org>
29530
29531         * tests/test-signal.c (main): Remove test of 'SIG'.
29532
29533 2009-12-31  Bruno Haible  <bruno@clisp.org>
29534
29535         spawn: Fix incomplete fix.
29536         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29537         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29538         warnings for GNULIB_POSIXCHECK again.
29539         Reported by Eric Blake.
29540
29541 2009-12-31  Bruno Haible  <bruno@clisp.org>
29542
29543         Avoid namespace pollution on glibc systems.
29544         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29545         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29546         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29547         glibc systems.
29548
29549 2009-12-31  Bruno Haible  <bruno@clisp.org>
29550
29551         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29552         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29553         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29554         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29555         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29556         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29557         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29558
29559 2009-12-31  Bruno Haible  <bruno@clisp.org>
29560
29561         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29562         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29563         afterwards.
29564
29565 2009-12-31  Bruno Haible  <bruno@clisp.org>
29566
29567         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29568         SYS_UTSNAME_H.
29569
29570 2009-12-31  Bruno Haible  <bruno@clisp.org>
29571
29572         spawn: Fix misapplied patch.
29573         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29574         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29575         warnings for GNULIB_POSIXCHECK.
29576
29577 2009-12-31  Bruno Haible  <bruno@clisp.org>
29578
29579         times: Update after sys_times changed.
29580         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29581         * modules/times (Files): Add it.
29582         (configure.ac): Invoke gl_FUNC_TIMES.
29583
29584 2009-12-31  Bruno Haible  <bruno@clisp.org>
29585
29586         Use AC_C_INLINE where necessary.
29587         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29588         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29589         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29590         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29591         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29592         * m4/mbiter.m4 (gl_MBITER): Likewise.
29593         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29594         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29595         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29596         * modules/u64 (configure.ac): Likewise.
29597
29598 2009-12-31  Bruno Haible  <bruno@clisp.org>
29599
29600         Use AC_C_INLINE instead of module 'inline' where possible.
29601         * modules/inline (Description): Clarify purpose.
29602         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29603         * modules/count-one-bits (Depends-on): Remove inline.
29604         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29605         * modules/openat (Depends-on): Remove inline.
29606         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29607         instead of depending on module 'inline'.
29608         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29609         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29610         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29611         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29612         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29613         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29614         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29615         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29616         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29617         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29618         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29619         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29620         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29621         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29622         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29623         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29624         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29625         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29626         Likewise.
29627         * modules/unictype/property-ascii-hex-digit (Depends-on,
29628         configure.ac): Likewise.
29629         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29630         configure.ac): Likewise.
29631         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29632         configure.ac): Likewise.
29633         * modules/unictype/property-bidi-block-separator (Depends-on,
29634         configure.ac): Likewise.
29635         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29636         configure.ac): Likewise.
29637         * modules/unictype/property-bidi-common-separator (Depends-on,
29638         configure.ac): Likewise.
29639         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29640         Likewise.
29641         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29642         configure.ac): Likewise.
29643         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29644         configure.ac): Likewise.
29645         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29646         configure.ac): Likewise.
29647         * modules/unictype/property-bidi-european-digit (Depends-on,
29648         configure.ac): Likewise.
29649         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29650         configure.ac): Likewise.
29651         * modules/unictype/property-bidi-left-to-right (Depends-on,
29652         configure.ac): Likewise.
29653         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29654         configure.ac): Likewise.
29655         * modules/unictype/property-bidi-other-neutral (Depends-on,
29656         configure.ac): Likewise.
29657         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29658         Likewise.
29659         * modules/unictype/property-bidi-segment-separator (Depends-on,
29660         configure.ac): Likewise.
29661         * modules/unictype/property-bidi-whitespace (Depends-on,
29662         configure.ac): Likewise.
29663         * modules/unictype/property-combining (Depends-on, configure.ac):
29664         Likewise.
29665         * modules/unictype/property-composite (Depends-on, configure.ac):
29666         Likewise.
29667         * modules/unictype/property-currency-symbol (Depends-on,
29668         configure.ac): Likewise.
29669         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29670         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29671         Likewise.
29672         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29673         configure.ac): Likewise.
29674         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29675         Likewise.
29676         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29677         Likewise.
29678         * modules/unictype/property-extender (Depends-on, configure.ac):
29679         Likewise.
29680         * modules/unictype/property-format-control (Depends-on, configure.ac):
29681         Likewise.
29682         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29683         Likewise.
29684         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29685         Likewise.
29686         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29687         Likewise.
29688         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29689         Likewise.
29690         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29691         Likewise.
29692         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29693         Likewise.
29694         * modules/unictype/property-id-start (Depends-on, configure.ac):
29695         Likewise.
29696         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29697         Likewise.
29698         * modules/unictype/property-ids-binary-operator (Depends-on,
29699         configure.ac): Likewise.
29700         * modules/unictype/property-ids-trinary-operator (Depends-on,
29701         configure.ac): Likewise.
29702         * modules/unictype/property-ignorable-control (Depends-on,
29703         configure.ac): Likewise.
29704         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29705         Likewise.
29706         * modules/unictype/property-join-control (Depends-on, configure.ac):
29707         Likewise.
29708         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29709         Likewise.
29710         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29711         Likewise.
29712         * modules/unictype/property-logical-order-exception (Depends-on,
29713         configure.ac): Likewise.
29714         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29715         Likewise.
29716         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29717         * modules/unictype/property-non-break (Depends-on, configure.ac):
29718         Likewise.
29719         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29720         Likewise.
29721         * modules/unictype/property-numeric (Depends-on, configure.ac):
29722         Likewise.
29723         * modules/unictype/property-other-alphabetic (Depends-on,
29724         configure.ac): Likewise.
29725         * modules/unictype/property-other-default-ignorable-code-point
29726         (Depends-on, configure.ac): Likewise.
29727         * modules/unictype/property-other-grapheme-extend (Depends-on,
29728         configure.ac): Likewise.
29729         * modules/unictype/property-other-id-continue (Depends-on,
29730         configure.ac): Likewise.
29731         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29732         Likewise.
29733         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29734         Likewise.
29735         * modules/unictype/property-other-math (Depends-on, configure.ac):
29736         Likewise.
29737         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29738         Likewise.
29739         * modules/unictype/property-paired-punctuation (Depends-on,
29740         configure.ac): Likewise.
29741         * modules/unictype/property-paragraph-separator (Depends-on,
29742         configure.ac): Likewise.
29743         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29744         Likewise.
29745         * modules/unictype/property-pattern-white-space (Depends-on,
29746         configure.ac): Likewise.
29747         * modules/unictype/property-private-use (Depends-on, configure.ac):
29748         Likewise.
29749         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29750         Likewise.
29751         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29752         Likewise.
29753         * modules/unictype/property-radical (Depends-on, configure.ac):
29754         Likewise.
29755         * modules/unictype/property-sentence-terminal (Depends-on,
29756         configure.ac): Likewise.
29757         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29758         Likewise.
29759         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29760         * modules/unictype/property-terminal-punctuation (Depends-on,
29761         configure.ac): Likewise.
29762         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29763         Likewise.
29764         * modules/unictype/property-unassigned-code-value (Depends-on,
29765         configure.ac): Likewise.
29766         * modules/unictype/property-unified-ideograph (Depends-on,
29767         configure.ac): Likewise.
29768         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29769         Likewise.
29770         * modules/unictype/property-variation-selector (Depends-on,
29771         configure.ac): Likewise.
29772         * modules/unictype/property-white-space (Depends-on, configure.ac):
29773         Likewise.
29774         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29775         Likewise.
29776         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29777         Likewise.
29778         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29779         Likewise.
29780         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29781         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29782         Likewise.
29783
29784 2009-12-31  Bruno Haible  <bruno@clisp.org>
29785
29786         Remove unnecessary AC_C_INLINE invocation.
29787         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29788         since 2009-08-21.
29789
29790 2009-12-31  Jim Meyering  <meyering@redhat.com>
29791
29792         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29793         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29794         With this change, we can all remove the gpg_key_ID = ... definition
29795         from our respective cfg.mk files.
29796
29797         maint.mk: create announcement template in ~/, not in /tmp
29798         * top/maint.mk (emit_upload_commands): Adjust.
29799         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29800         Remove temporary file, .ci-msg.
29801
29802 2009-12-31  Eric Blake  <ebb9@byu.net>
29803
29804         link-warning: always build headers with link warnings
29805         * modules/arpa_inet (Makefile.am): Always build replacement
29806         header.
29807         * modules/ctype (Makefile.am): Likewise.
29808         * modules/dirent (Makefile.am): Likewise.
29809         * modules/inttypes (Makefile.am): Likewise.
29810         * modules/langinfo (Makefile.am): Likewise.
29811         * modules/locale (Makefile.am): Likewise.
29812         * modules/spawn (Makefile.am): Likewise.
29813         * modules/sys_file (Makefile.am): Likewise.
29814         * modules/sys_ioctl (Makefile.am): Likewise.
29815         * modules/sys_select (Makefile.am): Likewise.
29816         * modules/sys_socket (Makefile.am): Likewise.
29817         * modules/sys_times (Makefile.am): Likewise.
29818         * modules/sys_utsname (Makefile.am): Likewise.
29819         * modules/sys_wait (Makefile.am): Likewise.
29820         * modules/wchar (Makefile.am): Likewise.
29821         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29822         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29823         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29824         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29825         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29826         Likewise.
29827         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29828         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29829         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29830         Likewise.
29831         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29832         Likewise.
29833         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29834         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29835         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29836         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29837         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29838         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29839         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29840         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29841         (gl_WCHAR_H_DEFAULTS): Likewise.
29842
29843 2009-12-31  Eric Blake  <ebb9@byu.net>
29844
29845         signal, spawn: use link warnings
29846         * lib/signal.in.h (sigset_t): Make unconditional.
29847         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29848         (sigpending, sigprocmask, sigaction): Add link warnings.
29849         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29850         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29851         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29852         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29853         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29854         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29855         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29856         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29857         (posix_spawn_file_actions_destroy)
29858         (posix_spawn_file_actions_addopen)
29859         (posix_spawn_file_actions_addclose)
29860         (posix_spawn_file_actions_adddup2): Likewise.
29861         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29862         * tests/test-signal.c (main): Enhance test.
29863
29864         spawn: improve wrapper support
29865         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29866         (gl_SPAWN_H_DEFAULTS): New defaults.
29867         * modules/spawn (Makefile.am): Substitute them.
29868         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29869         Only declare if missing or broken.
29870
29871         sys_times, sys_utsname: use include_next
29872         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29873         header.
29874         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29875         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29876         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29877         * modules/sys_times (Depends-on): Add include_next.
29878         (Makefile.am): Substitute additional values.
29879         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29880         * lib/sys_times.in.h (includes): Include native header, if
29881         available.
29882         * lib/sys_utsname.in.h (includes): Likewise.
29883         * tests/test-sys_times.c (main): Enhance test.
29884
29885         fdutimensat: revert prior patch
29886         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29887         utimens.h.
29888         Reported by Bruno Haible.
29889
29890 2009-12-30  Eric Blake  <ebb9@byu.net>
29891
29892         sys_wait: drop link-warning dependency
29893         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29894         link-warning efforts.
29895         * lib/sys_wait.in.h: Likewise.
29896
29897         fdutimensat: remove bogus dependency
29898         * modules/fdutimensat (Depends-on): Drop inline.
29899
29900         unistd: fix typo
29901         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29902
29903 2009-12-30  Bruno Haible  <bruno@clisp.org>
29904
29905         Fix compilation error with Solaris cc.
29906         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29907         * lib/unicase/u16-is-invariant.c: Likewise.
29908         * lib/unicase/u32-is-invariant.c: Likewise.
29909         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29910
29911 2009-12-30  Bruno Haible  <bruno@clisp.org>
29912
29913         Fix test crash.
29914         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29915         locales.
29916         Reported by Simon Josefsson <simon@josefsson.org>.
29917
29918 2009-12-30  Bruno Haible  <bruno@clisp.org>
29919
29920         Fix compilation error on most platforms.
29921         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29922         Reported by Simon Josefsson <simon@josefsson.org>
29923         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29924
29925 2009-12-30  Eric Blake  <ebb9@byu.net>
29926
29927         futimens, utimensat: work around ntfs-3g bug
29928         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29929         a ctime bug is present, and expand workaround to cover ntfs-3g.
29930         * lib/utimens.c (fdutimens, lutimens): Likewise.
29931         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29932         (validate_timespec): Adjust return value.
29933         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29934         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29935         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29936
29937 2009-12-29  Eric Blake  <ebb9@byu.net>
29938
29939         link-warning: make usage consistent
29940         * modules/ctype (Depends-on): Add link-warning.
29941         (Makefile.am): Update rules accordingly.
29942         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29943         * modules/locale (Depends-on, Makefile.am): Likewise.
29944         * modules/sys_file (Makefile.am): Likewise.
29945         * modules/getopt-posix (Makefile.am): Delete unused link warning
29946         efforts.
29947         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29948         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29949         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29950         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29951
29952         stdio: remove unused variables
29953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29954         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29955         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29956
29957         tests: test more substitute headers
29958         * modules/ctype-tests: New file.
29959         * modules/dirent-tests: Likewise.
29960         * modules/spawn-tests: Likewise.
29961         * modules/sys_file-tests: Likewise.
29962         * modules/sys_ioctl-tests: Likewise.
29963         * modules/sys_wait-tests: Likewise.
29964         * tests/test-ctype.c: Likewise.
29965         * tests/test-dirent.c: Likewise.
29966         * tests/test-spawn.c: Likewise.
29967         * tests/test-sys_file.c: Likewise.
29968         * tests/test-sys_ioctl.c: Likewise.
29969         * tests/test-sys_wait.c: Likewise.
29970         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29971         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29972         whether or not flock is in use.
29973
29974         tests: remove License section from module
29975         * modules/arpa_inet-tests: Remove unneeded section.
29976         * modules/byteswap-tests: Likewise.
29977         * modules/ceilf-tests: Likewise.
29978         * modules/ceill-tests: Likewise.
29979         * modules/crypto/des-tests: Likewise.
29980         * modules/crypto/gc-arcfour-tests: Likewise.
29981         * modules/crypto/gc-arctwo-tests: Likewise.
29982         * modules/crypto/gc-des-tests: Likewise.
29983         * modules/crypto/gc-hmac-md5-tests: Likewise.
29984         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29985         * modules/crypto/gc-md2-tests: Likewise.
29986         * modules/crypto/gc-md4-tests: Likewise.
29987         * modules/crypto/gc-md5-tests: Likewise.
29988         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29989         * modules/crypto/gc-rijndael-tests: Likewise.
29990         * modules/crypto/gc-sha1-tests: Likewise.
29991         * modules/crypto/gc-tests: Likewise.
29992         * modules/crypto/md2-tests: Likewise.
29993         * modules/crypto/md4-tests: Likewise.
29994         * modules/fcntl-h-tests: Likewise.
29995         * modules/floorf-tests: Likewise.
29996         * modules/floorl-tests: Likewise.
29997         * modules/frexp-nolibm-tests: Likewise.
29998         * modules/frexp-tests: Likewise.
29999         * modules/frexpl-nolibm-tests: Likewise.
30000         * modules/frexpl-tests: Likewise.
30001         * modules/getaddrinfo-tests: Likewise.
30002         * modules/inttypes-tests: Likewise.
30003         * modules/isfinite-tests: Likewise.
30004         * modules/isinf-tests: Likewise.
30005         * modules/ldexpl-tests: Likewise.
30006         * modules/locale-tests: Likewise.
30007         * modules/math-tests: Likewise.
30008         * modules/netdb-tests: Likewise.
30009         * modules/netinet_in-tests: Likewise.
30010         * modules/printf-frexp-tests: Likewise.
30011         * modules/printf-frexpl-tests: Likewise.
30012         * modules/priv-set-tests: Likewise.
30013         * modules/random_r-tests: Likewise.
30014         * modules/round-tests: Likewise.
30015         * modules/roundf-tests: Likewise.
30016         * modules/roundl-tests: Likewise.
30017         * modules/search-tests: Likewise.
30018         * modules/select-tests: Likewise.
30019         * modules/signal-tests: Likewise.
30020         * modules/stdbool-tests: Likewise.
30021         * modules/stddef-tests: Likewise.
30022         * modules/stdint-tests: Likewise.
30023         * modules/stdio-tests: Likewise.
30024         * modules/stdlib-tests: Likewise.
30025         * modules/string-tests: Likewise.
30026         * modules/strings-tests: Likewise.
30027         * modules/sys_select-tests: Likewise.
30028         * modules/sys_socket-tests: Likewise.
30029         * modules/sys_stat-tests: Likewise.
30030         * modules/sys_time-tests: Likewise.
30031         * modules/sys_utsname-tests: Likewise.
30032         * modules/sysexits-tests: Likewise.
30033         * modules/time-tests: Likewise.
30034         * modules/trunc-tests: Likewise.
30035         * modules/truncf-tests: Likewise.
30036         * modules/truncl-tests: Likewise.
30037         * modules/tsearch-tests: Likewise.
30038         * modules/unistd-tests: Likewise.
30039         * modules/wchar-tests: Likewise.
30040         * modules/wctype-tests: Likewise.
30041
30042         tests: fix license on several tests
30043         * tests/test-des.c: Update to GPLv3+.
30044         * tests/test-flock.c: Likewise.
30045         * tests/test-fsync.c: Likewise.
30046         * tests/test-futimens.h: Likewise.
30047         * tests/test-gc-arcfour.c: Likewise.
30048         * tests/test-gc-arctwo.c: Likewise.
30049         * tests/test-gc-des.c: Likewise.
30050         * tests/test-gc-hmac-md5.c: Likewise.
30051         * tests/test-gc-hmac-sha1.c: Likewise.
30052         * tests/test-gc-md2.c: Likewise.
30053         * tests/test-gc-md4.c: Likewise.
30054         * tests/test-gc-md5.c: Likewise.
30055         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30056         * tests/test-gc-rijndael.c: Likewise.
30057         * tests/test-gc-sha1.c: Likewise.
30058         * tests/test-gc.c: Likewise.
30059         * tests/test-getcwd.c: Likewise.
30060         * tests/test-link.c: Likewise.
30061         * tests/test-link.h: Likewise.
30062         * tests/test-lutimens.h: Likewise.
30063         * tests/test-md2.c: Likewise.
30064         * tests/test-md4.c: Likewise.
30065         * tests/test-mkdir.h: Likewise.
30066         * tests/test-rename.c: Likewise.
30067         * tests/test-rename.h: Likewise.
30068         * tests/test-safe-alloc.c: Likewise.
30069         * tests/test-utimens-common.h: Likewise.
30070         * tests/test-utimens.h: Likewise.
30071
30072         maint: sync license texts
30073         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
30074         * doc/gpl-3.0.texi: Revert copyright year update.
30075         * doc/lgpl-3.0.texi: Likewise.
30076
30077 2009-12-29  Jim Meyering  <meyering@redhat.com>
30078
30079         update nearly all FSF copyright year lists to include 2009
30080         The files named by the following are exempted:
30081             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
30082               test -f "$dst" && { echo "$dst"; continue; }
30083               test -d "$dst" || continue
30084               echo "$dst"/$(basename "$src")
30085             done > exempt
30086             git ls-files tests/unictype >> exempt
30087         In the remaining files, convert to all-interval notation if
30088         - there is already at least one year interval like 2000-2003
30089         - the file is maintained by me
30090         - the file is in lib/uni*/, where that style already prevails
30091         Otherwise, use update-copyright's default.
30092
30093 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30094         and Eric Blake  <ebb9@byu.net>
30095
30096         tests: don't require debug system() to pass
30097         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
30098         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30099         * tests/test-unlink.h (test_unlink_func): Likewise.
30100         * tests/test-fstatat.c (main): ...into callers.
30101         * tests/test-lstat.c (main): Likewise.
30102         * tests/test-rmdir.c (main): Likewise.
30103         * tests/test-unlink.c (main): Likewise.
30104         * tests/test-unlinkat.c (main): Likewise.
30105         * tests/test-areadlink-with-size.c (main): Don't require a
30106         debug-only system call to pass, aiding cross-testing to mingw.
30107         * tests/test-areadlink.c (main): Likewise.
30108         * tests/test-areadlinkat-with-size.c (main): Likewise.
30109         * tests/test-areadlinkat.c (main): Likewise.
30110         * tests/test-canonicalize-lgpl.c (main): Likewise.
30111         * tests/test-canonicalize.c (main): Likewise.
30112         * tests/test-chown.c (main): Likewise.
30113         * tests/test-fchownat.c (main): Likewise.
30114         * tests/test-lchown.c (main): Likewise.
30115         * tests/test-fdutimensat.c (main): Likewise.
30116         * tests/test-futimens.c (main): Likewise.
30117         * tests/test-link.c (main): Likewise.
30118         * tests/test-linkat.c (main): Likewise.
30119         * tests/test-mkdir.c (main): Likewise.
30120         * tests/test-mkdirat.c (main): Likewise.
30121         * tests/test-mkfifo.c (main): Likewise.
30122         * tests/test-mkfifoat.c (main): Likewise.
30123         * tests/test-mknod.c (main): Likewise.
30124         * tests/test-readlink.c (main): Likewise.
30125         * tests/test-remove.c (main): Likewise.
30126         * tests/test-rename.c (main): Likewise.
30127         * tests/test-renameat.c (main): Likewise.
30128         * tests/test-symlink.c (main): Likewise.
30129         * tests/test-symlinkat.c (main): Likewise.
30130         * tests/test-utimens.c (main): Likewise.
30131         * tests/test-utimensat.c (main): Likewise.
30132
30133 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30134
30135         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
30136         on $(UNUSED_PARAMETER_H) to avoid build failure.
30137
30138 2009-12-28  Jim Meyering  <meyering@redhat.com>
30139
30140         update-copyright: you may specify a max. line length other than 72
30141         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30142
30143         maint: use consistent FSF copyright line syntax
30144         * lib/posixtm.c: Add missing comma in FSF copyright line.
30145         * lib/posixtm.h: Likewise.
30146         * lib/getugroups.c: Add missing ", Inc.".
30147
30148         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
30149         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
30150         FSF copyright line.  Remove trailing blanks.
30151
30152 2009-12-28  Eric Blake  <ebb9@byu.net>
30153
30154         test-dup2: reduce dependencies
30155         * modules/cloexec (Configure.ac): Set witness.
30156         * modules/dup2-tests (Depends-on): Drop cloexec.
30157         * tests/test-dup2.c (main): Skip portion of test if cloexec module
30158         not present.
30159         Suggested by Bruno Haible.
30160
30161 2009-12-26  Bruno Haible  <bruno@clisp.org>
30162
30163         Remove an unneeded dependency.
30164         * modules/fseterr (Depends-on): Remove dup2.
30165
30166 2009-12-26  Eric Blake  <ebb9@byu.net>
30167
30168         tests: use macros.h in more places
30169         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
30170         (ASSERT_STREAM): Provide default of stderr.
30171         * tests/test-dirent-safer.c: Include macros.h, using alternate
30172         stream for assertions.
30173         * tests/test-dup-safer.c: Likewise.
30174         * tests/test-freopen-safer.c: Likewise.
30175         * tests/test-getopt.c: Likewise.
30176         * tests/test-openat-safer.c: Likewise.
30177         * tests/test-pipe.c: Likewise.
30178         * tests/test-popen-safer.c: Likewise.
30179         * modules/dirent-safer-tests (Files): Include macros.h.
30180         * modules/unistd-safer-tests (Files): Likewise.
30181         * modules/freopen-safer-tests (Files): Likewise.
30182         * modules/getopt-posix-tests (Files): Likewise.
30183         * modules/openat-safer-tests (Files): Likewise.
30184         * modules/pipe-tests (Files): Likewise.
30185
30186 2009-12-26  Bruno Haible  <bruno@clisp.org>
30187
30188         javacomp: Portability fix.
30189         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
30190         that it also works on Solaris.
30191
30192 2009-12-26  Bruno Haible  <bruno@clisp.org>
30193
30194         localename: Fix storage allocation of gl_locale_name_thread's result.
30195         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
30196         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
30197         all platforms that have 'uselocale'.
30198         (gl_locale_name_thread_unsafe): New function, extracted from
30199         gl_locale_name_thread.
30200         (gl_locale_name_thread): Call struniq on all platforms that have
30201         'uselocale'.
30202         * tests/test-localename.c (test_locale_name_thread): Check that the
30203         resulting strings are permanently allocated.
30204         * modules/localename-tests (Depends-on): Add strdup.
30205
30206 2009-12-26  Bruno Haible  <bruno@clisp.org>
30207
30208         * tests/test-localename.c (categories): Fill in the strings.
30209
30210 2009-12-26  Jim Meyering  <meyering@redhat.com>
30211
30212         isdir: complete the removal of m4/isdir.m4
30213         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
30214
30215         isdir: clean up, since at least grep still uses it
30216         * lib/isdir.c: Include "isdir.h".
30217         (S_ISDIR): Remove now-unneeded definition.
30218         * modules/isdir (Files): Add lib/isdir.h.
30219         * lib/isdir.h: New file, with declaration.
30220         * m4/isdir.m4: Remove file -- unneeded.
30221
30222 2009-12-25  Bruno Haible  <bruno@clisp.org>
30223
30224         selinux-h: Make generated .h files standalone.
30225         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
30226         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
30227         * lib/se-selinux.in.h: Likewise.
30228         * modules/selinux-h (Depends-on): Add unused-parameter.
30229         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
30230         selinux/selinux.h and selinux/context.h.
30231         Suggested by Eric Blake.
30232
30233 2009-12-25  Bruno Haible  <bruno@clisp.org>
30234
30235         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
30236         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
30237         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
30238         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
30239         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
30240
30241 2009-12-24  Bruno Haible  <bruno@clisp.org>
30242
30243         openat: Fix warning.
30244         * lib/openat-proc.c: Include <unistd.h>.
30245
30246 2009-12-24  Bruno Haible  <bruno@clisp.org>
30247
30248         New module 'unused-parameter'.
30249         * build-aux/unused-parameter.h: New file, extracted from earlier
30250         gnulib-common.m4.
30251         * modules/unused-parameter: New file.
30252         * lib/unistr.h: Include unused-parameter.h.
30253         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
30254         _GL_UNUSED.
30255         * modules/unistr/base (Depends-on): Add unused-parameter.
30256
30257 2009-12-24  Bruno Haible  <bruno@clisp.org>
30258
30259         Add missing dependencies to 'extensions' module.
30260         * m4/extensions.m4: Add comment.
30261         * modules/accept4 (Depends-on): Add extensions.
30262         * modules/dup3 (Depends-on): Likewise.
30263         * modules/fcntl (Depends-on): Likewise.
30264         * modules/futimens (Depends-on): Likewise.
30265         * modules/mknod (Depends-on): Likewise.
30266         * modules/pipe2 (Depends-on): Likewise.
30267         * modules/stat-time (Depends-on): Likewise.
30268         * modules/strcasestr-simple (Depends-on): Likewise.
30269         * modules/strsignal (Depends-on): Likewise.
30270         * modules/utimensat (Depends-on): Likewise.
30271         * modules/localcharset (Depends-on): Likewise. Needed because of
30272         gl_FCNTL_O_FLAGS.
30273         * modules/wcrtomb (Depends-on): Likewise. Needed because of
30274         AC_TYPE_MBSTATE_T.
30275         * modules/wcsnrtombs (Depends-on): Likewise.
30276         * modules/wcsrtombs (Depends-on): Likewise.
30277
30278 2009-12-24  Bruno Haible  <bruno@clisp.org>
30279
30280         binary-io: Avoid gcc warning due to SET_BINARY.
30281         * lib/binary-io.h (SET_BINARY): Cast the result to void.
30282         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
30283
30284 2009-12-24  Bruno Haible  <bruno@clisp.org>
30285
30286         Avoid future namespace pollution on glibc systems.
30287         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
30288         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
30289         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
30290         glibc systems.
30291
30292 2009-12-24  Bruno Haible  <bruno@clisp.org>
30293
30294         Refactor common macros used in tests.
30295         * tests/macros.h: New file.
30296         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
30297         and/or <stdlib.h>, if appropriate.
30298         (ASSERT, SIZEOF): Remove macros.
30299         * tests/test-areadlink-with-size.c: Likewise.
30300         * tests/test-areadlinkat.c: Likewise.
30301         * tests/test-areadlinkat-with-size.c: Likewise.
30302         * tests/test-argmatch.c: Likewise.
30303         * tests/test-argv-iter.c: Likewise.
30304         * tests/test-array-mergesort.c: Likewise.
30305         * tests/test-array_list.c: Likewise.
30306         * tests/test-array_oset.c: Likewise.
30307         * tests/test-avltree_list.c: Likewise.
30308         * tests/test-avltree_oset.c: Likewise.
30309         * tests/test-avltreehash_list.c: Likewise.
30310         * tests/test-base64.c: Likewise.
30311         * tests/test-binary-io.c: Likewise.
30312         * tests/test-bitrotate.c: Likewise.
30313         * tests/test-btowc.c: Likewise.
30314         * tests/test-byteswap.c: Likewise.
30315         * tests/test-c-ctype.c: Likewise.
30316         * tests/test-c-stack.c: Likewise.
30317         * tests/test-c-strcasecmp.c: Likewise.
30318         * tests/test-c-strcasestr.c: Likewise.
30319         * tests/test-c-strncasecmp.c: Likewise.
30320         * tests/test-c-strstr.c: Likewise.
30321         * tests/test-canonicalize-lgpl.c: Likewise.
30322         * tests/test-canonicalize.c: Likewise.
30323         * tests/test-carray_list.c: Likewise.
30324         * tests/test-ceilf1.c: Likewise.
30325         * tests/test-ceilf2.c: Likewise.
30326         * tests/test-ceill.c: Likewise.
30327         * tests/test-chown.c: Likewise.
30328         * tests/test-cloexec.c: Likewise.
30329         * tests/test-copy-acl.c: Likewise.
30330         * tests/test-copy-file.c: Likewise.
30331         * tests/test-count-one-bits.c: Likewise.
30332         * tests/test-dprintf-posix.c: Likewise.
30333         * tests/test-dup2.c: Likewise.
30334         * tests/test-dup3.c: Likewise.
30335         * tests/test-duplocale.c: Likewise.
30336         * tests/test-fbufmode.c: Likewise.
30337         * tests/test-fchdir.c: Likewise.
30338         * tests/test-fchownat.c: Likewise.
30339         * tests/test-fcntl-safer.c: Likewise.
30340         * tests/test-fcntl.c: Likewise.
30341         * tests/test-fdopendir.c: Likewise.
30342         * tests/test-fdutimensat.c: Likewise.
30343         * tests/test-fflush2.c: Likewise.
30344         * tests/test-file-has-acl.c: Likewise.
30345         * tests/test-filevercmp.c: Likewise.
30346         * tests/test-flock.c: Likewise.
30347         * tests/test-floorf1.c: Likewise.
30348         * tests/test-floorf2.c: Likewise.
30349         * tests/test-floorl.c: Likewise.
30350         * tests/test-fnmatch.c: Likewise.
30351         * tests/test-fopen.h: Likewise.
30352         * tests/test-fpending.c: Likewise.
30353         * tests/test-fprintf-posix.c: Likewise.
30354         * tests/test-fpurge.c: Likewise.
30355         * tests/test-freadable.c: Likewise.
30356         * tests/test-freadahead.c: Likewise.
30357         * tests/test-freading.c: Likewise.
30358         * tests/test-freadptr.c: Likewise.
30359         * tests/test-freadptr2.c: Likewise.
30360         * tests/test-freadseek.c: Likewise.
30361         * tests/test-freopen.c: Likewise.
30362         * tests/test-frexp.c: Likewise.
30363         * tests/test-frexpl.c: Likewise.
30364         * tests/test-fseek.c: Likewise.
30365         * tests/test-fseeko.c: Likewise.
30366         * tests/test-fstatat.c: Likewise.
30367         * tests/test-fstrcmp.c: Likewise.
30368         * tests/test-fsync.c: Likewise.
30369         * tests/test-ftell.c: Likewise.
30370         * tests/test-ftello.c: Likewise.
30371         * tests/test-func.c: Likewise.
30372         * tests/test-futimens.c: Likewise.
30373         * tests/test-fwritable.c: Likewise.
30374         * tests/test-fwriting.c: Likewise.
30375         * tests/test-getcwd.c: Likewise.
30376         * tests/test-getdate.c: Likewise.
30377         * tests/test-getdelim.c: Likewise.
30378         * tests/test-getdtablesize.c: Likewise.
30379         * tests/test-getgroups.c: Likewise.
30380         * tests/test-getline.c: Likewise.
30381         * tests/test-getndelim2.c: Likewise.
30382         * tests/test-glob.c: Likewise.
30383         * tests/test-hash.c: Likewise.
30384         * tests/test-i-ring.c: Likewise.
30385         * tests/test-iconv-utf.c: Likewise.
30386         * tests/test-iconv.c: Likewise.
30387         * tests/test-idpriv-drop.c: Likewise.
30388         * tests/test-idpriv-droptemp.c: Likewise.
30389         * tests/test-inet_ntop.c: Likewise.
30390         * tests/test-inet_pton.c: Likewise.
30391         * tests/test-isblank.c: Likewise.
30392         * tests/test-isfinite.c: Likewise.
30393         * tests/test-isinf.c: Likewise.
30394         * tests/test-isnan.c: Likewise.
30395         * tests/test-isnand.h: Likewise.
30396         * tests/test-isnanf.h: Likewise.
30397         * tests/test-isnanl.h: Likewise.
30398         * tests/test-lchown.c: Likewise.
30399         * tests/test-ldexpl.c: Likewise.
30400         * tests/test-link.c: Likewise.
30401         * tests/test-linkat.c: Likewise.
30402         * tests/test-linked_list.c: Likewise.
30403         * tests/test-linkedhash_list.c: Likewise.
30404         * tests/test-localename.c: Likewise.
30405         * tests/test-lseek.c: Likewise.
30406         * tests/test-lstat.c: Likewise.
30407         * tests/test-mbmemcasecmp.c: Likewise.
30408         * tests/test-mbmemcasecoll.c: Likewise.
30409         * tests/test-mbrtowc.c: Likewise.
30410         * tests/test-mbscasecmp.c: Likewise.
30411         * tests/test-mbscasestr1.c: Likewise.
30412         * tests/test-mbscasestr2.c: Likewise.
30413         * tests/test-mbscasestr3.c: Likewise.
30414         * tests/test-mbscasestr4.c: Likewise.
30415         * tests/test-mbschr.c: Likewise.
30416         * tests/test-mbscspn.c: Likewise.
30417         * tests/test-mbsinit.c: Likewise.
30418         * tests/test-mbsncasecmp.c: Likewise.
30419         * tests/test-mbsnrtowcs.c: Likewise.
30420         * tests/test-mbspbrk.c: Likewise.
30421         * tests/test-mbspcasecmp.c: Likewise.
30422         * tests/test-mbsrchr.c: Likewise.
30423         * tests/test-mbsrtowcs.c: Likewise.
30424         * tests/test-mbsspn.c: Likewise.
30425         * tests/test-mbsstr1.c: Likewise.
30426         * tests/test-mbsstr2.c: Likewise.
30427         * tests/test-mbsstr3.c: Likewise.
30428         * tests/test-memchr.c: Likewise.
30429         * tests/test-memchr2.c: Likewise.
30430         * tests/test-memcmp.c: Likewise.
30431         * tests/test-memmem.c: Likewise.
30432         * tests/test-memrchr.c: Likewise.
30433         * tests/test-mkdir.c: Likewise.
30434         * tests/test-mkdirat.c: Likewise.
30435         * tests/test-mkfifo.c: Likewise.
30436         * tests/test-mkfifoat.c: Likewise.
30437         * tests/test-mknod.c: Likewise.
30438         * tests/test-nanosleep.c: Likewise.
30439         * tests/test-nl_langinfo.c: Likewise.
30440         * tests/test-obstack-printf.c: Likewise.
30441         * tests/test-open.c: Likewise.
30442         * tests/test-openat.c: Likewise.
30443         * tests/test-pipe-filter-gi1.c: Likewise.
30444         * tests/test-pipe-filter-gi2-main.c: Likewise.
30445         * tests/test-pipe-filter-ii1.c: Likewise.
30446         * tests/test-pipe-filter-ii2-main.c: Likewise.
30447         * tests/test-pipe2.c: Likewise.
30448         * tests/test-popen.h: Likewise.
30449         * tests/test-posixtm.c: Likewise.
30450         * tests/test-pread.c: Likewise.
30451         * tests/test-printf-frexp.c: Likewise.
30452         * tests/test-printf-frexpl.c: Likewise.
30453         * tests/test-printf-posix.c: Likewise.
30454         * tests/test-priv-set.c: Likewise.
30455         * tests/test-quotearg.c: Likewise.
30456         * tests/test-random_r.c: Likewise.
30457         * tests/test-rawmemchr.c: Likewise.
30458         * tests/test-rbtree_list.c: Likewise.
30459         * tests/test-rbtree_oset.c: Likewise.
30460         * tests/test-rbtreehash_list.c: Likewise.
30461         * tests/test-readlink.c: Likewise.
30462         * tests/test-remove.c: Likewise.
30463         * tests/test-rename.c: Likewise.
30464         * tests/test-renameat.c: Likewise.
30465         * tests/test-rmdir.c: Likewise.
30466         * tests/test-round1.c: Likewise.
30467         * tests/test-roundf1.c: Likewise.
30468         * tests/test-roundl.c: Likewise.
30469         * tests/test-safe-alloc.c: Likewise.
30470         * tests/test-sameacls.c: Likewise.
30471         * tests/test-set-mode-acl.c: Likewise.
30472         * tests/test-setenv.c: Likewise.
30473         * tests/test-sigaction.c: Likewise.
30474         * tests/test-signbit.c: Likewise.
30475         * tests/test-sleep.c: Likewise.
30476         * tests/test-snprintf-posix.c: Likewise.
30477         * tests/test-snprintf.c: Likewise.
30478         * tests/test-sprintf-posix.c: Likewise.
30479         * tests/test-stat-time.c: Likewise.
30480         * tests/test-stat.c: Likewise.
30481         * tests/test-strcasestr.c: Likewise.
30482         * tests/test-strchrnul.c: Likewise.
30483         * tests/test-strerror.c: Likewise.
30484         * tests/test-striconv.c: Likewise.
30485         * tests/test-striconveh.c: Likewise.
30486         * tests/test-striconveha.c: Likewise.
30487         * tests/test-strsignal.c: Likewise.
30488         * tests/test-strstr.c: Likewise.
30489         * tests/test-strtod.c: Likewise.
30490         * tests/test-strverscmp.c: Likewise.
30491         * tests/test-symlink.c: Likewise.
30492         * tests/test-symlinkat.c: Likewise.
30493         * tests/test-trunc1.c: Likewise.
30494         * tests/test-trunc2.c: Likewise.
30495         * tests/test-truncf1.c: Likewise.
30496         * tests/test-truncf2.c: Likewise.
30497         * tests/test-truncl.c: Likewise.
30498         * tests/test-uname.c: Likewise.
30499         * tests/test-unlink.c: Likewise.
30500         * tests/test-unlinkat.c: Likewise.
30501         * tests/test-unsetenv.c: Likewise.
30502         * tests/test-usleep.c: Likewise.
30503         * tests/test-utimens.c: Likewise.
30504         * tests/test-utimensat.c: Likewise.
30505         * tests/test-vasnprintf-posix.c: Likewise.
30506         * tests/test-vasnprintf-posix2.c: Likewise.
30507         * tests/test-vasnprintf.c: Likewise.
30508         * tests/test-vasprintf-posix.c: Likewise.
30509         * tests/test-vasprintf.c: Likewise.
30510         * tests/test-vdprintf-posix.c: Likewise.
30511         * tests/test-vfprintf-posix.c: Likewise.
30512         * tests/test-vprintf-posix.c: Likewise.
30513         * tests/test-vsnprintf-posix.c: Likewise.
30514         * tests/test-vsnprintf.c: Likewise.
30515         * tests/test-vsprintf-posix.c: Likewise.
30516         * tests/test-wcrtomb.c: Likewise.
30517         * tests/test-wcsnrtombs.c: Likewise.
30518         * tests/test-wcsrtombs.c: Likewise.
30519         * tests/test-wctype.c: Likewise.
30520         * tests/test-wcwidth.c: Likewise.
30521         * tests/test-xfprintf-posix.c: Likewise.
30522         * tests/test-xmemdup0.c: Likewise.
30523         * tests/test-xprintf-posix.c: Likewise.
30524         * tests/test-xvasprintf.c: Likewise.
30525         * tests/unicase/test-locale-language.c: Likewise.
30526         * tests/unicase/test-mapping-part1.h: Likewise.
30527         * tests/unicase/test-predicate-part1.h: Likewise.
30528         * tests/unicase/test-u8-casecmp.c: Likewise.
30529         * tests/unicase/test-u8-casecoll.c: Likewise.
30530         * tests/unicase/test-u8-casefold.c: Likewise.
30531         * tests/unicase/test-u8-is-cased.c: Likewise.
30532         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30533         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30534         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30535         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30536         * tests/unicase/test-u8-tolower.c: Likewise.
30537         * tests/unicase/test-u8-totitle.c: Likewise.
30538         * tests/unicase/test-u8-toupper.c: Likewise.
30539         * tests/unicase/test-u16-casecmp.c: Likewise.
30540         * tests/unicase/test-u16-casecoll.c: Likewise.
30541         * tests/unicase/test-u16-casefold.c: Likewise.
30542         * tests/unicase/test-u16-is-cased.c: Likewise.
30543         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30544         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30545         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30546         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30547         * tests/unicase/test-u16-tolower.c: Likewise.
30548         * tests/unicase/test-u16-totitle.c: Likewise.
30549         * tests/unicase/test-u16-toupper.c: Likewise.
30550         * tests/unicase/test-u32-casecmp.c: Likewise.
30551         * tests/unicase/test-u32-casecoll.c: Likewise.
30552         * tests/unicase/test-u32-casefold.c: Likewise.
30553         * tests/unicase/test-u32-is-cased.c: Likewise.
30554         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30555         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30556         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30557         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30558         * tests/unicase/test-u32-tolower.c: Likewise.
30559         * tests/unicase/test-u32-totitle.c: Likewise.
30560         * tests/unicase/test-u32-toupper.c: Likewise.
30561         * tests/unicase/test-ulc-casecmp.c: Likewise.
30562         * tests/unicase/test-ulc-casecoll.c: Likewise.
30563         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30564         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30565         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30566         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30567         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30568         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30569         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30570         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30571         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30572         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30573         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30574         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30575         * tests/unictype/test-bidi_byname.c: Likewise.
30576         * tests/unictype/test-bidi_name.c: Likewise.
30577         * tests/unictype/test-bidi_of.c: Likewise.
30578         * tests/unictype/test-bidi_test.c: Likewise.
30579         * tests/unictype/test-block_list.c: Likewise.
30580         * tests/unictype/test-block_of.c: Likewise.
30581         * tests/unictype/test-block_test.c: Likewise.
30582         * tests/unictype/test-categ_and.c: Likewise.
30583         * tests/unictype/test-categ_and_not.c: Likewise.
30584         * tests/unictype/test-categ_byname.c: Likewise.
30585         * tests/unictype/test-categ_name.c: Likewise.
30586         * tests/unictype/test-categ_none.c: Likewise.
30587         * tests/unictype/test-categ_of.c: Likewise.
30588         * tests/unictype/test-categ_or.c: Likewise.
30589         * tests/unictype/test-categ_test_withtable.c: Likewise.
30590         * tests/unictype/test-combining.c: Likewise.
30591         * tests/unictype/test-decdigit.c: Likewise.
30592         * tests/unictype/test-digit.c: Likewise.
30593         * tests/unictype/test-mirror.c: Likewise.
30594         * tests/unictype/test-numeric.c: Likewise.
30595         * tests/unictype/test-pr_byname.c: Likewise.
30596         * tests/unictype/test-pr_test.c: Likewise.
30597         * tests/unictype/test-predicate-part1.h: Likewise.
30598         * tests/unictype/test-scripts.c: Likewise.
30599         * tests/unictype/test-sy_c_ident.c: Likewise.
30600         * tests/unictype/test-sy_java_ident.c: Likewise.
30601         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30602         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30603         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30604         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30605         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30606         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30607         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30608         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30609         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30610         * tests/uninorm/test-compat-decomposition.c: Likewise.
30611         * tests/uninorm/test-composition.c: Likewise.
30612         * tests/uninorm/test-decomposing-form.c: Likewise.
30613         * tests/uninorm/test-decomposition.c: Likewise.
30614         * tests/uninorm/test-u8-nfc.c: Likewise.
30615         * tests/uninorm/test-u8-nfd.c: Likewise.
30616         * tests/uninorm/test-u8-nfkc.c: Likewise.
30617         * tests/uninorm/test-u8-nfkd.c: Likewise.
30618         * tests/uninorm/test-u8-normcmp.c: Likewise.
30619         * tests/uninorm/test-u8-normcoll.c: Likewise.
30620         * tests/uninorm/test-u16-nfc.c: Likewise.
30621         * tests/uninorm/test-u16-nfd.c: Likewise.
30622         * tests/uninorm/test-u16-nfkc.c: Likewise.
30623         * tests/uninorm/test-u16-nfkd.c: Likewise.
30624         * tests/uninorm/test-u16-normcmp.c: Likewise.
30625         * tests/uninorm/test-u16-normcoll.c: Likewise.
30626         * tests/uninorm/test-u32-nfc.c: Likewise.
30627         * tests/uninorm/test-u32-nfd.c: Likewise.
30628         * tests/uninorm/test-u32-nfkc.c: Likewise.
30629         * tests/uninorm/test-u32-nfkd.c: Likewise.
30630         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30631         * tests/uninorm/test-u32-normcmp.c: Likewise.
30632         * tests/uninorm/test-u32-normcoll.c: Likewise.
30633         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30634         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30635         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30636         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30637         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30638         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30639         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30640         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30641         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30642         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30643         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30644         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30645         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30646         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30647         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30648         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30649         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30650         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30651         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30652         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30653         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30654         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30655         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30656         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30657         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30658         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30659         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30660         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30661         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30662         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30663         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30664         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30665         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30666         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30667         * tests/uniwidth/test-u8-width.c: Likewise.
30668         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30669         * tests/uniwidth/test-u16-width.c: Likewise.
30670         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30671         * tests/uniwidth/test-u32-width.c: Likewise.
30672         * tests/uniwidth/test-uc_width.c: Likewise.
30673         * tests/uniwidth/test-uc_width2.c: Likewise.
30674         * modules/acl-tests (Files): Add tests/macros.h.
30675         * modules/areadlink-tests (Files): Likewise.
30676         * modules/areadlink-with-size-tests (Files): Likewise.
30677         * modules/areadlinkat-tests (Files): Likewise.
30678         * modules/areadlinkat-with-size-tests (Files): Likewise.
30679         * modules/argmatch-tests (Files): Likewise.
30680         * modules/argv-iter-tests (Files): Likewise.
30681         * modules/array-list-tests (Files): Likewise.
30682         * modules/array-mergesort-tests (Files): Likewise.
30683         * modules/array-oset-tests (Files): Likewise.
30684         * modules/avltree-list-tests (Files): Likewise.
30685         * modules/avltree-oset-tests (Files): Likewise.
30686         * modules/avltreehash-list-tests (Files): Likewise.
30687         * modules/base64-tests (Files): Likewise.
30688         * modules/binary-io-tests (Files): Likewise.
30689         * modules/bitrotate-tests (Files): Likewise.
30690         * modules/btowc-tests (Files): Likewise.
30691         * modules/byteswap-tests (Files): Likewise.
30692         * modules/c-ctype-tests (Files): Likewise.
30693         * modules/c-stack-tests (Files): Likewise.
30694         * modules/c-strcase-tests (Files): Likewise.
30695         * modules/c-strcasestr-tests (Files): Likewise.
30696         * modules/c-strstr-tests (Files): Likewise.
30697         * modules/canonicalize-lgpl-tests (Files): Likewise.
30698         * modules/canonicalize-tests (Files): Likewise.
30699         * modules/carray-list-tests (Files): Likewise.
30700         * modules/ceilf-tests (Files): Likewise.
30701         * modules/ceill-tests (Files): Likewise.
30702         * modules/chown-tests (Files): Likewise.
30703         * modules/cloexec-tests (Files): Likewise.
30704         * modules/copy-file-tests (Files): Likewise.
30705         * modules/count-one-bits-tests (Files): Likewise.
30706         * modules/dprintf-posix-tests (Files): Likewise.
30707         * modules/dup2-tests (Files): Likewise.
30708         * modules/dup3-tests (Files): Likewise.
30709         * modules/duplocale-tests (Files): Likewise.
30710         * modules/fbufmode-tests (Files): Likewise.
30711         * modules/fchdir-tests (Files): Likewise.
30712         * modules/fcntl-safer-tests (Files): Likewise.
30713         * modules/fcntl-tests (Files): Likewise.
30714         * modules/fdopendir-tests (Files): Likewise.
30715         * modules/fdutimensat-tests (Files): Likewise.
30716         * modules/fflush-tests (Files): Likewise.
30717         * modules/filevercmp-tests (Files): Likewise.
30718         * modules/flock-tests (Files): Likewise.
30719         * modules/floorf-tests (Files): Likewise.
30720         * modules/floorl-tests (Files): Likewise.
30721         * modules/fnmatch-tests (Files): Likewise.
30722         * modules/fopen-safer-tests (Files): Likewise.
30723         * modules/fopen-tests (Files): Likewise.
30724         * modules/fpending-tests (Files): Likewise.
30725         * modules/fprintf-posix-tests (Files): Likewise.
30726         * modules/fpurge-tests (Files): Likewise.
30727         * modules/freadable-tests (Files): Likewise.
30728         * modules/freadahead-tests (Files): Likewise.
30729         * modules/freading-tests (Files): Likewise.
30730         * modules/freadptr-tests (Files): Likewise.
30731         * modules/freadseek-tests (Files): Likewise.
30732         * modules/freopen-tests (Files): Likewise.
30733         * modules/frexp-nolibm-tests (Files): Likewise.
30734         * modules/frexp-tests (Files): Likewise.
30735         * modules/frexpl-nolibm-tests (Files): Likewise.
30736         * modules/frexpl-tests (Files): Likewise.
30737         * modules/fseek-tests (Files): Likewise.
30738         * modules/fseeko-tests (Files): Likewise.
30739         * modules/fstrcmp-tests (Files): Likewise.
30740         * modules/fsync-tests (Files): Likewise.
30741         * modules/ftell-tests (Files): Likewise.
30742         * modules/ftello-tests (Files): Likewise.
30743         * modules/func-tests (Files): Likewise.
30744         * modules/futimens-tests (Files): Likewise.
30745         * modules/fwritable-tests (Files): Likewise.
30746         * modules/fwriting-tests (Files): Likewise.
30747         * modules/getcwd-tests (Files): Likewise.
30748         * modules/getdate-tests (Files): Likewise.
30749         * modules/getdelim-tests (Files): Likewise.
30750         * modules/getdtablesize-tests (Files): Likewise.
30751         * modules/getgroups-tests (Files): Likewise.
30752         * modules/getline-tests (Files): Likewise.
30753         * modules/getndelim2-tests (Files): Likewise.
30754         * modules/glob-tests (Files): Likewise.
30755         * modules/hash-tests (Files): Likewise.
30756         * modules/i-ring-tests (Files): Likewise.
30757         * modules/iconv-tests (Files): Likewise.
30758         * modules/iconv_open-utf-tests (Files): Likewise.
30759         * modules/idpriv-drop-tests (Files): Likewise.
30760         * modules/idpriv-droptemp-tests (Files): Likewise.
30761         * modules/inet_ntop-tests (Files): Likewise.
30762         * modules/inet_pton-tests (Files): Likewise.
30763         * modules/isblank-tests (Files): Likewise.
30764         * modules/isfinite-tests (Files): Likewise.
30765         * modules/isinf-tests (Files): Likewise.
30766         * modules/isnan-tests (Files): Likewise.
30767         * modules/isnand-nolibm-tests (Files): Likewise.
30768         * modules/isnand-tests (Files): Likewise.
30769         * modules/isnanf-nolibm-tests (Files): Likewise.
30770         * modules/isnanf-tests (Files): Likewise.
30771         * modules/isnanl-nolibm-tests (Files): Likewise.
30772         * modules/isnanl-tests (Files): Likewise.
30773         * modules/lchown-tests (Files): Likewise.
30774         * modules/ldexpl-tests (Files): Likewise.
30775         * modules/link-tests (Files): Likewise.
30776         * modules/linkat-tests (Files): Likewise.
30777         * modules/linked-list-tests (Files): Likewise.
30778         * modules/linkedhash-list-tests (Files): Likewise.
30779         * modules/localename-tests (Files): Likewise.
30780         * modules/lseek-tests (Files): Likewise.
30781         * modules/lstat-tests (Files): Likewise.
30782         * modules/mbmemcasecmp-tests (Files): Likewise.
30783         * modules/mbmemcasecoll-tests (Files): Likewise.
30784         * modules/mbrtowc-tests (Files): Likewise.
30785         * modules/mbscasecmp-tests (Files): Likewise.
30786         * modules/mbscasestr-tests (Files): Likewise.
30787         * modules/mbschr-tests (Files): Likewise.
30788         * modules/mbscspn-tests (Files): Likewise.
30789         * modules/mbsinit-tests (Files): Likewise.
30790         * modules/mbsncasecmp-tests (Files): Likewise.
30791         * modules/mbsnrtowcs-tests (Files): Likewise.
30792         * modules/mbspbrk-tests (Files): Likewise.
30793         * modules/mbspcasecmp-tests (Files): Likewise.
30794         * modules/mbsrchr-tests (Files): Likewise.
30795         * modules/mbsrtowcs-tests (Files): Likewise.
30796         * modules/mbsspn-tests (Files): Likewise.
30797         * modules/mbsstr-tests (Files): Likewise.
30798         * modules/memchr-tests (Files): Likewise.
30799         * modules/memchr2-tests (Files): Likewise.
30800         * modules/memcmp-tests (Files): Likewise.
30801         * modules/memmem-tests (Files): Likewise.
30802         * modules/memrchr-tests (Files): Likewise.
30803         * modules/mkdir-tests (Files): Likewise.
30804         * modules/mkfifo-tests (Files): Likewise.
30805         * modules/mkfifoat-tests (Files): Likewise.
30806         * modules/mknod-tests (Files): Likewise.
30807         * modules/nanosleep-tests (Files): Likewise.
30808         * modules/nl_langinfo-tests (Files): Likewise.
30809         * modules/obstack-printf-tests (Files): Likewise.
30810         * modules/open-tests (Files): Likewise.
30811         * modules/openat-tests (Files): Likewise.
30812         * modules/pipe-filter-gi-tests (Files): Likewise.
30813         * modules/pipe-filter-ii-tests (Files): Likewise.
30814         * modules/pipe2-tests (Files): Likewise.
30815         * modules/popen-safer-tests (Files): Likewise.
30816         * modules/popen-tests (Files): Likewise.
30817         * modules/posixtm-tests (Files): Likewise.
30818         * modules/pread-tests (Files): Likewise.
30819         * modules/printf-frexp-tests (Files): Likewise.
30820         * modules/printf-frexpl-tests (Files): Likewise.
30821         * modules/printf-posix-tests (Files): Likewise.
30822         * modules/priv-set-tests (Files): Likewise.
30823         * modules/quotearg-tests (Files): Likewise.
30824         * modules/random_r-tests (Files): Likewise.
30825         * modules/rawmemchr-tests (Files): Likewise.
30826         * modules/rbtree-list-tests (Files): Likewise.
30827         * modules/rbtree-oset-tests (Files): Likewise.
30828         * modules/rbtreehash-list-tests (Files): Likewise.
30829         * modules/readlink-tests (Files): Likewise.
30830         * modules/remove-tests (Files): Likewise.
30831         * modules/rename-tests (Files): Likewise.
30832         * modules/renameat-tests (Files): Likewise.
30833         * modules/rmdir-tests (Files): Likewise.
30834         * modules/round-tests (Files): Likewise.
30835         * modules/roundf-tests (Files): Likewise.
30836         * modules/roundl-tests (Files): Likewise.
30837         * modules/safe-alloc-tests (Files): Likewise.
30838         * modules/setenv-tests (Files): Likewise.
30839         * modules/sigaction-tests (Files): Likewise.
30840         * modules/signbit-tests (Files): Likewise.
30841         * modules/sleep-tests (Files): Likewise.
30842         * modules/snprintf-posix-tests (Files): Likewise.
30843         * modules/snprintf-tests (Files): Likewise.
30844         * modules/sprintf-posix-tests (Files): Likewise.
30845         * modules/stat-tests (Files): Likewise.
30846         * modules/stat-time-tests (Files): Likewise.
30847         * modules/strcasestr-tests (Files): Likewise.
30848         * modules/strchrnul-tests (Files): Likewise.
30849         * modules/strerror-tests (Files): Likewise.
30850         * modules/striconv-tests (Files): Likewise.
30851         * modules/striconveh-tests (Files): Likewise.
30852         * modules/striconveha-tests (Files): Likewise.
30853         * modules/strsignal-tests (Files): Likewise.
30854         * modules/strstr-tests (Files): Likewise.
30855         * modules/strtod-tests (Files): Likewise.
30856         * modules/strverscmp-tests (Files): Likewise.
30857         * modules/symlink-tests (Files): Likewise.
30858         * modules/symlinkat-tests (Files): Likewise.
30859         * modules/trunc-tests (Files): Likewise.
30860         * modules/truncf-tests (Files): Likewise.
30861         * modules/truncl-tests (Files): Likewise.
30862         * modules/uname-tests (Files): Likewise.
30863         * modules/unicase/cased-tests (Files): Likewise.
30864         * modules/unicase/ignorable-tests (Files): Likewise.
30865         * modules/unicase/locale-language-tests (Files): Likewise.
30866         * modules/unicase/tolower-tests (Files): Likewise.
30867         * modules/unicase/totitle-tests (Files): Likewise.
30868         * modules/unicase/toupper-tests (Files): Likewise.
30869         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30870         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30871         * modules/unicase/u8-casefold-tests (Files): Likewise.
30872         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30873         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30874         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30875         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30876         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30877         * modules/unicase/u8-tolower-tests (Files): Likewise.
30878         * modules/unicase/u8-totitle-tests (Files): Likewise.
30879         * modules/unicase/u8-toupper-tests (Files): Likewise.
30880         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30881         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30882         * modules/unicase/u16-casefold-tests (Files): Likewise.
30883         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30884         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30885         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30886         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30887         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30888         * modules/unicase/u16-tolower-tests (Files): Likewise.
30889         * modules/unicase/u16-totitle-tests (Files): Likewise.
30890         * modules/unicase/u16-toupper-tests (Files): Likewise.
30891         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30892         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30893         * modules/unicase/u32-casefold-tests (Files): Likewise.
30894         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30895         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30896         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30897         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30898         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30899         * modules/unicase/u32-tolower-tests (Files): Likewise.
30900         * modules/unicase/u32-totitle-tests (Files): Likewise.
30901         * modules/unicase/u32-toupper-tests (Files): Likewise.
30902         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30903         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30904         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30905         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30906         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30907         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30908         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30909         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30910         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30911         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30912         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30913         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30914         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30915         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30916         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30917         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30918         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30919         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30920         * modules/unictype/block-list-tests (Files): Likewise.
30921         * modules/unictype/block-of-tests (Files): Likewise.
30922         * modules/unictype/block-test-tests (Files): Likewise.
30923         * modules/unictype/category-C-tests (Files): Likewise.
30924         * modules/unictype/category-Cc-tests (Files): Likewise.
30925         * modules/unictype/category-Cf-tests (Files): Likewise.
30926         * modules/unictype/category-Cn-tests (Files): Likewise.
30927         * modules/unictype/category-Co-tests (Files): Likewise.
30928         * modules/unictype/category-Cs-tests (Files): Likewise.
30929         * modules/unictype/category-L-tests (Files): Likewise.
30930         * modules/unictype/category-Ll-tests (Files): Likewise.
30931         * modules/unictype/category-Lm-tests (Files): Likewise.
30932         * modules/unictype/category-Lo-tests (Files): Likewise.
30933         * modules/unictype/category-Lt-tests (Files): Likewise.
30934         * modules/unictype/category-Lu-tests (Files): Likewise.
30935         * modules/unictype/category-M-tests (Files): Likewise.
30936         * modules/unictype/category-Mc-tests (Files): Likewise.
30937         * modules/unictype/category-Me-tests (Files): Likewise.
30938         * modules/unictype/category-Mn-tests (Files): Likewise.
30939         * modules/unictype/category-N-tests (Files): Likewise.
30940         * modules/unictype/category-Nd-tests (Files): Likewise.
30941         * modules/unictype/category-Nl-tests (Files): Likewise.
30942         * modules/unictype/category-No-tests (Files): Likewise.
30943         * modules/unictype/category-P-tests (Files): Likewise.
30944         * modules/unictype/category-Pc-tests (Files): Likewise.
30945         * modules/unictype/category-Pd-tests (Files): Likewise.
30946         * modules/unictype/category-Pe-tests (Files): Likewise.
30947         * modules/unictype/category-Pf-tests (Files): Likewise.
30948         * modules/unictype/category-Pi-tests (Files): Likewise.
30949         * modules/unictype/category-Po-tests (Files): Likewise.
30950         * modules/unictype/category-Ps-tests (Files): Likewise.
30951         * modules/unictype/category-S-tests (Files): Likewise.
30952         * modules/unictype/category-Sc-tests (Files): Likewise.
30953         * modules/unictype/category-Sk-tests (Files): Likewise.
30954         * modules/unictype/category-Sm-tests (Files): Likewise.
30955         * modules/unictype/category-So-tests (Files): Likewise.
30956         * modules/unictype/category-Z-tests (Files): Likewise.
30957         * modules/unictype/category-Zl-tests (Files): Likewise.
30958         * modules/unictype/category-Zp-tests (Files): Likewise.
30959         * modules/unictype/category-Zs-tests (Files): Likewise.
30960         * modules/unictype/category-and-not-tests (Files): Likewise.
30961         * modules/unictype/category-and-tests (Files): Likewise.
30962         * modules/unictype/category-byname-tests (Files): Likewise.
30963         * modules/unictype/category-name-tests (Files): Likewise.
30964         * modules/unictype/category-none-tests (Files): Likewise.
30965         * modules/unictype/category-of-tests (Files): Likewise.
30966         * modules/unictype/category-or-tests (Files): Likewise.
30967         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30968         * modules/unictype/combining-class-tests (Files): Likewise.
30969         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30970         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30971         * modules/unictype/ctype-blank-tests (Files): Likewise.
30972         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30973         * modules/unictype/ctype-digit-tests (Files): Likewise.
30974         * modules/unictype/ctype-graph-tests (Files): Likewise.
30975         * modules/unictype/ctype-lower-tests (Files): Likewise.
30976         * modules/unictype/ctype-print-tests (Files): Likewise.
30977         * modules/unictype/ctype-punct-tests (Files): Likewise.
30978         * modules/unictype/ctype-space-tests (Files): Likewise.
30979         * modules/unictype/ctype-upper-tests (Files): Likewise.
30980         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30981         * modules/unictype/decimal-digit-tests (Files): Likewise.
30982         * modules/unictype/digit-tests (Files): Likewise.
30983         * modules/unictype/mirror-tests (Files): Likewise.
30984         * modules/unictype/numeric-tests (Files): Likewise.
30985         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30986         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30987         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30988         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30989         Likewise.
30990         * modules/unictype/property-bidi-block-separator-tests (Files):
30991         Likewise.
30992         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30993         Likewise.
30994         * modules/unictype/property-bidi-common-separator-tests (Files):
30995         Likewise.
30996         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30997         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30998         Likewise.
30999         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
31000         Likewise.
31001         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
31002         Likewise.
31003         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
31004         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
31005         Likewise.
31006         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
31007         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
31008         Likewise.
31009         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
31010         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
31011         * modules/unictype/property-bidi-segment-separator-tests (Files):
31012         Likewise.
31013         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
31014         * modules/unictype/property-byname-tests (Files): Likewise.
31015         * modules/unictype/property-combining-tests (Files): Likewise.
31016         * modules/unictype/property-composite-tests (Files): Likewise.
31017         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
31018         * modules/unictype/property-dash-tests (Files): Likewise.
31019         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
31020         * modules/unictype/property-default-ignorable-code-point-tests (Files):
31021         Likewise.
31022         * modules/unictype/property-deprecated-tests (Files): Likewise.
31023         * modules/unictype/property-diacritic-tests (Files): Likewise.
31024         * modules/unictype/property-extender-tests (Files): Likewise.
31025         * modules/unictype/property-format-control-tests (Files): Likewise.
31026         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
31027         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
31028         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
31029         * modules/unictype/property-hex-digit-tests (Files): Likewise.
31030         * modules/unictype/property-hyphen-tests (Files): Likewise.
31031         * modules/unictype/property-id-continue-tests (Files): Likewise.
31032         * modules/unictype/property-id-start-tests (Files): Likewise.
31033         * modules/unictype/property-ideographic-tests (Files): Likewise.
31034         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
31035         * modules/unictype/property-ids-trinary-operator-tests (Files):
31036         Likewise.
31037         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
31038         * modules/unictype/property-iso-control-tests (Files): Likewise.
31039         * modules/unictype/property-join-control-tests (Files): Likewise.
31040         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
31041         * modules/unictype/property-line-separator-tests (Files): Likewise.
31042         * modules/unictype/property-logical-order-exception-tests (Files):
31043         Likewise.
31044         * modules/unictype/property-lowercase-tests (Files): Likewise.
31045         * modules/unictype/property-math-tests (Files): Likewise.
31046         * modules/unictype/property-non-break-tests (Files): Likewise.
31047         * modules/unictype/property-not-a-character-tests (Files): Likewise.
31048         * modules/unictype/property-numeric-tests (Files): Likewise.
31049         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
31050         * modules/unictype/property-other-default-ignorable-code-point-tests
31051         (Files): Likewise.
31052         * modules/unictype/property-other-grapheme-extend-tests (Files):
31053         Likewise.
31054         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
31055         * modules/unictype/property-other-id-start-tests (Files): Likewise.
31056         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
31057         * modules/unictype/property-other-math-tests (Files): Likewise.
31058         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
31059         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
31060         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
31061         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
31062         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
31063         * modules/unictype/property-private-use-tests (Files): Likewise.
31064         * modules/unictype/property-punctuation-tests (Files): Likewise.
31065         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
31066         * modules/unictype/property-radical-tests (Files): Likewise.
31067         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
31068         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
31069         * modules/unictype/property-space-tests (Files): Likewise.
31070         * modules/unictype/property-terminal-punctuation-tests (Files):
31071         Likewise.
31072         * modules/unictype/property-test-tests (Files): Likewise.
31073         * modules/unictype/property-titlecase-tests (Files): Likewise.
31074         * modules/unictype/property-unassigned-code-value-tests (Files):
31075         Likewise.
31076         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
31077         * modules/unictype/property-uppercase-tests (Files): Likewise.
31078         * modules/unictype/property-variation-selector-tests (Files): Likewise.
31079         * modules/unictype/property-white-space-tests (Files): Likewise.
31080         * modules/unictype/property-xid-continue-tests (Files): Likewise.
31081         * modules/unictype/property-xid-start-tests (Files): Likewise.
31082         * modules/unictype/property-zero-width-tests (Files): Likewise.
31083         * modules/unictype/scripts-tests (Files): Likewise.
31084         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
31085         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
31086         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
31087         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
31088         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
31089         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
31090         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
31091         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
31092         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
31093         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
31094         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
31095         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
31096         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
31097         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
31098         * modules/uninorm/composition-tests (Files): Likewise.
31099         * modules/uninorm/decomposing-form-tests (Files): Likewise.
31100         * modules/uninorm/decomposition-tests (Files): Likewise.
31101         * modules/uninorm/filter-tests (Files): Likewise.
31102         * modules/uninorm/nfc-tests (Files): Likewise.
31103         * modules/uninorm/nfd-tests (Files): Likewise.
31104         * modules/uninorm/nfkc-tests (Files): Likewise.
31105         * modules/uninorm/nfkd-tests (Files): Likewise.
31106         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
31107         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
31108         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
31109         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
31110         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
31111         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
31112         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
31113         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31114         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
31115         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
31116         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
31117         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
31118         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31119         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
31120         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
31121         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
31122         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
31123         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31124         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
31125         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
31126         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
31127         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
31128         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31129         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
31130         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
31131         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
31132         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
31133         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
31134         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
31135         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
31136         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
31137         * modules/uniwidth/u8-width-tests (Files): Likewise.
31138         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
31139         * modules/uniwidth/u16-width-tests (Files): Likewise.
31140         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
31141         * modules/uniwidth/u32-width-tests (Files): Likewise.
31142         * modules/uniwidth/width-tests (Files): Likewise.
31143         * modules/unlink-tests (Files): Likewise.
31144         * modules/unsetenv-tests (Files): Likewise.
31145         * modules/usleep-tests (Files): Likewise.
31146         * modules/utimens-tests (Files): Likewise.
31147         * modules/utimensat-tests (Files): Likewise.
31148         * modules/vasnprintf-posix-tests (Files): Likewise.
31149         * modules/vasnprintf-tests (Files): Likewise.
31150         * modules/vasprintf-posix-tests (Files): Likewise.
31151         * modules/vasprintf-tests (Files): Likewise.
31152         * modules/vdprintf-posix-tests (Files): Likewise.
31153         * modules/vfprintf-posix-tests (Files): Likewise.
31154         * modules/vprintf-posix-tests (Files): Likewise.
31155         * modules/vsnprintf-posix-tests (Files): Likewise.
31156         * modules/vsnprintf-tests (Files): Likewise.
31157         * modules/vsprintf-posix-tests (Files): Likewise.
31158         * modules/wcrtomb-tests (Files): Likewise.
31159         * modules/wcsnrtombs-tests (Files): Likewise.
31160         * modules/wcsrtombs-tests (Files): Likewise.
31161         * modules/wctype-tests (Files): Likewise.
31162         * modules/wcwidth-tests (Files): Likewise.
31163         * modules/xmemdup0-tests (Files): Likewise.
31164         * modules/xprintf-posix-tests (Files): Likewise.
31165         * modules/xvasprintf-tests (Files): Likewise.
31166
31167 2009-12-24  Eric Blake  <ebb9@byu.net>
31168
31169         test-nanosleep: fix typo
31170         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
31171         patch.
31172         Reported by Bruno Haible.
31173
31174 2009-12-24  Bruno Haible  <bruno@clisp.org>
31175
31176         Reduce namespace pollution on glibc systems.
31177         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
31178         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
31179         systems.
31180         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
31181         <getopt.h> on glibc systems.
31182         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
31183         systems.
31184         * lib/fcntl.c: Include <unistd.h> here instead.
31185
31186 2009-12-24  Bruno Haible  <bruno@clisp.org>
31187
31188         * lib/stdlib.in.h (includes): Fix typo in today's commit.
31189
31190 2009-12-24  Eric Blake  <ebb9@byu.net>
31191
31192         tests: add signature checks
31193         * tests/signature.h (SIGNATURE_CHECK): New file.
31194         * modules/atexit-tests (Files): Use it.
31195         * modules/btowc-tests (Files): Likewise.
31196         * modules/canonicalize-lgpl-tests (Files): Likewise.
31197         * modules/ceilf-tests (Files): Likewise.
31198         * modules/ceill-tests (Files): Likewise.
31199         * modules/chown-tests (Files): Likewise.
31200         * modules/dprintf-posix-tests (Files): Likewise.
31201         * modules/dup2-tests (Files): Likewise.
31202         * modules/dup3-tests (Files): Likewise.
31203         * modules/duplocale-tests (Files): Likewise.
31204         * modules/fchdir-tests (Files): Likewise.
31205         * modules/fcntl-tests (Files): Likewise.
31206         * modules/fdopendir-tests (Files): Likewise.
31207         * modules/fflush-tests (Files): Likewise.
31208         * modules/flock-tests (Files): Likewise.
31209         * modules/floorf-tests (Files): Likewise.
31210         * modules/floorl-tests (Files): Likewise.
31211         * modules/fnmatch-tests (Files): Likewise.
31212         * modules/fopen-tests (Files): Likewise.
31213         * modules/fprintf-posix-tests (Files): Likewise.
31214         * modules/freopen-tests (Files): Likewise.
31215         * modules/frexp-nolibm-tests (Files): Likewise.
31216         * modules/frexp-tests (Files): Likewise.
31217         * modules/frexpl-nolibm-tests (Files): Likewise.
31218         * modules/frexpl-tests (Files): Likewise.
31219         * modules/fseek-tests (Files): Likewise.
31220         * modules/fseeko-tests (Files): Likewise.
31221         * modules/fsync-tests (Files): Likewise.
31222         * modules/ftell-tests (Files): Likewise.
31223         * modules/ftello-tests (Files): Likewise.
31224         * modules/futimens-tests (Files): Likewise.
31225         * modules/getaddrinfo-tests (Files): Likewise.
31226         * modules/getcwd-tests (Files): Likewise.
31227         * modules/getdelim-tests (Files): Likewise.
31228         * modules/getdtablesize-tests (Files): Likewise.
31229         * modules/getgroups-tests (Files): Likewise.
31230         * modules/gethostname-tests (Files): Likewise.
31231         * modules/getline-tests (Files): Likewise.
31232         * modules/getopt-posix-tests (Files): Likewise.
31233         * modules/gettimeofday-tests (Files): Likewise.
31234         * modules/glob-tests (Files): Likewise.
31235         * modules/iconv-tests (Files): Likewise.
31236         * modules/inet_ntop-tests (Files): Likewise.
31237         * modules/inet_pton-tests (Files): Likewise.
31238         * modules/isblank-tests (Files): Likewise.
31239         * modules/lchown-tests (Files): Likewise.
31240         * modules/ldexpl-tests (Files): Likewise.
31241         * modules/link-tests (Files): Likewise.
31242         * modules/linkat-tests (Files): Likewise.
31243         * modules/lseek-tests (Files): Likewise.
31244         * modules/lstat-tests (Files): Likewise.
31245         * modules/mbrtowc-tests (Files): Likewise.
31246         * modules/mbsinit-tests (Files): Likewise.
31247         * modules/mbsnrtowcs-tests (Files): Likewise.
31248         * modules/mbsrtowcs-tests (Files): Likewise.
31249         * modules/memchr-tests (Files): Likewise.
31250         * modules/memcmp-tests (Files): Likewise.
31251         * modules/memmem-tests (Files): Likewise.
31252         * modules/memrchr-tests (Files): Likewise.
31253         * modules/mkdir-tests (Files): Likewise.
31254         * modules/mkfifo-tests (Files): Likewise.
31255         * modules/mkfifoat-tests (Files): Likewise.
31256         * modules/mknod-tests (Files): Likewise.
31257         * modules/nanosleep-tests (Files): Likewise.
31258         * modules/nl_langinfo-tests (Files): Likewise.
31259         * modules/obstack-printf-tests (Files): Likewise.
31260         * modules/open-tests (Files): Likewise.
31261         * modules/openat-tests (Files): Likewise.
31262         * modules/perror-tests (Files): Likewise.
31263         * modules/pipe2-tests (Files): Likewise.
31264         * modules/poll-tests (Files): Likewise.
31265         * modules/popen-tests (Files): Likewise.
31266         * modules/posix_spawn-tests (Files): Likewise.
31267         * modules/posix_spawnp-tests (Files): Likewise.
31268         * modules/pread-tests (Files): Likewise.
31269         * modules/printf-posix-tests (Files): Likewise.
31270         * modules/pty-tests (Files): Likewise.
31271         * modules/random_r-tests (Files): Likewise.
31272         * modules/rawmemchr-tests (Files): Likewise.
31273         * modules/readlink-tests (Files): Likewise.
31274         * modules/remove-tests (Files): Likewise.
31275         * modules/rename-tests (Files): Likewise.
31276         * modules/renameat-tests (Files): Likewise.
31277         * modules/rmdir-tests (Files): Likewise.
31278         * modules/round-tests (Files): Likewise.
31279         * modules/roundf-tests (Files): Likewise.
31280         * modules/roundl-tests (Files): Likewise.
31281         * modules/select-tests (Files): Likewise.
31282         * modules/setenv-tests (Files): Likewise.
31283         * modules/sigaction-tests (Files): Likewise.
31284         * modules/sleep-tests (Files): Likewise.
31285         * modules/snprintf-posix-tests (Files): Likewise.
31286         * modules/snprintf-tests (Files): Likewise.
31287         * modules/sprintf-posix-tests (Files): Likewise.
31288         * modules/stat-tests (Files): Likewise.
31289         * modules/strcasestr-tests (Files): Likewise.
31290         * modules/strchrnul-tests (Files): Likewise.
31291         * modules/strerror-tests (Files): Likewise.
31292         * modules/strsignal-tests (Files): Likewise.
31293         * modules/strstr-tests (Files): Likewise.
31294         * modules/strtod-tests (Files): Likewise.
31295         * modules/strverscmp-tests (Files): Likewise.
31296         * modules/symlink-tests (Files): Likewise.
31297         * modules/symlinkat-tests (Files): Likewise.
31298         * modules/times-tests (Files): Likewise.
31299         * modules/trunc-tests (Files): Likewise.
31300         * modules/truncf-tests (Files): Likewise.
31301         * modules/truncl-tests (Files): Likewise.
31302         * modules/tsearch-tests (Files): Likewise.
31303         * modules/uname-tests (Files): Likewise.
31304         * modules/unlink-tests (Files): Likewise.
31305         * modules/unsetenv-tests (Files): Likewise.
31306         * modules/usleep-tests (Files): Likewise.
31307         * modules/utimensat-tests (Files): Likewise.
31308         * modules/vasprintf-tests (Files): Likewise.
31309         * modules/vdprintf-posix-tests (Files): Likewise.
31310         * modules/vfprintf-posix-tests (Files): Likewise.
31311         * modules/vprintf-posix-tests (Files): Likewise.
31312         * modules/vsnprintf-posix-tests (Files): Likewise.
31313         * modules/vsnprintf-tests (Files): Likewise.
31314         * modules/vsprintf-posix-tests (Files): Likewise.
31315         * modules/wcrtomb-tests (Files): Likewise.
31316         * modules/wcsnrtombs-tests (Files): Likewise.
31317         * modules/wcsrtombs-tests (Files): Likewise.
31318         * modules/wcwidth-tests (Files): Likewise.
31319         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
31320         * tests/test-isinf.c (isinf): Likewise.
31321         * tests/test-isnan.c (isnan): Likewise.
31322         * tests/test-signbit.c (signbit): Likewise.
31323         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
31324         declaration, either as macro or with correct signature.
31325         (select): Ensure function under test is declared with correct
31326         signature in correct header.
31327         * tests/test-atexit.c (atexit): Likewise.
31328         * tests/test-btowc.c (btowc): Likewise.
31329         * tests/test-canonicalize-lgpl.c (realpath)
31330         (canonicalize_file_name): Likewise.
31331         * tests/test-ceilf1.c (ceilf): Likewise.
31332         * tests/test-ceill.c (ceill): Likewise.
31333         * tests/test-chown.c (chown): Likewise.
31334         * tests/test-dprintf-posix.c (dprintf): Likewise.
31335         * tests/test-dup2.c (dup2): Likewise.
31336         * tests/test-dup3.c (dup3): Likewise.
31337         * tests/test-duplocale.c (duplocale): Likewise.
31338         * tests/test-fchdir.c (fchdir): Likewise.
31339         * tests/test-fchownat.c (fchownat): Likewise.
31340         * tests/test-fcntl.c (fcntl): Likewise.
31341         * tests/test-fdopendir.c (fdopendir): Likewise.
31342         * tests/test-fflush.c (fflush): Likewise.
31343         * tests/test-flock.c (flock): Likewise.
31344         * tests/test-floorf1.c (floorf): Likewise.
31345         * tests/test-floorl.c (floorl): Likewise.
31346         * tests/test-fnmatch.c (fnmatch): Likewise.
31347         * tests/test-fopen.c (fopen): Likewise.
31348         * tests/test-fprintf-posix.c (fprintf): Likewise.
31349         * tests/test-freopen.c (freopen): Likewise.
31350         * tests/test-frexp.c (frexp): Likewise.
31351         * tests/test-frexpl.c (frexpl): Likewise.
31352         * tests/test-fseek.c (fseek): Likewise.
31353         * tests/test-fseeko.c (fseeko): Likewise.
31354         * tests/test-fstatat.c (fstatat): Likewise.
31355         * tests/test-fsync.c (fsync): Likewise.
31356         * tests/test-ftell.c (ftell): Likewise.
31357         * tests/test-ftello.c (ftello): Likewise.
31358         * tests/test-futimens.c (futimens): Likewise.
31359         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31360         (gai_strerror): Likewise.
31361         * tests/test-getcwd.c (getcwd): Likewise.
31362         * tests/test-getdelim.c (getdelim): Likewise.
31363         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31364         * tests/test-getgroups.c (getgroups): Likewise.
31365         * tests/test-gethostname.c (gethostname): Likewise.
31366         * tests/test-getline.c (getline): Likewise.
31367         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31368         Likewise.
31369         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31370         * tests/test-glob.c (glob, globfree): Likewise.
31371         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31372         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31373         * tests/test-inet_pton.c (inet_pton): Likewise.
31374         * tests/test-isblank.c (isblank): Likewise.
31375         * tests/test-lchown.c (lchown): Likewise.
31376         * tests/test-ldexpl.c (ldexpl): Likewise.
31377         * tests/test-link.c (link): Likewise.
31378         * tests/test-linkat.c (linkat): Likewise.
31379         * tests/test-lseek.c (lseek): Likewise.
31380         * tests/test-lstat.c (lstat): Likewise.
31381         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31382         * tests/test-mbsinit.c (mbsinit): Likewise.
31383         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31384         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31385         * tests/test-memchr.c (memchr): Likewise.
31386         * tests/test-memcmp.c (memcmp): Likewise.
31387         * tests/test-memmem.c (memmem): Likewise.
31388         * tests/test-memrchr.c (memrchr): Likewise.
31389         * tests/test-mkdir.c (mkdir): Likewise.
31390         * tests/test-mkdirat.c (mkdirat): Likewise.
31391         * tests/test-mkfifo.c (mkfifo): Likewise.
31392         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
31393         * tests/test-mknod.c (mknod): Likewise.
31394         * tests/test-nanosleep.c (nanosleep): Likewise.
31395         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
31396         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
31397         Likewise.
31398         * tests/test-open.c (open): Likewise.
31399         * tests/test-openat.c (openat): Likewise.
31400         * tests/test-perror.c (perror): Likewise.
31401         * tests/test-pipe2.c (pipe2): Likewise.
31402         * tests/test-poll.c (poll): Likewise.
31403         * tests/test-popen.c (popen, pclose): Likewise.
31404         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
31405         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
31406         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
31407         (posix_spawn_file_actions_destroy)
31408         (posix_spawn_file_actions_addclose)
31409         (posix_spawn_file_actions_addopen)
31410         (posix_spawn_file_actions_adddup2): Likewise.
31411         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
31412         * tests/test-pread.c (pread): Likewise.
31413         * tests/test-printf-posix.c (printf): Likewise.
31414         * tests/test-pty.c (openpty, forkpty): Likewise.
31415         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
31416         (random_r): Likewise.
31417         * tests/test-rawmemchr.c (rawmemchr): Likewise.
31418         * tests/test-readlink.c (readlink): Likewise.
31419         * tests/test-remove.c (remove): Likewise.
31420         * tests/test-rename.c (rename): Likewise.
31421         * tests/test-renameat.c (renameat): Likewise.
31422         * tests/test-rmdir.c (rmdir): Likewise.
31423         * tests/test-round1.c (round): Likewise.
31424         * tests/test-roundf1.c (roundf): Likewise.
31425         * tests/test-roundl.c (roundl): Likewise.
31426         * tests/test-setenv.c (setenv): Likewise.
31427         * tests/test-sigaction.c (sigaction): Likewise.
31428         * tests/test-sleep.c (sleep): Likewise.
31429         * tests/test-snprintf.c (snprintf): Likewise.
31430         * tests/test-sprintf-posix.c (sprintf): Likewise.
31431         * tests/test-stat.c (stat): Likewise.
31432         * tests/test-stpncpy.c (stpncpy): Likewise.
31433         * tests/test-strcasestr.c (strcasestr): Likewise.
31434         * tests/test-strchrnul.c (strchrnul): Likewise.
31435         * tests/test-strerror.c (strerror): Likewise.
31436         * tests/test-strsignal.c (strsignal): Likewise.
31437         * tests/test-strstr.c (strstr): Likewise.
31438         * tests/test-strtod.c (strtod): Likewise.
31439         * tests/test-strverscmp.c (strverscmp): Likewise.
31440         * tests/test-symlink.c (symlink): Likewise.
31441         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
31442         * tests/test-times.c (times): Likewise.
31443         * tests/test-trunc1.c (trunc): Likewise.
31444         * tests/test-truncf1.c (truncf): Likewise.
31445         * tests/test-truncl.c (truncl): Likewise.
31446         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
31447         Likewise.
31448         * tests/test-uname.c (uname): Likewise.
31449         * tests/test-unlink.c (unlink): Likewise.
31450         * tests/test-unlinkat.c (unlinkat): Likewise.
31451         * tests/test-unsetenv.c (unsetenv): Likewise.
31452         * tests/test-usleep.c (usleep): Likewise.
31453         * tests/test-utimensat.c (utimensat): Likewise.
31454         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
31455         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
31456         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
31457         * tests/test-vprintf-posix.c (vprintf): Likewise.
31458         * tests/test-vsnprintf.c (vsnprintf): Likewise.
31459         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
31460         * tests/test-wcrtomb.c (wcrtomb): Likewise.
31461         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
31462         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
31463         * tests/test-wcwidth.c (wcwidth): Likewise.
31464
31465         build: pull in conditional headers during GNULIB_POSIXCHECK
31466         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
31467         definitions from any conditionally-included headers.
31468         * lib/stdlib.in.h (includes): Likewise.
31469         * lib/unistd.in.h (includes): Likewise.
31470
31471 2009-12-24  Bruno Haible  <bruno@clisp.org>
31472
31473         * tests/test-argv-iter.c: Include header file being tested immediately
31474         after config.h.
31475         * tests/test-base64.c: Likewise.
31476         * tests/test-flock.c: Likewise.
31477         * tests/test-fsync.c: Likewise.
31478         * tests/test-getdate.c: Likewise.
31479         * tests/test-getndelim2.c: Likewise.
31480         * tests/test-isfinite.c: Likewise.
31481         * tests/test-isinf.c: Likewise.
31482         * tests/test-strerror.c: Likewise.
31483         * tests/test-strsignal.c: Likewise.
31484
31485 2009-12-23  Eric Blake  <ebb9@byu.net>
31486
31487         unistd: work around cygwin bug
31488         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31489         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31490         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31491
31492 2009-12-23  Bruno Haible  <bruno@clisp.org>
31493
31494         localename: More tests.
31495         * tests/test-localename.c (SIZEOF): New macro.
31496         (categories): New variable.
31497         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31498         test_locale_name_default): Add test w.r.t. thread locale.
31499         (test_locale_name_thread): New function.
31500         (main): Invoke it.
31501
31502         localename: Make aware of thread locale.
31503         * lib/localename.h (gl_locale_name_thread): New declaration.
31504         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31505         behaviour with respect to thread locale.
31506         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31507         <langinfo.h>, glthread/lock.h.
31508         (SIZE_BITS): New macro.
31509         (string_hash): New function.
31510         (struct hash_node): New type.
31511         (HASH_TABLE_SIZE): New macro.
31512         (struniq_hash_table, struniq_lock): New variables.
31513         (struniq): New function.
31514         (gl_locale_name_thread): New function.
31515         (gl_locale_name): Invoke it.
31516         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31517         * modules/localename (Depends-on): Add lock.
31518         Reported by Mike Gran <spk121@yahoo.com>.
31519
31520 2009-12-23  Eric Blake  <ebb9@byu.net>
31521
31522         va-args: new module
31523         * modules/va-args: New file.
31524         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31525         * MODULES.html.sh (Core language properties): Mention it.
31526
31527         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31528         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31529         named alias for __attribute__((__unused__)).
31530         * lib/chown.c: Update client.
31531         * lib/fchmodat.c: Likewise.
31532         * lib/fts.c: Likewise.
31533         * lib/getdate.y: Likewise.
31534         * lib/getgroups.c: Likewise.
31535         * lib/getopt.c: Likewise.
31536         * lib/getugroups.c: Likewise.
31537         * lib/mkdir.c: Likewise.
31538         * lib/mkfifo.c: Likewise.
31539         * lib/mkfifoat.c: Likewise.
31540         * lib/mknod.c: Likewise.
31541         * lib/mknodat.c: Likewise.
31542         * lib/readlink.c: Likewise.
31543         * lib/se-context.in.h: Likewise.
31544         * lib/se-selinux.in.h: Likewise.
31545         * lib/sockets.c: Likewise.
31546         * lib/symlink.c: Likewise.
31547         * lib/symlinkat.c: Likewise.
31548         * lib/unicodeio.c: Likewise.
31549         * lib/unistr.h: Likewise.
31550         * tests/test-areadlink.c: Likewise.
31551         * tests/test-areadlinkat.c: Likewise.
31552         * tests/test-filenamecat.c: Likewise.
31553         * tests/test-fseeko.c: Likewise.
31554         * tests/test-ftello.c: Likewise.
31555         * tests/test-getdate.c: Likewise.
31556         * tests/test-getgroups.c: Likewise.
31557         * tests/test-gethostname.c: Likewise.
31558         * tests/test-quotearg.c: Likewise.
31559         * tests/test-version-etc.c: Likewise.
31560         * tests/test-xalloc-die.c: Likewise.
31561         * tests/test-xfprintf-posix.c: Likewise.
31562         * tests/test-xprintf-posix.c: Likewise.
31563         * tests/test-xvasprintf.c: Likewise.
31564
31565         tests: avoid compiler warnings
31566         * tests/test-fcntl.c (main): Delete unused parameters.
31567         * tests/test-freopen-safer.c (main): Likewise.
31568         * tests/test-xalloc-die.c (main): Mark unused parameters.
31569         * tests/test-fseeko.c (main): Likewise.
31570         * tests/test-ftello.c (main): Likewise.
31571         * tests/test-nanosleep.c (main): Avoid declaration warning.
31572         * tests/test-sleep.c (main): Likewise.
31573         * tests/test-unsetenv.c (main): Silence warning about string
31574         literal.
31575         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31576
31577 2009-12-23  Bruno Haible  <bruno@clisp.org>
31578
31579         * tests/test-localename.c (test_locale_name): New function, extracted
31580         from main. Also test mixed situations.
31581         (test_locale_name_posix, test_locale_name_environ,
31582         test_locale_name_default): New functions.
31583         (main): Invoke them all.
31584         * modules/localename-tests (configure.ac): Test for newlocale.
31585
31586 2009-12-23  Bruno Haible  <bruno@clisp.org>
31587
31588         unistd: Ensure getcwd gets declared before being overridden.
31589         * lib/unistd.in.h: Conditionally include <io.h>.
31590
31591 2009-12-22  Bruno Haible  <bruno@clisp.org>
31592
31593         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31594         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31595         (gl_WCHAR_H): Invoke it.
31596         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31597         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31598         Reported by Karl Berry <karl@freefriends.org>.
31599
31600 2009-12-22  Eric Blake  <ebb9@byu.net>
31601
31602         math, unistd: avoid redundant includes
31603         * lib/math.in.h (isnan): No need to re-include <math.h>.
31604         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31605
31606         getsubopt: work around cygwin bug
31607         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31608         avoid conflicting with system getsubopt.
31609         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31610         bug.
31611
31612         getopt: synchronize from glibc
31613         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31614         parameter order.  Adjust all callers.
31615         (_getopt_internal_r, main): Adjust quoting in error messages.
31616         Drop considerations for outdated POSIX 1003.2 error message.
31617         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31618         callers.
31619         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31620
31621         test-getopt: test stderr behavior
31622         * modules/getopt-posix-tests (Depends-on): Add dup2.
31623         * tests/test-getopt.c (ASSERT): Avoid stderr.
31624         (main): Move stderr to a temporary file.
31625         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31626         Instead, add parameter to inform caller if output occurred.
31627         (test_getopt): Adjust all existing tests to expect silence, and
31628         add new tests of leading ":".
31629         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31630         glibc shortcomings with leading "-:" or "+:" in optstring.
31631         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31632         Likewise.
31633         * doc/posix-functions/getopt.texi (getopt): Likewise.
31634
31635         test-getopt: enhance test
31636         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31637         supports optind=0.
31638         * tests/test-getopt.c (OPTIND_MIN): Move...
31639         * tests/test-getopt.h (OPTIND_MIN): ...here.
31640         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31641         Require that optind=0 works, since modern BSD supports it in
31642         addition to optreset, and since coreutils expects it.
31643         (test_getopt_long_only): New test.
31644         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31645         glibc shortcomings with 'W;', and enforcement of optind=0.
31646         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31647         Likewise.
31648
31649 2009-12-21  Bruno Haible  <bruno@clisp.org>
31650
31651         localename: Improvements for MacOS X and Cygwin.
31652         * lib/localename.h (gl_locale_name_environ): New declaration.
31653         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31654         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31655         (gl_locale_name_posix): Invoke it.
31656         (gl_locale_name_default): Add comments. Use Windows native API also on
31657         Cygwin.
31658
31659 2009-12-21  Bruno Haible  <bruno@clisp.org>
31660
31661         Update list of Win32 locale ids.
31662         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31663         (LANG_SAMI): Renamed from LANG_SAAMI.
31664         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31665         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31666         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31667         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31668         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31669         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31670         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31671         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31672         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31673         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31674         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31675         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31676         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31677         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31678         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31679         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31680         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31681         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31682         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31683         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31684         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31685         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31686         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31687         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31688         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31689         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31690         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31691         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31692         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31693         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31694         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31695         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31696         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31697         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31698         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31699         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31700         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31701         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31702         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31703         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31704         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31705         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31706         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31707         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31708         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31709         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31710         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31711         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31712         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31713         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31714         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31715         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31716         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31717         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31718         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31719         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31720         Add more languages and countries for Sami, Sorbian. Add more countries
31721         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31722         for Pashto. Change country for Syriac, Tswana.
31723
31724 2009-12-21  Eric Blake  <ebb9@byu.net>
31725
31726         test-utimens: avoid spurious failure
31727         * tests/test-chown.h (nap): Factor...
31728         * tests/nap.h: ...into new file.
31729         * tests/test-lchown.h (nap): Avoid duplication.
31730         * tests/test-utimens-common.h (nap): Use shared implementation,
31731         necessary on file systems with 1-second resolution.
31732         * modules/chown-tests (Files): Include new file.
31733         * modules/fdutimensat-tests (Files): Likewise.
31734         * modules/futimens-tests (Files): Likewise.
31735         * modules/lchown-tests (Files): Likewise.
31736         * modules/openat-tests (Files): Likewise.
31737         * modules/utimens-tests (Files): Likewise.
31738         * modules/utimensat-tests (Files): Likewise.
31739
31740 2009-12-19  Eric Blake  <ebb9@byu.net>
31741
31742         futimens, utimensat: work around Linux bug
31743         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31744         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31745         * lib/utimensat.c (rpl_utimensat): Work around it.
31746         * lib/futimens.c (rpl_futimens): Adjust comment.
31747
31748         utimens: work around Linux ctime bug
31749         * lib/utimens.c (detect_ctime_bug): New helper function.
31750         (update_timespec): Differentiate between workaround needed for
31751         this bug vs. what is needed for systems that lack utimensat.
31752         (fdutimens, lutimens): Work around bug.
31753
31754         utimens: check for ctime update
31755         * tests/test-utimens-common.h (check_ctime): Define.
31756         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31757         * tests/test-futimens.h (test_futimens): Likewise.
31758         * tests/test-lutimens.h (test_lutimens): Likewise.
31759         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31760         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31761
31762 2009-12-19  Bruno Haible  <bruno@clisp.org>
31763
31764         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31765         * tests/test-dprintf-posix2.sh: New file.
31766         * tests/test-dprintf-posix2.c: New file.
31767         * modules/dprintf-posix-tests (Files): Add them.
31768         (configure.ac): Check for getrlimit and setrlimit.
31769         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31770
31771 2009-12-19  Bruno Haible  <bruno@clisp.org>
31772
31773         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31774         * tests/test-fprintf-posix3.sh: New file.
31775         * tests/test-fprintf-posix3.c: New file.
31776         * modules/fprintf-posix-tests (Files): Add them.
31777         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31778
31779 2009-12-19  Eric Blake  <ebb9@byu.net>
31780
31781         dirfd: fix prototype
31782         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31783         * lib/dirfd.c (dirfd): Likewise.
31784
31785         canonicalize: reduce memory usage
31786         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31787         allocation to size.
31788         Reported by Solar Designer <solar@openwall.com>.
31789
31790 2009-12-19  Bruno Haible  <bruno@clisp.org>
31791
31792         New module attribute 'Applicability'.
31793         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31794         * gnulib-tool: New option --extract-applicability.
31795         (func_usage): Document it.
31796         (sed_extract_prog): Recognize it.
31797         (func_get_applicability): New function.
31798         (func_import): Generalize handling of 'link-warning' module.
31799         * modules/link-warning (Applicability): New section.
31800         * modules/arg-nonnull (Applicability): New section.
31801         Repoted by Simon Josefsson <simon@josefsson.org>.
31802
31803 2009-12-19  Bruno Haible  <bruno@clisp.org>
31804
31805         fflush: tweak
31806         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31807         * lib/fseeko.c (rpl_fseeko): Likewise.
31808
31809 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31810
31811         * lib/gl_list.h: Fix typo in comment.
31812
31813 2009-12-16  Eric Blake  <ebb9@byu.net>
31814
31815         fcntl: use to simplify other modules
31816         * modules/cloexec (Depends-on): Add fcntl.
31817         * modules/fchdir (Depends-on): Likewise.
31818         * modules/fd-safer-flag (Depends-on): Likewise.
31819         * modules/unistd-safer (Depends-on): Likewise.
31820         * modules/dup3 (configure.ac): Set module indicator.
31821         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31822         missing.
31823         * lib/fchdir.c (_gl_register_dup): Fix comment.
31824         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31825         * lib/dup-safer.c (dup_safer): Likewise.
31826         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31827         * lib/dup3.c (dup3): Likewise.
31828         * tests/test-fchdir.c (main): Enhance test.
31829         Fixes a dup_cloexec bug reported by Ondřej Vašík.
31830
31831         fcntl: port portions of fcntl to mingw
31832         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31833         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31834         replacement for mingw.
31835         * modules/fcntl (Description): Update.
31836         (Depends-on): Add dup2.
31837         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31838         * modules/fcntl-h (Makefile.am): Substitute it.
31839         * lib/fcntl.in.h (fcntl): Update declaration.
31840         (F_DUPFD, F_GETFD): New macros, when needed.
31841         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31842         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31843         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31844         we now guarantee.
31845
31846         fcntl: work around cygwin bug in F_DUPFD
31847         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31848         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31849         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31850         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31851         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31852
31853         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31854         * modules/fcntl (Files): List new files.
31855         (configure.ac): Run a test.
31856         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31857         * lib/fcntl.c (rpl_fcntl): Likewise.
31858         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31859         (gl_FCNTL_H): Always replace fcntl.h.
31860         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31861         * lib/fcntl.in.h (fcntl): Declare replacement.
31862         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31863         needed, plus a witness.
31864         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31865         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31866         * tests/test-fcntl.c: New file.
31867         * modules/fcntl-tests: Likewise.
31868
31869         binary-io: avoid potential compilation warning
31870         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31871         directives.
31872
31873         fflush: avoid compilation error on NetBSD
31874         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31875         between off_t and fpos_t, since the latter is sometimes a struct.
31876         * lib/fseeko.c (rpl_fseeko): Likewise.
31877         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31878
31879 2009-12-15  Eric Blake  <ebb9@byu.net>
31880
31881         fcntl-h, stdio, sys_ioctl: fix declarations
31882         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31883         function must not take arguments.
31884         * lib/sys_ioctl.in.h (ioctl): Likewise.
31885         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31886         (open): Add a link warning.
31887
31888 2009-12-15  Jim Meyering  <meyering@redhat.com>
31889
31890         areadlink, areadlink-with-size: relax license to LGPLv2+
31891         * modules/areadlink (License): Relax to LGPLv2+.
31892         * modules/areadlink-with-size (License): Likewise.
31893
31894 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31895             Bruno Haible  <bruno@clisp.org>
31896
31897         *printf: Fix memory leak.
31898         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31899         * lib/vfprintf.c (vfprintf): Likewise.
31900         * lib/dprintf.c (dprintf): Likewise.
31901         * lib/vdprintf.c (vdprintf): Likewise.
31902
31903 2009-12-14  Eric Blake  <ebb9@byu.net>
31904
31905         accept4: adjust module dependencies
31906         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31907
31908         utimens: one more try at avoiding compiler warning
31909         * lib/utimens.c (lutimens): Lower scope of result.
31910
31911 2009-12-13  Bruno Haible  <bruno@clisp.org>
31912
31913         Move the malloc checking from module 'list' to new module 'xlist'.
31914         * modules/xlist: New file.
31915         * lib/gl_xlist.h: New file.
31916         * lib/gl_xlist.c: New file.
31917         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31918         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31919         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31920         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31921         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31922         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31923         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31924         gl_sortedlist_nx_add): New declarations.
31925         (struct gl_list_implementation): Rename and change methods accordingly.
31926         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31927         (gl_list_nx_create): Renamed from gl_list_create.
31928         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31929         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31930         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31931         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31932         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31933         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31934         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31935         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31936         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31937         gl_list_create_empty.
31938         (gl_list_nx_create): Renamed from gl_list_create.
31939         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31940         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31941         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31942         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31943         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31944         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31945         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31946         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31947         * lib/gl_array_list.c: Don't include xalloc.h.
31948         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31949         NULL upon out-of-memory.
31950         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31951         out-of-memory.
31952         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31953         Change return type to 'int'.
31954         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31955         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31956         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31957         upon out-of-memory.
31958         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31959         upon out-of-memory.
31960         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31961         upon out-of-memory.
31962         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31963         upon out-of-memory.
31964         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31965         out-of-memory.
31966         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31967         Update.
31968         (gl_array_list_implementation): Update.
31969         * lib/gl_carray_list.c: Don't include xalloc.h.
31970         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31971         Return NULL upon out-of-memory.
31972         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31973         out-of-memory.
31974         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31975         Change return type to 'int'.
31976         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31977         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31978         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31979         upon out-of-memory.
31980         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31981         upon out-of-memory.
31982         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31983         out-of-memory.
31984         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31985         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31986         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31987         Update.
31988         (gl_carray_list_implementation): Update.
31989         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31990         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31991         gl_linked_create_empty. Return NULL upon out-of-memory.
31992         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31993         out-of-memory.
31994         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31995         Change return type to 'int'. Return -1 upon out-of-memory.
31996         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31997         out-of-memory.
31998         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31999         upon out-of-memory.
32000         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
32001         upon out-of-memory.
32002         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
32003         NULL upon out-of-memory.
32004         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
32005         upon out-of-memory.
32006         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
32007         out-of-memory.
32008         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
32009         Update.
32010         * lib/gl_linked_list.c: Don't include xalloc.h.
32011         (gl_linked_list_implementation): Update.
32012         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
32013         (add_to_bucket): Change return type to 'int'.
32014         (gl_linkedhash_list_implementation): Update.
32015         * lib/gl_anytree_list1.h (free_subtree): New function.
32016         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
32017         gl_tree_create_empty. Return NULL upon out-of-memory.
32018         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
32019         Change return type to 'int'. Return -1 upon out-of-memory.
32020         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
32021         out-of-memory.
32022         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
32023         (gl_tree_remove_node): New function, moved here from
32024         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
32025         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
32026         Update.
32027         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
32028         malloc, not xmalloc. Return NULL upon out-of-memory.
32029         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32030         out-of-memory.
32031         (gl_tree_remove_node_from_tree): New function, extracted from
32032         gl_tree_remove_node.
32033         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32034         upon out-of-memory.
32035         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32036         out-of-memory.
32037         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32038         upon out-of-memory.
32039         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32040         upon out-of-memory.
32041         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32042         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
32043         not xmalloc. Return NULL upon out-of-memory.
32044         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32045         out-of-memory.
32046         (gl_tree_remove_node_from_tree): New function, extracted from
32047         gl_tree_remove_node.
32048         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32049         upon out-of-memory.
32050         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32051         out-of-memory.
32052         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32053         upon out-of-memory.
32054         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32055         upon out-of-memory.
32056         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32057         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
32058         gl_anytree_list1.h before gl_anyavltree_list2.h.
32059         (gl_avltree_list_implementation): Update.
32060         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
32061         gl_anytree_list1.h before gl_anyavltree_list2.h.
32062         (gl_rbtree_list_implementation): Update.
32063         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
32064         Change return type to 'int'. Return -1 upon out-of-memory. Use
32065         __builtin_expect.
32066         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
32067         (gl_avltreehash_list_implementation): Update.
32068         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
32069         (gl_rbtreehash_list_implementation): Update.
32070         * modules/array-list (Depends-on): Remove xalloc.
32071         * modules/carray-list (Depends-on): Likewise.
32072         * modules/linked-list (Depends-on): Likewise.
32073         * modules/linkedhash-list (Depends-on): Likewise.
32074         * modules/avltree-list (Depends-on): Likewise.
32075         * modules/rbtree-list (Depends-on): Likewise.
32076         * modules/avltreehash-list (Depends-on): Likewise.
32077         * modules/rbtreehash-list (Depends-on): Likewise.
32078
32079         * modules/xsublist: New file.
32080         * lib/gl_xsublist.h: New file.
32081         * lib/gl_xsublist.c: New file.
32082         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
32083         (gl_sublist_nx_create): New declaration.
32084         * lib/gl_sublist.c: Don't include xalloc.h.
32085         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
32086         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
32087         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
32088         Change return type to 'int'. Return -1 upon out-of-memory.
32089         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
32090         upon out-of-memory.
32091         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
32092         NULL upon out-of-memory.
32093         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
32094         upon out-of-memory.
32095         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
32096         NULL upon out-of-memory.
32097         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
32098         NULL upon out-of-memory.
32099         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
32100         upon out-of-memory.
32101         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
32102         (gl_sublist_list_implementation): Update.
32103         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
32104         upon out-of-memory.
32105         * modules/sublist (Depends-on): Remove xalloc.
32106
32107         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
32108         * tests/test-carray_list.c: Likewise.
32109         * tests/test-linked_list.c: Likewise.
32110         * tests/test-linkedhash_list.c: Likewise.
32111         * tests/test-avltree_list.c: Likewise.
32112         * tests/test-rbtree_list.c: Likewise.
32113         * tests/test-avltreehash_list.c: Likewise.
32114         * tests/test-rbtreehash_list.c: Likewise.
32115         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
32116         * modules/carray-list-tests (Makefile.am): Likewise.
32117         * modules/linked-list-tests (Makefile.am): Likewise.
32118         * modules/linkedhash-list-tests (Makefile.am): Likewise.
32119         * modules/avltree-list-tests (Makefile.am): Likewise.
32120         * modules/rbtree-list-tests (Makefile.am): Likewise.
32121         * modules/avltreehash-list-tests (Makefile.am): Likewise.
32122         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
32123
32124         * NEWS: Mention the changes.
32125
32126         * lib/clean-temp.c: Include gl_xlist.h.
32127         * modules/clean-temp (Depends-on): Add xlist.
32128
32129         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
32130         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
32131
32132         * tests/test-array_oset.c: Include gl_xlist.h.
32133         * modules/array-oset-tests (Depends-on): Add xlist.
32134
32135         Reported by José E. Marchesi <jemarch@gnu.org>.
32136
32137 2009-12-13  Bruno Haible  <bruno@clisp.org>
32138
32139         Move the malloc checking from module 'oset' to new module 'xoset'.
32140         * modules/xoset: New file.
32141         * lib/gl_xoset.h: New file.
32142         * lib/gl_xoset.c: New file.
32143         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
32144         declarations.
32145         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
32146         (struct gl_oset_implementation): Rename and change methods accordingly.
32147         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
32148         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32149         'int'. Mark as __warn_unused_result__.
32150         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
32151         gl_oset_create_empty.
32152         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32153         'int'.
32154         * lib/gl_array_oset.c: Don't include xalloc.h.
32155         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
32156         malloc, not xmalloc.
32157         (grow): Change return type to 'int'. Don't call xalloc_die.
32158         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
32159         to 'int'.
32160         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
32161         'int'.
32162         (gl_array_oset_implementation): Update.
32163         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
32164         gl_tree_create_empty.
32165         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
32166         'int'.
32167         * lib/gl_avltree_oset.c: Don't include xalloc.h.
32168         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32169         xmalloc.
32170         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32171         not xmalloc.
32172         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32173         xmalloc.
32174         (gl_avltree_oset_implementation): Update.
32175         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
32176         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32177         xmalloc.
32178         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32179         not xmalloc.
32180         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32181         xmalloc.
32182         (gl_rbtree_oset_implementation): Update.
32183         * modules/array-oset (Depends-on): Remove xalloc.
32184         * modules/avltree-oset (Depends-on): Likewise.
32185         * modules/rbtree-oset (Depends-on): Likewise.
32186         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
32187         * tests/test-avltree_oset.c: Likewise.
32188         * tests/test-rbtree_oset.c: Likewise.
32189         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
32190         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
32191         * modules/rbtree-oset-tests (Makefile.am): Likewise.
32192         * NEWS: Mention the change.
32193
32194 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
32195
32196         maint.mk: allow a project to override release-prep commands
32197         * top/maint.mk (alpha, beta, stable): Move release-preparatory
32198         commands into a new rule.
32199         (release-prep): New rule.
32200         (release-prep-hook): New overridable variable.
32201
32202 2009-12-13  Bruno Haible  <bruno@clisp.org>
32203
32204         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
32205
32206 2009-12-13  Jim Meyering  <meyering@redhat.com>
32207
32208         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
32209         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
32210
32211 2009-12-12  Bruno Haible  <bruno@clisp.org>
32212
32213         duplocale: Tweak.
32214         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
32215
32216 2009-12-12  Karl Berry  <karl@gnu.org>
32217
32218         * config/srclist.txt (strtoll.c): tab changes, no more sync.
32219
32220 2009-12-12  Bruno Haible  <bruno@clisp.org>
32221
32222         * m4/po.m4: Undo incorrect untabification.
32223
32224 2009-12-12  Bruno Haible  <bruno@clisp.org>
32225
32226         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
32227         * modules/c-strtod (Depends-on): Add locale.
32228         * modules/c-strtold (Depends-on): Likewise.
32229
32230 2009-12-12  Bruno Haible  <bruno@clisp.org>
32231
32232         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
32233
32234 2009-12-11  Eric Blake  <ebb9@byu.net>
32235
32236         setenv: relax requirement in light of POSIX ruling
32237         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
32238         not NULL.
32239         * tests/test-setenv.c (main): Relax test.
32240         * tests/test-unsetenv.c (main): Likewise.
32241         * doc/posix-functions/setenv.texi (setenv): Document this.
32242         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32243
32244 2009-12-11  Bruno Haible  <bruno@clisp.org>
32245
32246         New module 'fd-safer-flag'.
32247         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
32248         * lib/dup-safer.c (dup_safer_flag): Remove function.
32249         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
32250         * lib/fd-safer.c (fd_safer_flag): Remove function.
32251         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
32252         * modules/cloexec (configure.ac): Drop indicator macro.
32253         * modules/fd-safer-flag: New file.
32254         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
32255         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
32256         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
32257
32258 2009-12-11  Bruno Haible  <bruno@clisp.org>
32259
32260         Tests for module 'nl_langinfo'.
32261         * modules/nl_langinfo-tests: New file.
32262         * tests/test-nl_langinfo.sh: New file.
32263         * tests/test-nl_langinfo.c: New file.
32264
32265         New module 'nl_langinfo'.
32266         * lib/nl_langinfo.c: New file.
32267         * m4/nl_langinfo.m4: New file.
32268         * modules/nl_langinfo: New file.
32269         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
32270
32271 2009-12-11  Bruno Haible  <bruno@clisp.org>
32272
32273         Tests for module 'langinfo'.
32274         * modules/langinfo-tests: New file.
32275         * tests/test-langinfo.c: New file.
32276
32277         New module 'langinfo'.
32278         * lib/langinfo.in.h: New file.
32279         * m4/langinfo_h.m4: New file.
32280         * modules/langinfo: New file.
32281         * doc/posix-headers/langinfo.texi: Mention the new module.
32282
32283 2009-12-11  Bruno Haible  <bruno@clisp.org>
32284
32285         * lib/config.charset: Untabify.
32286
32287 2009-12-11  Bruno Haible  <bruno@clisp.org>
32288
32289         * modules/unistd-safer (configure.ac): Drop indicator macro.
32290
32291 2009-12-11  Bruno Haible  <bruno@clisp.org>
32292
32293         Move pipe2-safer code to its own file.
32294         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
32295         * lib/pipe-safer.c (pipe2_safer): Remove function.
32296         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
32297         (Makefile.am): Add it to lib_SOURCES.
32298
32299 2009-12-10  Bruno Haible  <bruno@clisp.org>
32300
32301         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
32302
32303 2009-12-10  Bruno Haible  <bruno@clisp.org>
32304
32305         Declare which arguments expect non-NULL values, for GCC and clang.
32306         * build-aux/arg-nonnull.h: New file.
32307         * modules/arg-nonnull: New file.
32308         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
32309         (inet_ntop, inet_pton): Use it.
32310         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
32311         (closedir, dirfd, opendir, scandir, alphasort): Use it.
32312         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
32313         (open, openat): Use it.
32314         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
32315         (fnmatch): Use it.
32316         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
32317         (getopt, getopt_long, getopt_long_only): Use it.
32318         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
32319         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
32320         Use it.
32321         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
32322         (iconv_open): Use it.
32323         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
32324         (strtoimax, strtoumax): Use it.
32325         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
32326         (duplocale): Use it.
32327         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
32328         (frexp, frexpl): Use it.
32329         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
32330         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
32331         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
32332         (tsearch, tfind, tdelete, twalk): Use it.
32333         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
32334         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32335         sigpending): Use it.
32336         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
32337         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32338         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32339         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32340         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32341         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32342         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32343         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32344         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32345         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32346         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32347         Use it.
32348         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
32349         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
32350         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
32351         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
32352         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
32353         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
32354         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
32355         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
32356         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
32357         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32358         strtoull, unsetenv): Use it.
32359         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32360         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32361         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32362         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32363         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32364         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32365         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32366         (strcasecmp, strncasecmp): Use it.
32367         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32368         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32369         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32370         rpl_setsockopt): Use it.
32371         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32372         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32373         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32374         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32375         (gettimeofday): Use it.
32376         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32377         (times): Use it.
32378         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32379         (uname): Use it.
32380         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32381         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32382         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32383         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32384         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32385         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32386         unlinkat, write): Use it.
32387         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32388         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32389         * lib/argv-iter.h: Include arg-nonnull.h.
32390         (_ATTRIBUTE_NONNULL_): Remove macro.
32391         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
32392         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
32393         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
32394         optimization.
32395         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
32396         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
32397         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
32398         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
32399         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
32400         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
32401         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
32402         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
32403         * modules/arpa_inet (Depends-on): Add arg-nonnull.
32404         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
32405         * modules/dirent (Depends-on): Add arg-nonnull.
32406         (Makefile.am): Insert arg-nonnull.h into dirent.h.
32407         * modules/fcntl-h (Depends-on): Add arg-nonnull.
32408         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
32409         * modules/fnmatch (Depends-on): Add arg-nonnull.
32410         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
32411         * modules/getopt-posix (Depends-on): Add arg-nonnull.
32412         (Makefile.am): Insert arg-nonnull.h into getopt.h.
32413         * modules/glob (Depends-on): Add arg-nonnull.
32414         (Makefile.am): Insert arg-nonnull.h into glob.h.
32415         * modules/iconv_open (Depends-on): Add arg-nonnull.
32416         (Makefile.am): Insert arg-nonnull.h into iconv.h.
32417         * modules/inttypes (Depends-on): Add arg-nonnull.
32418         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
32419         * modules/locale (Depends-on): Add arg-nonnull.
32420         (Makefile.am): Insert arg-nonnull.h into locale.h.
32421         * modules/math (Depends-on): Add arg-nonnull.
32422         (Makefile.am): Insert arg-nonnull.h into math.h.
32423         * modules/netdb (Depends-on): Add arg-nonnull.
32424         (Makefile.am): Insert arg-nonnull.h into netdb.h.
32425         * modules/search (Depends-on): Add arg-nonnull.
32426         (Makefile.am): Insert arg-nonnull.h into search.h.
32427         * modules/signal (Depends-on): Add arg-nonnull.
32428         (Makefile.am): Insert arg-nonnull.h into signal.h.
32429         * modules/spawn (Depends-on): Add arg-nonnull.
32430         (Makefile.am): Insert arg-nonnull.h into spawn.h.
32431         * modules/stdio (Depends-on): Add arg-nonnull.
32432         (Makefile.am): Insert arg-nonnull.h into stdio.h.
32433         * modules/stdlib (Depends-on): Add arg-nonnull.
32434         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
32435         * modules/string (Depends-on): Add arg-nonnull.
32436         (Makefile.am): Insert arg-nonnull.h into string.h.
32437         * modules/strings (Depends-on): Add arg-nonnull.
32438         (Makefile.am): Insert arg-nonnull.h into strings.h.
32439         * modules/sys_socket (Depends-on): Add arg-nonnull.
32440         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
32441         * modules/sys_stat (Depends-on): Add arg-nonnull.
32442         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
32443         * modules/sys_time (Depends-on): Add arg-nonnull.
32444         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
32445         * modules/sys_times (Depends-on): Add arg-nonnull.
32446         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
32447         * modules/sys_utsname (Depends-on): Add arg-nonnull.
32448         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
32449         * modules/time (Depends-on): Add arg-nonnull.
32450         (Makefile.am): Insert arg-nonnull.h into time.h.
32451         * modules/unistd (Depends-on): Add arg-nonnull.
32452         (Makefile.am): Insert arg-nonnull.h into unistd.h.
32453         * modules/wchar (Depends-on): Add arg-nonnull.
32454         (Makefile.am): Insert arg-nonnull.h into wchar.h.
32455         * modules/argv-iter (Depends-on): Add arg-nonnull.
32456         * tests/test-canonicalize.c (null_ptr): New function.
32457         (main): Use it.
32458         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
32459         (main): Use it.
32460         * tests/test-memmem.c (null_ptr): New function.
32461         (main): Use it.
32462         Reported by Jim Meyering.
32463
32464 2009-12-10  Bruno Haible  <bruno@clisp.org>
32465
32466         Use spaces for indentation, not tabs.
32467         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32468         * m4/*.m4: Untabify.
32469         * build-aux/*.h: Untabify.
32470         * tests/**/*.[hc]: Untabify.
32471         * README: New section "Indent with spaces, not TABs", based on
32472         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32473         * NEWS: Mention the change.
32474
32475 2009-12-10  Bruno Haible  <bruno@clisp.org>
32476
32477         pty test: Fix link error.
32478         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32479         test_pty_LDADD.
32480
32481 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32482
32483         * modules/pty: New file.
32484         * modules/pty-tests: New file.
32485         * m4/pty.m4: New file.
32486         * tests/test-pty.c: New file.
32487         * doc/glibc-headers/pty.texi: Modified.
32488         * doc/glibc-functions/forkpty.texi: Modified.
32489         * doc/glibc-functions/openpty.texi: Modified.
32490
32491 2009-12-10  Bruno Haible  <bruno@clisp.org>
32492
32493         Avoid syntax error in C++ mode.
32494         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32495
32496 2009-12-10  Bruno Haible  <bruno@clisp.org>
32497
32498         Use sed with option -e.
32499         * gnulib-tool (func_version, func_emit_copyright_notice,
32500         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32501         option -e to sed.
32502         * modules/link-warning (Makefile.am): Likewise.
32503
32504 2009-12-10  Jim Meyering  <meyering@redhat.com>
32505
32506         mgetgroups: do not write bytes beyond end of malloc'd buffer
32507         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32508         username, we call getgroups with a one-element-shorter buffer,
32509         but still told it the length was original, max_n_groups.
32510
32511 2009-12-09  Eric Blake  <ebb9@byu.net>
32512
32513         cloexec: relax license
32514         * modules/cloexec (Maintainer): Add myself.
32515         (License): Use LGPL, not GPL.
32516
32517         link-warning: optimize generation
32518         * modules/link-warning (Makefile.am): Reduce process usage.
32519
32520 2009-12-09  Bruno Haible  <bruno@clisp.org>
32521
32522         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32523         workaround was added on 2009-11-17.
32524
32525 2009-12-09  Jim Meyering  <meyering@redhat.com>
32526             Bruno Haible  <bruno@clisp.org>
32527
32528         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32529         * modules/link-warning (Makefile.am): Make the comment-removing sed
32530         command more robust in the face of bootstrap-prepended comment lines.
32531
32532 2009-12-09  Bruno Haible  <bruno@clisp.org>
32533
32534         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32535         most one group.
32536
32537 2009-12-09  Simon Josefsson <simon@josefsson.org>
32538             Bruno Haible  <bruno@clisp.org>
32539
32540         * build-aux/link-warning.h: Add copyright notice.
32541         * modules/link-warning (Makefile.am): Generate link-warning.h from
32542         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32543         * NEWS: Mention change in link-warning module.
32544         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32545         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32546         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32547         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32548         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32549         * modules/math (Makefile.am): Add dependency to math.h.
32550         * modules/search (Makefile.am): Add dependency to search.h.
32551         * modules/signal (Makefile.am): Add dependency to signal.h.
32552         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32553         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32554         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32555         * modules/string (Makefile.am): Add dependency to string.h.
32556         * modules/strings (Makefile.am): Add dependency to strings.h.
32557         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32558         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32559         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32560         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32561         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32562         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32563         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32564         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32565         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32566
32567 2009-12-09  Bruno Haible  <bruno@clisp.org>
32568
32569         fchdir: Optimize away rpl_fstat when possible.
32570         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32571         REPLACE_OPEN_DIRECTORY.
32572         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32573
32574 2009-12-09  Bruno Haible  <bruno@clisp.org>
32575
32576         * lib/fchdir.c: Update comment.
32577
32578 2009-12-09  Bruno Haible  <bruno@clisp.org>
32579
32580         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32581
32582 2009-12-08  Eric Blake  <ebb9@byu.net>
32583
32584         fchdir: avoid memory leak on re-registration.
32585         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32586
32587 2009-12-08  Jim Meyering  <meyering@redhat.com>
32588
32589         init.sh: avoid Solaris 10 /bin/sh portability problem
32590         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32591         sourced script:
32592           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32593           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32594           bar
32595         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32596         and two tests used that idiom.
32597         * tests/init.sh: Update suggested usage comments.
32598         (path_prepend_): New function, to be used in place
32599         of the --src-path=DIR option.
32600         (setup_): Move PATH-prepending code into path_prepend_.
32601         * tests/test-pread.sh: Adapt to new usage.
32602         * tests/test-xalloc-die.sh: Likewise.
32603
32604 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32605
32606         * doc/gnulib.texi (Glibc pty.h): Add.
32607         * doc/glibc-functions/forkpty.texi: Add.
32608         * doc/glibc-functions/openpty.texi: Add.
32609         Suggested by Bruno Haible.
32610
32611 2009-12-08  Eric Blake  <ebb9@byu.net>
32612
32613         fchdir: fix logic bugs
32614         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32615         * tests/test-fchdir.c (main): Enhance test.
32616         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32617         is in use.
32618
32619         dup2: fix logic bugs
32620         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32621         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32622         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32623         exists.
32624         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32625
32626 2009-12-07  Eric Blake  <ebb9@byu.net>
32627
32628         unlink: fix m4 detection
32629         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32630
32631         unistd-safer: add unit test
32632         * modules/unistd-safer-tests: New file.
32633         * tests/test-dup-safer.c: Likewise.
32634         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32635         * tests/test-dup2.c (setmode): Likewise.
32636         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32637
32638         cloexec: preserve text vs. binary across dup_cloexec
32639         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32640         mode.
32641         * modules/dup2-tests (Depends-on): Add binary-io.
32642         * modules/cloexec-tests (Depends-on): Likewise.
32643         * tests/test-dup2.c (setmode, is_mode): New helpers.
32644         (main): Add tests that translation mode is preserved.
32645         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32646         Reported by Bruno Haible.
32647
32648         mgetgroups: reduce duplicate listings
32649         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32650         resulting array.
32651         * tests/test-chown.h (test_chown): Simplify client.
32652         * tests/test-lchown.h (test_lchown): Likewise.
32653
32654 2009-12-06  Bruno Haible  <bruno@clisp.org>
32655
32656         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32657         value.
32658
32659 2009-12-06  Bruno Haible  <bruno@clisp.org>
32660
32661         * lib/progname.c: Include stdio.h, stdlib.h.
32662         (set_program_name): Reject a NULL argument.
32663
32664 2009-12-05  Eric Blake  <ebb9@byu.net>
32665
32666         pipe2-safer: new module
32667         * modules/pipe2-safer: New file.
32668         * lib/unistd-safer.h (pipe2_safer): New prototype.
32669         * lib/unistd--.h (pipe2): New wrapper.
32670         * lib/pipe-safer.c (pipe2_safer): New function.
32671         * modules/pipe (Depends-on): Add pipe2-safer.
32672         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32673
32674         stdlib-safer: preserve cloexec flag for mkostemp[s]
32675         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32676         fd_safer_flag.
32677
32678         unistd-safer: allow preservation of cloexec status via flag
32679         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32680         prototypes.
32681         * lib/dup-safer.c (dup_safer_flag): New function.
32682         * lib/fd-safer.c (fd_safer_flag): Likewise.
32683         * modules/cloexec (configure.ac): Set witness.
32684
32685         test-dup2: enhance test
32686         * modules/dup2-tests (Depends-on): Add cloexec.
32687         * tests/test-dup2.c (main): Enhance test.
32688
32689         cloexec: add dup_cloexec
32690         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32691         header and comments.
32692         * lib/cloexec.c (set_cloexec_flag): Add comments.
32693         (dup_cloexec): New function, with mingw implementation borrowed
32694         from...
32695         * lib/w32spawn.h (dup_noinherit): ...here.
32696         * modules/execute (Depends-on): Add cloexec.
32697         * modules/pipe (Depends-on): Likewise.
32698         * modules/cloexec (Depends-on): Add dup2.
32699         * modules/cloexec-tests (Files): New file.
32700         * tests/test-cloexec.c: Likewise.
32701
32702         test-xalloc-die: fix test for mingw
32703         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32704         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32705         directory and .exe suffix off argv[0] output.
32706
32707         test-fseeko: fix test for mingw
32708         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32709         than undefining fseek, so test will pass on mingw.
32710
32711 2009-12-05  Bruno Haible  <bruno@clisp.org>
32712
32713         * lib/progname.h (set_program_name): Clarify specification.
32714         * lib/progname.c (set_program_name): Likewise.
32715         Reported by Jim Meyering.
32716
32717 2009-12-05  Jim Meyering  <meyering@redhat.com>
32718
32719         maint.mk: backslash-escape parens in default regexp
32720         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32721         backslash-escape the literal parentheses.
32722
32723         maint.mk: news-date-check: use grep -E
32724         * top/maint.mk (today): Define a Make variable, not a...
32725         (news-date-check): ...shell variable.
32726         (news-date-regexp): Use the Make variable.
32727         Use grep's -E option.  Change the failing diagnostic to mention
32728         the variable, $(news-date-regexp).
32729
32730 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32731
32732         maintainer-makefile: allow customization of NEWS entry format
32733         * top/maint.mk (news-date-regexp): New overridable variable.
32734         (news-date-check): Use it.
32735
32736 2009-12-04  Eric Blake  <ebb9@byu.net>
32737
32738         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32739         * lib/mgetgroups.h (xgetgroups): New prototype.
32740         * lib/mgetgroups.c (xgetgroups): New wrapper.
32741         (mgetgroups): Handle ENOSYS.
32742         * modules/mgetgroups (Depends-on): Add realloc.
32743         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32744
32745         mgetgroups: avoid argument promotion issues with -1
32746         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32747         for invalid gid_t.
32748         * tests/test-chown.h (getegid, test_chown): Likewise.
32749         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32750
32751 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32752
32753         exclude: Fix header file problems.
32754         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32755
32756 2009-12-01  Jim Meyering  <meyering@redhat.com>
32757
32758         fts: fts_open: do not let an empty string cause immediate failure
32759         This is required in support of GNU rm, for which the command
32760         "rm A '' B" must process and remove both A and B, in spite of
32761         the empty string argument.
32762         * lib/fts.c (fts_open): Do not let the presence of an empty string
32763         cause fts_open to fail immediately.  Most fts-using tools must be
32764         able to process all arguments, in order, and can be expected to
32765         diagnose such arguments themselves.
32766
32767 2009-11-30  Eric Blake  <ebb9@byu.net>
32768
32769         utimens: fix compilation error
32770         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32771         Declare variable at right scope.
32772
32773 2009-11-29  Jim Meyering  <meyering@redhat.com>
32774
32775         bootstrap: handle perl-5.11's changed --version output
32776         * build-aux/bootstrap (get_version): Handle perl separately,
32777         since perl-5.11's --version output is different.
32778
32779 2009-11-28  Jim Meyering  <meyering@redhat.com>
32780
32781         userspec: depend on the inttostr module, too
32782         * modules/userspec (Depends-on): Add inttostr.
32783
32784         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32785         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32786         number of MAXUID when it evaluates to (uid_t) -1.
32787         Likewise for group ID.  Reported by Matt McCutchen in
32788         <http://savannah.gnu.org/bugs/?28113>
32789
32790         userspec: reformat to use spaces, not TABs
32791         * lib/userspec.c: Expand TABs to spaces.
32792         Add Emacs' "indent-tabs-mode: nil" hint.
32793
32794 2009-11-27  Eric Blake  <ebb9@byu.net>
32795
32796         getopt-gnu: flush out another BSD bug
32797         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32798         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32799         flush out BSD bug.
32800         * tests/test-getopt.h (test_getopt): End lists with NULL.
32801         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32802         (test_getopt_long_posix): Enhance test.
32803         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32804         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32805         getopt-gnu.
32806         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32807         Likewise.
32808
32809 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32810
32811         * modules/idpriv-droptemp-tests (Notice): Fix text.
32812
32813 2009-11-27  Jim Meyering  <meyering@redhat.com>
32814
32815         test-xalloc-die: avoid spurious failure due to libtool argv difference
32816         In a libtool-enabled project, this test would fail due to a difference
32817         in the emitted program name, e.g.,
32818         -test-xalloc-die: memory exhausted
32819         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32820         Use program to avoid that.
32821         * modules/xalloc-die-tests (Depends-on): Add progname.
32822         * tests/test-xalloc-die.c: Include progname.h".
32823         (program_name): Remove decl.
32824         (main): Call set_program_name.
32825         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32826
32827 2009-11-26  Richard Jones  <rjones@redhat.com>
32828
32829         w32sock: leave win32 error in place.
32830         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32831
32832 2009-11-26  Eric Blake  <ebb9@byu.net>
32833
32834         init.sh: suggest to use skip_ and fail_ functions in comments
32835         * tests/init.sh: Add a sentence.
32836
32837 2009-11-25  Bruno Haible  <bruno@clisp.org>
32838
32839         init.sh: add documentation in comments
32840         * tests/init.sh: Add some developer and user documentation.
32841
32842 2009-11-26  Jim Meyering  <meyering@redhat.com>
32843
32844         init.sh: accommodate even those who specify bogus srcdir manually
32845         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32846         configure-time tests to be sanitized, so that there is no need to
32847         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32848         (with no double quotes) suffices.  However, since tests may be
32849         invoked manually, and since you may explicitly set srcdir to the
32850         name of a directory containing spaces, do quote its uses here.
32851         * tests/test-pread.sh: Likewise.
32852         Suggested by Bruno Haible.
32853
32854         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32855         * tests/test-pread.sh: Write no data into the pipe, because
32856         test-pread actually reads none.  This avoids a diagnostic,
32857         "bash: echo: write error: Broken pipe", that arises in the unusual
32858         event something is ignoring SIGPIPE, and might be interpreted
32859         as some sort of failure.  Reported by Bruno Haible.
32860
32861 2009-11-25  Jim Meyering  <meyering@redhat.com>
32862
32863         test-pread: cover failure with ESPIPE and EINVAL
32864         * tests/test-pread.c (main): Test for failure, too.
32865         * tests/test-pread.sh: Invoke with stdin on a pipe.
32866         Suggested by Eric Blake.
32867
32868         pread: improvement and fix
32869         * modules/pread (Depends-on): Depend on lseek, for portability to
32870         e.g., mingw.  Suggested by Eric Blake.
32871         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32872
32873         unistd.in.h: correct declaration of pread
32874         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32875         Reported by Richard W.M. Jones.
32876
32877         test-pread.sh: distribute the test script
32878         * modules/pread-tests (Files): Include test-pread.sh.
32879
32880         test-pread.sh: clean up
32881         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32882         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32883         That is unnecessary, since it's always ".".
32884         Suggestion from Eric Blake.
32885
32886         test-pread.sh: make executable
32887         * tests/test-pread.sh: Set executable bit.
32888         Reported by Eric Blake.
32889
32890         correct typo in test-pread.sh
32891         * tests/test-pread.sh: Add #! line.
32892
32893         test pread
32894         * tests/test-pread.c: New file.
32895         * tests/test-pread.sh: Likewise.
32896         * modules/pread-tests: Likewise.
32897
32898         pread: new module
32899         * modules/pread: New file.
32900         * lib/unistd.in.h (pread): Define/declare.
32901         * lib/pread.c (pread): New file.
32902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32903         * modules/unistd (Makefile.am): Substitute witnesses.
32904         * doc/posix-functions/pread.texi (pread): Update.
32905         * MODULES.html.sh: Add pread.
32906
32907 2009-11-25  Jim Meyering  <meyering@redhat.com>
32908
32909         tests/init.sh: new file to be used via most *.sh tests
32910         * tests/init.sh: New file.
32911
32912 2009-11-25  Eric Blake  <ebb9@byu.net>
32913
32914         utimens: work around older Linux failure with symlinks
32915         * lib/utimens.c (lutimensat_works_really): New variable.
32916         (fdutimens, lutimens): Use it to manage kernels that support
32917         nanosecond times on files, but not on symlinks.
32918         Reported by Ondřej Vašík.
32919
32920         utimes: fix configure grammar
32921         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32922
32923 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32924
32925         regex: Fix fastmap for multibyte character ranges.
32926         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32927         characters when a multibyte character range is included.
32928
32929 2009-11-22  Andy Wingo  <wingo@pobox.com>
32930
32931         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32932         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32933
32934 2009-11-24  Bruno Haible  <bruno@clisp.org>
32935
32936         doc: Most *_l functions exist in MacOS X 10.5.
32937         * doc/posix-functions/duplocale.texi: Update platforms list.
32938         * doc/posix-functions/freelocale.texi: Likewise.
32939         * doc/posix-functions/newlocale.texi: Likewise.
32940         * doc/posix-functions/uselocale.texi: Likewise.
32941         * doc/posix-functions/isalnum_l.texi: Likewise.
32942         * doc/posix-functions/isalpha_l.texi: Likewise.
32943         * doc/posix-functions/isblank_l.texi: Likewise.
32944         * doc/posix-functions/iscntrl_l.texi: Likewise.
32945         * doc/posix-functions/isdigit_l.texi: Likewise.
32946         * doc/posix-functions/isgraph_l.texi: Likewise.
32947         * doc/posix-functions/islower_l.texi: Likewise.
32948         * doc/posix-functions/isprint_l.texi: Likewise.
32949         * doc/posix-functions/ispunct_l.texi: Likewise.
32950         * doc/posix-functions/isspace_l.texi: Likewise.
32951         * doc/posix-functions/isupper_l.texi: Likewise.
32952         * doc/posix-functions/iswalnum_l.texi: Likewise.
32953         * doc/posix-functions/iswalpha_l.texi: Likewise.
32954         * doc/posix-functions/iswblank_l.texi: Likewise.
32955         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32956         * doc/posix-functions/iswctype_l.texi: Likewise.
32957         * doc/posix-functions/iswdigit_l.texi: Likewise.
32958         * doc/posix-functions/iswgraph_l.texi: Likewise.
32959         * doc/posix-functions/iswlower_l.texi: Likewise.
32960         * doc/posix-functions/iswprint_l.texi: Likewise.
32961         * doc/posix-functions/iswpunct_l.texi: Likewise.
32962         * doc/posix-functions/iswspace_l.texi: Likewise.
32963         * doc/posix-functions/iswupper_l.texi: Likewise.
32964         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32965         * doc/posix-functions/isxdigit_l.texi: Likewise.
32966         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32967         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32968         * doc/posix-functions/strcoll_l.texi: Likewise.
32969         * doc/posix-functions/strfmon_l.texi: Likewise.
32970         * doc/posix-functions/strftime_l.texi: Likewise.
32971         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32972         * doc/posix-functions/strxfrm_l.texi: Likewise.
32973         * doc/posix-functions/tolower_l.texi: Likewise.
32974         * doc/posix-functions/toupper_l.texi: Likewise.
32975         * doc/posix-functions/towctrans_l.texi: Likewise.
32976         * doc/posix-functions/towlower_l.texi: Likewise.
32977         * doc/posix-functions/towupper_l.texi: Likewise.
32978         * doc/posix-functions/wcscoll_l.texi: Likewise.
32979         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32980         * doc/posix-functions/wctrans_l.texi: Likewise.
32981         * doc/posix-functions/wctype_l.texi: Likewise.
32982         * doc/glibc-functions/strptime_l.texi: Likewise.
32983         * doc/glibc-functions/strtod_l.texi: Likewise.
32984         * doc/glibc-functions/strtof_l.texi: Likewise.
32985         * doc/glibc-functions/strtol_l.texi: Likewise.
32986         * doc/glibc-functions/strtold_l.texi: Likewise.
32987         * doc/glibc-functions/strtoll_l.texi: Likewise.
32988         * doc/glibc-functions/strtoul_l.texi: Likewise.
32989         * doc/glibc-functions/strtoull_l.texi: Likewise.
32990         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32991         * doc/glibc-functions/wcstod_l.texi: Likewise.
32992         * doc/glibc-functions/wcstof_l.texi: Likewise.
32993         * doc/glibc-functions/wcstol_l.texi: Likewise.
32994         * doc/glibc-functions/wcstold_l.texi: Likewise.
32995         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32996         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32997         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32998
32999 2009-11-24  Bruno Haible  <bruno@clisp.org>
33000
33001         duplocale: Fix logic bug.
33002         * lib/duplocale.c: Don't include <langinfo.h>.
33003         (_NL_LOCALE_NAME): Remove macro.
33004         (rpl_duplocale): Use setlocale instead of nl_langinfo.
33005         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
33006
33007 2009-11-23  Jim Meyering  <meyering@redhat.com>
33008
33009         test-update-copyright: don't hard-code /usr/bin/perl
33010         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
33011         perl to print the current year.  Gilles Espinasse reported that
33012         the replaced use of perl was hard-coded as /usr/bin/perl.
33013
33014 2009-11-23  Bruno Haible  <bruno@clisp.org>
33015
33016         duplocale: Add support for glibc 2.3.x.
33017         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
33018
33019 2009-11-22  Bruno Haible  <bruno@clisp.org>
33020
33021         vasnprintf: Tiny optimization.
33022         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
33023         MacOS X.
33024
33025 2009-11-22  Bruno Haible  <bruno@clisp.org>
33026
33027         Tests for module 'duplocale'.
33028         * modules/duplocale-tests: New file.
33029         * tests/test-duplocale.c: New file.
33030
33031         New module 'duplocale'.
33032         * m4/duplocale.m4: New file.
33033         * lib/locale.in.h (duplocale): New declaration.
33034         * lib/duplocale.c: New file.
33035         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
33036         gl_LOCALE_H_DEFAULTS): New macros.
33037         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
33038         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
33039         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
33040         REPLACE_DUPLOCALE.
33041         * modules/duplocale: New file.
33042         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
33043
33044 2009-11-22  Bruno Haible  <bruno@clisp.org>
33045
33046         * modules/locale-tests (configure.ac): Test for newlocale function.
33047         * tests/test-locale.c: When the system has extended locale functions,
33048         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
33049
33050         locale: Make locale_t available when possible.
33051         * lib/locale.in.h: Include <xlocale.h> when it exists.
33052         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
33053         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
33054         * modules/locale (Depends-on): Add extensions.
33055         (Makefile.am): Also substitute HAVE_XLOCALE_H.
33056         * doc/posix-headers/locale.texi: Document the problem with locale_t.
33057
33058 2009-11-22  Bruno Haible  <bruno@clisp.org>
33059
33060         Add comments.
33061         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
33062         invocation.
33063         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33064         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33065         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33066
33067 2009-11-22  Bruno Haible  <bruno@clisp.org>
33068
33069         error: account for the possibility of freopen (stdout).
33070         * lib/error.c: Include <unistd.h>.
33071         (flush_stdout): New function, extracted from error and error_at_line.
33072         Determine stdout's fd dynamically.
33073         (error, error_at_line): Invoke flush_stdout.
33074         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
33075         * modules/error (Depends-on): Add unistd.
33076
33077 2009-11-22  Bruno Haible  <bruno@clisp.org>
33078
33079         diffseq: Add comment.
33080         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
33081
33082 2009-11-22  Jim Meyering  <meyering@redhat.com>
33083
33084         c-stack: avoid defining an unused static function
33085         * lib/c-stack.c (find_stack_direction): Do not define this function
33086         when it will not be used.
33087
33088         diffseq: avoid spurious gcc warnings
33089         * lib/diffseq.h (IF_LINT2): Define.
33090         (compareseq): Use it to initialize two members of "part".
33091         This avoids two used-uninitialized warnings.
33092
33093 2009-11-21  Jim Meyering  <meyering@redhat.com>
33094
33095         c-stack: avoid "ignoring return value of `write'" warning
33096         * lib/c-stack.c: Include "ignore-value.h".
33097         (die): Explicitly ignore each write return value.
33098         * modules/c-stack (Depends-on): Add ignore-value.
33099
33100 2009-11-21  Bruno Haible  <bruno@clisp.org>
33101
33102         diffseq: reduce scope of variable 'best'.
33103         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
33104         variable, earlier used for two different purposes.
33105
33106 2009-11-21  Jim Meyering  <meyering@redhat.com>
33107
33108         diffseq: remove useless assignment to "best"
33109         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
33110         assignment.  At that point "best" is already guaranteed to be zero.
33111
33112 2009-11-20  Eric Blake  <ebb9@byu.net>
33113
33114         build: mention ftp redirector in release announcements
33115         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
33116         values that used to come from cfg.mk; mention FTP redirect URL.
33117         * build-aux/announce-gen: Mention the mirror list.
33118         Suggested by Karl Berry.
33119
33120         nanosleep: improve port to mingw
33121         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
33122         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
33123         LIB_NANOSLEEP, but only when needed.
33124         * modules/select (Link): Document LIBSOCKET.
33125         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
33126         enough.
33127
33128         nanosleep: work around cygwin bug
33129         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
33130         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
33131         bug.
33132         (getnow): Delete, not needed.
33133         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
33134         LIB_CLOCK_GETTIME.
33135         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
33136         clock-time, gettime.
33137         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
33138         bug.
33139         * modules/nanosleep-tests: New test.
33140         * tests/test-nanosleep.c: New file.
33141
33142         sleep: work around cygwin bug
33143         * lib/sleep.c (rpl_sleep): Work around the bug.
33144         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
33145         (gl_PREREQ_SLEEP): Delete unused macro.
33146         * modules/sleep (Depends-on): Add verify.
33147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33148         * modules/unistd (Makefile.am): Substitute witness.
33149         * lib/unistd.in.h (sleep): Update prototype.
33150         * doc/posix-functions/sleep.texi (sleep): Document the bug.
33151         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
33152         * modules/sleep-tests (Depends-on): Check for alarm.
33153
33154 2009-11-20  Jim Meyering  <meyering@redhat.com>
33155
33156         maint.mk: improve sc_prohibit_magic_number_exit
33157         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
33158         so it does not match uses like System.exit(1).
33159         Add comments showing how to correct all offenders.
33160
33161 2009-11-19  Eric Blake  <ebb9@byu.net>
33162
33163         xalloc-die-tests: add missing library
33164         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
33165
33166         test-xvasprintf: silence compiler warnings
33167         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
33168         empty string from gcc.
33169
33170 2009-11-19  Jim Meyering  <meyering@redhat.com>
33171
33172         xfreopen: new module, from coreutils
33173         * modules/xfreopen: New module.
33174         * lib/xfreopen.c: New file.
33175         * lib/xfreopen.h: New file.
33176         * MODULES.html.sh (File stream based Input/Output"): Add it.
33177
33178 2009-11-19  Eric Blake  <ebb9@byu.net>
33179
33180         manywarnings: depend on warnings
33181         * modules/manywarnings (Depends-on): Add warnings.
33182
33183         build: avoid compiler warnings
33184         * lib/select.c (rpl_select): Delete unused variable.
33185         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
33186
33187 2009-11-18  Eric Blake  <ebb9@byu.net>
33188
33189         tests: avoid false negative with --with-packager
33190         * tests/test-version-etc.sh: Discard packager information.
33191         * tests/test-argp-version-etc-1.sh: Likewise.
33192         Reported by Mike Frysinger.
33193
33194         utimens: fix regression on Solaris
33195         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
33196         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
33197         can only change fd timestamps via futimesat.  Instead, use an
33198         additional witness macro to avoid BSD bug.
33199         Reported by Jim Meyering.
33200
33201 2009-11-17  Eric Blake  <ebb9@byu.net>
33202
33203         usleep: use it to simplify tests
33204         * modules/stat-time-tests (Depends-on): Add usleep.
33205         (configure.ac): Drop usleep check.
33206         * modules/chown-tests (Depends-on, configure.ac): Likewise.
33207         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
33208         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
33209         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
33210         * modules/openat-tests (Depends-on, configure.ac): Likewise.
33211         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
33212         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
33213         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
33214         Likewise.
33215         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
33216         * tests/test-lchown.h (nap): Likewise.
33217         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
33218         * tests/test-stat-time.c (nap): Likewise.
33219         * tests/test-utimens-common.h (nap): Update comments.
33220
33221         usleep: new module
33222         * modules/usleep: New file.
33223         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
33224         * lib/usleep.c (usleep): Likewise.
33225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33226         * modules/unistd (Makefile.am): Substitute witnesses.
33227         * lib/unistd.in.h (usleep): Add declaration.
33228         * doc/pastposix-functions/usleep.texi (usleep): Document this.
33229         * MODULES.html.sh (Date and time): Likewise.
33230         * modules/usleep-tests (Depends-on): New test.
33231         * tests/test-usleep.c: New file.
33232
33233         chown: work around OpenBSD bug
33234         * lib/chown.c (rpl_chown): Work around the bug.
33235         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
33236         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
33237         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
33238         * modules/chown (Depends-on): Add stdbool.
33239         * modules/lchown (Depends-on): Likewise.
33240         * doc/posix-functions/chown.texi (chown): Document the bug.
33241         * doc/posix-functions/lchown.texi (lchown): Likewise.
33242         * tests/test-lchown.h (test_chown): Relax test.
33243
33244         mkstemp: avoid conflict with C++ keyword template
33245         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
33246         * lib/mkostemp.c (mkostemp): Likewise.
33247         * lib/mkostemps.c (mkostemps): Likewise.
33248         * lib/mkstemp.c (mkstemp): Likewise.
33249         * lib/mkstemps.c (mkstemps): Likewise.
33250
33251         xalloc-die-tests: optimize
33252         * tests/test-xalloc-die.sh: Reduce number of processes.
33253
33254 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33255
33256         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
33257         patch from ludo@gnu.org (Ludovic Courtès).
33258
33259 2009-11-17  Jim Meyering  <meyering@redhat.com>
33260
33261         version-etc: use proper license string
33262         * modules/version-etc (License): Use LGPL, not LGPLv3+.
33263         * modules/version-etc-fsf: Likewise.
33264
33265 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33266
33267         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
33268         printed to stdout.  Deal with EOL differences.
33269
33270 2009-11-17  Eric Blake  <ebb9@byu.net>
33271
33272         unsetenv: work around Solaris bug
33273         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
33274         * lib/unsetenv.c (rpl_unsetenv): Work around it.
33275         Reported by Jim Meyering.
33276
33277         vasnprintf: avoid compiler warnings
33278         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
33279         variables.
33280         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
33281
33282 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33283
33284         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
33285         settings since xalloc-die is no longer the self test,
33286         xalloc-die.sh is.
33287
33288 2009-11-17  Jim Meyering  <meyering@redhat.com>
33289
33290         test-xalloc-die.sh: make the code agree with the commit log
33291         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
33292         at the end, just in case you happen to have a test-xalloc-die
33293         program in some other PATH directory.
33294
33295         test-xalloc-die.sh: fix a portability bug
33296         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
33297         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
33298         Otherwise, argv[0] (as often seen in diagnostics) would be too
33299         system-dependent, sometimes with, and sometimes without the leading "./".
33300
33301         version-etc-fsf: relax license to LGPLv3+
33302         * modules/version-etc-fsf (License): Relax license.
33303
33304 2009-11-16  Eric Blake  <ebb9@byu.net>
33305
33306         xalloc-die-tests: avoid printing null pointer
33307         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
33308         shell script.
33309         * tests/test-xalloc-die.c (program_name): Declare.
33310         * tests/test-xalloc-die.sh (tmpfiles): New file.
33311
33312         setenv, unsetenv: work around various bugs
33313         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
33314         (setenv) [HAVE_SETENV]: Work around bugs.
33315         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
33316         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
33317         for bugs.
33318         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
33319         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
33320         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
33321         * modules/stdlib (Makefile.am): Update substitutions.
33322         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
33323         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
33324         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33325         * modules/setenv-tests: New test.
33326         * modules/unsetenv-tests: Likewise.
33327         * tests/test-setenv.c: New file.
33328         * tests/test-unsetenv.c: Likewise.
33329
33330 2009-11-16  Jim Meyering  <meyering@redhat.com>
33331
33332         version-etc: relax license to LGPLv3+
33333         * modules/version-etc (License): Relax license.
33334
33335         better AC_REQUIRE expanded-before-required-warning avoidance
33336         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
33337         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
33338         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
33339         which is no longer needed.
33340
33341 2009-11-16  Eric Blake  <ebb9@byu.net>
33342
33343         test-freading: clean up temporary file
33344         * tests/test-freading.c (main): Remove file on success, and use
33345         ASSERT more liberally.
33346         Reported by Jim Meyering.
33347
33348 2009-11-16  Jim Meyering  <meyering@redhat.com>
33349
33350         avoid new AC_REQUIRE expanded-before-required warnings
33351         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
33352         merely using it.
33353         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
33354         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
33355
33356 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33357
33358         * tests/test-xalloc-die.c: New file.
33359         * modules/xalloc-die-tests: New file.
33360         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33361         XFAIL_TESTS so it can be appended by modules.
33362
33363 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33364
33365         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33366         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33367
33368 2009-11-14  Eric Blake  <ebb9@byu.net>
33369
33370         fnmatch: avoid compiler warning
33371         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33372         to silence compiler warning about mismatch signedness in ?:.
33373         Reported by Robert Millan.
33374
33375         intprops: add double-inclusion guard
33376         * lib/intprops.h: Allow idempotent includes.
33377         Suggested by Bruce Korb.
33378
33379         openat: detect Solaris fchownat bug
33380         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33381         penalizing glibc chownat when only lchownat is broken.
33382         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33383         trailing slash bugs.
33384         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33385         * modules/openat-tests (Files): Include more files.
33386         (Depends-on): Add mgetgroups, sleep, stat-time.
33387         (configure.ac): Add additional checks.
33388         (Makefile.am): Build new test.
33389         * tests/test-fchownat.c: New file.
33390
33391         lchown: detect Solaris and FreeBSD bug
33392         * lib/lchown.c (rpl_lchown): Work around bug.
33393         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
33394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33395         * modules/unistd (Makefile.am): Populate it.
33396         * lib/unistd.in.h (lchown): Update declaration.
33397         * doc/posix-functions/lchown.texi (lchown): Document the bug.
33398         * modules/lchown-tests: New file.
33399         * tests/test-lchown.h (test_lchown): Likewise.
33400         * tests/test-lchown.c (main): Likewise.
33401
33402         chown: detect Solaris and FreeBSD bug
33403         * lib/chown.c (rpl_chown): Work around bug.
33404         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
33405         (gl_PREREQ_CHOWN): Delete.
33406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33407         * modules/unistd (Makefile.am): Populate it.
33408         * lib/unistd.in.h (chown): Update declaration.
33409         * lib/lchown.c (chown): Update client.
33410         * modules/lchown (Depends-on): Add lstat.
33411         * doc/posix-functions/chown.texi (chown): Document the bug.
33412         * doc/posix-functions/getgroups.texi (getgroups): Document
33413         getgroups pitfall.
33414         * modules/chown-tests: New file.
33415         * tests/test-chown.h (test_chown): Likewise.
33416         * tests/test-chown.c (main): Likewise.
33417
33418 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
33419
33420         gnulib-tool: correctly detect absence of m4 directories
33421         * gnulib-tool: Avoid extra newline on data passed to wc -l.
33422
33423 2009-11-14  Jim Meyering  <meyering@redhat.com>
33424
33425         maint.mk: Prohibit inclusion of "xalloc.h" without use.
33426         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33427
33428 2009-11-14  John W. Eaton  <jwe@gnu.org>
33429
33430         strftime.h: wrap funtion declaration in extern "C" block
33431         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
33432
33433 2009-11-13  Eric Blake  <ebb9@byu.net>
33434
33435         getgroups: avoid compiler warning
33436         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
33437
33438         getgroups: work around FreeBSD bug
33439         * lib/getgroups.c (rpl_getgroups): Work around the bug.
33440         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
33441         * doc/posix-functions/getgroups.texi (getgroups): Document it.
33442         * tests/test-getgroups.c (main): Fix buffer overrun.
33443
33444         getgroups: avoid compilation failure
33445         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
33446         * modules/getgroups (Depends-on): Add stdint.
33447
33448 2009-11-13  Jim Meyering  <meyering@redhat.com>
33449
33450         test-getgroups: avoid compilation failure
33451         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
33452
33453 2009-11-13  Eric Blake  <ebb9@byu.net>
33454
33455         mgetgroups: new module, taken from coreutils
33456         * modules/mgetgroups: New file.
33457         * lib/mgetgroups.h: Likewise.
33458         * lib/mgetgroups.c (mgetgroups): Likewise.
33459         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
33460         * MODULES.html.sh (Users and groups): Mention it.
33461
33462         getgroups: don't expose GETGROUPS_T to user
33463         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
33464         an element at a time if GETGROUPS_T is wrong size.
33465         * lib/getugroups.h (getugroups): Change signature.
33466         * lib/unistd.in.h (getgroups): Likewise.
33467         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
33468         signature needs fixing.
33469         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
33470         AC_TYPE_GETGROUPS.
33471         * modules/group-member (Depends-on): Add getgroups.
33472         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33473         (group_member): Rely on getgroups replacement.
33474         * lib/getugroups.c (getugroups): Use gid_t.
33475         * tests/test-getgroups.c (main): Likewise.
33476         * NEWS: Mention the signature change.
33477         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33478         problem with signature.
33479         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33480         GETGROUPS_T is still useful for setgroups.
33481
33482         getgroups, getugroups: provide stubs for mingw
33483         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33484         * lib/getugroups.c (getugroups): Likewise.
33485         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33486         function.  Modernize replacement scheme.
33487         (gl_PREREQ_GETGROUPS): Delete.
33488         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33489         * modules/getgroups (configure.ac): Declare witness.
33490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33491         * modules/unistd (Depends-on): Substitute witness.
33492         * lib/unistd.in.h (getgroups): Declare replacement.
33493
33494         getgroups: avoid calling exit
33495         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33496         drop xalloc.
33497         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33498         dependencies.
33499         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33500         exiting, in the rare case of malloc failure.
33501
33502         getgroups: fix logic error
33503         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33504         has more than 20 groups.
33505         * modules/getgroups-tests: New test.
33506         * tests/test-getgroups.c: New file.
33507
33508 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33509
33510         * tests/test-base64.c: Improve.
33511
33512 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33513
33514         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33515         Blake <ebb9@byu.net>.
33516
33517 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33518
33519         * tests/test-xvasprintf.c: Add %s%s related checks.
33520
33521 2009-11-12  Eric Blake  <ebb9@byu.net>
33522
33523         version-etc: match standards.texi style
33524         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33525         and use <> only for URLs.
33526
33527 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33528
33529         fts: do not fail on a submount during traversal
33530         * lib/fts.c (fts_build): Read the stat info again after opening
33531         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33532         Original report at http://bugzilla.redhat.com/501848.
33533
33534 2009-11-12  Jim Meyering  <meyering@redhat.com>
33535
33536         bootstrap: sync from coreutils
33537         * build-aux/bootstrap (bootstrap_epilogue): New function.
33538         Use git_modules_config in one more place.  This make bootstrap's
33539         --gnulib-srcdir option more useful for testing.
33540
33541         bootstrap: generalize autoheader check
33542         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33543         AC_CONFIG_HEADERS.
33544
33545 2009-11-11  Eric Blake  <ebb9@byu.net>
33546
33547         mkfifoat: use new modules for Solaris and BSD bugs
33548         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33549         * lib/mkfifoat.c (mknodat): Split...
33550         * lib/mknodat.c (mknodat): ...into new file.
33551         * modules/mkfifoat (Files): Ship new file.
33552         (Depends-on): Add mkfifo, mknod.
33553         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33554         (Depends-on): Add symlink.
33555         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33556         redundant with test_mkfifo.h.
33557         (do_mkfifoat, do_mknodat): New helpers.
33558
33559         mknod: new module
33560         * modules/mknod: New file.
33561         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33562         * lib/mknod.c (mknod): Likewise.
33563         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33564         defaults.
33565         * modules/sys_stat (Makefile.am): Substitute them.
33566         * lib/sys_stat.in.h (mknod): Declare replacement.
33567         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33568         Document it.
33569         * doc/posix-functions/mknod.texi (mknod): Likewise.
33570         * modules/mknod-tests: New test.
33571         * tests/test-mknod.c: Likewise.
33572
33573         mkfifo: new module
33574         * modules/mkfifo: New file.
33575         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33576         * lib/mkfifo.c (mkfifo): Likewise.
33577         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33578         defaults.
33579         * modules/sys_stat (Makefile.am): Substitute them.
33580         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33581         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33582         Document it.
33583         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33584         * modules/mkfifo-tests: New test.
33585         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33586         from test-mkfifoat.c.
33587         * tests/test-mkfifo.c: New file.
33588
33589         readlink: detect FreeBSD bug
33590         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33591         slash on symlink.
33592         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33593         * tests/test-readlink.h (test_readlink): Enhance test.
33594
33595         symlink: detect FreeBSD bug
33596         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33597         slash on symlink.
33598         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33599         * tests/test-symlink.h (test_symlink): Enhance test.
33600
33601 2009-11-10  Eric Blake  <ebb9@byu.net>
33602
33603         link: detect FreeBSD bug
33604         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33605         symlink.
33606         * doc/posix-functions/link.texi (link): Document the bug.
33607         * tests/test-link.h (test_link): Enhance test.
33608         * tests/test-linkat.c (main): Update caller.
33609
33610         unlink, remove: detect FreeBSD bug
33611         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33612         slash on symlink.
33613         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33614         * doc/posix-functions/remove.texi (remove): Likewise.
33615         * tests/test-unlink.h (test_unlink): Enhance test.
33616         * tests/test-remove.c (main): Likewise.
33617
33618 2009-11-09  Eric Blake  <ebb9@byu.net>
33619
33620         rename: detect FreeBSD bug
33621         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33622         slash on symlink.
33623         * modules/renameat-tests (Depends-on): Add filenamecat.
33624         * tests/test-rename.h (test_rename): Allow one more errno.
33625         * tests/test-renameat.c (main): Likewise.
33626         * doc/posix-functions/rename.texi (rename): Document the bug.
33627
33628         open: detect FreeBSD bug
33629         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33630         symlink.
33631         * doc/posix-functions/open.texi (open): Document the bug.
33632         * doc/posix-functions/utimes.texi (utimes): Likewise.
33633         * tests/test-open.h (test_open): Add parameters, and test symlink
33634         handling.
33635         * tests/test-open.c (main): Adjust caller.
33636         * tests/test-fcntl-safer.c (main): Likewise.
33637         * modules/open-tests (Depends-on): Add stdbool, symlink.
33638         * modules/fcntl-safer-tests (Depends-on): Likewise.
33639         * tests/test-openat.c (main): Add test-open tests.
33640
33641         stat: detect FreeBSD bug
33642         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33643         symlink.
33644         * doc/posix-functions/stat.texi (stat): Document the bug.
33645         * tests/test-stat.h (test_stat_func): Add argument.
33646         * tests/test-stat.c (main): Adjust caller.
33647         * tests/test-fstatat.c (main): Likewise.
33648         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33649         Reported by Jim Meyering.
33650
33651 2009-11-09  James Youngman  <jay@gnu.org>
33652
33653         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33654         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33655
33656 2009-11-08  Jim Meyering  <meyering@redhat.com>
33657
33658         utimens: remove invalid futimesat call
33659         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33660         It used the file descriptor of the target file as the DIR_FD
33661         parameter and NULL as the file name.  That caused failure with
33662         errno == EFAULT on FreeBSD-8.0-rc2
33663
33664 2009-11-07  Eric Blake  <ebb9@byu.net>
33665
33666         fflush, freadseek: use fseeko, not fseek
33667         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33668         (clear_ungetc_buffer): Avoid potential problems on large files.
33669         * lib/freadseek.c (freadseek): Likewise.
33670         * modules/freadseek (Depends-on): Add fseeko.
33671         * modules/fseek (configure.ac): Set a witness.
33672         * tests/test-fflush.c (main): Use fseeko.
33673         * tests/test-fpurge.c (fseek): Disable link warning.
33674         * tests/test-freadable.c (fseek): Likewise.
33675         * tests/test-freading.c (fseek): Likewise.
33676         * tests/test-fseeko.c (fseek): Likewise.
33677         * tests/test-ftell.c (fseek): Likewise.
33678         * tests/test-ftello.c (fseek): Likewise.
33679         * tests/test-fwritable.c (fseek): Likewise.
33680         * tests/test-fwriting.c (fseek): Likewise.
33681
33682 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33683
33684         * modules/memchr (Depends-on): Drop getpagesize dependency.
33685
33686 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33687
33688         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33689         Reported by Ludovic Courtès.
33690         * build-aux/pmccabe2html: Improve example usage.
33691         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33692
33693 2009-11-06  Jim Meyering  <meyering@redhat.com>
33694
33695         do-release-commit-and-tag: New module.
33696         Automate the release-commit and tag process.
33697         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33698         * modules/do-release-commit-and-tag: New file.
33699         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33700
33701 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33702
33703         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33704         because test-select.c uses inet_pton.
33705
33706 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33707
33708         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33709         GETADDRINFO_LIB.  Bump serial number.
33710         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33711         Suggested by Eric Blake <ebb9@byu.net>.
33712
33713 2009-11-05  Eric Blake  <ebb9@byu.net>
33714
33715         strtod: detect darwin bug
33716         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33717         Reported by Leo Davis.
33718
33719         freopen-safer: new module
33720         * modules/freopen-safer: New module.
33721         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33722         * lib/freopen-safer.c (freopen_safer): New file.
33723         * lib/stdio-safer.h (freopen_safer): New declaration.
33724         * lib/stdio--.h (freopen): New override.
33725         * MODULES.html.sh (File stream based Input/Output): Mention it.
33726         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33727         freopen-safer module.
33728         * doc/posix-functions/stderr.texi (stderr): Likewise.
33729         * doc/posix-functions/stdin.texi (stdin): Likewise.
33730         * doc/posix-functions/stdout.texi (stdout): Likewise.
33731         * modules/freopen-safer-tests: New test.
33732         * tests/test-reopen-safer.c: New file.
33733
33734 2009-11-05  Jim Meyering  <meyering@redhat.com>
33735
33736         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33737         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33738
33739 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33740
33741         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33742
33743 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33744
33745         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33746
33747 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33748
33749         Fix link error.
33750         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33751         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33752
33753 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33754
33755         * tests/test-func.c: Also test value of __func__.
33756
33757 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33758
33759         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33760         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33761
33762 2009-11-05  Bruno Haible  <bruno@clisp.org>
33763
33764         Fix link error.
33765         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33766         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33767         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33768
33769 2009-11-05  Bruno Haible  <bruno@clisp.org>
33770
33771         Tests for module 'inet_pton'.
33772         * modules/inet_pton-tests: New file.
33773         * tests/test-inet_pton.c: New file.
33774
33775 2009-11-05  Bruno Haible  <bruno@clisp.org>
33776
33777         Tests for module 'inet_ntop'.
33778         * modules/inet_ntop-tests: New file.
33779         * tests/test-inet_ntop.c: New file.
33780
33781 2009-11-04  Eric Blake  <ebb9@byu.net>
33782
33783         stdlib-safer: wrap all mkstemp variants
33784         * modules/mkostemp (configure.ac): Set witness.
33785         * modules/mkostemps (configure.ac): Likewise.
33786         * modules/mkstemps (configure.ac): Likewise.
33787         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33788         (mkstemps_safer): Wrap more functions.
33789         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33790         wrapping.
33791         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33792         (mkstemps_safer): Implement the wrappers.
33793
33794         mkstemps, mkostemps: new modules
33795         * modules/mkostemps: New module.
33796         * modules/mkstemps: Likewise.
33797         * lib/mkostemps.c (mkostemps): New file.
33798         * lib/mkstemps.c (mkstemps): Likewise.
33799         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33800         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33801         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33802         * modules/stdlib (Makefile.am): Substitute them.
33803         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33804         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33805         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33806         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33807         * MODULES.html.sh (File system functions): Mention them.
33808
33809         tempname: resync from glibc
33810         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33811         same values for __GT_FILE as glibc.  Abort even when assertions
33812         are disabled.
33813         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33814         match its value otherwise.  Allow idempotent inclusion.
33815         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33816         * lib/mkostemp.c (mkostemp): Likewise.
33817         * lib/mkstemp.c (mkstemp): Likewise.
33818         * lib/tmpfile.c (tmpfile): Likewise.
33819         * NEWS: Document this.
33820
33821         utimens: fix use of futimens on older Linux
33822         * lib/utimens.c (fdutimens): Use updated, rather than original,
33823         timespec to avoid bug in older Linux kernel.
33824         Reported by Simon Josefsson.
33825
33826 2009-11-04  Bruno Haible  <bruno@clisp.org>
33827
33828         Make num_processors more flexible and consistent.
33829         * lib/nproc.h (enum nproc_query): New type.
33830         (num_processors): Add a 'query' argument.
33831         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33832         (num_processors): Add a 'query' argument. Test the value of the
33833         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33834         mingw, count the number of CPUs available for the current process.
33835         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33836         Check for sched_getaffinity and sched_getaffinity_np.
33837         * modules/nproc (Depends-on): Add c-ctype, extensions.
33838         * NEWS: Mention the change.
33839
33840 2009-11-03  Bruno Haible  <bruno@clisp.org>
33841
33842         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33843
33844 2009-11-03  Jim Meyering  <meyering@redhat.com>
33845
33846         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33847         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33848         if it is defined.
33849
33850 2009-11-02  Eric Blake  <ebb9@byu.net>
33851
33852         mktime, timegm: share common declaration
33853         * lib/mktime-internal.h: New file.
33854         * lib/mktime.c: Use it rather than open-coding a declaration.
33855         * lib/timegm.c: Likewise.
33856         * modules/mktime (Files): Ship it.
33857         * modules/timegm (Files): Likewise.
33858         Suggested by Bruno Haible.
33859
33860         test-update-copyright: update test to match script changes
33861         * tests/test-update-copyright.sh: Avoid hard-coding perl
33862         location.  Don't update *.bak created by earlier runs.
33863
33864 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33865             Simon Josefsson  <simon@josefsson.org>
33866             Bruno Haible  <bruno@clisp.org>
33867
33868         Fix link error on Solaris 8.
33869         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33870         also in libnsl. Define also INET_PTON_LIB.
33871         * modules/inet_pton (Link): New section.
33872
33873 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33874             Bruno Haible  <bruno@clisp.org>
33875
33876         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33877         * modules/inet_ntop (Link): New section.
33878         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33879
33880 2009-11-02  Eric Blake  <ebb9@byu.net>
33881
33882         maint: avoid compiler warnings in m4 macros
33883         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33884         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33885
33886 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33887
33888         * m4/pmccabe2html.m4: Remove file.
33889         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33890         function.  Change maintainer.
33891         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33892         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33893         Courtès).
33894
33895 2009-10-31  Eric Blake  <ebb9@byu.net>
33896
33897         fseeko: fix m4 regression
33898         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33899         regression from 2009-10-27.
33900         Reported by Ralf Wildenhues.
33901
33902 2009-10-31  Jim Meyering  <meyering@redhat.com>
33903
33904         inttostr: aesthetics and improved (compile-time) safety
33905         Define inttype_is_signed rather than inttype_is_unsigned,
33906         since the sole use is via "#if inttype_is_signed".
33907         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33908         inttype_is_unsigned.
33909         * lib/offtostr.c (inttype_is_signed): Likewise.
33910         * lib/uinttostr.c (inttype_is_signed): Likewise.
33911         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33912         * lib/inttostr.c (inttostr): Use verify to cross-check the
33913         inttype_is_signed value and the signedness of the actual type.
33914         * modules/inttostr (Depends-on): Add verify.
33915
33916 2009-10-30  Eric Blake  <ebb9@byu.net>
33917
33918         build: avoid compiler warnings
33919         * lib/fchmodat.c (lchmod): Mark unused variables.
33920         * lib/getopt.c (_getopt_initialize): Likewise.
33921         * lib/mktime.c (__mktime_internal): Provide prototype.
33922         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33923         older gcc that do not understand #pragma GCC diagnostic.
33924         * lib/uinttostr.c (inttype_is_unsigned): Define.
33925         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33926
33927 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33928
33929         stat: fix compilation on AIX
33930         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33931         only see struct stat64.
33932
33933 2009-10-30  Eric Blake  <ebb9@byu.net>
33934
33935         exclude: make more robust
33936         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33937         rather than masking a coding bug.
33938         Suggested by Bruno Haible.
33939
33940 2009-10-30  Jim Meyering  <meyering@redhat.com>
33941
33942         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33943         Rather than putting #!/usr/bin/perl on the first line,
33944         start with a variant of what's recommended by "man perlrun" that
33945         invokes the first "perl" program from your shell's search path.
33946         * build-aux/gitlog-to-changelog: Replace #!... as above.
33947         Add a "Local Variables" perl mode setting.
33948         Prompted by a patch from Ludovic Courtès.
33949         Improved by Eric Blake.
33950         * build-aux/useless-if-before-free: Likewise.
33951         * build-aux/announce-gen: Likewise.
33952         * build-aux/update-copyright: Likewise.
33953
33954 2009-10-29  Eric Blake  <ebb9@byu.net>
33955
33956         filenamecat-lgpl: adjust clients
33957         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33958         filenamecat.
33959         * modules/renameat (Depends-on): Likewise.
33960
33961         filenamecat: split into filenamecat-lgpl
33962         * modules/filenamecat-lgpl: New module.
33963         * modules/filenamecat (Files): Move library-safe files into
33964         filenamecat-lgpl.
33965         (Depends-on): Add filenamecat-lgpl.
33966         (configure.ac): Declare witness.
33967         * lib/filenamecat.h (file_name_concat): Only declare when using
33968         GPL module.
33969         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33970         Move...
33971         * lib/filenamecat-lgpl.c: ...into new file.
33972         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33973         (gl_FILE_NAME_CONCAT): Use it.
33974         * MODULES.html.sh (File system functions): Mention new module.
33975
33976         argp: avoid memory leak
33977         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33978         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33979         base_name, since the latter malloc()s and can call exit().
33980         Leak introduced 2006-07-03.
33981
33982         dirname-lgpl: adjust clients that don't need full dirname
33983         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33984         * modules/filenamecat (Depends-on): Likewise.
33985         * modules/linkat (Depends-on): Likewise.
33986         * modules/mkancesdirs (Depends-on): Likewise.
33987         * modules/mkdir (Depends-on): Likewise.
33988         * modules/openat (Depends-on): Likewise.
33989         * modules/savewd (Depends-on): Likewise.
33990         * modules/rename (Depends-on): Likewise.
33991         (License): Relax license.
33992         * modules/mkdir-tests (Depends-on): Drop progname.
33993         (Makefile.am): Delete unneeded LDADD.
33994         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33995
33996         dirname: split into dirname-lgpl
33997         * modules/dirname-lgpl: New module.
33998         * modules/dirname (Files): Move library-safe files into
33999         dirname-lgpl.
34000         (Depends-on): Add dirname-lgpl.
34001         (configure.ac): Declare witness.
34002         * modules/double-slash-root (License): Relax license.
34003         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
34004         module.
34005         * lib/dirname.c (dir_len, mdir_name): Move...
34006         * lib/dirname-lgpl.c: ...into new file.
34007         * lib/basename.c (last_component, base_len): Move...
34008         * lib/basename-lgpl.c: ...into new file.
34009         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
34010         (gl_DIRNAME): Use it.
34011         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
34012         Mention new module.
34013         * modules/dirname-tests (Depends-on): Add progname.
34014         * tests/test-dirname.c (program_name): Delete.
34015
34016         mkdir: make safe for libraries
34017         * modules/mkdir (Depends-on): Drop xalloc.
34018         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
34019         exit.
34020
34021         tests: avoid some compiler warnings
34022         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
34023         literals.
34024         * tests/test-memchr.c (main): Avoid type mismatch.
34025         * tests/test-arpa_inet.c (main): Avoid unused parameters.
34026         * tests/test-base64.c (main): Likewise.
34027         * tests/test-getdelim.c (main): Likewise.
34028         * tests/test-gethostname.c (main): Likewise.
34029         * tests/test-getline.c (main): Likewise.
34030         * tests/test-netinet_in.c (main): Likewise.
34031         * tests/test-select.c (open_server_socket, main): Likewise.
34032         * tests/test-select-stdin.c (main): Likewise.
34033         * tests/test-sockets.c (main): Likewise.
34034         * tests/test-strsignal.c (main): Likewise.
34035         * tests/test-sys_select.c (main): Likewise.
34036         * tests/test-sys_socket.c (main): Likewise.
34037         * tests/test-u64.c (main): Likewise.
34038         * tests/test-xfprintf-posix.c (main): Likewise.
34039         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
34040
34041         sockets: avoid compiler warning
34042         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
34043
34044         maint: detect usage(1) and other suspicious exits
34045         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
34046
34047 2009-10-29  Jim Meyering  <meyering@redhat.com>
34048
34049         timespec: long-to-int truncation could make timespec_cmp malfunction
34050         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
34051         a multiple of 2^32 nanoseconds as no difference.
34052
34053 2009-10-28  Jim Meyering  <meyering@redhat.com>
34054
34055         fprintftime: wrap macro code argument in "do {...} while(0)"
34056         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
34057         cpy macro must be a statement that can be followed by a semicolon.
34058         Now that the else clause contains a comment and is hence longer
34059         than one line, I require curly braces.  That in turn requires
34060         that we wrap this code block in the standard do...while(0).
34061
34062         fprintftime: remove stray semicolon from previous change
34063         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
34064
34065         fprintftime: avoid a warning about ignored fwrite return value
34066         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
34067         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
34068         that is unsafe.
34069         * modules/fprintftime (Depends-on): Add ignore-value.
34070
34071         exclude: avoid an unwarranted warning
34072         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
34073
34074 2009-10-27  Eric Blake  <ebb9@byu.net>
34075
34076         fseek: avoid compilation failure when fflush is replaced
34077         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
34078         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
34079         module is in use.
34080         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
34081         module is not in use; since REPLACE_FSEEK worked otherwise.
34082         (GNULIB_FTELLO): Likewise for ftell.
34083         Reported by Ian Beckwith and others.
34084
34085 2009-10-27  Bruno Haible  <bruno@clisp.org>
34086
34087         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
34088         Reported by Jim Meyering.
34089
34090 2009-10-27  Jim Meyering  <jim@meyering.net>
34091             Bruno Haible  <bruno@clisp.org>
34092
34093         Avoid warning despite dropping the return value of fwrite.
34094         * lib/unicodeio.c: Include ignore-value.h.
34095         (fwrite_success_callback): Explicitly ignore fwrite's return value.
34096         * modules/unicodeio (Depends-on): Add ignore-value.
34097
34098 2009-10-26  Eric Blake  <ebb9@byu.net>
34099
34100         areadlinkat: fix fallback path
34101         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
34102         pointer and zero.
34103
34104 2009-10-22  Pádraig Brady  <P@draigBrady.com>
34105
34106         Use a better IO block size for modern systems
34107         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
34108         * lib/md2.c: Likewise.
34109         * lib/md4.c: Likewise.
34110         * lib/md5.c: Likewise.
34111         * lib/sha1.c: Likewise.
34112         * lib/sha256.c: Likewise.
34113         * lib/sha512.c: Likewise.
34114
34115 2009-10-22  Eric Blake  <ebb9@byu.net>
34116
34117         tests: avoid several compiler warnings
34118         * tests/test-getcwd.c (main): Avoid buffer underflow.
34119         * tests/test-getdate.c (main): String literals are not safe with
34120         putenv, so use setenv.  Declare unused argument.
34121         * modules/getdate-tests (Depends-on): Add setenv.
34122         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
34123         problems with string literals in char *.
34124         * tests/test-hash.c (main): Avoid shadowing declaration.
34125         (insert_new): Treat string literals as char const *.
34126         * tests/test-getopt.h (test_getopt): Likewise.
34127         (getopt_loop): Alter types to minimize casting elsewhere.
34128         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
34129         (test_getopt_long_posix): Likewise.
34130         (do_getopt_long): Add wrapper to minimize casting.
34131         * tests/test-atexit.c (clear_temp_file): Use void.
34132         * tests/test-areadlink-with-size.c (main): Declare unused
34133         arguments.
34134         * tests/test-areadlink.c (main): Likewise.
34135         * tests/test-areadlinkat-with-size.c (main): Likewise.
34136         * tests/test-areadlinkat.c (main): Likewise.
34137         * tests/test-canonicalize-lgpl.c (main): Likewise.
34138         * tests/test-canonicalize.c (main): Likewise.
34139         * tests/test-dirent-safer.c (main): Likewise.
34140         * tests/test-dirname.c (main): Likewise.
34141         * tests/test-dup2.c (main): Likewise.
34142         * tests/test-fchdir.c (main): Likewise.
34143         * tests/test-fcntl-h.c (main): Likewise.
34144         * tests/test-fcntl-safer.c (main): Likewise.
34145         * tests/test-fdopendir.c (main): Likewise.
34146         * tests/test-fdutimensat.c (main): Likewise.
34147         * tests/test-fflush.c (main): Likewise.
34148         * tests/test-filenamecat.c (main): Likewise.
34149         * tests/test-filevercmp.c (main): Likewise.
34150         * tests/test-fopen-safer.c (main): Likewise.
34151         * tests/test-fopen.c (main): Likewise.
34152         * tests/test-fpending.c (main): Likewise.
34153         * tests/test-fpurge.c (main): Likewise.
34154         * tests/test-freading.c (main): Likewise.
34155         * tests/test-fstatat.c (main): Likewise.
34156         * tests/test-fsync.c (main): Likewise.
34157         * tests/test-futimens.c (main): Likewise.
34158         * tests/test-getndelim2.c (main): Likewise.
34159         * tests/test-gettimeofday.c (main): Likewise.
34160         * tests/test-getopt.c (main): Likewise.
34161         * tests/test-i-ring.c (main): Likewise.
34162         * tests/test-inttypes.c (main): Likewise.
34163         * tests/test-link.c (main): Likewise.
34164         * tests/test-lstat.c (main): Likewise.
34165         * tests/test-math.c (main): Likewise.
34166         * tests/test-md5.c (main): Likewise.
34167         * tests/test-memchr2.c (main): Likewise.
34168         * tests/test-memrchr.c (main): Likewise.
34169         * tests/test-mkdir.c (main): Likewise.
34170         * tests/test-mkdirat.c (main): Likewise.
34171         * tests/test-mkfifoat.c (main): Likewise.
34172         * tests/test-open.c (main): Likewise.
34173         * tests/test-openat-safer.c (main): Likewise.
34174         * tests/test-openat.c (main): Likewise.
34175         * tests/test-quotearg.c (main): Likewise.
34176         * tests/test-rawmemchr.c (main): Likewise.
34177         * tests/test-readlink.c (main): Likewise.
34178         * tests/test-remove.c (main): Likewise.
34179         * tests/test-rename.c (main): Likewise.
34180         * tests/test-renameat.c (main): Likewise.
34181         * tests/test-rmdir.c (main): Likewise.
34182         * tests/test-sha1.c (main): Likewise.
34183         * tests/test-signal.c (main): Likewise.
34184         * tests/test-sigaction.c (main): Likewise.
34185         * tests/test-stat.c (main): Likewise.
34186         * tests/test-stat-time.c (main): Likewise.
34187         * tests/test-stddef.c (main): Likewise.
34188         * tests/test-stdint.c (main): Likewise.
34189         * tests/test-stdio.c (main): Likewise.
34190         * tests/test-stdlib.c (main): Likewise.
34191         * tests/test-strchrnul.c (main): Likewise.
34192         * tests/test-strerror.c (main): Likewise.
34193         * tests/test-string.c (main): Likewise.
34194         * tests/test-strtod.c (main): Likewise.
34195         * tests/test-strverscmp.c (main): Likewise.
34196         * tests/test-symlink.c (main): Likewise.
34197         * tests/test-symlinkat.c (main): Likewise.
34198         * tests/test-sys_stat.c (main): Likewise.
34199         * tests/test-sys_time.c (main): Likewise.
34200         * tests/test-time.c (main): Likewise.
34201         * tests/test-unistd.c (main): Likewise.
34202         * tests/test-unlink.c (main): Likewise.
34203         * tests/test-unlinkat.c (main): Likewise.
34204         * tests/test-utimens.c (main): Likewise.
34205         * tests/test-utimensat.c (main): Likewise.
34206         * tests/test-version-etc.c (main): Likewise.
34207         * tests/test-wchar.c (main): Likewise.
34208         * tests/test-wctype.c (main): Likewise.
34209         * tests/test-xprintf-posix.c (main): Likewise.
34210         * tests/test-posixtm.c (main): Likewise.
34211         (STREQ): Delete unused macro.
34212         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
34213         shadowed variables.
34214         * tests/test-memchr.c (main): Likewise.
34215
34216 2009-10-21  Eric Blake  <ebb9@byu.net>
34217
34218         areadlinkat: avoid failure on older glibc
34219         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
34220         rather than mis-comparing 0 against FUNC_RESULT of char*.
34221
34222 2009-10-21  Bruno Haible  <bruno@clisp.org>
34223
34224         * modules/stpncpy (License): Relicense under LGPLv2+.
34225         Reported by David Lutterkort <lutter@redhat.com>.
34226
34227 2009-10-20  Eric Blake  <ebb9@byu.net>
34228
34229         utimensat: work around Solaris 9 bug
34230         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
34231         has trailing slash bugs.
34232         * tests/test-lutimens.h (test_lutimens): Enhance test.
34233         * tests/test-utimens.h (test_utimens): Likewise.
34234         * doc/posix-functions/utime.texi (utime): Enhance documentation.
34235         * doc/posix-functions/utimes.texi (utimes): Likewise.
34236         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34237         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
34238         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
34239         * doc/posix-functions/futimens.texi (futimens): Likewise.
34240
34241         fdutimensat: new module
34242         * modules/fdutimensat: New file.
34243         * lib/fdutimensat.c (fdutimensat): Likewise.
34244         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
34245         * MODULES.html.sh (File system functions): Mention module.
34246         * modules/fdutimensat-tests: New test.
34247         * tests/test-fdutimensat.c: Likewise.
34248
34249         doc: regenerate INSTALL
34250         * doc/INSTALL: Reflect recent autoconf update.
34251         * doc/INSTALL.ISO: Likewise.
34252         * doc/INSTALL.UTF-8: Likewise.
34253
34254 2009-10-20  Pádraig Brady  <P@draigBrady.com>
34255
34256         acl: warn if ACL support is not detected
34257         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
34258
34259 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
34260
34261         * lib/nproc.h: Add extern "C" block for C++.
34262
34263 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
34264             Bruno Haible  <bruno@clisp.org>
34265
34266         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
34267         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
34268         * doc/posix-functions/isalpha.texi: Likewise.
34269         * doc/posix-functions/isblank.texi: Likewise.
34270         * doc/posix-functions/iscntrl.texi: Likewise.
34271         * doc/posix-functions/isdigit.texi: Likewise.
34272         * doc/posix-functions/isgraph.texi: Likewise.
34273         * doc/posix-functions/islower.texi: Likewise.
34274         * doc/posix-functions/isprint.texi: Likewise.
34275         * doc/posix-functions/ispunct.texi: Likewise.
34276         * doc/posix-functions/isspace.texi: Likewise.
34277         * doc/posix-functions/isupper.texi: Likewise.
34278         * doc/posix-functions/isxdigit.texi: Likewise.
34279
34280 2009-10-18  Bruno Haible  <bruno@clisp.org>
34281
34282         Tests for module 'isblank'.
34283         * modules/isblank-tests: New file.
34284         * tests/test-isblank.c: New file.
34285
34286         New module 'isblank'.
34287         * lib/isblank.c: New file.
34288         * m4/isblank.m4: New file.
34289         * modules/isblank: New file.
34290         * doc/posix-functions/isblank.texi: Mention the new module.
34291
34292 2009-10-18  Bruno Haible  <bruno@clisp.org>
34293
34294         New module 'ctype'.
34295         * lib/ctype.in.h: New file.
34296         * m4/ctype.m4: New file.
34297         * modules/ctype: New file.
34298         * doc/posix-headers/ctype.texi: Mention the new module.
34299
34300 2009-10-18  Jim Meyering  <meyering@redhat.com>
34301
34302         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
34303         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
34304         right after its initialization, rather than farther down.
34305         Keeping these in close proximity makes it easier to ensure
34306         that each such variable is initialized.  E.g.,
34307
34308             LIB_CLOCK_GETTIME=
34309             AC_SUBST([LIB_CLOCK_GETTIME])
34310
34311         This change also increments these serial numbers.
34312         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
34313         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34314         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34315
34316 2009-10-18  Bruno Haible  <bruno@clisp.org>
34317
34318         Don't let environment variables perturb build.
34319         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
34320         (gl_PREREQ_GETHRXTIME): ... not here.
34321
34322 2009-10-18  Bruno Haible  <bruno@clisp.org>
34323
34324         Avoid symlink attack in localcharset module.
34325         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
34326         (O_NOFOLLOW): Define fallback.
34327         (get_charset_aliases): Don't open the file if it is a symbolic link.
34328         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
34329         gl_FCNTL_H.
34330         (gl_FCNTL_H): Require it.
34331         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
34332         * modules/localcharset (Files): Add m4/fcntl_h.m4.
34333         Reported by Fergal Glynn <fglynn@veracode.com>.
34334
34335 2009-10-18  Bruno Haible  <bruno@clisp.org>
34336
34337         Implement nproc for mingw.
34338         * lib/nproc.c: Include <windows.h>
34339         (num_processors): On native Windows platforms, try GetSystemInfo.
34340
34341 2009-10-18  Bruno Haible  <bruno@clisp.org>
34342
34343         Implement nproc for IRIX.
34344         * lib/nproc.c: Include <sys/sysmp.h>.
34345         (num_processors): On IRIX systems, try sysmp.
34346         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
34347
34348 2009-10-18  Bruno Haible  <bruno@clisp.org>
34349
34350         Implement nproc for HP-UX.
34351         * lib/nproc.c: Include <sys/pstat.h>
34352         (num_processors): On HP-UX systems, try pstat_getdynamic.
34353         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
34354         pstat_getdynamic.
34355
34356 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
34357             Bruno Haible  <bruno@clisp.org>
34358
34359         Implement nproc for NetBSD, OpenBSD.
34360         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34361         (ARRAY_SIZE): New macro.
34362         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34363         * m4/nproc.m4: New file.
34364         * modules/nproc (Files): Add m4/nproc.m4.
34365         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34366         (Makefile.am): Instead, augment lib_SOURCES.
34367
34368 2009-10-18  Bruno Haible  <bruno@clisp.org>
34369
34370         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34371         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34372         sys/param.h.
34373
34374 2009-10-16  Eric Blake  <ebb9@byu.net>
34375
34376         utimensat: new module
34377         * modules/utimensat: New file.
34378         * lib/utimensat.c (utimensat): Likewise.
34379         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34380         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34381         so we can work around Linux bugs.
34382         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34383         * modules/sys_stat (Makefile.am): Substitute them.
34384         * lib/sys_stat.in.h (utimensat): Declare it.
34385         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34386         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34387         * modules/utimensat-tests: New test.
34388         * tests/test-utimensat.c: Likewise.
34389
34390         utimens: let lutimens work on non-symlinks
34391         * lib/utimens.c (lutimens): Fall back to utimens rather than
34392         failing with ENOSYS, when file is not a symlink.
34393         (utimens): Reduce redirection.
34394         * tests/test-lutimens.h (test_lutimens): Update test to cover
34395         non-symlinks.
34396         * tests/test-utimens.h (test_utimens): Update test to cover
34397         symlinks.
34398         * tests/test-utimens.c (main): Update caller.
34399
34400         utimens: cache whether utimensat syscall works
34401         * lib/utimens.c (utimensat_works_really): New cache variable.
34402         (fdutimens, lutimens): Use it to avoid failing syscall.
34403
34404         test-stat-time, test-utimens: improve portability
34405         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
34406         ext4 on alpha, and for cygwin.
34407         * tests/test-utimens-common.h: New file.
34408         (nap): Factor delays into single function.
34409         * tests/test-lutimens.h (test_lutimens): Use new header.
34410         * tests/test-futimens.h (test_futimens): Likewise.
34411         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
34412         timestamps to occur from same machine, as was done previously for
34413         test_utimens.
34414         * modules/utimens-tests (Files): Ship new file.
34415         * modules/futimens-tests (Files): Likewise.
34416         Reported in part by Jim Meyering.
34417
34418         sys_stat: sort replacement declarations
34419         * lib/sys_stat.in.h: Sort declarations.
34420         * lib/futimens.c (futimens): Fix typo.
34421
34422 2009-10-15  Jim Meyering  <meyering@redhat.com>
34423
34424         don't let environment settings perturb build
34425         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
34426         could cause a configure-time and/or build-time malfunction.
34427         Typically, a configure-time function-in-library test is performed
34428         via code like this:
34429
34430           LIB_VAR=
34431           AC_SUBST([LIB_VAR])
34432           prefix_saved_LIBS=$LIBS
34433             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
34434                        [test "$ac_cv_search_FUNC" = "none required" ||
34435                         LIB_VAR=$ac_cv_search_FUNC])
34436           LIBS=$prefix_saved_LIBS
34437
34438         However, in each of the files affected by this change, the LIB_VAR=
34439         initialization was omitted.  Thus, when set in the environment, its
34440         value would propagate into generated Makefiles when FUNC is not found
34441         in LIB_NAME.
34442         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
34443         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34444         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34445
34446 2009-10-14  Eric Blake  <ebb9@byu.net>
34447
34448         fchdir: avoid infinite recursion in mingw
34449         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
34450         recursing.
34451
34452         test-stat-time: port to mingw
34453         * tests/test-stat-time.c (force_unlink): Return a value.
34454         (test_ctime) [W32]: Fix compilation error.
34455         (nap): Don't call usleep with too large an argument.  Use
34456         force_unlink.
34457         * doc/pastposix-functions/usleep.texi (usleep): Document the
34458         portability issue.
34459
34460 2009-10-13  Jim Meyering  <meyering@redhat.com>
34461
34462         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
34463         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
34464         * modules/pipe-filter-ii: Likewise.
34465         * modules/sys_socket-tests: Likewise.
34466         * modules/tsearch-tests: Likewise.
34467         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
34468         (check): Depend on it.
34469
34470 2009-10-12  Eric Blake  <ebb9@byu.net>
34471
34472         utimens-tests: port to NFS file systems
34473         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34474         comparisons to avoid spurious failures from timestamp drift
34475         between NFS machines.
34476
34477 2009-10-12  Eric Blake  <ebb9@byu.net>
34478
34479         stat-time-tests: minor cleanups
34480         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34481         * tests/test-stat-time.c (nap): Separate assignment from call.
34482         Suggested by Paolo Bonzini and Bruno Haible.
34483
34484         sys_stat: guarantee struct timespec
34485         * lib/sys_stat.in.h (includes): Always include <time.h>
34486         * modules/sys_stat (Depends-on): Add time.
34487         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34488         mode_t permission values.
34489         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34490         get at subsecond timestamps.
34491
34492 2009-10-10  Eric Blake  <ebb9@byu.net>
34493
34494         futimens: new module
34495         * modules/futimens: New file.
34496         * lib/futimens.c (futimens): Likewise.
34497         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34498         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34499         we can work around Linux bugs.
34500         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34501         * modules/sys_stat (Makefile.am): Substitute them.
34502         * lib/sys_stat.in.h (futimens): Declare it.
34503         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34504         * doc/posix-functions/futimens.texi (futimens): Likewise.
34505         * modules/futimens-tests: New test.
34506         * tests/test-futimens.c: Likewise.
34507
34508         utimens: introduce fdutimens
34509         * lib/utimens.h (fdutimens): New prototype.
34510         * lib/utimens.c (gl_futimens): Move guts...
34511         (fdutimens): ...to new interface.
34512         * tests/test-utimens.c (do_fdutimens): Use it.
34513
34514         utimens: add UTIME_NOW and UTIME_OMIT support
34515         * lib/utimens.c (validate_timespec, update_timespec): New helper
34516         functions.
34517         (gl_futimens, lutimens): Use them.
34518         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34519         stdbool, sys_stat.
34520         (Link): Mention resulting library dependency.
34521         * modules/utimecmp (Link): Likewise.
34522         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34523         (Makefile.am): Pick up library dependency.
34524         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34525         definition.
34526         * tests/test-sys_stat.c: Test the definitions.
34527         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34528         * NEWS: Document library dependency.
34529
34530         utimecmp: support symlink timestamps
34531         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34532         hashing when possible.  Use pathconf when available.
34533         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34534         * modules/utimecmp (Depends-on): Add lstat.
34535
34536         utimens: add lutimens interface
34537         * lib/utimens.c (lutimens): New function.
34538         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34539         * lib/utimens.h (lutimens): Declare new interface.
34540         * tests/test-utimens.c (main): Enhance test.
34541         * tests/test-lutimens.h (test_lutimens): New file.
34542         * modules/utimens-tests (Files): Distribute it.
34543         (Depends-on): Add symlink.
34544         (configure.ac): Check for usleep.
34545
34546         utimens: validate futimens usage
34547         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34548         fewer syscalls on failure later on.  Avoid compiler warning on
34549         mingw.
34550         * modules/utimens (Depends-on): Add dup2.
34551
34552         utimens: add test
34553         * modules/utimens-tests: New test.
34554         * tests/test-utimens.h: New file.
34555         * tests/test-futimens.h: Likewise.
34556         * tests/test-utimens.c: Likewise.
34557
34558         doc: mention timestamp portability issues
34559         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34560         instead.
34561         * doc/posix-functions/utime.texi (utime): Likewise.
34562         * doc/posix-functions/utimes.texi (utimes): Likewise.
34563         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34564         instead.
34565         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34566         module.
34567         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34568         Mention weakness with symlink timestamps.
34569         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34570         to utimensat/futimens instead.
34571         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34572
34573         test-dup2: enhance test
34574         * tests/test-dup2.c (main): Also check AT_FDCWD.
34575
34576         test-stat-time: avoid more spurious failures
34577         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34578         xfs; and avoid race if the two timestamps cross quantization edge.
34579
34580         relocatable: prefer 'file system' over 'filesystem'
34581         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34582         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34583         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34584         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34585         * lib/relocatable.c (compute_curr_prefix): Likewise.
34586
34587 2009-10-10  Jim Meyering  <meyering@redhat.com>
34588
34589         stat-time-tests: check for the usleep function
34590         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34591
34592 2009-10-10  Bruno Haible  <bruno@clisp.org>
34593
34594         * modules/xnanosleep: Put the Link section after the Include section.
34595
34596 2009-10-09  Eric Blake  <ebb9@byu.net>
34597
34598         dup2: work around FreeBSD 6.1 bug
34599         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34600         * doc/posix-functions/dup2.texi (dup2): Document it.
34601         Reported by Nelson H. F. Beebe and Jim Meyering.
34602
34603         test-stat-time: port to buggy NFS clients
34604         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34605         (test_ctime): Also skip test if mtime and ctime are skewed.
34606
34607         maint: prefer 'file system' over 'filesystem'
34608         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34609         * doc/posix-functions/lstat.texi (lstat): Likewise.
34610         * lib/file-has-acl.c (file_has_acl): Likewise.
34611         * lib/fwriteerror.c [TEST]: Likewise.
34612         * tests/test-areadlink.h (test_areadlink): Likewise.
34613         * tests/test-areadlinkat-with-size.c (main): Likewise.
34614         * tests/test-areadlinkat.c (main): Likewise.
34615         * tests/test-canonicalize-lgpl.c (main): Likewise.
34616         * tests/test-canonicalize.c (main): Likewise.
34617         * tests/test-fstatat.c (main): Likewise.
34618         * tests/test-linkat.c (main): Likewise.
34619         * tests/test-lstat.h (test_lstat_func): Likewise.
34620         * tests/test-mkdir.h (test_mkdir): Likewise.
34621         * tests/test-readlink.h (test_readlink): Likewise.
34622         * tests/test-remove.c (main): Likewise.
34623         * tests/test-rename.h (test_rename): Likewise.
34624         * tests/test-renameat.c (main): Likewise.
34625         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34626         * tests/test-symlink.h (test_symlink): Likewise.
34627         * tests/test-symlinkat.c (main): Likewise.
34628         * tests/test-unlink.h (test_unlink_func): Likewise.
34629         * tests/test-unlinkat.c (main): Likewise.
34630
34631         maint: make realtime library usage explicit
34632         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34633         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34634         * modules/settime (Link): Likewise.
34635         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34636
34637         test-stat-time: speed up execution
34638         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34639         warning on mingw.
34640         (nap): New helper function.
34641         (prepare_test): Use it to reduce sleep time.
34642         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34643         execution.
34644         * modules/stat-time-tests (configure.ac): Check for usleep.
34645
34646 2009-10-09  Jim Meyering  <meyering@redhat.com>
34647
34648         selinux-h: always use getfilecon wrappers
34649         * lib/getfilecon.c: New file.
34650         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34651         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34652         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34653         (fgetfilecon): Provide a stub.
34654         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34655         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34656         file unconditionally.
34657         When <selinux/selinux.h> is found, arrange to use wrappers.
34658         * modules/selinux-h (Files): Add getfilecon.c.
34659         (Makefile.am): Substitute include-next-related bits
34660         into the now-always-generated selinux/selinux.h file.
34661         * doc/glibc-functions/lgetfilecon.texi: New file.
34662         * doc/glibc-functions/fgetfilecon.texi: New file.
34663         * doc/glibc-functions/getfilecon.texi: New file.
34664         * doc/glibc-functions/getfilecon-desc.texi: New file.
34665         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34666         which to pull in the new files.
34667         * MODULES.html.sh (Misc): Add selinux-h.
34668
34669 2009-10-08  Jim Meyering  <meyering@redhat.com>
34670
34671         unistd: fix comment typo
34672         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34673
34674 2009-10-08  Eric Blake  <ebb9@byu.net>
34675
34676         areadlink: use SIZE_MAX consistently
34677         * modules/areadlink (Depends-on): Add stdint.
34678         * modules/areadlink-with-size (Depends-on): Likewise.
34679         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34680         gives NULL; drop sys/types, since unistd gives size_t; and add
34681         stdint for SIZE_MAX.
34682         (SIZE_MAX): Rely on headers.
34683         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34684         and add stdint.
34685         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34686         (SIZE_MAX): Likewise.
34687         (INITIAL_BUF_SIZE): Turn into enum.
34688         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34689
34690 2009-10-08  Jim Meyering  <meyering@redhat.com>
34691
34692         areadlinkat: avoid compilation failure
34693         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34694         Fix typo in comment.
34695
34696 2009-10-07  Eric Blake  <ebb9@byu.net>
34697
34698         areadlinkat-with-size: new module
34699         * modules/areadlinkat-with-size: New module.
34700         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34701         * lib/areadlink.h (areadlinkat): Declare it.
34702         * MODULES.html.sh (File system functions): Mention it.
34703         * modules/areadlinkat-with-size-tests: New test.
34704         * tests/test-areadlinkat-with-size.c: New file.
34705
34706         xreadlinkat: new module
34707         * modules/xreadlinkat: New module.
34708         * lib/xreadlinkat.c (xreadlinkat): New file.
34709         * lib/xreadlink.h (xreadlinkat): Declare it.
34710         * MODULES.html.sh (File system functions): Mention it.
34711
34712         areadlinkat: new module
34713         * lib/at-func.c (FUNC_FAIL): New define.
34714         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34715         * modules/areadlinkat: New module.
34716         * lib/linkat.c (areadlinkat): Move...
34717         * lib/areadlinkat.c (areadlinkat): ...to new file.
34718         * lib/areadlink.h (areadlinkat): Declare it.
34719         * modules/linkat (Depends-on): Add areadlinkat.
34720         * MODULES.html.sh (File system functions): Mention it.
34721         * modules/areadlinkat-tests: New test.
34722         * tests/test-areadlinkat.c: New file.
34723
34724         areadlink, areadlink-with-size: add tests
34725         * modules/areadlink-tests: New test.
34726         * modules/areadlink-with-size-tests: Likewise.
34727         * tests/test-areadlink.h: New file.
34728         * tests/test-areadlink.c: Likewise.
34729         * tests/test-areadlink-with-size.c: Likewise.
34730
34731         maint: minor cleanups
34732         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34733         _UNUSED_PARAMETER_ instead.
34734         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34735         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34736         * modules/linkat-tests (Files): Distribute test-link.h.
34737
34738         openat, utimens: whitespace cleanup
34739         * lib/openat.c: Prefer space throughout, rather than mix of 8
34740         spaces vs. tabs.
34741         * lib/at-func.c: Likewise.
34742         * lib/utimens.c: Likewise.
34743
34744         openat: avoid using wrong fd
34745         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34746         working directory chooses same fd.
34747         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34748
34749         mkdir, mkdirat: fix cygwin 1.5.x bug
34750         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34751         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34752         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34753         bug.
34754         (gl_PREREQ_MKDIR): Delete unused macro.
34755         * modules/mkdir (Files): Track file rename.
34756         (configure.ac): Update macro name.
34757         * modules/openat (Depends-on): Add mkdir.
34758         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34759
34760         mkdir, mkdirat: add tests
34761         * modules/mkdir-tests: New test.
34762         * tests/test-mkdir.h: New file.
34763         * tests/test-mkdir.c: Likewise.
34764         * tests/test-mkdirat.c: Likewise.
34765         * modules/openat-tests (Files): Add new files.
34766         (Makefile.am): Run new test.
34767
34768 2009-10-06  Eric Blake  <ebb9@byu.net>
34769
34770         doc: tweak *at function documentation
34771         * doc/posix-functions/faccessat.texi (faccessat): Mention
34772         known issue with replacement.
34773         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34774         * doc/posix-functions/linkat.texi (linkat): Likewise.
34775         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34776         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34777         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34778         * doc/posix-functions/renameat.texi (renameat): Likewise.
34779         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34780
34781         openat: fix GNU/Hurd bug in unlinkat
34782         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34783         broken.
34784         * doc/posix-functions/unlink.texi (unlink): Document this.
34785         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34786
34787         fdopendir: fix GNU/Hurd bug
34788         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34789         allowing non-directory fds.
34790         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34791         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34792         * modules/dirent (Makefile.am): Substitute it.
34793         * lib/dirent.in.h (fdopendir): Declare replacement.
34794         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34795         * tests/test-fdopendir.c (main): Test something other than
34796         /dev/null, since on Hurd that behaves like a directory.
34797
34798         test-symlink: port to GNU/Hurd
34799         * tests/test-symlink.h (test_symlink): Relax expected errno.
34800
34801         doc: tweak more cygwin information
34802         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34803         now compatible with glibc.
34804         * doc/posix-functions/getopt.texi (getopt): Likewise.
34805
34806         getopt-gnu: add another test
34807         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34808         guarantee behavior relied on by m4.
34809         * tests/test-getopt.c (main): Use it.
34810         * modules/getopt-posix-tests (Depends-on): Add setenv.
34811         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34812
34813         getopt: fix compilation on darwin
34814         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34815         include.
34816         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34817         Reported by Ludovic Courtès.
34818
34819 2009-10-06  Bruno Haible  <bruno@clisp.org>
34820
34821         * modules/size_max (Description): Discourage its use.
34822         Reported by Simon Josefsson.
34823
34824 2009-10-06  Jim Meyering  <meyering@redhat.com>
34825
34826         linkat: avoid compilation failure
34827         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34828
34829 2009-10-05  Eric Blake  <ebb9@byu.net>
34830
34831         linkat: support Linux 2.6.17
34832         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34833         linkat on Linux, but allow cache variable override.
34834         * lib/linkat.c (rpl_linkat): Define override.
34835         * modules/linkat (Depends-on): Add symlinkat.
34836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34837         * modules/unistd (Makefile.am): Substitute it.
34838         * lib/unistd.in.h (linkat): Declare replacement.
34839         Reported by Pádraig Brady.
34840
34841         quotearg: port test to systems with C.UTF-8 locale
34842         * tests/test-quotearg.c (struct result_strings): Add another
34843         member, differentiating between C.ASCII and C.UTF-8 handling.
34844         (compare_strings): Add parameter.
34845         (main): Adjust all callers.
34846
34847         getopt: avoid clash with FreeBSD _getopt_internal
34848         * lib/getopt.in.h (_getopt_internal): Override the name.
34849         * lib/getopt_int.h (includes): Pick up any overrides.
34850         Reported by Reuben Thomas.
34851
34852         hash: allow C89 compilation
34853         * lib/hash.c (check_tuning): Move declaration before statement.
34854         Reported by Reuben Thomas.
34855
34856 2009-10-05  Karl Berry  <karl@gnu.org>
34857
34858         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34859
34860 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34861             Bruno Haible  <bruno@clisp.org>
34862
34863         * lib/uname.c (uname): Use a table-driven algorithm to compute
34864         Windows NT versions.
34865
34866 2009-10-04  Bruno Haible  <bruno@clisp.org>
34867
34868         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34869         program_invocation_short_name.
34870         * modules/progname (configure.ac): Test for presence of
34871         program_invocation_short_name.
34872         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34873
34874 2009-10-04  Bruno Haible  <bruno@clisp.org>
34875
34876         * lib/progname.c (set_program_name): Fix comment.
34877         Reported by Jim Meyering.
34878
34879 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34880             Bruno Haible  <bruno@clisp.org>
34881
34882         * lib/uname.c: Include <string.h>.
34883         (uname): Do only one call to GetVersionEx in the common case.
34884
34885 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34886             Bruno Haible  <bruno@clisp.org>
34887
34888         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34889         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34890         (uname): Add support for Windows CE and various non-x86 CPU types.
34891
34892 2009-10-03  Bruno Haible  <bruno@clisp.org>
34893
34894         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34895         invocation to tests/configure.ac.
34896         Reported by Ian Beckwith <ianb@erislabs.net>.
34897
34898 2009-10-02  Eric Blake  <ebb9@byu.net>
34899
34900         fchdir: avoid compiler warning
34901         * lib/fchdir.c (canonicalize_file_name)
34902         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34903
34904         test-open: support mingw errno values
34905         * tests/test-open.h (test_open): Relax test.
34906         * tests/test-fopen.h (test_fopen): Likewise.
34907         * tests/test-openat-safer.c (main): Likewise.
34908
34909         open: fix opening directory on mingw
34910         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34911
34912         test-open: on GNU/Hurd, /dev/null is a directory
34913         * tests/test-fopen.h (main): Rename...
34914         (test_fopen): ...to this.  Use a guaranteed non-directory when
34915         confirming open behavior on trailing slash.
34916         * tests/test-openat-safer.c (main): Likewise.
34917         * tests/test-open.h (main): Likewise....
34918         (test_open): ...to this.
34919         * tests/test-fopen.c (main): Adjust caller.
34920         * tests/test-fopen-safer.c (main): Likewise.
34921         * tests/test-open.c (main): Likewise.
34922         * tests/test-fcntl-safer.c (main): Likewise.
34923         Reported by Samuel Thibault.
34924
34925         rename, fchdir: don't ignore chdir failure
34926         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34927         * lib/rename.c (rpl_rename) [W32]: Likewise.
34928         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34929         an empty destination directory if source cannot be renamed,
34930         although there is still possibility for failure.
34931         * doc/posix-functions/rename.texi (rename): Document the race.
34932         Reported by Jim Meyering.
34933
34934         maint: cleanup whitespace in recent commits
34935         * lib/rename.c (rpl_rename): Remove tabs.
34936         * tests/test-link.h (test_link): Likewise.
34937         * lib/fchdir.c (get_name): Likewise.
34938         Reported by Jim Meyering.
34939
34940 2009-10-02  Ben Pfaff  <blp@gnu.org>
34941
34942         relocatable-prog-wrapper: Add missing dependency on
34943         double-slash-root.
34944         * modules/relocatable-prog-wrapper: Add dependency.
34945         Reported by Ian Beckwith <ianb@erislabs.net>.
34946
34947 2009-10-02  Eric Blake  <ebb9@byu.net>
34948
34949         renameat: fix Solaris bugs
34950         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34951         needed fixing.
34952         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34953         * modules/stdio (Makefile.am): Substitute it.
34954         * lib/stdio.in.h (renameat): Declare replacement.
34955         * lib/renameat.c (rpl_renameat): Implement fix.
34956
34957         renameat: new module
34958         * modules/renameat: New file.
34959         * lib/renameat.c (renameat): Likewise.
34960         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34961         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34962         * modules/stdio (Makefile.am): Substitute them.
34963         * lib/stdio.in.h (renameat): Declare it.
34964         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34965         * doc/posix-functions/renameat.texi (renameat): Likewise.
34966         * modules/renameat-tests: New test.
34967         * tests/test-renameat.c: Likewise.
34968
34969         rename: fix mingw bugs
34970         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34971         directory overwrite bugs.
34972
34973         rename: fix another cygwin 1.5 bug
34974         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34975         checks.
34976         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34977         unnecessary cygwin workarounds.  Also work around bug with moving
34978         full directory onto an empty one.
34979         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34980
34981         rename-dest-slash: merge into rename module
34982         * modules/rename-dest-slash (Status): Mark obsolete.
34983         (Depends-on): Add rename.
34984         (Files): Let rename do it all.
34985         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34986         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34987         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34988         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34989         * lib/rename.c (rpl_rename): Update comments.
34990
34991         rename: fix cygwin 1.5.x bugs
34992         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34993         * lib/rename.c (rpl_rename): Work around them.
34994         * modules/rename (Depends-on): Add same-inode.
34995
34996         rename: fix Solaris 10 bug
34997         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34998         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34999         was the only bug.
35000
35001         rename: fix Solaris 9 bug
35002         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
35003         on non-directory.  Avoid calling exit.
35004         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
35005         strdup.
35006         * modules/rename-tests (Depends-on): Drop lstat.
35007         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35008         (gl_PREREQ_RENAME): Delete unused macro.
35009
35010         rename-dest-slash: fix NetBSD bug
35011         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
35012         links.
35013         * modules/rename-dest-slash (Depends-on): Add same-inode.
35014
35015         rename-tests: new test, exposes several platform bugs
35016         * modules/rename-tests: New file.
35017         * tests/test-rename.h: Likewise.
35018         * tests/test-rename.c: Likewise.
35019         * doc/posix-functions/rename.texi (rename): Improve documentation,
35020         including bugs that will eventually be fixed in gnulib.
35021
35022 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
35023
35024         * lib/uname.c: Include <stdlib.h>
35025         (uname): Assume version info is available.
35026
35027 2009-10-02  Jim Meyering  <meyering@redhat.com>
35028
35029         gnu-web-doc-update: correct --help output
35030         * build-aux/gnu-web-doc-update: Make --help output relevant.
35031
35032         gnu-web-doc-update: add standard options
35033         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
35034
35035         gnu-web-doc-update: New module.
35036         Use this script to automatically update the on-line web documentation
35037         for your GNU project at http://www.gnu.org/software/$pkg/manual/
35038         * modules/gnu-web-doc-update: New file, from coreutils.
35039         * build-aux/gnu-web-doc-update: New script.
35040
35041 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
35042
35043         link: LoadLibrary is not needed.
35044         * lib/link.c: Use GetModuleHandle.
35045
35046 2009-10-01  Eric Blake  <ebb9@byu.net>
35047
35048         getopt: bump serial number
35049         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
35050         change.
35051
35052         tests: tighten link, rmdir, and remove tests
35053         * tests/test-link.h (includes): No need to use <config.h> here.
35054         Clean up if directory hard link was created, otherwise test for
35055         trailing '.'.
35056         * tests/test-linkat.c (main): Simplify.
35057         * tests/test-remove.c (main): Enhance test for trailing '.'.
35058         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35059
35060 2009-10-01  Jim Meyering  <meyering@redhat.com>
35061
35062         maint.mk: requiring "make major" was annoying, for a "minor" release.
35063         What is intended is "stable", to contrast with alpha and beta,
35064         so require "make stable", not "make major".
35065         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
35066         (get_tool_versions): Likewise.
35067         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
35068
35069 2009-09-30  Ben Pfaff  <blp@gnu.org>
35070
35071         Fix broken build of replacement for Windows tmpfile().
35072         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
35073         flags argument added along with the 'mkostemp' module.
35074
35075 2009-09-28  Bruno Haible  <bruno@clisp.org>
35076
35077         Avoid identifier clash with POSIX function 'remove' defined as a macro.
35078         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
35079         to 'remove_elt'.
35080         (gl_list_remove): Update.
35081         * lib/gl_list.c (gl_list_remove): Update.
35082         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
35083         to 'remove_elt'.
35084         (gl_oset_remove): Update.
35085         * lib/gl_list.c (gl_oset_remove): Update.
35086         Reported by Eric Blake.
35087
35088 2009-09-28  Eric Blake  <ebb9@byu.net>
35089
35090         doc: mention yet more cygwin 1.7 status
35091         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
35092         cygwin.
35093         * doc/glibc-functions/execvpe.texi (execvpe): New file.
35094         * doc/gnulib.texi (Glibc unistd.h): Mention it.
35095
35096         argp: fix test failure
35097         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
35098         that are not upper-case.  Pass correct range to tolower.
35099
35100 2009-09-27  Jim Meyering  <meyering@redhat.com>
35101
35102         test-yesno: work around sparc-dash here-document infelicity
35103         Without this change, the literal \177 byte in a here document
35104         would make dash 0.5.5.1-3 access uninitialized memory.
35105         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
35106         Instead, use a marker, "@", and filter through tr to create the desired
35107         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
35108
35109 2009-09-27  Bruno Haible  <bruno@clisp.org>
35110
35111         Disable untested support for new flavours of ACLs on AIX.
35112         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
35113         progress.
35114         * lib/set-mode-acl.c (qset_acl): Likewise.
35115
35116 2008-12-07  Bruno Haible  <bruno@clisp.org>
35117
35118         Add support for new flavours of ACLs on AIX. (Untested.)
35119         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
35120         (file_has_acl): Add support for newer AIX.
35121         * lib/set-mode-acl.c (qset_acl): Likewise.
35122         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
35123         Rainer Tammer <tammer@tammer.net>.
35124
35125 2009-09-26  Eric Blake  <ebb9@byu.net>
35126
35127         argp: fix compilation of getopt
35128         * lib/getopt.in.h (includes): Use different guard than glibc.
35129         Reported by Sergey Poznyakoff.
35130
35131         doc: mention more cygwin 1.7 status
35132         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
35133         bug.
35134         * doc/posix-functions/execl.texi (execl): Likewise.
35135         * doc/posix-functions/execle.texi (execle): Likewise.
35136         * doc/posix-functions/execlp.texi (execlp): Likewise.
35137         * doc/posix-functions/execv.texi (execv): Likewise.
35138         * doc/posix-functions/execve.texi (execve): Likewise.
35139         * doc/posix-functions/execvp.texi (execvp): Likewise.
35140         * doc/glibc-functions/canonicalize_file_name.texi
35141         (canonicalize_file_name): Cygwin 1.7 now provides this.
35142         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
35143         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
35144         on AT_SYMLINK_NOFOLLOW.
35145
35146 2009-09-24  Eric Blake  <ebb9@byu.net>
35147
35148         test-linkat: make test more robust
35149         * tests/test-linkat.c (main): Avoid collision with EEXIST.
35150
35151         getopt: fix inclusion guards for cygwin
35152         * modules/getopt-posix (Depends-on): Add include-next.
35153         (Makefile.am): Substitute more items in replacement header.
35154         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
35155         <getopt.h>.
35156         * lib/getopt.in.h (includes): Use split inclusion guard, and
35157         prefer <getopt.h> over include <unistd.h> when one is present.
35158         (option): Also override name of 'struct option'.
35159
35160         same-inode: revert prior change; it is not yet ready
35161         * NEWS: Undo mention of this change.
35162         * lib/same-inode.h (same-inode.h): Undo tri-state change.
35163         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35164         * lib/cycle-check.c (cycle_check): Likewise.
35165         * lib/same.c (same_name): Likewise.
35166         * lib/at-func2.c (at_func2): Likewise.
35167
35168 2009-09-23  Eric Blake  <ebb9@byu.net>
35169
35170         linkat: new module
35171         * modules/linkat: New file.
35172         * lib/at-func2.c (at_func2): Likewise.
35173         * lib/linkat.c (linkat): Likewise.
35174         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
35175         * lib/openat-priv.h (at_func2): Add declaration.
35176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35177         * modules/unistd (Makefile.am): Substitute them.
35178         * lib/unistd.in.h (linkat): Declare it.
35179         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35180         * doc/posix-functions/linkat.texi (linkat): Likewise.
35181         * doc/posix-functions/link.texi (link): Tweak wording.
35182         * tests/test-link.c (main): Move guts...
35183         * tests/test-link.h (test_link): ...into new file.
35184         * modules/linkat-tests: New test.
35185         * tests/test-linkat.c: Likewise.
35186         * modules/link-tests (Files): Ship new file.
35187         (Depends-on): Add stdbool.
35188
35189         dirname: add library-safe mdir_name
35190         * lib/dirname.h (mdir_name): New prototype.
35191         * lib/dirname.c (dir_name): Move guts...
35192         (mdir_name): ...to new function that avoids xalloc_die.
35193
35194         fchdir: another mingw fix
35195         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
35196         * lib/fchdir.c (get_name): New helper method; skips canonicalize
35197         on mingw (where it has not yet been ported), and make it optional
35198         elsewhere.
35199         (_gl_register_fd): Use it.
35200
35201         same-inode: make SAME_INODE tri-state, to port to mingw
35202         * NEWS: Mention this change.
35203         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
35204         st_ino always being 0.
35205         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35206         * lib/cycle-check.c (cycle_check): Likewise.
35207         * lib/same.c (same_name): Likewise.
35208
35209         lstat: avoid mingw compilation error
35210         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
35211         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
35212         lstat ourselves.
35213         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
35214         was adequate.
35215         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
35216         the checks for lstat.
35217         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
35218
35219         link: fix test failure on Solaris 9
35220         * lib/link.c (rpl_link): Don't assume link will catch bogus
35221         trailing slash on source.
35222
35223         test-symlinkat: enhance test
35224         * tests/test-readlink.c (main): Move guts...
35225         * tests/test-readlink.h (test_readlink): ...into new file.
35226         * tests/test-symlink.c (main): Move guts...
35227         * tests/test-symlink.h (test_symlink): ...into new file.
35228         * tests/test-symlinkat.c (main): Use new files for further
35229         coverage.
35230         (do_symlink, do_readlink): New helper functions.
35231         * modules/symlink-tests (Files): Ship new file.
35232         (Depends-on): Add stdbool.
35233         * modules/readlink-tests (Files): Ship new file.
35234         (Depends-on): Add stdbool.
35235         * modules/symlinkat-tests (Files): Use new files.
35236
35237 2009-09-23  Eric Blake  <ebb9@byu.net>
35238
35239         readlink: document portability issue with symlink length
35240         * doc/posix-functions/lstat.texi (lstat): Mention that some file
35241         systems have bogus st_size on symlinks, and mention the
35242         areadlink-with-size module.
35243         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35244         * doc/posix-functions/readlink.texi (readlink): Mention the
35245         areadlink module, and ERANGE failure.
35246         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35247         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
35248
35249         readlink: fix Solaris 9 bug with trailing slash
35250         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
35251         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
35252         * doc/posix-functions/readlink.texi (readlink): Document this.
35253         * modules/readlink-tests: New test.
35254         * tests/test-readlink.c: Likewise.
35255
35256         readlink: fix cygwin 1.5.x bug with return type
35257         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
35258         * lib/unistd.in.h (readlink): Use ssize_t.
35259         * lib/readlink.c (readlink): Likewise.
35260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35261         * modules/unistd (Makefile.am): Substitute it.
35262         * lib/unistd.in.h (readlink): Declare replacement.
35263         * doc/posix-functions/readlink.texi (readlink): Document this.
35264
35265         symlink: use throughout gnulib
35266         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
35267         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
35268         symlink is not used.
35269         * modules/symlinkat (Depends-on): Add symlink.
35270         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35271         * modules/canonicalize-tests (Depends-on): Likewise.
35272         * modules/lstat-tests (Depends-on): Likewise.
35273         * modules/openat-tests (Depends-on): Likewise.
35274         * modules/remove-tests (Depends-on): Likewise.
35275         * modules/rmdir-tests (Depends-on): Likewise.
35276         * modules/unlink-tests (Depends-on): Likewise.
35277         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
35278         * tests/test-canonicalize.c (symlink): Likewise.
35279         * tests/test-fstatat.c (symlink): Likewise.
35280         * tests/test-lstat.c (symlink): Likewise.
35281         * tests/test-remove.c (symlink): Likewise.
35282         * tests/test-rmdir.c (symlink): Likewise.
35283         * tests/test-unlink.c (symlink): Likewise.
35284         * tests/test-unlinkat.c (symlink): Likewise.
35285
35286         symlink: new module, for Solaris 9 bug
35287         * modules/symlink: New file.
35288         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
35289         * lib/symlink.c: Likewise.
35290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35291         * modules/unistd (Makefile.am): Substitute them.
35292         * lib/unistd.in.h (symlink): Declare replacement.
35293         * MODULES.html.sh (File system functions): Mention it.
35294         * doc/posix-functions/symlink.texi (symlink): Likewise.
35295         * modules/symlink-tests: New test.
35296         * tests/test-symlink.c: Likewise.
35297
35298 2009-09-23  Bruno Haible  <bruno@clisp.org>
35299
35300         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
35301         when needed.
35302         Test case: gnulib-tool --import --with-tests atexit inttypes.
35303         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
35304
35305 2009-09-23  Bruno Haible  <bruno@clisp.org>
35306
35307         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
35308         subcommand, not in a subshell.
35309
35310 2009-09-22  Eric Blake  <ebb9@byu.net>
35311
35312         unistd: sort replacement declarations
35313         * lib/unistd.in.h: Sort declarations.
35314
35315         open, openat: minor optimization
35316         * lib/open.c (open): If open succeeded, len is non-zero.
35317         * lib/openat.c (rpl_openat): Likewise.
35318
35319         link-follow: ensure correct result
35320         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
35321         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
35322         distinguish between possible failures.
35323
35324 2009-09-21  Eric Blake  <ebb9@byu.net>
35325
35326         fts: avoid compiler warning
35327         * lib/fts.c (dirent_inode_sort_may_be_useful)
35328         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
35329
35330 2009-09-19  Bruno Haible  <bruno@clisp.org>
35331
35332         * lib/progreloc.c (canonicalize_file_name): New declaration.
35333
35334 2009-09-19  Eric Blake  <ebb9@byu.net>
35335
35336         link: fix quoting
35337         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
35338
35339         openat: fix openat bugs on Solaris 9
35340         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
35341         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
35342         * modules/openat (Depends-on): Add open.
35343         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
35344         * modules/fcntl-h (Makefile.am): Substitute it.
35345         * lib/fcntl.in.h (openat): Declare replacement.
35346         * doc/posix-functions/openat.texi (openat): Document this.
35347
35348         openat: move fstatat and unlinkat into correct files
35349         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
35350         compiled.
35351         * lib/openat.c (fstatat, unlinkat): Move...
35352         * lib/fstatat.c (fstatat): ...into correct files.
35353         * lib/unlinkat.c (unlinkat): Likewise.
35354
35355         openat: fix unlinkat bugs on Solaris 9
35356         * lib/unlinkat.c (unlinkat): New file.
35357         * modules/openat (Depends-on): Add unlink.
35358         (Files): Distribute it.
35359         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35360         trailing slash behavior is broken.
35361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35362         * modules/unistd (Makefile.am): Substitute it.
35363         * lib/unistd.in.h (unlinkat): Declare replacement.
35364         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35365
35366         openat: fix fstatat bugs on Solaris 9
35367         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35368         stat.
35369         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35370
35371         test-unlinkat: enhance test, to expose Solaris 9 bug
35372         * tests/test-unlink.c (main): Factor guts...
35373         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35374         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35375         * tests/test-rmdir.c (main): Adjust caller.
35376         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35377         (unlinker): New helper function.
35378         (rmdirat): Enhance check.
35379         * modules/rmdir-tests (Depends-on): Add stdbool.
35380         * modules/unlink-tests (Depends-on): Likewise.
35381         (Files): Add test-unlink.h.
35382         * modules/openat-tests (Files): Likewise.
35383         (Depends-on): Add unlinkdir.
35384
35385         test-fstatat: new test, to expose Solaris 9 bugs
35386         * tests/test-stat.c (main): Factor guts...
35387         * tests/test-stat.h (test_stat_func): ...into new file.
35388         * tests/test-lstat.c (main): Factor guts...
35389         * tests/test-lstat.h (test_lstat_func): ...into new file.
35390         * tests/test-fstatat.c: New file.
35391         * modules/stat-tests (Files): Add test-stat.h.
35392         * modules/lstat-tests (Files): Add test-lstat.h.
35393         (Depends-on): Add stdbool.
35394         * modules/openat-tests (Depends-on): Add pathmax.
35395         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
35396         (Makefile.am): Run new test.
35397
35398         remove: new module, for mingw and Solaris 9 bugs
35399         * modules/remove: New file.
35400         * lib/remove.c: Likewise.
35401         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
35402         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35403         * modules/stdio (Makefile.am): Use them.
35404         * lib/stdio.in.h (remove): Declare replacement.
35405         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35406         * doc/posix-functions/remove.texi (remove): Likewise.
35407         * modules/remove-tests: New test.
35408         * tests/test-remove.c: Likewise.
35409
35410         unlink: new module, for Solaris 9 bug
35411         * modules/unlink: New file.
35412         * lib/unlink.c: Likewise.
35413         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35415         * modules/unistd (Makefile.am): Use them.
35416         * lib/unistd.in.h (stat): Declare replacement.
35417         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35418         * doc/posix-functions/unlink.texi (unlink): Likewise.
35419         * modules/unlink-tests: New test.
35420         * tests/test-unlink.c: Likewise.
35421
35422         lstat: fix Solaris 9 bug
35423         * lib/lstat.c (lstat): Also check for trailing slash on
35424         non-symlink, non-directories.  Use stat module to simplify logic.
35425         * doc/posix-functions/lstat.texi (lstat): Document it.
35426         * modules/lstat-tests (Depends-on): Add errno, same-inode.
35427         (configure.ac): Check for symlink.
35428         * tests/test-lstat.c (main): Add more tests.
35429
35430         stat: add as dependency to other modules
35431         * modules/chown (Depends-on): Add stat.
35432         * modules/euidaccess (Depends-on): Likewise.
35433         * modules/fchdir (Depends-on): Likewise.
35434         * modules/isdir (Depends-on): Likewise.
35435         * modules/link (Depends-on): Likewise.
35436         * modules/lstat (Depends-on): Likewise.
35437         * modules/mkdir-p (Depends-on): Likewise.
35438         * modules/modechange (Depends-on): Likewise.
35439         * modules/open (Depends-on): Likewise.
35440         * modules/readlink (Depends-on): Likewise.
35441         * modules/same (Depends-on): Likewise.
35442
35443         stat: fix Solaris 9 bug
35444         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
35445         slash.
35446         * lib/stat.c (rpl_stat): Work around it.
35447         * doc/posix-functions/stat.texi (stat): Update documentation.
35448
35449         stat: new module, for mingw bug
35450         * modules/stat: New file.
35451         * lib/stat.c: Likewise.
35452         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35453         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35454         * modules/sys_stat (Makefile.am): Use them.
35455         * lib/sys_stat.in.h (stat): Declare replacement.
35456         * lib/openat.c (fstatat): Deal with lstat and stat being function
35457         macros.
35458         * modules/openat (Depends-on): Add inline.
35459         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35460         * doc/posix-functions/stat.texi (stat): Likewise.
35461         * modules/stat-tests: New test.
35462         * tests/test-stat.c: Likewise.
35463
35464 2009-09-19  Jim Meyering  <meyering@redhat.com>
35465
35466         syntax-check: detect unnecessary inclusion of canonicalize.h
35467         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
35468
35469 2009-09-19  Eric Blake  <ebb9@byu.net>
35470
35471         canonicalize-lgpl: adjust clients to use correct header
35472         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35473         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35474         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35475         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35476         * lib/progreloc.c (includes): Likewise.
35477
35478 2009-09-19  Jim Meyering  <meyering@redhat.com>
35479
35480         test-posixtm.c: correct a comment
35481         * tests/test-posixtm.c: Correct first-line comment.
35482         Spotted by Eric Blake.
35483
35484 2009-09-16  Jim Meyering  <meyering@redhat.com>
35485
35486         posixtm-tests: make T const-correct; add a test case
35487         * tests/test-posixtm.c (T): Declare const.
35488         Add a test for -(2^31+1).
35489         Remove useless can-succeed-only-in-2002 test.
35490
35491         posixtm-tests: adjust the sole failing test
35492         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35493         expected output matches what mktime now produces.  Cross-checked via
35494         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35495
35496         posixtm: move #ifdef'd tests into a new module
35497         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35498         * tests/test-posixtm.c: ... this new file.
35499         * modules/posixtm-tests: New module.
35500
35501 2009-09-19  Eric Blake  <ebb9@byu.net>
35502
35503         openat: simplify use of at-func.c
35504         * lib/at-func.c (includes): Include prerequisites here, to
35505         simplify requirements on client files.
35506         * lib/openat-priv.h: Add double-inclusion guard.
35507         * lib/faccessat.c (includes): Simplify.
35508         * lib/fchmodat.c (includes): Likewise.
35509         * lib/fchownat.c (includes): Likewise.
35510         * lib/mkdirat.c (includes): Likewise.
35511         * lib/mkfifoat.c (includes): Likewise.
35512         * lib/symlinkat.c (includes): Likewise.
35513
35514         openat: allow return of fd 0
35515         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35516         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35517         unistd-safer.
35518         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35519         <fcntl.h>; this module does not leak fds.
35520         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35521         must be allowed to return 0, leaving openat_safer to add the
35522         safety.
35523         (openat_permissive): Avoid writing to just-opened fd 2 if
35524         restoring the current directory fails.
35525         * lib/openat-die.c (openat_restore_fail): Add comment.
35526         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35527         (save_cwd): Guarantee safe fd, but without use of open_safer.
35528         * tests/test-openat.c: New test.
35529         * modules/openat-tests (Files, Makefile.am): Distribute and build
35530         new file.
35531
35532         relocatable-prog-wrapper: fix build
35533         * modules/relocatable-prog-wrapper (Files): Update name of
35534         canonicalize m4 file, broken on 2009-09-17.
35535         Reported by emad hajjar <aleppos@hotmail.com>.
35536
35537 2009-09-19  Bruno Haible  <bruno@clisp.org>
35538
35539         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35540         * lib/safe-alloc.c: Likewise.
35541         Reported by Ian Beckwith <ianb@erislabs.net>.
35542
35543 2009-09-18  Bruno Haible  <bruno@clisp.org>
35544
35545         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35546         Reported by <erobles@sensacd.com.mx>.
35547
35548 2009-09-17  Eric Blake  <ebb9@byu.net>
35549
35550         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35551         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35552         slashes when checking if last component is missing.
35553         * tests/test-canonicalize.c (main): Test this.
35554
35555         canonicalize, canonicalize-lgpl: honor // if distinct from /
35556         * modules/canonicalize (Files): Add double-slash-root.m4.
35557         * modules/canonicalize-lgpl (Files): Likewise.
35558         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35559         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35560         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35561         fallback definition.
35562         (canonicalize_filename_mode): Use it to protect //.
35563         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35564         (__realpath): Likewise.
35565         * tests/test-canonicalize.c (main): Test this.
35566         * tests/test-canonicalize-lgpl.c (main): Likewise.
35567         * modules/canonicalize-tests (Depends-on): Add same-inode.
35568         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35569
35570         canonicalize-lgpl: fix glibc bug with trailing slash
35571         * m4/canonicalize-lgpl.m4: Move contents...
35572         * m4/canonicalize.m4: ...here.
35573         (gl_CANONICALIZE_LGPL): Factor realpath check...
35574         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35575         glibc 2.3.5 bug, fixed 2005-04-27.
35576         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35577         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35578         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35579         * modules/canonicalize-lgpl (Files): Manage file rename.
35580         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35581         * modules/stdlib (Makefile.am): Substitute witness.
35582         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35583         is needed.
35584         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35585         replacement is required.
35586         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35587         * doc/glibc-functions/canonicalize_file_name.texi
35588         (canonicalize_file_name): Document this.
35589         * doc/posix-functions/realpath.texi (realpath): Likewise.
35590
35591         canonicalize-lgpl: reject non-directory with trailing slash
35592         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35593         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35594         catches failures in glibc 2.3.5.
35595         * tests/test-canonicalize.c (main): Likewise.
35596
35597         canonicalize-lgpl: use native realpath if it works
35598         * lib/canonicalize-lgpl.c (realpath): Guard with
35599         FUNC_REALPATH_WORKS.
35600         * lib/stdlib.in.h (realpath): Make declaration optional based on
35601         HAVE_REALPATH.
35602         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35603         native realpath works.
35604         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35605         * modules/stdlib (Makefile.am): Substitute witness.
35606
35607         canonicalize, canonicalize-lgpl: use <stdlib.h>
35608         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35609         (Include): Mention <stdlib.h>.
35610         (configure.ac): Mention functions we provide.
35611         * modules/canonicalize (configure.ac): Likewise.
35612         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35613         realpath if canonicalize_file_name is missing.
35614         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35615         * modules/stdlib (Makefile.am): Substitute witnesses.
35616         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35617         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35618         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35619         * NEWS: Document this.
35620         * doc/glibc-functions/canonicalize_file_name.texi
35621         (canonicalize_file_name): Likewise.
35622         * doc/posix-functions/realpath.texi (realpath): Likewise.
35623         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35624
35625         test-canonicalize: consolidate into single C program
35626         * tests/test-canonicalize.sh: Delete; move setup into...
35627         * tests/test-canonicalize.c (main): ...the program, making it
35628         easier to run in debugger.  Add some tests.
35629         * modules/canonicalize-tests (Files): Remove unused file.
35630         (Depends-on): Add progname.
35631         (configure.ac, Makefile.am): Simplify.
35632
35633         test-canonicalize-lgpl: consolidate into single C program
35634         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35635         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35636         easier to run in debugger.  Add some tests.
35637         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35638         (configure.ac, Makefile.am): Simplify.
35639
35640         canonicalize: avoid resolvepath
35641         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35642         unnecessary checks.
35643         * lib/canonicalize.c (includes): Simplify.
35644         (canonicalize_file_name): Drop resolvepath implementation.
35645         * modules/canonicalize (Depends-on): Drop filenamecat.
35646
35647         canonicalize: don't lose errno
35648         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35649         over calls to free.
35650
35651         canonicalize: simplify errno handling
35652         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35653         assignment.
35654
35655         canonicalize, canonicalize-lgpl: update module dependencies
35656         * modules/canonicalize (Depends-on): Add extensions, lstat,
35657         pathmax, stdlib.
35658         (Files): Drop pathmax.h.
35659         (configure.ac): Adjust macro name.
35660         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35661         lstat, stdlib, sys_stat.
35662         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35663         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35664         extensions.
35665         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35666         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35667         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35668         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35669         declaration, if available.
35670         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35671         we can rely on the readlink module.
35672         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35673         (includes): Use <unistd.h> unconditionally.
35674
35675 2009-09-17  Eric Blake  <ebb9@byu.net>
35676
35677         maint: make Include sections of modules consistent
35678         * modules/alloca: Use only header name; no need to list #include.
35679         * modules/alloca-opt: Likewise.
35680         * modules/arpa_inet: Likewise.
35681         * modules/canon-host: Likewise.
35682         * modules/configmake: Likewise.
35683         * modules/dirent: Likewise.
35684         * modules/eealloc: Likewise.
35685         * modules/environ: Likewise.
35686         * modules/fchdir: Likewise.
35687         * modules/fcntl: Likewise.
35688         * modules/fcntl-h: Likewise.
35689         * modules/gethrxtime: Likewise.
35690         * modules/gettime: Likewise.
35691         * modules/ignore-value: Likewise.
35692         * modules/inet_ntop: Likewise.
35693         * modules/inet_pton: Likewise.
35694         * modules/inttypes: Likewise.
35695         * modules/isnand-nolibm: Likewise.
35696         * modules/isnanf-nolibm: Likewise.
35697         * modules/mbchar: Likewise.
35698         * modules/mbfile: Likewise.
35699         * modules/mbiter: Likewise.
35700         * modules/mbuiter: Likewise.
35701         * modules/netdb: Likewise.
35702         * modules/netinet_in: Likewise.
35703         * modules/nproc: Likewise.
35704         * modules/pagealign_alloc: Likewise.
35705         * modules/poll: Likewise.
35706         * modules/printf-frexp: Likewise.
35707         * modules/pthread: Likewise.
35708         * modules/putenv: Likewise.
35709         * modules/random_r: Likewise.
35710         * modules/relocatable-prog: Likewise.
35711         * modules/search: Likewise.
35712         * modules/select: Likewise.
35713         * modules/selinux-h: Likewise.
35714         * modules/settime: Likewise.
35715         * modules/signal: Likewise.
35716         * modules/size_max: Likewise.
35717         * modules/socklen: Likewise.
35718         * modules/ssize_t: Likewise.
35719         * modules/stdarg: Likewise.
35720         * modules/stdbool: Likewise.
35721         * modules/stddef: Likewise.
35722         * modules/stdint: Likewise.
35723         * modules/stdio: Likewise.
35724         * modules/stdlib: Likewise.
35725         * modules/string: Likewise.
35726         * modules/strings: Likewise.
35727         * modules/sys_file: Likewise.
35728         * modules/sys_ioctl: Likewise.
35729         * modules/sys_select: Likewise.
35730         * modules/sys_socket: Likewise.
35731         * modules/sys_stat: Likewise.
35732         * modules/sys_time: Likewise.
35733         * modules/sys_times: Likewise.
35734         * modules/sys_utsname: Likewise.
35735         * modules/sys_wait: Likewise.
35736         * modules/sysexits: Likewise.
35737         * modules/time: Likewise.
35738         * modules/times: Likewise.
35739         * modules/tmpfile: Likewise.
35740         * modules/trim: Likewise.
35741         * modules/unistd: Likewise.
35742         * modules/wchar: Likewise.
35743         * modules/wctype: Likewise.
35744
35745 2009-09-17  Bruno Haible  <bruno@clisp.org>
35746
35747         Make getdate.y compile on QNX and NetBSD 5 / i386.
35748         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35749         TIME_T_FITS_IN_LONG_INT.
35750         * lib/getdate.y (long_time_t): New type.
35751         (relative_time): Change type of 'seconds' field to long_time_t.
35752         (get_date): Update types of local variables. Check against overflow
35753         during conversion from long_time_t to time_t.
35754         Reported by Matt Kraai <kraai@ftbfs.org>
35755         and Hasso Tepper <hasso@netbsd.org>.
35756
35757 2009-09-17  Bruno Haible  <bruno@clisp.org>
35758
35759         * modules/COPYING: Update copyright years.
35760         * modules/README: Likeiwse.
35761         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35762         Reported by Ian Beckwith <ianb@erislabs.net>.
35763
35764 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35765
35766         * users.txt: Update references for gnuit package.
35767
35768 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35769
35770         * m4/getdelim.m4: Fix typo in copyright line.
35771
35772 2009-09-17  Bruno Haible  <bruno@clisp.org>
35773
35774         * lib/atoll.c: Use the standard header with GPL copyright.
35775         * lib/argz.in.h: Likewise.
35776         * lib/glob.c: Likewise.
35777         * lib/glob-libc.h: Likewise.
35778         * lib/random_r.c: Likewise.
35779         * lib/siglist.h: Likewise.
35780         * lib/strsignal.c: Likewise.
35781         Reported by Ian Beckwith <ianb@erislabs.net>.
35782
35783 2009-09-17  Eric Blake  <ebb9@byu.net>
35784
35785         rmdir: ensure correct dependency order
35786         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35787
35788 2009-09-17  Bruno Haible  <bruno@clisp.org>
35789
35790         Disable assertion that fails on NetBSD 5 / i386.
35791         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35792         Reported by Sam Steingold <sds@gnu.org>
35793         and Hasso Tepper <hasso@netbsd.org>.
35794
35795 2009-09-16  Eric Blake  <ebb9@byu.net>
35796
35797         unlinkdir: port to mingw
35798         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35799         on which no one can unlink a directory.
35800
35801         stdlib: sort witness names
35802         * modules/stdlib (Makefile.am): Sort replacements.
35803         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35804         * lib/stdlib.in.h: Likewise.
35805
35806         parse-duration-tests: avoid link failure
35807         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35808         LIBINTL.
35809         Reported by Tom G. Christensen.
35810
35811         openat-tests: ensure unlinkat behaves like rmdir
35812         * tests/test-rmdir.c (main): Factor guts...
35813         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35814         * modules/rmdir-tests (Files): Ship new file.
35815         * modules/openat-tests: New test.
35816         * tests/test-unlinkat.c: Likewise.
35817
35818         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35819         * modules/rmdir-errno (Status, Notice): Now obsolete.
35820
35821         rmdir: work around cygwin 1.5.x and mingw bugs
35822         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35823         * lib/rmdir.c (rmdir): Work around it.
35824         * modules/rmdir (Status, Notice): No longer obsolete.
35825         (Files): Add dos.m4.
35826         (Depends-on): Add unistd.
35827         (configure.ac): Set witnesses.
35828         (License): Relax to LGPLv2+.
35829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35830         * modules/unistd (Makefile.am): Substitute witnesses.
35831         * lib/unistd.in.h (rmdir): Declare replacement.
35832         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35833         * modules/rmdir-tests: New tests.
35834         * tests/test-rmdir.c: Likewise.
35835
35836 2009-09-15  Eric Blake  <ebb9@byu.net>
35837
35838         fchdir: improve use of replacement functions
35839         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35840         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35841         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35842         REPLACE_CLOSEDIR.
35843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35844         * modules/sys_stat (Makefile.am): Substitute correct witness.
35845         * modules/dirent (Makefile.am): Likewise.
35846         * modules/unistd (Makefile.am): Likewise.
35847         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35848         * lib/unistd.in.h (dup): Likewise.
35849         * lib/sys_stat.in.h (fstat): Likewise.
35850
35851         maint: ignore gnulib-tool temp files
35852         * .gitignore: Ignore files created during gnulib-tool --test.
35853
35854 2009-09-13  Jim Meyering  <meyering@redhat.com>
35855
35856         posixtm: don't reject a time that specify "60" as the number of seconds
35857         * lib/posixtm.c (posixtime): The code to reject invalid dates
35858         would also reject a time specified with the .60 suffix.
35859         But POSIX allows that, in order to accommodate leap seconds.
35860         So don't reject it.
35861         (main): Adjust tests accordingly.
35862         * modules/posixtm (Depends-on): Add stpcpy.
35863
35864 2009-09-11  Jim Meyering  <meyering@redhat.com>
35865
35866         announce-gen: include [$release_type] in emitted Subject:
35867         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35868         e.g., [stable] in the emitted Subject: line.
35869
35870 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35871
35872         Remove obsolete macros from several modules.
35873         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35874         obsolete Autoconf macros with their modern counterparts.
35875         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35876         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35877         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35878         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35879         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35880         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35881         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35882         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35883         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35884         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35885         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35886         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35887         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35888         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35889         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35890         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35891         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35892         * m4/time_r.m4 (gl_TIME_R): Likewise.
35893         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35894         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35895         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35896
35897         Fix copyright header in build-aux scripts.
35898         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35899         recommendation.
35900         * build-aux/ncftpput-ftp: Likewise.
35901         * build-aux/update-copyright: Likewise.
35902
35903 2009-09-09  Eric Blake  <ebb9@byu.net>
35904
35905         test-link: allow Linux choice of errno
35906         * tests/test-link.c (main): Relax test for alternate error.
35907
35908         strndup: fix improper m4 caching
35909         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35910         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35911         (gl_PREREQ_STRNDUP): Delete.
35912         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35913         * modules/string (Makefile.am): Substitute it.
35914         * lib/string.in.h (strndup): Modernize prototype.
35915
35916         getcwd: port to mingw
35917         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35918         different from the POSIX assumptions made throughout the getcwd
35919         module; fortunately, the mingw getcwd does not need replacement.
35920         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35921         * modules/getcwd-tests: New test.
35922         * tests/test-getcwd.c: Likewise.
35923
35924         link: fix platform bugs
35925         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35926         * lib/link.c (link): Work around them.  Fix related mingw bug.
35927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35928         * modules/unistd (Makefile.am): Substitute it.
35929         * lib/unistd.in.h (link): Declare replacement.
35930         * doc/posix-functions/link.texi (link): Document this.
35931         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35932
35933         test-link: consolidate into single C program, test more cases
35934         * tests/test-link.sh: Delete.
35935         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35936         at least Cygwin and Solaris.
35937         * modules/link-tests (Files): Remove unused file.
35938         (Depends-on): Add errno, sys_stat.
35939         (Makefile.am): Simplify.
35940
35941 2009-09-08  Bruno Haible  <bruno@clisp.org>
35942
35943         Work around towlower, towupper bug on mingw.
35944         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35945         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35946         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35947         * doc/posix-functions/towupper.texi: Likewise.
35948         Reported by Eric Blake.
35949
35950 2009-09-08  Jim Meyering  <meyering@redhat.com>
35951
35952         build: don't try to run autoheader if we don't use it
35953         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35954         is not used in configure.ac.
35955
35956 2009-09-08  Eric Blake  <ebb9@byu.net>
35957
35958         euidaccess: fix compilation error
35959         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35960
35961         rawmemchr: relax license
35962         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35963         okay.
35964         Reported by Jim Meyering.
35965
35966         mkfifoat: new module
35967         * modules/mkfifoat: New file.
35968         * lib/mkfifoat.c: Likewise.
35969         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35970         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35971         * modules/sys_stat (Makefile.am): Use them.
35972         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35973         * MODULES.html.sh (File system functions): Mention module.
35974         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35975         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35976         * modules/mkfifoat-tests: New test.
35977         * tests/test-mkfifoat.c: Likewise.
35978
35979         strchrnul: relax license
35980         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35981         okay.
35982         Reported by Jim Meyering.
35983
35984 2009-09-08  Eric Blake  <ebb9@byu.net>
35985
35986         fstatat: fix compilation on Solaris
35987         * lib/fstatat.c (includes): Add fcntl.h.
35988         Reported by Pádraig Brady.
35989
35990 2009-09-07  Eric Blake  <ebb9@byu.net>
35991
35992         rename: modernize replacement
35993         * modules/rename (Depends-on): Add stdio.
35994         (configure.ac): Declare witness.
35995         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35996         stdio take care of replacement.
35997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35998         * modules/stdio (Makefile.am): Substitute them.
35999         * lib/stdio.in.h (rename): Declare replacement.
36000         * lib/rename.c (includes): Allow cross-compilation to non-windows
36001         machines.
36002         * doc/posix-functions/rename.texi (rename): Improve
36003         documentation.
36004
36005         stdio: sort witness names
36006         * modules/stdio (Makefile.am): Sort replacements.
36007         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36008         * lib/stdio.in.h: Likewise.
36009
36010         getcwd: minor cleanups
36011         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
36012         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
36013
36014         openat: provide more convenience names
36015         * modules/faccessat (configure.ac): Add C witness.
36016         * lib/unistd.in.h (readlinkat): Fix typo.
36017         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
36018         convenience wrappers.
36019         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
36020         wrappers in syntax checks.
36021
36022 2009-09-06  Eric Blake  <ebb9@byu.net>
36023
36024         doc: fix comments in recent patches
36025         * lib/faccessat.c: Mention correct function.
36026         * lib/fchmodat.c: Likewise.
36027         * lib/fchownat.c: Likewise.
36028         * lib/symlinkat.c: Likewise.
36029         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
36030         constants.
36031
36032         faccessat, symlinkat: continue cleanup of previous patch
36033         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
36034         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36035         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
36036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
36037         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
36038         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
36039         set.
36040
36041 2009-09-06  Bruno Haible  <bruno@clisp.org>
36042
36043         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
36044         (fstatat): Declare if GNULIB_FSTATAT is set.
36045         (mkdirat): Declare if GNULIB_MKDIRAT is set.
36046         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
36047         (unlinkat): Declare if GNULIB_UNLINKAT is set.
36048         * modules/fcntl-h (Files): Remove m4/openat.m4.
36049         * modules/sys_stat (Files): Remove m4/openat.m4.
36050         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
36051         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
36052         * modules/unistd (Files): Remove m4/openat.m4.
36053         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
36054         GNULIB_OPENAT.
36055         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
36056         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
36057         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
36058         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
36059         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
36060         gl_OPENAT_DEFAULTS.
36061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
36062         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
36063         Don't require gl_OPENAT_DEFAULTS.
36064         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
36065         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
36066         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
36067         (gl_OPENAT_DEFAULTS): Remove macro.
36068
36069 2009-09-06  Bruno Haible  <bruno@clisp.org>
36070
36071         * modules/openat (configure.ac): Remove unneeded witness.
36072
36073 2009-09-06  Bruno Haible  <bruno@clisp.org>
36074
36075         Set errno to ENOSYS when a function is entirely unsupported.
36076         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
36077         EOPNOTSUPP.
36078         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36079         * modules/chown (Depends-on): Remove errno.
36080
36081 2009-09-06  Bruno Haible  <bruno@clisp.org>
36082
36083         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
36084
36085 2009-09-06  Bruno Haible  <bruno@clisp.org>
36086
36087         * lib/sys_stat.in.h: Fix preprocessor command indentation.
36088
36089 2009-09-06  Ben Pfaff  <blp@gnu.org>
36090             Bruno Haible  <bruno@clisp.org>
36091
36092         Work around a glibc bug in strtok_r.
36093         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
36094         Undefine if UNDEFINE_STRTOK_R is set.
36095         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
36096         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36097         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
36098         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
36099         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
36100         UNDEFINE_STRTOK_R.
36101         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
36102
36103 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
36104
36105         exclude: minor fix
36106         * lib/exclude.c: Include wctype.h
36107
36108 2009-09-06  Akim Demaille  <demaille@gostai.com>
36109
36110         bootstrap: improve error message
36111         * build-aux/bootstrap (find_tool): Upon failure, report the list
36112         of candidates.
36113         Honor the initial value of the envvar.
36114
36115 2009-09-05  Eric Blake  <ebb9@byu.net>
36116
36117         symlinkat: new module
36118         * modules/symlinkat: New file.
36119         * lib/symlinkat.c: Likewise.
36120         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
36121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36122         * modules/unistd (Makefile.am): Use them.
36123         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
36124         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
36125         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
36126         * MODULES.html.sh (File system functions): Mention module.
36127         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36128         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36129         * modules/symlinkat-tests: New test.
36130         * tests/test-symlinkat.c: Likewise.
36131
36132         test-openat-safer: add more checks
36133         * tests/test-openat-safer.c (main): Check more code paths.
36134
36135 2009-09-05  Jim Meyering  <meyering@redhat.com>
36136
36137         syntax-check: detect unnecessary inclusion of openat.h
36138         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
36139
36140 2009-09-05  Bruno Haible  <bruno@clisp.org>
36141
36142         Support towlower, towupper.
36143         * doc/posix-functions/towlower.texi: Mention module wctype.
36144         * doc/posix-functions/towupper.texi: Likewise.
36145         * lib/wctype.in.h (towlower, towupper): New functions.
36146         * tests/test-wctype.c: Include stdio.h, stdlib.h.
36147         (ASSERT): New macro.
36148         (e): New variable.
36149         (main): Test also towlower, towupper. Test WEOF argument.
36150         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36151
36152 2009-09-05  Bruno Haible  <bruno@clisp.org>
36153
36154         Fix conversion behaviour when the input is invalid.
36155         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
36156         mark occurring in first pass of indirect conversion.
36157         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
36158         input.
36159         Found by clang's static analyzer.
36160
36161 2009-09-05  Bruno Haible  <bruno@clisp.org>
36162
36163         * tests/test-striconveh.c (main): Test indirect conversion on platforms
36164         where direct conversion is possible.
36165
36166 2009-09-04  Eric Blake  <ebb9@byu.net>
36167
36168         openat: fail with ENOENT on empty name
36169         * lib/openat-proc.c (openat_proc_name): Special-case the empty
36170         buffer.
36171
36172         link-follow: fix logic bug in prior patch
36173         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
36174         reversed sense of yes and no in prior patch.  Avoid confusing
36175         compilation failure with desired semantics.
36176
36177         link-follow: accomodate mingw and cross-compilation
36178         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
36179         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
36180         cross-compilation results to -1, to make linkat easier to
36181         implement when cross-compiling.  Trivially support mingw.
36182         * modules/link-follow (configure.ac): Call new name.
36183         * NEWS: Mention this.
36184
36185 2009-09-03  Eric Blake  <ebb9@byu.net>
36186
36187         faccessat: compile replacement
36188         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
36189         needed.
36190
36191         fts: fix compilation error
36192         * lib/fts.c (includes): Re-add "openat.h", for
36193         openat_needs_fchdir.
36194
36195         faccessat: new module
36196         * modules/faccessat: New file.
36197         * lib/faccessat.c: Likewise.
36198         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36200         * modules/unistd (Makefile.am): Use it.
36201         * lib/unistd.in.h (faccessat): Declare it.
36202         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
36203         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
36204         * MODULES.html.sh (File system functions): Mention it.
36205         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
36206         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36207
36208         euidaccess: prefer POSIX over non-standard implementation
36209         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
36210         * lib/euidaccess.c (euidaccess): Use it if available.
36211
36212         openat: make template easier to use
36213         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
36214         AT_FUNC_F2 to be undefined.
36215         (VALIDATE_FLAG): New macro; use it to reject bad flags.
36216         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
36217         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
36218         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
36219         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
36220         Likewise.
36221         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
36222         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
36223         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
36224         Likewise.
36225
36226         openat: declare in POSIX headers
36227         * NEWS: Mention this.
36228         * modules/openat (configure.ac): Declare witnesses.
36229         (Depends-on): Add fcntl-h, sys_stat, unistd.
36230         (Include): Mention correct headers.
36231         * modules/fcntl-h (Depends-on): Add link-warning.
36232         (Files): Add openat.m4.
36233         (Makefile.am): Substitute witnesses.
36234         * modules/sys_stat (Files, Makefile.am): Likewise.
36235         * modules/unistd (Files, Makefile.am): Likewise.
36236         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
36237         (gl_OPENAT_DEFAULTS): New macro.
36238         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
36239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
36240         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
36241         (SYS_STAT_H): Remove unused variable.
36242         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
36243         * lib/fcntl--.h (includes): Remove unneeded header.
36244         * lib/openat-safer.c (includes): Likewise.
36245         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
36246         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
36247         appropriate headers.
36248         (__OPENAT_PREFIX): Delete.
36249         * lib/fcntl.in.h (openat): Provide declaration.
36250         (AT_FDCWD): Fix Solaris bug.
36251         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
36252         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
36253         * lib/fchmodat.c (includes):  Adjust to find declaration.
36254         * lib/fchownat.c (includes): Likewise.
36255         * lib/mkdirat.c (includes): Likewise.
36256         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
36257         still visible.
36258
36259 2009-09-02  Eric Blake  <ebb9@byu.net>
36260
36261         errno: use consistently
36262         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
36263         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
36264         * lib/canonicalize.c (ELOOP): Likewise.
36265         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
36266         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
36267         * lib/lchown.c (EOPNOTSUPP): Likewise.
36268         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
36269         * lib/savewd.c (ESTALE): Likewise.
36270         * lib/settime.c (ENOSYS): Likewise.
36271         * lib/utimens.c (ENOSYS): Likewise.
36272         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
36273         * lib/chdir-safer.c (ELOOP): Likewise.
36274         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
36275         * modules/c-stack (Depends-on): Add errno.
36276         * modules/canonicalize (Depends-on): Likewise.
36277         * modules/chdir-safer (Depends-on): Likewise.
36278         * modules/fdopendir (Depends-on): Likewise.
36279         * modules/inet_ntop (Depends-on): Likewise.
36280         * modules/inet_pton (Depends-on): Likewise.
36281         * modules/lchown (Depends-on): Likewise.
36282         * modules/openat (Depends-on): Likewise.
36283         * modules/savewd (Depends-on): Likewise.
36284         * modules/settime (Depends-on): Likewise.
36285         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
36286
36287         fts: avoid leaking fds
36288         * modules/fts (Depends-on): Add cloexec.
36289         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
36290         flag.
36291
36292         fts: make directory fds more robust
36293         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
36294         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
36295
36296         backupfile, chdir-long, fts, savedir: make safer
36297         * lib/backupfile.c (includes): Use "dirent--.h", since
36298         numbered_backup can write to stderr during readdir.
36299         * lib/savedir.c (includes): Likewise.
36300         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
36301         emulation can write to stderr on failure.
36302         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
36303         * lib/getcwd.c: Document why opendir_safer is unused.
36304         * lib/glob.c: Likewise.
36305         * lib/scandir.c: Likewise.
36306         * lib/openat-proc.c: Likewise, for open_safer.
36307         * modules/backupfile (Depends-on): Add dirent-safer.
36308         * modules/savedir (Depends-on): Likewise.
36309         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
36310         * modules/chdir-long (Depends-on): Add openat-safer.
36311
36312         openat-safer: new module
36313         * modules/openat-safer: New file.
36314         * lib/openat-safer.c: Likewise.
36315         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
36316         * lib/fcntl-safer.h (openat_safer): Declare.
36317         * lib/fcntl--.h (openat): Override.
36318         * MODULES.html.sh (File descriptor based I/O): Mention it.
36319         * lib/openat.h: Add double-inclusion guards.
36320         * lib/openat.c (includes): Only include "fcntl-safer.h", not
36321         "fcntl--.h", so we can implement openat.
36322         * modules/openat-safer-tests: New test.
36323         * tests/test-openat-safer.c: New file.
36324
36325         dirent-safer: new module
36326         * modules/dirent-safer: New file.
36327         * lib/dirent--.h: Likewise.
36328         * lib/dirent-safer.h: Likewise.
36329         * lib/opendir-safer.c: Likewise.
36330         * m4/dirent-safer.m4: Likewise.
36331         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
36332         * modules/dirent-safer-tests: New test.
36333         * tests/test-dirent-safer.c: New file.
36334         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
36335
36336         fdopendir: optimize on mingw
36337         * lib/unistd.in.h (_gl_directory_name): New prototype.
36338         * lib/fchdir.c (_gl_directory_name): Implement it.
36339         (fchdir): Use it to simplify implementation.
36340         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
36341         fchdir, when available, to avoid calling [f]chdir().
36342
36343         fdopendir: split into its own module
36344         * lib/openat.c (fdopendir): Move...
36345         * lib/fdopendir.c: ...into new file.
36346         * modules/fdopendir: New module.
36347         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
36348         * modules/openat (Depends-on): Add fdopendir.
36349         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
36350         fdopendir here.
36351         * modules/savedir (Depends-on): Only need fdopendir, not full
36352         openat.
36353         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
36354         * lib/openat.h (fdopendir): Drop prototype.
36355         * lib/dirent.in.h (fdopendir): Provide prototype.
36356         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
36357         * modules/dirent (Makefile.am): Substitute them.
36358         * MODULES.html.sh (File system functions): Mention it.
36359         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36360         * modules/fdopendir-tests: New file.
36361         * tests/test-fdopendir.c: Likewise.
36362
36363         fchdir: use more consistent macro convention
36364         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36365         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36366         REPLACE_FCHDIR, rather than relying on config.h macros.
36367         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36368         inside a single make-time REPLACE_FCHDIR block, rather than using
36369         the config.h FCHDIR_REPLACEMENT.
36370         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36371         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36372         Manage fstat replacement.
36373         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36374         REPLACE_FCHDIR.
36375         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36376         (Makefile.am): Substitute REPLACE_FCHDIR.
36377         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36378         FCHDIR_REPLACEMENT.
36379         * lib/dup-safer.c (dup_safer): Likewise.
36380         * lib/dup2.c (rpl_dup2): Likewise.
36381         * lib/dup3.c (rpl_dup3): Likewise.
36382         * lib/open.c (rpl_open): Likewise.
36383
36384         fchdir: simplify error handling, and support dup3
36385         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36386         stdbool, malloc-posix, realloc-posix.
36387         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36388         (ensure_dirs_slot): Return false on allocation failure.
36389         (rpl_dup2): Delete.
36390         (_gl_register_dup): New function.
36391         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
36392         (_gl_register_fd): Close fd on allocation failure.
36393         * lib/fcntl.in.h (_gl_register_fd): Update signature.
36394         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
36395         prototype.
36396         (rpl_dup2_fchdir): Delete prototype.
36397         * lib/open.c (open): Update caller.
36398         * lib/dup2.c (dup2): Track fchdir metadata.
36399         * lib/dup3.c (dup3): Likewise.
36400         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
36401         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
36402
36403 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36404
36405         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
36406         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
36407         don't pass arguments to AC_OUTPUT.
36408
36409 2009-09-02  Bruno Haible  <bruno@clisp.org>
36410
36411         * modules/mkdtemp (License): Relicense under LGPLv2+.
36412         Reported by Paolo Bonzini.
36413
36414 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36415
36416         Replace uses of obsolete autoconf macros in Jim's modules.
36417         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
36418         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
36419         can evoke a warning from autoconf when run with -Wobsolete
36420         enabled.  They were declared obsolete for good reasons (see
36421         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
36422         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
36423         should not continue using the deprecated macros.
36424         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
36425         obsolete Autoconf macros with modern counterparts.
36426         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36427         * m4/dos.m4 (gl_AC_DOS): Likewise.
36428         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
36429         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
36430         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
36431         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
36432         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
36433         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
36434         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
36435         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
36436         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36437         Likewise.
36438         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
36439         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36440         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
36441         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
36442         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36443         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36444
36445 2009-09-01  Eric Blake  <ebb9@byu.net>
36446
36447         fchdir: fix off-by-one bug in previous patch
36448         * lib/fchdir.c (rpl_fstat): Use correct bounds.
36449         (_gl_unregister_fd): Delete useless if.
36450
36451 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
36452
36453         maint.mk: sort the list of syntax-check rules
36454         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
36455         easier to get a sense of progress when the rules are run sequentially
36456         and take a long time.
36457
36458 2009-09-01  Simon Josefsson  <simon@josefsson.org>
36459
36460         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
36461         * modules/netinet_in: Likewise.
36462         * modules/sys_file: Likewise.
36463         * modules/sys_ioctl: Likewise.
36464         * modules/sys_select: Likewise.
36465         * modules/sys_socket: Likewise.
36466         * modules/sys_stat: Likewise.
36467         * modules/sys_time: Likewise.
36468         * modules/sys_times: Likewise.
36469         * modules/sys_utsname: Likewise.
36470         * modules/sys_wait: Likewise.
36471
36472 2009-09-01  Jim Meyering  <meyering@redhat.com>
36473
36474         fts: help ensure that return values are not ignored
36475         * lib/fts_.h (__GNUC_PREREQ): Define.
36476         (__attribute_warn_unused_result__): Define.
36477         (fts_children, fts_close, fts_open, fts_read): Declare with
36478         __attribute_warn_unused_result__.
36479
36480         fts: fts_close now fails also when closing a dir file descriptor fails
36481         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36482         and propagate to caller, along with errno.
36483
36484         announce-gen: correct formatting in --help output
36485         * build-aux/announce-gen (usage): Move the one-line description in
36486         --help output "up", to where it belongs, just after Usage:.
36487
36488 2009-08-31  Eric Blake  <ebb9@byu.net>
36489
36490         fchdir: port to mingw
36491         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36492         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36493         opened, then use a substitute.
36494         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36495         replacement.
36496         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36497         (_gl_register_fd): No need to check stat if open already filters
36498         all directories.
36499         (fchdir): Fix error condition to match POSIX.
36500         * modules/fchdir (Depends-on): Add sys_stat.
36501         * doc/posix-functions/open.texi (open): Document the limitation.
36502         * modules/fchdir-tests: New file.
36503         * tests/test-fchdir.c: Likewise.
36504
36505         canonicalize: allow cross-testing from cygwin to mingw
36506         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36507         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36508         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36509         Likewise.
36510         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36511         target does not support symlinks.
36512         * tests/test-canonicalize-lgpl.sh: Likewise.
36513
36514         chown: avoid compilation warning on mingw
36515         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36516         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36517         mingw.
36518         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36519         * modules/chown (Depends-on): Add errno.
36520
36521 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36522
36523         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36524         command.
36525
36526 2009-08-31  Jim Meyering  <meyering@redhat.com>
36527
36528         canonicalize: remove useless initialization
36529         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36530         initialization of local, "end".
36531
36532 2009-08-30  Bruno Haible  <bruno@clisp.org>
36533
36534         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36535         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36536         ENOSYS.
36537
36538 2009-08-30  Bruno Haible  <bruno@clisp.org>
36539
36540         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36541         /usr/xpg4/bin/tr when it exists.
36542         * tests/test-pipe-filter-gi1.sh: Likewise.
36543
36544 2009-08-30  Bruno Haible  <bruno@clisp.org>
36545
36546         Work around deficient /usr/bin/id program on Solaris.
36547         * tests/test-file-has-acl.sh (ID): New variable.
36548         * tests/test-set-mode-acl.sh (ID): Likewise.
36549         * tests/test-copy-acl.sh (ID): Likewise.
36550         * tests/test-copy-file.sh (ID): Likewise.
36551
36552 2009-08-30  Bruno Haible  <bruno@clisp.org>
36553
36554         New module 'xstriconveh'.
36555         * lib/xstriconveh.h: New file.
36556         * lib/xstriconveh.c: New file.
36557         * modules/xstriconveh: New file.
36558
36559 2009-08-30  Bruno Haible  <bruno@clisp.org>
36560
36561         Make it easier to use mem_cd_iconveh.
36562         * lib/striconveh.h (iconveh_t): New type.
36563         (iconveh_open, iconveh_close): New declarations.
36564         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36565         with a single 'const iconveh_t *' argument.
36566         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36567         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36568         with a single 'const iconveh_t *' argument.
36569         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36570         * tests/test-striconveh.c (main): Update.
36571         * NEWS: Mention the change.
36572
36573 2009-08-30  Bruno Haible  <bruno@clisp.org>
36574
36575         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36576         problem.
36577
36578 2009-08-30  Bruno Haible  <bruno@clisp.org>
36579
36580         Work around iconv_open problem on Solaris.
36581         * lib/iconv_open-solaris.gperf: New file.
36582         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36583         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36584         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36585         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36586         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36587         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36588
36589 2009-08-29  Jim Meyering  <meyering@redhat.com>
36590
36591         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36592         * top/maint.mk (cvs-check): Remove target; it was just an alias
36593         to the better-named vc-diff-check.
36594         (maintainer-distcheck): Remove rule.  It was used only from
36595         the (alpha/beta/major) target, and all of its commands but one
36596         were coreutils-specific.
36597         (vc-dist): Remove rule.
36598         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36599         Run vc-diff-check, not vc-dist.
36600         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36601
36602 2009-08-27  Bruno Haible  <bruno@clisp.org>
36603
36604         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36605         of 0.
36606
36607 2009-08-27  Bruno Haible  <bruno@clisp.org>
36608
36609         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36610         compilers.
36611         * doc/func.texi: Document the SunPRO C bug.
36612
36613 2009-08-27  Bruno Haible  <bruno@clisp.org>
36614
36615         Fix link error on Solaris.
36616         * tests/test-parse-duration.c (xstrdup): Remove function.
36617
36618 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36619
36620         ignore-value: handle pointer types, too
36621         * lib/ignore-value.h (__attribute__): Remove definition.
36622         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36623         of a more concise and more-often effective "(void) i" statement.
36624         (ignore_ptr): New function to suppress warnings from functions that
36625         return pointers, and to make it explicit that one function doesn't
36626         handle all cases.
36627
36628 2009-08-25  Bruno Haible  <bruno@clisp.org>
36629
36630         dup2: work around a Linux bug.
36631         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36632         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36633         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36634         Reported by Simon Josefsson.
36635
36636 2009-08-25  Jim Meyering  <meyering@redhat.com>
36637
36638         libguestfs uses gnulib
36639         * users.txt: Add libguestfs.
36640
36641 2009-08-24  Eric Blake  <ebb9@byu.net>
36642
36643         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36644         * lib/pipe2.c (includes): Add binary-io.h.
36645         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36646
36647 2009-08-24  Bruno Haible  <bruno@clisp.org>
36648
36649         Tolerate declared but missing accept4 syscall.
36650         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36651         available.
36652         * lib/sys_socket.in.h (accept4): If the function is already present,
36653         override it.
36654         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36655         * modules/accept4 (Makefile.am): Compile accept4.c always.
36656         Reported by Paolo Bonzini and Eric Blake.
36657
36658 2009-08-23  Bruno Haible  <bruno@clisp.org>
36659
36660         New module 'accept4'.
36661         * lib/sys_socket.in.h (accept4): New declaration.
36662         * lib/accept4.c: New file.
36663         * m4/accept4.m4: New file.
36664         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36665         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36666         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36667         HAVE_ACCEPT4.
36668         * modules/accept4: New file.
36669         * doc/glibc-functions/accept4.texi: Mention the new module.
36670
36671 2009-08-24  Jim Meyering  <meyering@redhat.com>
36672
36673         progname: also set global program_invocation_name, when possible
36674         Before this change, a libtool-enabled program that calls glibc's
36675         error function would report the program name as
36676         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36677         * modules/progname (configure.ac): Check for a declaration of
36678         program_invocation_name.
36679         * lib/progname.c:  Include <errno.h>.
36680         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36681         Set program_invocation_name.
36682
36683 2009-08-23  Bruno Haible  <bruno@clisp.org>
36684
36685         * lib/dup3.c: Include <string.h>.
36686
36687 2009-08-23  Bruno Haible  <bruno@clisp.org>
36688
36689         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36690         * lib/pipe2.c (pipe2): Likewise.
36691         Suggested by Eric Blake.
36692
36693 2009-08-23  Bruno Haible  <bruno@clisp.org>
36694
36695         Tolerate declared but missing dup3 syscall.
36696         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36697         * lib/unistd.in.h (dup3): If the function is already present,
36698         override it.
36699         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36700         * modules/dup3 (Makefile.am): Compile dup3.c always.
36701         Reported by Paolo Bonzini.
36702
36703 2009-08-23  Bruno Haible  <bruno@clisp.org>
36704
36705         Tolerate declared but missing pipe2 syscall.
36706         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36707         available.
36708         * lib/unistd.in.h (pipe2): If the function is already present,
36709         override it.
36710         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36711         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36712         Reported by Paolo Bonzini.
36713
36714 2009-08-23  Bruno Haible  <bruno@clisp.org>
36715
36716         * lib/pipe2.c (pipe2): Move #ifs inside function.
36717
36718 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36719
36720         quotearg: document limitations of quote_these_too
36721         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36722         those limitations are created.
36723         * lib/quotearg.h (set_char_quoting): Document that digits and
36724         letters that are special after backslash are not permitted.
36725         (quotearg_char): Cross-reference set_char_quoting documentation.
36726
36727 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36728
36729         quotearg: implement custom_quoting_style
36730         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36731         right_quote fields.
36732         (set_custom_quoting): New public function.
36733         (quotearg_buffer_restyled): Add left_quote and right_quote
36734         arguments, handle them very much like locale quoting, and update
36735         all uses.
36736         (quotearg_n_custom): New public function.
36737         (quotearg_n_custom_mem): New public function.
36738         (quotearg_custom): New public function.
36739         (quotearg_custom_mem): New public function.
36740         * lib/quotearg.h: Prototype and document new public functions.
36741         (enum quoting_style): For escape_quoting_style and
36742         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36743         ignored even though they're otherwise like c_quoting_style.
36744         Add custom_quoting_style member and document with comparison to
36745         clocale_quoting_style.
36746         * tests/test-quotearg.c (custom_quotes): New array.
36747         (custom_results): New array.
36748         (main): Extend to test custom quoting.
36749
36750 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36751
36752         quotearg: fix right quote escaping when it's in quote_these_too
36753         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36754         quote, be sure to prepend only one backslash.
36755         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36756         (main): Test it.
36757
36758 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36759
36760         quotearg-tests: test escaping of embedded locale quotes
36761         * tests/test-quotearg.c (struct result_strings): Add member for
36762         new input.
36763         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36764         (inputs): Add new input.
36765         (results_g): Add expected results.
36766         (flag_results): Likewise.
36767         (locale_results): Likewise.
36768         (compare_strings): Check those.
36769
36770 2009-08-23  Bruno Haible  <bruno@clisp.org>
36771
36772         Tests for module 'dup3'.
36773         * modules/dup3-tests: New file.
36774         * tests/test-dup3.c: New file.
36775
36776         New module 'dup3'.
36777         * lib/unistd.in.h (dup3): New declaration.
36778         * lib/dup3.c: New file.
36779         * m4/dup3.m4: New file.
36780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36781         HAVE_DUP3.
36782         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36783         * modules/dup3: New file.
36784         * doc/glibc-functions/dup3.texi: Mention the new module.
36785
36786 2009-08-23  Bruno Haible  <bruno@clisp.org>
36787
36788         Tweak the dup2 test.
36789         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36790         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36791         the test file is still empty. Fix argument order of lseek.
36792
36793 2009-08-23  Bruno Haible  <bruno@clisp.org>
36794
36795         Avoid test link errors when the modules getopt-gnu, gettext are used.
36796         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36797         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36798
36799 2009-08-23  Bruno Haible  <bruno@clisp.org>
36800
36801         Fix getdtablesize() on mingw.
36802         * lib/getdtablesize.c (getdtablesize): Implement differently.
36803         * lib/unistd.in.h (getdtablesize): Improve comment.
36804
36805 2009-08-23  Bruno Haible  <bruno@clisp.org>
36806
36807         New module 'mkostemp'.
36808         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36809         * lib/stdlib.in.h (mksotemp): New declaration.
36810         * lib/mkostemp.c: New file, from glibc with modifications.
36811         * lib/tempname.h (GT_FILE): Remove outdated comment.
36812         (gen_tempname): Add flags argument.
36813         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36814         (__GT_FILE): Map to 1.
36815         (small_open, large_open): Remove macros.
36816         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36817         * lib/mkstemp.c (mkstemp): Update.
36818         * lib/mkdtemp.c (mkdtemp): Likewise.
36819         * m4/mkostemp.m4: New file.
36820         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36821         HAVE_MKOSTEMP.
36822         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36823         HAVE_MKOSTEMP.
36824         * modules/mkostemp: New file, based on modules/mkstemp.
36825         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36826         * NEWS: Mention the change.
36827
36828 2009-08-23  Bruno Haible  <bruno@clisp.org>
36829
36830         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36831         Reported by Eric Blake.
36832
36833 2009-08-23  Bruno Haible  <bruno@clisp.org>
36834
36835         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36836         Reported by Eric Blake.
36837
36838 2009-08-23  Bruno Haible  <bruno@clisp.org>
36839
36840         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36841         * modules/pipe2 (Depends-on): Likewise.
36842
36843 2009-08-23  Eric Blake  <ebb9@byu.net>
36844
36845         fcntl-h: add O_TTY_INIT support
36846         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36847         * tests/test-fcntl-h.c (o): Test it.
36848         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36849
36850         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36851         * modules/fcntl: Move <fcntl.h> header replacement...
36852         * modules/fcntl-h: ...to new name, so as not to collide with
36853         like-named function.
36854         * tests/test-fcntl.c: Rename...
36855         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36856         * modules/fcntl-tests: Rename...
36857         * modules/fcntl-h-tests: ...to this.  Update test file name.
36858         * modules/chdir-long (Depends-on): Update clients.
36859         * modules/chdir-safer (Depends-on): Likewise.
36860         * modules/fcntl-safer (Depends-on): Likewise.
36861         * modules/fts (Depends-on): Likewise.
36862         * modules/mkancesdirs (Depends-on): Likewise.
36863         * modules/mkdir-p (Depends-on): Likewise.
36864         * modules/open (Depends-on): Likewise.
36865         * modules/savewd (Depends-on): Likewise.
36866         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36867         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36868
36869 2009-08-22  Bruno Haible  <bruno@clisp.org>
36870
36871         * modules/binary-io (License): Relicense under LGPL.
36872         * modules/pipe2 (License): Likewise.
36873
36874 2009-08-22  Bruno Haible  <bruno@clisp.org>
36875
36876         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36877         return value.
36878         * lib/pipe-filter-gi.c (filter_init): Likewise.
36879         Reported by Eric Blake.
36880
36881 2009-08-22  Bruno Haible  <bruno@clisp.org>
36882
36883         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36884         * modules/pipe (Depends-on): Add pipe2.
36885
36886 2009-08-22  Bruno Haible  <bruno@clisp.org>
36887
36888         Tests for module 'pipe2'.
36889         * modules/pipe2-tests: New file.
36890         * tests/test-pipe2.c: New file.
36891
36892         New module 'pipe2'.
36893         * lib/unistd.in.h (pipe2): New declaration.
36894         * lib/pipe2.c: New file.
36895         * m4/pipe2.m4: New file.
36896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36897         HAVE_PIPE2.
36898         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36899         * modules/pipe2: New file.
36900         * doc/glibc-functions/pipe2.texi: Mention the new module.
36901
36902 2009-08-22  Bruno Haible  <bruno@clisp.org>
36903
36904         Reference some new glibc functions.
36905         * doc/glibc-functions/accept4.texi: New file.
36906         * doc/glibc-functions/dup3.texi: New file.
36907         * doc/glibc-functions/mkostemp.texi: New file.
36908         * doc/glibc-functions/pipe2.texi: New file.
36909         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36910         (Glibc sys/socket.h): Refer to accept4.
36911         (Glibc unistd.h): Refer to dup3, pipe2.
36912         Reported by Eric Blake.
36913
36914 2009-08-22  Jim Meyering  <meyering@redhat.com>
36915             Bruno Haible  <bruno@clisp.org>
36916
36917         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36918         This makes it so packages using automake-1.11's silent-rules option
36919         can print e.g., a single "GEN    configmake.h" line, rather than
36920         the 30+ statements that perform the job.  If you want to see the
36921         actual commands, you can still run "make V=1".
36922         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36923         so that make output is abbreviated when those variables are defined
36924         appropriately.
36925         * modules/argz: Likewise.
36926         * modules/arpa_inet: Likewise.
36927         * modules/byteswap: Likewise.
36928         * modules/configmake: Likewise.
36929         * modules/dirent: Likewise.
36930         * modules/errno: Likewise.
36931         * modules/fcntl: Likewise.
36932         * modules/float: Likewise.
36933         * modules/fnmatch: Likewise.
36934         * modules/getopt-posix: Likewise.
36935         * modules/glob: Likewise.
36936         * modules/iconv_open: Likewise.
36937         * modules/inttypes: Likewise.
36938         * modules/localcharset: Likewise.
36939         * modules/locale: Likewise.
36940         * modules/math: Likewise.
36941         * modules/netdb: Likewise.
36942         * modules/netinet_in: Likewise.
36943         * modules/poll: Likewise.
36944         * modules/posix_spawnp-tests: Likewise.
36945         * modules/sched: Likewise.
36946         * modules/search: Likewise.
36947         * modules/selinux-h: Likewise.
36948         * modules/signal: Likewise.
36949         * modules/spawn: Likewise.
36950         * modules/stdarg: Likewise.
36951         * modules/stdbool: Likewise.
36952         * modules/stddef: Likewise.
36953         * modules/stdint: Likewise.
36954         * modules/stdio: Likewise.
36955         * modules/stdlib: Likewise.
36956         * modules/string: Likewise.
36957         * modules/strings: Likewise.
36958         * modules/sys_file: Likewise.
36959         * modules/sys_ioctl: Likewise.
36960         * modules/sys_select: Likewise.
36961         * modules/sys_socket: Likewise.
36962         * modules/sys_stat: Likewise.
36963         * modules/sys_time: Likewise.
36964         * modules/sys_times: Likewise.
36965         * modules/sys_utsname: Likewise.
36966         * modules/sys_wait: Likewise.
36967         * modules/sysexits: Likewise.
36968         * modules/time: Likewise.
36969         * modules/unistd: Likewise.
36970         * modules/wchar: Likewise.
36971         * modules/wctype: Likewise.
36972
36973 2009-08-22  Jim Meyering  <meyering@redhat.com>
36974
36975         announce-gen: detect write failure
36976         * build-aux/announce-gen: Add Coda at end.
36977         Remove equivalent-but-more-verbose block at top.
36978
36979 2009-08-19  Akim Demaille  <demaille@gostai.com>
36980
36981         bootstrap: --help to stdout.
36982         * bootstrap (usage): Don't send --help to stderr.
36983         Use a here doc instead of a long string.
36984
36985 2009-08-21  Eric Blake  <ebb9@byu.net>
36986
36987         test-popen-safer: split from test-popen
36988         * tests/test-popen.c (main): Move...
36989         * tests/test-popen.h: ...into new file.
36990         * tests/test-popen-safer2.c: New file.
36991         * modules/popen-tests (Files): Add test-popen.h.
36992         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36993         Suggested by Bruno Haible.
36994
36995         test-fcntl-safer: split from test-open
36996         * tests/test-open.c (main): Move...
36997         * tests/test-open.h: ...into new file.
36998         * tests/test-fcntl-safer.c: New file.
36999         * modules/open-tests (Files): Add test-open.h.
37000         * modules/fcntl-safer-tests: New file.
37001         Suggested by Bruno Haible.
37002
37003         test-fopen-safer: split from test-fopen
37004         * tests/test-fopen.c (main): Move...
37005         * tests/test-fopen.h: ...into new file.
37006         * tests/test-fopen-safer.c: New file.
37007         * modules/fopen-tests (Files): Add test-fopen.h.
37008         * modules/fopen-safer-tests: New file.
37009         Suggested by Bruno Haible.
37010
37011 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37012
37013         popen-safer: test O_CLOEXEC at run-time.
37014         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
37015
37016 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37017
37018         fcntl: move more flags to the header
37019         * lib/cloexec.c: Do not define FD_CLOEXEC here.
37020         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
37021         * lib/fcntl.in.h: Do both things here.
37022
37023 2009-08-21  Jim Meyering  <meyering@redhat.com>
37024
37025         consistently remove $@-t before redirecting to it
37026         * modules/argz: Remove $@-t and $@ before redirecting to the former.
37027         * modules/alloca-opt: Likewise.
37028         * modules/byteswap: Likewise.
37029         * modules/fnmatch: Likewise.
37030         * modules/getopt-posix: Likewise.
37031         * modules/glob: Likewise.
37032         * modules/poll: Likewise.
37033         * modules/posix_spawnp-tests: Likewise.
37034         * modules/sys_socket: Likewise.
37035         * modules/sysexits: Likewise.
37036
37037 2009-08-21  Eric Blake  <ebb9@byu.net>
37038
37039         popen: simplify access to original popen
37040         * lib/popen.c (rpl_popen): No need to worry about popen being a
37041         macro.
37042         Reported by Bruno Haible.
37043
37044 2009-08-20  Eric Blake  <ebb9@byu.net>
37045
37046         build: avoid some compiler warnings
37047         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
37048         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
37049         type.
37050         (new_exclude_segment, excluded_file_pattern_p)
37051         (excluded_file_name_p): Reduce scope.
37052         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
37053         old-style declaration.
37054
37055 2009-08-20  Simon Josefsson  <simon@josefsson.org>
37056
37057         * tests/test-exclude1.sh: Handle Windows EOL.
37058         * tests/test-exclude2.sh: Likewise.
37059         * tests/test-exclude3.sh: Likewise.
37060         * tests/test-exclude4.sh: Likewise.
37061         * tests/test-exclude5.sh: Likewise.
37062         * tests/test-exclude6.sh: Likewise.
37063         * tests/test-exclude7.sh: Likewise.
37064
37065 2009-08-19  Akim Demaille  <demaille@gostai.com>
37066
37067         bootstrap: find sha1sum when named gsha1sum.
37068         * bootstrap (find_tool): New.
37069         ($SHA1SUM): New.
37070         Use it.
37071
37072 2009-08-20  Jim Meyering  <meyering@redhat.com>
37073
37074         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
37075         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
37076         expression that converts "." in a file name to "\." in the resulting
37077         regexp.  Start with a dummy statement, so that prior shell variable
37078         definitions are expanded portably.  Reported by Simon Josefsson.
37079
37080 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
37081
37082         Fix polling for writeability of a screen buffer.
37083         * lib/poll.c: Distinguish input and screen buffers for the
37084         Win32 implementation.
37085         * lib/select.c: Likewise.
37086
37087 2009-08-19  Eric Blake  <ebb9@byu.net>
37088
37089         popen-safer: prevent popen from clobbering std descriptors
37090         * modules/popen-safer: New file.
37091         * lib/popen-safer.c: Likewise.
37092         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
37093         * lib/stdio--.h (popen): Provide override.
37094         * lib/stdio-safer.h (popen_safer): Provide declaration.
37095         * tests/test-popen.c (includes): Partially test this.
37096         * modules/popen-safer-tests: New file, for more tests.
37097         * tests/test-popen-safer.c: Likewise.
37098         * MODULES.html.sh (file stream based Input/Output): Mention it.
37099
37100         tests: test some of the *-safer modules
37101         * modules/fopen-safer (Depends-on): Add fopen.
37102         * modules/fcntl-safer (Depends-on): Add fcntl.
37103         * modules/stdlib-safer (Depends-on): Add stdlib.
37104         (configure.ac): Set indicator.
37105         * modules/unistd-safer (configure.ac): Likewise.
37106         * modules/tmpfile-safer (configure.ac): Likewise.
37107         (Depends-on): Add tmpfile.
37108         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
37109         active.
37110         * tests/test-fopen.c (includes): Test safer versions when they are
37111         in use.
37112         * tests/test-open.c (includes): Likewise.
37113
37114         popen: fix cygwin 1.5 bug when stdin closed
37115         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
37116         * modules/popen: New file.
37117         * modules/popen-tests: Likewise.
37118         * tests/test-popen.c: Likewise.
37119         * m4/popen.m4: Likewise.
37120         * lib/popen.c: Likewise.
37121         * lib/stdio.in.h (popen): New declaration.
37122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
37123         * modules/stdio (Makefile.am): Likewise.
37124         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
37125
37126 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
37127
37128         maint.mk: give full control over update-copyright exclusions
37129         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
37130         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
37131         (update-copyright): Don't force inclusion of top-level
37132         ChangeLog.  Don't force exclusion of all COPYING files, but make
37133         them the default exclusion instead.
37134
37135 2009-08-16  Bruno Haible  <bruno@clisp.org>
37136
37137         Fix test failures on Solaris 10.
37138         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
37139         tests when Solaris iconv() is used.
37140         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
37141         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
37142         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
37143         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
37144         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
37145
37146 2009-08-16  Bruno Haible  <bruno@clisp.org>
37147
37148         Fix test failures on Solaris 10.
37149         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
37150         'tr' program and pass it as first argument.
37151         * tests/test-pipe-filter-gi1.sh: Likewise.
37152         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
37153         program as first argument.
37154         * tests/test-pipe-filter-gi1.c (main): Likewise.
37155
37156 2009-08-16  Eric Blake  <ebb9@byu.net>
37157
37158         fpurge: fix previous commits
37159         * modules/fpurge (Makefile.am): Make replacement conditional,
37160         partially reverting 2007-04-29 change; missed in previous
37161         attempt.
37162         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
37163         is missing.
37164
37165 2009-08-16  Bruno Haible  <bruno@clisp.org>
37166
37167         Clarify fpurge's effect on the file position.
37168         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
37169         * tests/test-fpurge.c (main): Make a second pass for checking the file
37170         position.
37171
37172 2009-08-16  Bruno Haible  <bruno@clisp.org>
37173
37174         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
37175         declaration of fpurge is missing.
37176         * tests/test-fpurge.c (main): Check that the file has not more contents
37177         than expected. Close the file before removing it.
37178
37179 2009-08-15  Eric Blake  <ebb9@byu.net>
37180
37181         fpurge: don't wrap working cygwin implementation
37182         * lib/fpurge.c (fpurge): Fix comment typo.
37183         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
37184         1.7 to avoid replacement.
37185         * tests/test-fpurge.c (main): Enhance test.
37186
37187 2009-08-15  Eric Blake  <ebb9@byu.net>
37188         and Jim Meyering  <meyering@redhat.com>
37189
37190         test-update-copyright: skip if perl is insufficient
37191         * tests/test-update-copyright.sh: Failure to run maintainer tool
37192         should not cause testsuite failure on cygwin 1.5.
37193
37194 2009-08-14  Eric Blake  <ebb9@byu.net>
37195
37196         doc: mention more functions added in cygwin 1.7.0
37197         * doc/posix-headers/limits.texi (limits.h): Update for recent
37198         cygwin additions.
37199         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
37200         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
37201         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
37202         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
37203         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
37204
37205 2009-08-14  Eric Blake  <ebb9@byu.net>
37206
37207         maint.mk: simplify update-copyright rule
37208         * top/maint.mk (update-copyright-local): Delete, and document how
37209         to do it in cfg.mk instead.
37210         (update-copyright-exclude-regexp): Delete, and document how to do
37211         it in .x-update-copyright instead.
37212         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
37213         exclude ChangeLog.
37214
37215 2009-08-14  Bruno Haible  <bruno@clisp.org>
37216
37217         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
37218
37219 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37220
37221         maint.mk: support update-copyright-env
37222         * top/maint.mk (update-copyright-env): Define place-holder.
37223         (update-copyright): Expand $(update-copyright-env) before
37224         invoking update-copyright.
37225
37226 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37227
37228         update-copyright: implement forced reformatting
37229         * build-aux/update-copyright: Implement and document
37230         UPDATE_COPYRIGHT_FORCE.
37231         * tests/test-update-copyright.sh: Test it.
37232
37233 2009-08-14  Eric Blake  <ebb9@byu.net>
37234         and Bruno Haible  <bruno@clisp.org>
37235
37236         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
37237         * tests/test-locale.c: Revert previous patch related to NULL.
37238         * tests/test-stdio.c: Likewise.
37239         * tests/test-stdlib.c: Likewise.
37240         * tests/test-string.c: Likewise.
37241         * tests/test-unistd.c: Likewise.
37242         * modules/time-tests (Depends-on): Add verify.
37243         * modules/wchar-tests (Depends-on): Likewise.
37244         * tests/test-time.c: Test for NULL compliance.
37245         * tests/test-wchar.c: Likewise.
37246         * modules/locale (Depends-on): Add stddef.
37247         * modules/stdio (Depends-on): Likewise.
37248         * modules/stdlib (Depends-on): Likewise.
37249         * modules/string (Depends-on): Likewise.
37250         * modules/time (Depends-on): Likewise.
37251         * modules/unistd (Depends-on): Likewise.
37252         * modules/wchar (Depends-on): Likewise.
37253         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
37254         * lib/stdlib.in.h (includes): Likewise.
37255         * lib/string.in.h (includes): Likewise.
37256         * lib/time.in.h (includes): Likewise.
37257         * lib/unistd.in.h (includes): Likewise.
37258         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
37259         replaced.
37260         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37261         * m4/stddef_h.m4: New file.
37262         * modules/stddef: Likewise.
37263         * lib/stddef.in.h: Likewise.
37264         * modules/stddef-tests: Likewise.
37265         * tests/test-stddef.c: Likewise.
37266         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
37267         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
37268         * doc/posix-headers/locale.texi (locale.h): Likewise.
37269         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
37270         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
37271         * doc/posix-headers/string.texi (string.h): Likewise.
37272         * doc/posix-headers/time.texi (time.h): Likewise.
37273         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
37274         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
37275
37276 2009-08-14  Eric Blake  <ebb9@byu.net>
37277
37278         doc: improve git diff of texinfo files
37279         * .gitattributes: Add rule for *.texi files, with hint on how to
37280         use it.
37281         Copied from m4, and based on a report by Bruno Haible.
37282
37283 2009-08-14  Bruno Haible  <bruno@clisp.org>
37284
37285         Disable multithread support by default on Cygwin 1.5.x for real.
37286         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
37287
37288 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37289
37290         update-copyright: much ado about intervals
37291         * build-aux/update-copyright: Implement and document
37292         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
37293         of copyright year intervals.
37294         Also, document UPDATE_COPYRIGHT_YEAR.
37295         * tests/test-update-copyright.sh: Test it.
37296
37297         update-copyright: convert 2-digit to 4-digit years
37298         * build-aux/update-copyright: Implement and document.
37299         * tests/test-update-copyright.sh: Update.
37300
37301 2009-08-14  Jim Meyering  <meyering@redhat.com>
37302
37303         test-exclude: avoid coreutils "make check" failure
37304         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
37305         just as in test-argmatch.c.
37306
37307 2009-08-13  Eric Blake  <ebb9@byu.net>
37308
37309         test-dup2: fix bad assumption
37310         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
37311         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
37312
37313         test-version-etc: fix CRLF portability issue
37314         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
37315         recognize \r.
37316         * tests/test-argp-version-etc-1.sh: Likewise.
37317
37318         getopt: update client modules
37319         * modules/argp (Depends-on): Use getopt-gnu.
37320         * modules/git-merge-changelog (Depends-on): Likewise.
37321         * modules/long-options (Depends-on): Likewise.
37322         * modules/xstrtol (Depends-on): Likewise.
37323
37324 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37325
37326         * tests/test-version-etc.sh: Don't fail on different
37327         project/version.  Don't fail on CRLF differences.  Rewrite to use
37328         multiple -e instead of multiple sed forks, suggested by Eric Blake
37329         <ebb9@byu.net>.
37330         * tests/test-argp-version-etc-1.sh: Likewise.
37331
37332 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37333
37334         * tests/test-version-etc.sh: Don't fail on different
37335         project/version.
37336
37337 2009-08-12  Bruno Haible  <bruno@clisp.org>
37338
37339         Tests for modules 'getopt-posix', 'getopt-gnu'.
37340         * modules/getopt-posix-tests: New file.
37341         * tests/test-getopt.c: New file.
37342         * tests/test-getopt.h: New file.
37343         * tests/test-getopt_long.h: New file.
37344
37345         New modules 'getopt-posix', 'getopt-gnu'.
37346         * modules/getopt-gnu: New file, renamed from modules/getopt.
37347         * modules/getopt-posix: New file.
37348         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
37349         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
37350         (gl_GETOPT): Remove macro.
37351         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
37352         Disable the test against BSD systems that declare optreset. Test
37353         against mingw bug. Test against lack of support of optional arguments
37354         on many platforms.
37355         * doc/glibc-headers/getopt.texi: Update module name and list of
37356         relevant platforms.
37357         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37358         'getopt-gnu' and more portability problems.
37359         * NEWS: Mention the changes.
37360
37361 2009-08-12  Bruno Haible  <bruno@clisp.org>
37362
37363         Ensure that optarg etc. get declared by <unistd.h>.
37364         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37365         AC_USE_SYSTEM_EXTENSIONS.
37366         * modules/getopt (Depends-on): Add 'extensions'.
37367
37368 2009-08-12  Bruno Haible  <bruno@clisp.org>
37369
37370         Avoid test link errors.
37371         * modules/pipe-filter-ii-tests (Makefile.am): Define
37372         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37373         * modules/pipe-filter-gi-tests (Makefile.am): Define
37374         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37375         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37376
37377 2009-08-12  Bruno Haible  <bruno@clisp.org>
37378
37379         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
37380         gl_GETOPT_SUBSTITUTE before.
37381         (gl_GETOPT): Use it.
37382         * m4/argp.m4 (gl_ARGP): Update.
37383         Reported by Sergey Poznyakoff.
37384
37385         * m4/getopt.m4: Reorder macros.
37386         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
37387         (gl_GETOPT_SUBSTITUTE): Remove macro.
37388
37389 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37390
37391         Minor improvement in gitlog-to-changelog
37392
37393         * build-aux/gitlog-to-changelog: New option `--format' makes
37394         output format string configurable.
37395
37396 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37397
37398         Optimize exclude: use hash tables for non-wildcard patterns.
37399
37400         * lib/exclude.c: Include hash.h and mbuiter.h
37401         (struct exclude_pattern, exclude_segment): New data types.
37402         (struct exclude): Rewrite.
37403         (fnmatch_pattern_has_wildcards): New function.
37404         (new_exclude_segment, free_exclude_segment): New functions.
37405         (excluded_file_pattern_p, excluded_file_name_p): New functions.
37406         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
37407         * lib/exclude.h (is_fnmatch_pattern): New prototype.
37408         * modules/exclude: Depend on hash and mbuiter.
37409
37410         * modules/exclude-tests: New file.
37411         * tests/test-exclude.c: New file.
37412         * tests/test-exclude1.sh: New file.
37413         * tests/test-exclude2.sh: New file.
37414         * tests/test-exclude3.sh: New file.
37415         * tests/test-exclude4.sh: New file.
37416         * tests/test-exclude5.sh: New file.
37417         * tests/test-exclude6.sh: New file.
37418         * tests/test-exclude7.sh: New file.
37419
37420 2009-08-12  Bruno Haible  <bruno@clisp.org>
37421
37422         Ensure that getopt() gets declared by <unistd.h>.
37423         * lib/unistd.in.h: Conditionally include getopt.h.
37424         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
37425         Set GNULIB_UNISTD_H_GETOPT.
37426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37427         GNULIB_UNISTD_H_GETOPT.
37428         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
37429
37430 2009-08-12  Bruno Haible  <bruno@clisp.org>
37431
37432         Clarify logic.
37433         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
37434         gl_replace_getopt instead of GETOPT_H.
37435
37436 2009-08-12  Bruno Haible  <bruno@clisp.org>
37437
37438         * m4/getopt.m4: Add comments.
37439
37440 2009-08-12  Bruno Haible  <bruno@clisp.org>
37441
37442         Disable multithread support by default on Cygwin 1.5.x.
37443         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
37444         set gl_use_threads=no if not specified otherwise.
37445
37446 2009-08-11  Bruno Haible  <bruno@clisp.org>
37447
37448         Avoid compilation error on NetBSD 5.0.
37449         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
37450         * tests/test-stdio.c: Likewise.
37451         * tests/test-stdlib.c: Likewise.
37452         * tests/test-string.c: Likewise.
37453         * tests/test-unistd.c: Likewise.
37454         Reported by Greg Troxel <gdt@ir.bbn.com>
37455         at <https://savannah.gnu.org/support/?106973>.
37456
37457 2009-08-11  Bruno Haible  <bruno@clisp.org>
37458
37459         * modules/dup2-tests (Depends-on): Remove close.
37460
37461         Undo 2009-07-19 commit.
37462         * modules/acl-tests (Depends-on): Remove close.
37463         * modules/binary-io-tests (Depends-on): Likewise.
37464         * modules/closein-tests (Depends-on): Likewise.
37465         * modules/flock-tests (Depends-on): Likewise.
37466         * modules/fsync-tests (Depends-on): Likewise.
37467         * modules/lseek-tests (Depends-on): Likewise.
37468         * modules/pipe-tests (Depends-on): Likewise.
37469         * modules/posix_spawn-tests (Depends-on): Likewise.
37470         * modules/posix_spawnp-tests (Depends-on): Likewise.
37471         * modules/stat-time-tests (Depends-on): Likewise.
37472         * modules/yesno-tests (Depends-on): Likewise.
37473
37474 2009-08-10  Bruno Haible  <bruno@clisp.org>
37475
37476         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37477
37478 2009-08-10  Bruno Haible  <bruno@clisp.org>
37479
37480         Fix a gcc warning.
37481         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37482
37483 2009-08-10  Bruno Haible  <bruno@clisp.org>
37484
37485         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37486         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37487         not only the first time.
37488         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37489         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37490         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37491         is 1, not only the the first time.
37492
37493 2009-08-10  Bruno Haible  <bruno@clisp.org>
37494
37495         Make it possible to use module 'gethostname' without module 'close'.
37496         * lib/unistd.in.h (close): Evoke a link error only if
37497         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37499         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37500         * modules/unistd (Makefile.am): Substitute
37501         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37502         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37503         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37504         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37505         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37506         * modules/sys_ioctl (Makefile.am): Substitute
37507         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37508         * modules/socket (configure.ac): On native Windows, set
37509         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37510         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37511         Reported by Sam Steingold <sds@gnu.org>.
37512
37513 2009-08-10  Bruno Haible  <bruno@clisp.org>
37514
37515         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37516         * modules/ioctl (configure.ac): Likewise.
37517
37518 2009-08-10  Bruno Haible  <bruno@clisp.org>
37519
37520         Avoid collision between gnulib wrapper and libintl wrapper.
37521         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37522         already defined in intl/printf.c.
37523         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37524         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37525
37526 2009-08-09  Bruno Haible  <bruno@clisp.org>
37527
37528         Make <sys/select.h> really self-contained, also on Solaris 10.
37529         * lib/sys_select.in.h: Include <string.h>.
37530         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37531         Solaris 10 problem.
37532         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37533         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37534         Reported by Jim Meyering.
37535
37536 2009-08-09  Bruno Haible  <bruno@clisp.org>
37537
37538         Avoid warnings from 'aclocal' that are due to a use of macro name
37539         AM_XGETTEXT_OPTION that is not defined in automake.
37540         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37541         automake.
37542         * modules/error (configure.ac): Likewise.
37543         * modules/propername (configure.ac): Likewise.
37544         * modules/vasprintf (configure.ac): Likewise.
37545         * modules/verror (configure.ac): Likewise.
37546         * modules/xprintf (configure.ac): Likewise.
37547         * modules/xvasprintf (configure.ac): Likewise.
37548
37549 2009-08-08  Bruno Haible  <bruno@clisp.org>
37550
37551         Avoid compilation error in C++ mode.
37552         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37553         Reported by Sam Steingold <sds@gnu.org>.
37554
37555 2009-08-08  Bruno Haible  <bruno@clisp.org>
37556
37557         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37558         for the various Unix platforms.
37559         * doc/posix-headers/limits.texi: Update platforms list regarding
37560         HOST_NAME_MAX.
37561         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37562
37563 2009-08-07  Jim Meyering  <meyering@redhat.com>
37564
37565         selinux-at: fix typo in a comment
37566         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37567         Spotted by Paolo Bonzini.
37568
37569         selinux-at: remove redundant m4 code, add documentation
37570         * modules/selinux-at (configure.ac): Remove redundant code.
37571         LIB_SELINUX is already set via the dependent module, selinux-h.
37572         (Include): Add quotes around selinux-at.h.
37573         * lib/selinux-at.h: Add documentation.
37574         Reported by Bruno Haible in
37575         http://marc.info/?l=gnulib-bug&m=124958988300749
37576
37577 2009-08-07  Bruno Haible  <bruno@clisp.org>
37578
37579         Avoid link error on MacOS X 10.3 and 10.4.
37580         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37581         on non-ELF systems.
37582         * lib/argp-pv.c (argp_program_version): Likewise.
37583         Reported by Simon Josefsson.
37584
37585 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37586
37587         * tests/test-version-etc.sh: Use $EXEEXT.
37588
37589 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37590
37591         update-copyright: update documentation to point to maint.mk
37592         * build-aux/update-copyright: Here.
37593
37594 2009-08-06  Jim Meyering  <meyering@redhat.com>
37595
37596         maint.mk: support update-copyright-local
37597         * top/maint.mk (update-copyright-local): Define place-holder.
37598         (update-copyright): Depend on $(update-copyright-local).
37599
37600 2009-08-06  Jim Meyering  <meyering@redhat.com>
37601
37602         selinux-at: new module
37603         Initially written for coreutils, this module will soon be
37604         used by findutils, too.
37605         * MODULES.html.sh [Misc]: Add selinux-at.
37606         * lib/selinux-at.h: New file, from coreutils.
37607         * lib/selinux-at.c: Likewise.
37608         * modules/selinux-at: Likewise.
37609         (License): Change from LGPL to GPL, since it depends
37610         on the GPL'd openat module.
37611
37612         doc: update README
37613         * README: Remove references to cogito.
37614         Remove cvs-repo-updating instructions from 2007.
37615         Don't imply that CVS is better if you have limited disk space.
37616
37617 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37618
37619         update-copyright: support C-style comments
37620         * build-aux/update-copyright: Implement and document.
37621         * tests/test-update-copyright.sh: Test.
37622
37623 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37624
37625         update-copyright: support omitted "(C)"
37626         * build-aux/update-copyright: Implement and document.  Also,
37627         allow variable whitespace before "(C)".
37628         * tests/test-update-copyright.sh: Test.
37629
37630 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37631
37632         update-copyright: don't trip on non-FSF copyright statements
37633         * build-aux/update-copyright: Fix so that the first correctly
37634         formatted FSF copyright statement is recognized no matter what
37635         appears before it.  Update documentation.
37636         * tests/test-update-copyright.sh: Test that.
37637
37638 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37639
37640         update-copyright: clean up code a little
37641         * build-aux/update-copyright: Append "_re" to the name of any
37642         variable holding a regular expression.
37643         Replace "old" and "new" with "stmt" in variable names.
37644         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37645         handled correctly.
37646         Format code more consistently.
37647
37648 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37649
37650         update-copyright-tests: improve portability
37651         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37652         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37653
37654 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37655
37656         update-copyright: support @copyright{} and &copy;
37657         * build-aux/update-copyright: Implement and document.
37658         * tests/test-update-copyright.sh: Test.
37659
37660 2009-08-04  Jim Meyering  <meyering@redhat.com>
37661
37662         update-copyright-tests: correctly test EOL=\r\n handling
37663         * tests/test-update-copyright.sh: Put \r at the end of some lines
37664         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37665
37666         maint.mk: make update-copyright exclusion list more configurable
37667         * top/maint.mk (update-copyright): Default to excluding COPYING,
37668         but allow an override, in case someone does want to update that file.
37669
37670         maint.mk: don't update copyright date in COPYING
37671         * top/maint.mk (update-copyright): Exclude COPYING.
37672
37673         maint.mk: add a copyright-updating rule
37674         * top/maint.mk (update-copyright): New rule.
37675         Derived from coreutils/Makefile.am.
37676
37677         update-copyright: rename some variables
37678         * build-aux/update-copyright: Rename a few variables for clarity.
37679         Tweak syntax.  List Joel E. Denny as coauthor.
37680
37681 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37682
37683         update-copyright: fix bug for 2-digit last year and add tests
37684         * build-aux/update-copyright: Fix bug.
37685         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37686         specified.
37687         * modules/update-copyright-tests: New
37688         * tests/test-update-copyright.sh: New.
37689
37690 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37691
37692         update-copyright: handle leading tabs in line prefix
37693         * build-aux/update-copyright: Count leading tabs as 8 spaces
37694         when computing margin.  This helps with the formatting of
37695         ChangeLogs, for example.
37696         Fix documentation a little.
37697
37698 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37699
37700         update-copyright: support EOL=\r\n
37701         * build-aux/update-copyright: Implement that.
37702
37703 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37704
37705         update-copyright: automatically format copyright statements
37706         * build-aux/update-copyright: Implement that.
37707         Also, be a little more predictable and safer by always failing
37708         when the full copyright format is not perfectly recognized as an
37709         unbroken whole.  Discussed at
37710         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37711         Rewrite documentation.
37712
37713 2009-08-03  Bruno Haible  <bruno@clisp.org>
37714
37715         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37716
37717 2009-08-02  Bruno Haible  <bruno@clisp.org>
37718
37719         Tests for module 'uname'.
37720         * modules/uname-tests: New file.
37721         * tests/test-uname.c: New file.
37722
37723         New module 'uname'.
37724         * lib/uname.c: New file.
37725         * m4/uname.m4: New file.
37726         * modules/uname: New file.
37727         * doc/posix-functions/uname.texi: Mention the new module.
37728
37729 2009-08-02  Bruno Haible  <bruno@clisp.org>
37730
37731         Tests for module 'sys_utsname'.
37732         * modules/sys_utsname-tests: New file.
37733         * tests/test-sys_utsname.c: New file.
37734
37735         New module 'sys_utsname'.
37736         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37737         * m4/sys_utsname_h.m4: New file.
37738         * modules/sys_utsname: New file.
37739         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37740
37741 2009-08-02  Bruno Haible  <bruno@clisp.org>
37742
37743         Implicitly initialize the sockets library.
37744         * lib/gethostname.c: Include sockets.h.
37745         (rpl_gethostname): Invoke gl_sockets_startup.
37746         * lib/socket.c: Include sockets.h.
37747         (rpl_socket): Invoke gl_sockets_startup.
37748         * modules/gethostname (Depends-on): Add sockets.
37749         * modules/socket (Depends-on): Likewise.
37750         * tests/test-poll.c: Don't include sockets.h.
37751         (main): Don't invoke gl_sockets_startup.
37752         * tests/test-select.c: Don't include sockets.h.
37753         (main): Don't invoke gl_sockets_startup.
37754
37755 2009-08-02  Bruno Haible  <bruno@clisp.org>
37756
37757         Allow multiple calls to gl_sockets_startup.
37758         * lib/sockets.c (initialized_sockets_version): New variable.
37759         (gl_sockets_startup): Do nothing if already called for this or a higher
37760         version.
37761         (gl_sockets_cleanup): Reset initialized_sockets_version.
37762
37763 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37764
37765         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37766         different project/version.
37767
37768 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37769             Bruno Haible  <bruno@clisp.org>
37770
37771         Tests for module 'pipe-filter-gi'.
37772         * modules/pipe-filter-gi-tests: New file.
37773         * tests/test-pipe-filter-gi1.sh: New file.
37774         * tests/test-pipe-filter-gi1.c: New file.
37775         * tests/test-pipe-filter-gi2.sh: New file.
37776         * tests/test-pipe-filter-gi2-main.c: New file.
37777         * tests/test-pipe-filter-gi2-child.c: New file.
37778
37779         New module 'pipe-filter-gi'.
37780         * lib/pipe-filter-gi.c: New file.
37781         * modules/pipe-filter-gi: New file.
37782
37783 2009-08-02  Bruno Haible  <bruno@clisp.org>
37784             Paolo Bonzini  <bonzini@gnu.org>
37785
37786         Tests for module 'pipe-filter-ii'.
37787         * modules/pipe-filter-ii-tests: New file.
37788         * tests/test-pipe-filter-ii1.sh: New file.
37789         * tests/test-pipe-filter-ii1.c: New file.
37790         * tests/test-pipe-filter-ii2.sh: New file.
37791         * tests/test-pipe-filter-ii2-main.c: New file.
37792         * tests/test-pipe-filter-ii2-child.c: New file.
37793
37794         New module 'pipe-filter-ii'.
37795         * lib/pipe-filter.h: New file.
37796         * lib/pipe-filter-ii.c: New file.
37797         * lib/pipe-filter-aux.h: New file.
37798         * modules/pipe-filter-ii: New file.
37799
37800 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37801
37802         * lib/gc-libgcrypt.c: Change copyright to FSF.
37803         * lib/gc-gnulib.c: Likewise.
37804
37805 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37806
37807         * lib/gethostname.c: Include limits.h.
37808
37809 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37810             Bruno Haible  <bruno@clisp.org>
37811
37812         Ensure HOST_NAME_MAX as part of the gethostname module.
37813         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37814         define also HOST_NAME_MAX.
37815         * tests/test-gethostname.c: Include <limits.h>.
37816         (main): Check also HOST_NAME_MAX.
37817         * doc/posix-headers/limits.texi: Document the mingw problem.
37818
37819 2009-08-02  Bruno Haible  <bruno@clisp.org>
37820
37821         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37822         Add comments.
37823
37824 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37825
37826         * lib/gethostname.c: Add Windows wrapper.
37827         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37828         * modules/gethostname: Depend on sys_socket & errno, for also
37829         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37830         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37831
37832 2009-07-31  Jim Meyering  <meyering@redhat.com>
37833
37834         getloadavg: fix symbol name in comment
37835         * lib/getloadavg.c: Correct a typo I introduced when adding
37836         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37837         Matt Kraai spotted the problem.
37838
37839 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37840
37841         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37842         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37843         code also if ! defined N_NAME_POINTER.
37844         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37845         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37846         but the n_name member is a 12-byte array.
37847
37848 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37849
37850         update-copyright: generalize comment handling
37851         * build-aux/update-copyright: Handle copyright statements
37852         within more comment styles.
37853         Document usage.
37854         Report any file with an external copyright holder or parse failure.
37855
37856 2009-07-29  Jim Meyering  <meyering@redhat.com>
37857
37858         mktime: correct setting of REPLACE_MKTIME
37859         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37860
37861         update-copyright: new module
37862         * modules/update-copyright: New file.
37863         * build-aux/update-copyright: New file.
37864         * MODULES.html.sh (maint+release support): Add update-copyright.
37865
37866 2009-07-27  Bruno Haible  <bruno@clisp.org>
37867
37868         Fix compilation error when <ctime> is used and mktime is replaced.
37869         * lib/time.in.h (mktime): New declaration.
37870         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37871         REPLACE_MKTIME instead of defining mktime in config.h.
37872         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37873         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37874         Reported by Ross McFarland <rwmcfa1@neces.com>.
37875
37876 2009-07-27  Bruno Haible  <bruno@clisp.org>
37877
37878         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37879         Reported by Matt Kraai <mkraai@beckman.com>.
37880
37881 2009-07-25  Jim Meyering  <meyering@redhat.com>
37882
37883         maint.mk: avoid warnings about missing files
37884         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37885         diagnostic when .prev-version does not exist.
37886         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37887         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37888         nonexistent cfg.mk.
37889         Suggestions from Simon Josefsson.
37890
37891 2009-07-25  Bruno Haible  <bruno@clisp.org>
37892
37893         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37894         defined as macros. Needed on QNX 6.4.1.
37895         Reported by Matt Kraai <mkraai@beckman.com>.
37896
37897 2009-07-23  Jim Meyering  <meyering@redhat.com>
37898
37899         maint.mk: invoke "make dist" with a working value of XZ_OPT
37900         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37901
37902 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37903
37904         Make fseeko.c compile on QNX.
37905         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37906
37907 2009-07-22  Peter Simons  <simons@cryp.to>
37908
37909         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37910         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37911         * lib/md4.h: Likewise.
37912         * lib/md5.h: Likewise.
37913         * lib/sha1.h: Likewise.
37914         * lib/sha256.h: Likewise.
37915         * lib/sha512.h: Likewise.
37916
37917         tests-sha1: don't assign literal string to 'char *' variable
37918         * tests/test-sha1.c (main): Declare locals with "const" to match
37919         attributes of the right hand side.
37920
37921 2009-07-21  Eric Blake  <ebb9@byu.net>
37922
37923         dup2: fix more mingw problems
37924         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37925         fd to itself.
37926         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37927         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37928         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37929         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37930         care of mingw bugs.
37931
37932 2009-07-21  Jim Meyering  <meyering@redhat.com>
37933
37934         vc-list-files: avoid failure when /bin/sh is dash
37935         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37936         On some Debian based systems, /bin/sh is a symlink to dash, and running
37937         this command would omit the "/" following each 'tests' prefix:
37938           dash -x build-aux/vc-list-files -C . tests
37939         That is because bash and dash work differently:
37940           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37941           bash ok
37942           dash odd
37943
37944 2009-07-21  Eric Blake  <ebb9@byu.net>
37945
37946         dup2-tests: test previous patch
37947         * modules/dup2-tests: New file.
37948         * tests/test-dup2.c: Likewise.
37949         * tests/test-open.c (main): Avoid unspecified behavior.
37950         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37951         test.
37952
37953         dup2: work around mingw and cygwin 1.5 bug
37954         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37956         * modules/unistd (Makefile.am): Substitute it.
37957         * lib/unistd.in.h (dup2): Declare the replacement.
37958         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37959         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37960         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37961         * modules/execute (Depends-on): Add dup2.
37962         * modules/fseterr (Depends-on): Likewise.
37963         * modules/pipe (Depends-on): Likewise.
37964         * modules/posix_spawn-internal (Depends-on): Likewise.
37965
37966 2009-07-21  Bruno Haible  <bruno@clisp.org>
37967
37968         * modules/.gitattributes: New file.
37969
37970 2009-07-20  Bruno Haible  <bruno@clisp.org>
37971
37972         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37973         (main): Use it.
37974
37975 2009-07-20  Eric Blake  <ebb9@byu.net>
37976
37977         test-pipe: make a bit more robust.
37978         * tests/test-pipe.c (myerr): Allow error messages regardless of
37979         what we do to stderr.
37980         (test_pipe): Rearrange to avoid deadlock.
37981         (child_main): Try a larger read, to ensure we avoided deadlock.
37982         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37983         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37984         if misused.
37985
37986 2009-07-19  Jim Meyering  <meyering@redhat.com>
37987
37988         fts: avoid false-positive cycle-detection
37989         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37990         for each new command line argument.
37991
37992 2009-07-19  Bruno Haible  <bruno@clisp.org>
37993
37994         Fix build error on mingw with the modules sys_select and unistd.
37995         * modules/acl-tests (Depends-on): Add close.
37996         * modules/binary-io-tests (Depends-on): Likewise.
37997         * modules/closein-tests (Depends-on): Likewise.
37998         * modules/flock-tests (Depends-on): Likewise.
37999         * modules/fsync-tests (Depends-on): Likewise.
38000         * modules/lseek-tests (Depends-on): Likewise.
38001         * modules/pipe-tests (Depends-on): Likewise.
38002         * modules/posix_spawn-tests (Depends-on): Likewise.
38003         * modules/posix_spawnp-tests (Depends-on): Likewise.
38004         * modules/stat-time-tests (Depends-on): Likewise.
38005         * modules/yesno-tests (Depends-on): Likewise.
38006
38007 2009-07-19  Bruno Haible  <bruno@clisp.org>
38008
38009         Unify conditionals.
38010         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
38011         macros, not at the compiler macros.
38012         * lib/pipe.c: Likewise.
38013         * lib/execute.c: Likewise.
38014         * lib/spawni.c: Likewise.
38015
38016 2009-07-19  Bruno Haible  <bruno@clisp.org>
38017
38018         Fix handling of closed stdin/stdout/stderr on mingw.
38019         * lib/w32spawn.h: Include unistd.h.
38020         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
38021         file descriptor with O_NOINHERIT flag.
38022         (fd_safer_noinherit): New function, based on fd-safer.c.
38023         (dup_safer_noinherit): New function, based on dup-safer.c.
38024         (undup_safer_noinherit): New function.
38025         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
38026         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
38027         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
38028         instead of fd_safer.
38029         * tests/test-pipe.c: Include <windows.h>.
38030         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
38031         result.
38032
38033         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
38034         from main.
38035         (test_pipe): Pass an extra argument for disambiguation.
38036         (main): Invoke parent_main or child_main.
38037
38038         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
38039         consistently.
38040
38041 2009-07-18  Eric Blake  <ebb9@byu.net>
38042
38043         test-pipe: fix mingw build
38044         * tests/test-pipe.c (main): Avoid fcntl on mingw.
38045
38046 2009-07-18  Bruno Haible  <bruno@clisp.org>
38047
38048         * modules/pipe-tests (Makefile.am): Fix typo.
38049
38050 2009-07-18  Eric Blake  <ebb9@byu.net>
38051
38052         error: fix mingw build
38053         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
38054         Reported by Bruno Haible.
38055
38056         error: avoid undefined use of stdout
38057         * lib/error.c (error, error_at_line): Check that fd 1 is open
38058         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
38059         is handling faults and the close_stdout module wants to report the
38060         detection of closed stdout as an error.
38061
38062 2009-07-17  Eric Blake  <ebb9@byu.net>
38063
38064         pipe: be robust in face of closed fds
38065         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
38066         should cause child to misbehave.
38067         * modules/pipe-tests: New module.
38068         * tests/test-pipe.c: New file.
38069         * tests/test-pipe.sh: New file.
38070         Reported by Akim Demaille.
38071
38072 2009-07-14  Bruno Haible  <bruno@clisp.org>
38073
38074         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
38075         Reported by anonymous kc.
38076
38077 2009-07-07  Jim Meyering  <meyering@redhat.com>
38078
38079         maint.mk: don't look for translatable strings in *.m4 or *.mk
38080         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
38081         when searching for translatable strings.
38082
38083 2009-07-05  Jim Meyering  <meyering@redhat.com>
38084
38085         remove superfluous parentheses in STREQ definition
38086         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
38087         * lib/getugroups.c (STREQ): Likewise.
38088         * lib/fnmatch.c (STREQ): Likewise.
38089         Spotted by Bruno Haible.
38090
38091 2009-07-04  Jim Meyering  <meyering@redhat.com>
38092
38093         argv-iter: new module
38094         * MODULES.html.sh: Add argv-iter.
38095         * lib/argv-iter.c, lib/argv-iter.h: New files.
38096         * modules/argv-iter: New file.
38097         * modules/argv-iter-tests: New file.
38098         * tests/test-argv-iter.c: Test it.
38099
38100 2009-07-04  Bruno Haible  <bruno@clisp.org>
38101
38102         Fix assertion.
38103         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
38104         contains more exact copies of a given entry than file2, leave the extra
38105         copies unpaired rather than aborting.
38106         Reported by Eric Blake.
38107
38108 2009-07-02  Bruno Haible  <bruno@clisp.org>
38109
38110         Speedup git-merge-changelog for git cherry-pick.
38111         * lib/git-merge-changelog.c (struct entries_mapping): New type.
38112         (entries_mapping_get): New function, extracted from compute_mapping.
38113         (entries_mapping_reverse_get): New function.
38114         (compute_mapping): Add a 'full' argument. Return the result in a
38115         'struct entries_mapping'.
38116         (main): Update. Access the mappings through entries_mapping_get.
38117         Reported by Eric Blake.
38118
38119 2009-07-02  Bruno Haible  <bruno@clisp.org>
38120
38121         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
38122         best_i.
38123
38124 2009-07-02  Bruno Haible  <bruno@clisp.org>
38125
38126         Speed up approximate search for matching ChangeLog entries.
38127         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
38128         argument. Call fstrcmp_bounded instead of fstrcmp.
38129         (compute_mapping, try_split_merged_entry, main): Update callers.
38130
38131 2009-07-02  Bruno Haible  <bruno@clisp.org>
38132
38133         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
38134
38135 2009-06-30  Bruno Haible  <bruno@clisp.org>
38136
38137         Reduce the number of uc_is_cased calls.
38138         * lib/unicase.h (casing_suffix_context_t): Add
38139         'first_char_except_ignorable' field.
38140         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
38141         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
38142         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
38143         Update initializer.
38144         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
38145         case-ignorable characters.
38146         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
38147         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
38148         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
38149         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
38150         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
38151
38152 2009-06-30  Bruno Haible  <bruno@clisp.org>
38153
38154         Tests for module 'unicase/ignorable'.
38155         * modules/unicase/ignorable-tests: New file.
38156         * tests/unicase/test-ignorable.c: New file, generated by
38157         gen-uni-tables.
38158
38159         Tests for module 'unicase/cased'.
38160         * modules/unicase/cased-tests: New file.
38161         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
38162         * tests/unicase/test-predicate-part1.h: New file, derived from
38163         tests/unictype/test-predicate-part1.h.
38164         * tests/unicase/test-predicate-part2.h: New file, same as
38165         tests/unictype/test-predicate-part2.h.
38166
38167         Fix evaluation of "Before C" condition of FINAL_SIGMA.
38168         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
38169         (output_casing_properties): New function.
38170         (main): Call it.
38171         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
38172         * lib/unicase/cased.c: Include unictype/bitmap.h.
38173         (uc_is_cased): Define through a bitmap lookup.
38174         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
38175         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
38176         (uc_is_case_ignorable): Define through a bitmap lookup.
38177         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
38178         lib/unictype/bitmap.h.
38179         (Depends-on): Add inline. Clean up.
38180         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
38181         lib/unictype/bitmap.h.
38182         (Depends-on): Add inline. Clean up.
38183         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
38184         recognition.
38185         * tests/unicase/test-u16-tolower.c (main): Likewise.
38186         * tests/unicase/test-u32-tolower.c (main): Likewise.
38187
38188 2009-06-30  Bruno Haible  <bruno@clisp.org>
38189
38190         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
38191         * lib/unicase/u16-casemap.c: Likewise.
38192         * lib/unicase/u32-casemap.c: Likewise.
38193
38194 2009-06-29  Bruno Haible  <bruno@clisp.org>
38195
38196         Define u32_casefold as a wrapper around u32_ct_casefold.
38197         * lib/unicase/u32-casefold.c: Update.
38198         * modules/unicase/u32-casefold (Depends-on): Add
38199         unicase/u32-ct-casefold, unicase/empty-prefix-context,
38200         unicase/empty-suffix-context. Clean up.
38201
38202         Define u16_casefold as a wrapper around u16_ct_casefold.
38203         * lib/unicase/u16-casefold.c: Update.
38204         * modules/unicase/u16-casefold (Depends-on): Add
38205         unicase/u16-ct-casefold, unicase/empty-prefix-context,
38206         unicase/empty-suffix-context. Clean up.
38207
38208         Define u8_casefold as a wrapper around u8_ct_casefold.
38209         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
38210         * lib/unicase/u8-casefold.c: Update.
38211         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
38212         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38213
38214         Define u32_totitle as a wrapper around u32_ct_totitle.
38215         * lib/unicase/u32-totitle.c: Update.
38216         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
38217         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38218
38219         Define u16_totitle as a wrapper around u16_ct_totitle.
38220         * lib/unicase/u16-totitle.c: Update.
38221         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
38222         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38223
38224         Define u8_totitle as a wrapper around u8_ct_totitle.
38225         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
38226         functions.
38227         (FUNC): Delegate to U_CT_TOTITLE.
38228         * lib/unicase/u8-totitle.c: Update.
38229         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
38230         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38231
38232         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
38233         invocation.
38234         * modules/unicase/u32-tolower (Depends-on): Add
38235         unicase/empty-prefix-context, unicase/empty-suffix-context.
38236
38237         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
38238         invocation.
38239         * modules/unicase/u16-tolower (Depends-on): Add
38240         unicase/empty-prefix-context, unicase/empty-suffix-context.
38241
38242         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
38243         * modules/unicase/u8-tolower (Depends-on): Add
38244         unicase/empty-prefix-context, unicase/empty-suffix-context.
38245
38246         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
38247         invocation.
38248         * modules/unicase/u32-toupper (Depends-on): Add
38249         unicase/empty-prefix-context, unicase/empty-suffix-context.
38250
38251         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
38252         invocation.
38253         * modules/unicase/u16-toupper (Depends-on): Add
38254         unicase/empty-prefix-context, unicase/empty-suffix-context.
38255
38256         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
38257         * modules/unicase/u8-toupper (Depends-on): Add
38258         unicase/empty-prefix-context, unicase/empty-suffix-context.
38259
38260         New module 'unicase/u32-ct-casefold'.
38261         * lib/unicase/u32-ct-casefold.c: New file.
38262         * modules/unicase/u32-ct-casefold: New file.
38263
38264         New module 'unicase/u16-ct-casefold'.
38265         * lib/unicase/u16-ct-casefold.c: New file.
38266         * modules/unicase/u16-ct-casefold: New file.
38267
38268         New module 'unicase/u8-ct-casefold'.
38269         * lib/unicase/u8-ct-casefold.c: New file.
38270         * lib/unicase/u-ct-casefold.h: New file, derived from
38271         lib/unicase/u-casefold.h.
38272         * modules/unicase/u8-ct-casefold: New file.
38273
38274         New module 'unicase/u32-ct-totitle'.
38275         * lib/unicase/u32-ct-totitle.c: New file.
38276         * modules/unicase/u32-ct-totitle: New file.
38277
38278         New module 'unicase/u16-ct-totitle'.
38279         * lib/unicase/u16-ct-totitle.c: New file.
38280         * modules/unicase/u16-ct-totitle: New file.
38281
38282         New module 'unicase/u8-ct-totitle'.
38283         * lib/unicase/u8-ct-totitle.c: New file.
38284         * lib/unicase/u-ct-totitle.h: New file, derived from
38285         lib/unicase/u-totitle.h.
38286         * modules/unicase/u8-ct-totitle: New file.
38287
38288         New module 'unicase/u32-ct-tolower'.
38289         * lib/unicase/u32-ct-tolower.c: New file.
38290         * modules/unicase/u32-ct-tolower: New file.
38291
38292         New module 'unicase/u16-ct-tolower'.
38293         * lib/unicase/u16-ct-tolower.c: New file.
38294         * modules/unicase/u16-ct-tolower: New file.
38295
38296         New module 'unicase/u8-ct-tolower'.
38297         * lib/unicase/u8-ct-tolower.c: New file.
38298         * modules/unicase/u8-ct-tolower: New file.
38299
38300         New module 'unicase/u32-ct-toupper'.
38301         * lib/unicase/u32-ct-toupper.c: New file.
38302         * modules/unicase/u32-ct-toupper: New file.
38303
38304         New module 'unicase/u16-ct-toupper'.
38305         * lib/unicase/u16-ct-toupper.c: New file.
38306         * modules/unicase/u16-ct-toupper: New file.
38307
38308         New module 'unicase/u8-ct-toupper'.
38309         * lib/unicase/u8-ct-toupper.c: New file.
38310         * modules/unicase/u8-ct-toupper: New file.
38311
38312         Add context arguments to u*_casemap functions.
38313         * lib/unicase/unicasemap.h: Include unicase.h.
38314         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
38315         suffix_context arguments.
38316         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
38317         functions.
38318         (FUNC): Add prefix_context and suffix_context arguments. Use
38319         uc_is_cased and uc_is_case_ignorable.
38320         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
38321         * lib/unicase/u16-casemap.c: Likewise.
38322         * lib/unicase/u32-casemap.c: Likewise.
38323         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
38324         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38325         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
38326         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38327         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
38328         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38329
38330         New module 'unicase/u32-suffix-context'.
38331         * lib/unicase/u32-suffix-context.c: New file.
38332         * modules/unicase/u32-suffix-context: New file.
38333
38334         New module 'unicase/u16-suffix-context'.
38335         * lib/unicase/u16-suffix-context.c: New file.
38336         * modules/unicase/u16-suffix-context: New file.
38337
38338         New module 'unicase/u8-suffix-context'.
38339         * lib/unicase/u8-suffix-context.c: New file.
38340         * lib/unicase/u-suffix-context.h: New file.
38341         * modules/unicase/u8-suffix-context: New file.
38342
38343         New module 'unicase/empty-suffix-context'.
38344         * lib/unicase/empty-suffix-context.c: New file.
38345         * modules/unicase/empty-suffix-context: New file.
38346
38347         New module 'unicase/u32-prefix-context'.
38348         * lib/unicase/u32-prefix-context.c: New file.
38349         * modules/unicase/u32-prefix-context: New file.
38350
38351         New module 'unicase/u16-prefix-context'.
38352         * lib/unicase/u16-prefix-context.c: New file.
38353         * modules/unicase/u16-prefix-context: New file.
38354
38355         New module 'unicase/u8-prefix-context'.
38356         * lib/unicase/u8-prefix-context.c: New file.
38357         * lib/unicase/u-prefix-context.h: New file.
38358         * lib/unicase/context.h: New file.
38359         * modules/unicase/u8-prefix-context: New file.
38360
38361         New module 'unicase/empty-prefix-context'.
38362         * lib/unicase/empty-prefix-context.c: New file.
38363         * modules/unicase/empty-prefix-context: New file.
38364
38365         New module 'unicase/ignorable'.
38366         * lib/unicase/ignorable.c: New file.
38367         * modules/unicase/ignorable: New file.
38368
38369         New module 'unicase/cased'.
38370         * lib/unicase/caseprop.h: New file.
38371         * lib/unicase/cased.c: New file.
38372         * modules/unicase/cased: New file.
38373
38374         New functions for case mapping of substrings.
38375         * lib/unicase.h (casing_prefix_context_t): New type.
38376         (unicase_empty_prefix_context): New variable.
38377         (u8_casing_prefix_context, u16_casing_prefix_context,
38378         u32_casing_prefix_context, u8_casing_prefixes_context,
38379         u16_casing_prefixes_context, u32_casing_prefixes_context): New
38380         declarations.
38381         (casing_suffix_context_t): New type.
38382         (unicase_empty_suffix_context): New variable.
38383         (u8_casing_suffix_context, u16_casing_suffix_context,
38384         u32_casing_suffix_context, u8_casing_suffixes_context,
38385         u16_casing_suffixes_context, u32_casing_suffixes_context,
38386         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
38387         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38388         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38389         declarations.
38390
38391 2009-06-28  Jim Meyering  <meyering@redhat.com>
38392
38393         boostrap: indent only with spaces
38394         * build-aux/bootstrap: Indent only with spaces, never TABs.
38395
38396         bootstrap: split long lines
38397         * build-aux/bootstrap: Keep line length < 80.
38398
38399         bootstrap: sync from coreutils
38400         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
38401         just as autoreconf does.  Verify a list of prerequisite
38402         package-name,version-number pairs if defined in bootstrap.conf.
38403         Refer to README-prereq, if prerequisites are not satisfied.
38404
38405 2009-06-27  Eric Blake  <ebb9@byu.net>
38406
38407         tests: add test for bogus NULL definition
38408         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
38409         * tests/test-stdlib.c: Likewise.
38410         * tests/test-string.c: Likewise.
38411         * tests/test-locale.c: Likewise.
38412         * tests/test-unistd.c: Likewise.
38413         * modules/stdio-tests (Depends-on): Add verify.
38414         * modules/stdlib-tests (Depends-on): Likewise.
38415         * modules/string-tests (Depends-on): Likewise.
38416         * modules/locale-tests (Depends-on): Likewise.
38417         * modules/unistd-tests (Depends-on): Likewise.
38418
38419 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
38420
38421         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
38422         self-explaining comment.
38423         * m4/selinux-selinux-h: Update serial.
38424         (gl_LIBSELINUX): New macro, adding a warning for missing development
38425         packages to code extracted from...
38426         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
38427         Add warning for missing development packages here, too.
38428
38429 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
38430
38431         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
38432
38433 2009-06-25  Eric Blake  <ebb9@byu.net>
38434
38435         version-etc: fix regression
38436         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
38437         gcc.
38438         (version_etc): Use it, to catch bugs with trailing NULL.
38439         * lib/version-etc.c (version_etc_arn): Delete unused argument.
38440         (version_etc_va): Fix logic bug.
38441         * modules/version-etc-tests: Add test.
38442         * tests/test-version-etc.c: New file.
38443         * tests/test-version-etc.sh: Likewise.
38444
38445 2009-06-25  Sam Steingold  <sds@gnu.org>
38446
38447         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
38448         mbtowc declaration.
38449
38450 2009-06-25  Eric Blake  <ebb9@byu.net>
38451
38452         fpurge: migrate into <stdio.h>
38453         * lib/fpurge.h: Delete...
38454         * lib/stdio.in.h (fpurge): ...and declare here, instead.
38455         * lib/fpurge.c (fpurge): Change declaring header.
38456         * modules/fpurge (Files): Drop deleted file.
38457         (Depends-on): Add stdio.
38458         (configure.ac): Set witness.
38459         * modules/stdio (Makefile.am): Support fpurge macros.
38460         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38461         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
38462         * lib/fflush.c: Update client.
38463         * tests/test-fpurge.c: Likewise.
38464         * NEWS: Mention the change.
38465
38466 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38467
38468         * lib/argp-version-etc.c (program_authors): Add const
38469         qualifier.
38470         * lib/version-etc.c: Fix typos in the comments.
38471         * modules/argp-version-etc: Depends on version-etc.
38472
38473 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38474
38475         argp-version-etc: new module.
38476
38477         * lib/argp-version-etc.c: New file.
38478         * lib/argp-version-etc.h: New file.
38479         * modules/argp-version-etc: New file.
38480         * modules/argp-version-etc-tests: New file.
38481         * tests/test-argp-version-etc.c: New test.
38482         * tests/test-argp-version-etc-1.sh: New test.
38483
38484 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38485
38486         Provide additional interfaces and documentation for version-etc
38487         module.
38488
38489         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38490         interfaces.
38491         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38492         prototypes.
38493
38494 2009-06-24  Bruno Haible  <bruno@clisp.org>
38495
38496         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38497         HAVE_LIB${NAME} macro.
38498         Reported by Sam Steingold <sds@gnu.org>.
38499
38500 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38501
38502         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38503         needed.
38504
38505 2009-06-21  Bruno Haible  <bruno@clisp.org>
38506
38507         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38508         work.
38509         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38510         together with LIB${NAME}, LTLIB${NAME}.
38511         Reported by Sam Steingold <sds@gnu.org>.
38512
38513 2009-06-20  Jim Meyering  <meyering@redhat.com>
38514
38515         tests: make sc_require_test_exit_idiom more generic
38516         * top/maint.mk (Exit_witness_file): New overridable variable.
38517         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38518         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38519
38520 2009-06-19  Jim Meyering  <meyering@redhat.com>
38521
38522         hash: reverse order of src/dst parameters in an internal interface
38523         * lib/hash.c (transfer_entries): Reverse order of parameters to
38524         put DST before SRC.  Adjust callers.
38525
38526         tests: test-hash: avoid wholesale duplication
38527         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38528         Instead, use a loop and add a single conditional.
38529
38530         tests: test-hash: allow seed selection via a command line argument
38531         * tests/test-hash.c (get_seed): New function.
38532         (main): Use it.
38533
38534 2009-06-19  Eric Blake  <ebb9@byu.net>
38535
38536         hash: avoid memory leak on allocation failure
38537         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38538         failure.  Factor repeated algorithm...
38539         (transfer_entries): ...into new helper routine.
38540         (hash_delete): React to hash_rehash return value.
38541
38542         hash: reduce memory pressure in hash_rehash no-op case
38543         * lib/hash.c (next_prime): Avoid overflow.
38544         (hash_initialize): Factor bucket size computation...
38545         (compute_bucket_size): ...into new helper function.
38546         (hash_rehash): Use new function and open coding to reduce memory
38547         pressure, and avoid a memory leak in USE_OBSTACK code.
38548         Reported by Jim Meyering.
38549
38550 2009-06-18  Eric Blake  <ebb9@byu.net>
38551
38552         hash: make rotation more obvious
38553         * modules/hash (Depends-on): Add bitrotate and stdint.
38554         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38555         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38556         (SIZE_MAX): Rely on headers for definition.
38557         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38558         (raw_hasher): Use rotr_sz.
38559         Suggested by Jim Meyering.
38560
38561         hash: fix memory leak in last patch
38562         * lib/hash.c (hash_rehash): Avoid memory leak.
38563
38564         hash: avoid no-op rehashing
38565         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38566
38567         hash: provide default callback functions
38568         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38569         (hash_initialize): Use them as defaults.
38570         * tests/test-hash.c (main): Test this.
38571
38572         hash: minor optimization
38573         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38574         when possible.
38575         (hash_initialize): Document this promise.
38576         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38577         * tests/test-hash.c (hash_compare_strings): Test this.
38578
38579 2009-06-18  Bruno Haible  <bruno@clisp.org>
38580
38581         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38582         going to be replaced anyway.
38583
38584 2009-06-18  Bruno Haible  <bruno@clisp.org>
38585
38586         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38587         in one place.
38588         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38589         be replaced anyway.
38590
38591 2009-06-18  Eric Blake  <ebb9@byu.net>
38592
38593         hash: check for resize before insertion
38594         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38595         threshold before insertion, so that a pathological hash_rehash
38596         that fills every bucket can still trigger another rehash.
38597
38598 2009-06-18  Jim Meyering  <meyering@redhat.com>
38599
38600         hash-tests: add a loop around the small tests
38601         * tests/test-hash.c (main): Repeat small tests with selected
38602         small initial table sizes.
38603
38604 2009-06-17  Eric Blake  <ebb9@byu.net>
38605
38606         hash: minor cleanups
38607         * lib/hash.h (hash_entry): Make opaque, by moving...
38608         * lib/hash.c (hash_entry): ...here.
38609         (hash_insert): Clarify restrictions on what can be inserted.
38610         (hash_get_next): Clarify when it is safe to remove an element
38611         during traversal.
38612         (check_tuning): Skip verification when tuning is known safe.
38613         (hash_initialize): Clarify restrictions on tuning.
38614
38615 2009-06-17  Jim Meyering  <jim@meyering.net>
38616         and Eric Blake  <ebb9@byu.net>
38617
38618         hash-tests: new module
38619         * modules/hash-tests: New file.
38620         * tests/test-hash.c: New file.
38621
38622 2009-06-17  Eric Blake  <ebb9@byu.net>
38623
38624         strstr-simple: document new module
38625         * MODULES.html.sh: Document new module.
38626
38627         strstr, strcasestr: replace on platforms with broken memchr
38628         * modules/strstr: Split into...
38629         * modules/strstr-simple: ...new module that does not care about
38630         performance, but does care about glibc bug.
38631         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38632         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38633         if platform memchr is broken, per Debian bug 521737.
38634         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38635         memchr.
38636         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38637         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38638         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38639         * modules/mountlist (Depends-on): Add strstr-simple.
38640         * modules/gen-uni-tables (Depends-on): Likewise.
38641         * modules/argz (Depends-on): Add strstr.
38642
38643 2009-06-17  Bruno Haible  <bruno@clisp.org>
38644
38645         * modules/posix_spawn-internal (Depends-on): Add errno.
38646
38647 2009-06-17  Bruno Haible  <bruno@clisp.org>
38648
38649         Define missing ESTALE on Interix 3.5.
38650         * lib/errno.in.h (ESTALE): Assign a value if missing.
38651         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38652         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38653         missing.
38654         * doc/posix-headers/errno.texi: Mention the Interix bug.
38655         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38656
38657 2009-06-15  Eric Blake  <ebb9@byu.net>
38658
38659         memchr, memchr2: add valgrind exception
38660         * lib/memchr.valgrind: New file.
38661         * lib/memchr2.valgrind: New file.
38662         * modules/memchr (Files): Distribute valgrind file.
38663         * modules/memchr2 (Files): Likewise.
38664
38665         docs: memchr is no longer obsolete
38666         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38667         * lib/string.in.h (memchr): Simplify logic.
38668
38669 2009-06-14  Jim Meyering  <meyering@redhat.com>
38670
38671         link-follow: fix the "checking..." message to not mention trailing slash
38672         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38673         never considered trailing slashes.
38674
38675 2009-06-14  Bruno Haible  <bruno@clisp.org>
38676
38677         * m4/memchr.m4: Mention also the bug on IA-64.
38678         * doc/posix-functions/memchr.texi: Likewise.
38679
38680 2009-06-12  Eric Blake  <ebb9@byu.net>
38681
38682         memchr: detect broken x86_64 and alpha implementations
38683         * modules/memchr-tests (Depends-on): Move mmap detection...
38684         * modules/memchr (Depends-on): ...here.
38685         (configure.ac): Set indicator.
38686         * lib/string.in.h (memchr): Declare replacement.
38687         * modules/string (Makefile.am): Trigger replacement.
38688         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38689         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38690         bugs.
38691         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38692         * modules/getpagesize (License): Relax license.
38693
38694 2009-06-11  Bruno Haible  <bruno@clisp.org>
38695
38696         * lib/idpriv.h: Add more references.
38697
38698 2009-06-08  Bruno Haible  <bruno@clisp.org>
38699
38700         Tests for module 'idpriv-droptemp'.
38701         * modules/idpriv-droptemp-tests: New file.
38702         * tests/test-idpriv-droptemp.sh: New file.
38703         * tests/test-idpriv-droptemp.su.sh: New file.
38704         * tests/test-idpriv-droptemp.c: New file.
38705
38706         New module 'idpriv-droptemp'.
38707         * lib/idpriv-droptemp.c: New file.
38708         * modules/idpriv-droptemp: New file.
38709
38710 2009-06-08  Bruno Haible  <bruno@clisp.org>
38711
38712         Tests for module 'idpriv-drop'.
38713         * modules/idpriv-drop-tests: New file.
38714         * tests/test-idpriv-drop.sh: New file.
38715         * tests/test-idpriv-drop.su.sh: New file.
38716         * tests/test-idpriv-drop.c: New file.
38717
38718         New module 'idpriv-drop'.
38719         * lib/idpriv.h: New file.
38720         * lib-idpriv-drop.c: New file.
38721         * m4/idpriv.m4: New file.
38722         * modules/idpriv-drop: New file.
38723
38724 2009-06-08  Bruno Haible  <bruno@clisp.org>
38725
38726         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38727         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38728         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38729         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38730         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38731         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38732         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38733
38734 2009-06-08  Eric Blake  <ebb9@byu.net>
38735
38736         test-strstr: use memory fence, when possible
38737         * tests/test-strstr.c (main): Use memory fence, in order to be
38738         more likely to trigger Debian bug 521737.
38739         * modules/strstr-tests (Files): Pull in additional files.
38740
38741         memchr: no longer obsolete, for wider field testing
38742         * modules/memchr (Status, Notice): Delete, this module is no
38743         longer obsolete.
38744         * modules/vasnprintf (Depends-on): Add memchr.
38745
38746 2009-06-07  Jim Meyering  <meyering@redhat.com>
38747
38748         hash: declare some functions with the warn_unused_result attribute
38749         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38750
38751 2009-06-07  Bruno Haible  <bruno@clisp.org>
38752
38753         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38754         Reported by Eric Blake.
38755
38756 2009-06-06  Eric Blake  <ebb9@byu.net>
38757
38758         test-alignof: fix typo with long double
38759         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38760         compiler error.
38761
38762 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38763
38764         Escape non-texinfo { and }s.
38765         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38766         markup error.
38767
38768 2009-06-04  Jim Meyering  <meyering@redhat.com>
38769
38770         gitlog-to-changelog: don't infloop on an empty commit log
38771         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38772         Reported by Boris Petersen <transacid@centerim.org>.
38773
38774 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38775
38776         version-etc: extend for packagers
38777         Add three new configure options, intended for packagers:
38778           --with-packager="packager name"
38779           --with-packager-version="packager-specific version"
38780           --with-packager-bug-reports="packager bug reporting"
38781         An example with coreutils:
38782           $ ./configure \
38783             --with-packager=Gentoo \
38784             --with-packager-bug-report=http://bugs.gentoo.org/ \
38785             --with-packager-version="patchset 1.6"
38786           $ ./src/ls --version | head -n2
38787           ls (GNU coreutils) 7.1-dirty
38788           Packaged by Gentoo (patchset 1.6)
38789         Note that the bug reporting info via --help doesn't show up because
38790         coreutils uses its own custom emit_bug_reporting_address() implementation
38791         in src/system.h.  If it didn't, it'd look like:
38792           $ ./src/ls --help | tail -n4
38793           Report bugs to <bug-coreutils@gnu.org>.
38794           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38795           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38796           General help using GNU software: <http://www.gnu.org/gethelp/>.
38797         * lib/version-etc.c: Print new information, if provided.
38798         * m4/version-etc.m4: New file.
38799         * modules/version-etc (Files): Add m4/version-etc.m4.
38800         (configure.ac): Add gl_VERSION_ETC.
38801
38802 2009-05-31  Bruno Haible  <bruno@clisp.org>
38803
38804         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38805         and 'int64_t'.
38806         * modules/alignof-tests (Dependencies): Add stdint.
38807         Reported by Eric Blake.
38808
38809 2009-05-31  Bruno Haible  <bruno@clisp.org>
38810
38811         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38812         restriction due to compiler bugs.
38813         Reported by Eric Blake.
38814
38815 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38816             Bruno Haible  <bruno@clisp.org>
38817
38818         Fix test-alignof failure.
38819         * lib/alignof.h (alignof_slot): New macro.
38820         (alignof_type): New macro, with the same semantics as the previous
38821         'alignof'.
38822         (alignof): Alias to alignof_slot.
38823         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38824         check that the results are usable as constant expressions.
38825
38826 2009-05-31  Bruno Haible  <bruno@clisp.org>
38827
38828         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38829         * tests/test-memchr.c (main): Check that memchr does not read past the
38830         first occurrence of the byte.
38831         * tests/test-strstr.c (main): Update comment.
38832         Suggested by Eric Blake.
38833
38834 2009-05-30  Bruno Haible  <bruno@clisp.org>
38835
38836         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38837         detail how to use dumpbin.
38838         Reported by David Byron <dbyron@dbyron.com>.
38839
38840 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38841
38842         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38843
38844 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38845
38846         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38847
38848 2009-05-28  Bruno Haible  <bruno@clisp.org>
38849
38850         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38851         build-aux/ files.
38852
38853 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38854
38855         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38856
38857 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38858
38859         * gnulib-tool (sed_transform_main_lib_file)
38860         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38861         regexps.
38862
38863 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38864
38865         * tests/test-strstr.c: Add another self-test.
38866         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38867         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38868
38869 2009-05-23  Bruno Haible  <bruno@clisp.org>
38870
38871         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38872         change.
38873
38874 2009-05-21  Bruno Haible  <bruno@clisp.org>
38875
38876         Simplify use of mode_t varargs.
38877         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38878         uses 'mode_t' or 'int'.
38879         * lib/openat.c (openat): Likewise.
38880         * lib/open-safer.c (open_safer): Likewise.
38881         * m4/mode_t.m4: New file.
38882         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38883         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38884         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38885         * modules/open (Files): Add m4/mode_t.m4.
38886         * modules/openat (Files): Likewise.
38887         * modules/fcntl-safer (Files): Likewise.
38888         Suggested by Eric Blake.
38889
38890 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38891
38892         * doc/glibc-functions/fallocate.texi: New file.
38893         * doc/gnulib.texi: Include it.
38894
38895 2009-05-21  Eric Blake  <ebb9@byu.net>
38896             Bruno Haible  <bruno@clisp.org>
38897
38898         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38899         invocations.
38900         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38901
38902 2009-05-21  Eric Blake  <ebb9@byu.net>
38903             Bruno Haible  <bruno@clisp.org>
38904
38905         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38906         include_next. Fix of 2008-11-20 commit.
38907         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38908         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38909         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38910         NEXT_MATH_H.
38911         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38912         instead of NEXT_MATH_H.
38913
38914 2009-05-21  Bruno Haible  <bruno@clisp.org>
38915
38916         Avoid redefinition warnings for SIZE_MAX.
38917         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38918         Reported by Simon Josefsson.
38919
38920 2009-05-21  Bruno Haible  <bruno@clisp.org>
38921
38922         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38923         AC_CACHE_VAL.
38924
38925 2009-05-20  Bruno Haible  <bruno@clisp.org>
38926
38927         Make zeroptr.h work on mingw.
38928         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38929         mprotect.
38930         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38931         * modules/memchr2-tests (configure.ac): Likewise.
38932         * modules/memcmp-tests (configure.ac): Likewise.
38933         * modules/memmem-tests (configure.ac): Likewise.
38934         * modules/memrchr-tests (configure.ac): Likewise.
38935         Reported by Simon Josefsson.
38936
38937 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38938
38939         * tests/test-glob.c: Include string.h for strcmp prototype.
38940
38941 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38942
38943         * modules/getdelim (Depends-on): Add explicit stdint, although it
38944         was implicitly already pulled in via realloc-posix.
38945         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38946
38947 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38948
38949         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38950         G. Christensen" <tgc@jupiterrise.com>.
38951         * m4/sys_socket_h.m4: Check for sa_family_t.
38952         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38953         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38954         * tests/test-sys_socket.c: Check that sa_family_t works.
38955
38956 2009-05-18  Eric Blake  <ebb9@byu.net>
38957
38958         maint.mk: allow gnulib_dir in VPATH build
38959         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38960
38961 2009-05-15  Jim Meyering  <meyering@redhat.com>
38962
38963         maint.mk: Give gnulib_dir a default definition.
38964         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38965         Thus, most packages no longer need to specify this variable in cfg.mk
38966
38967 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38968
38969         rename.m4: fix typos that would make non-mingw cross-configure fail
38970         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38971
38972 2009-05-13  Eric Blake  <ebb9@byu.net>
38973
38974         mmap-anon: avoid out-of-order autoconf expansion
38975         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38976         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38977         * modules/memchr-tests (Depends-on): Add extensions.
38978         * modules/memchr2-tests (Depends-on): Add extensions.
38979         * modules/memcmp-tests (Depends-on): Add extensions.
38980         * modules/memmem-tests (Depends-on): Add extensions.
38981         * modules/memrchr-tests (Depends-on): Add extensions.
38982
38983 2009-05-13  Bruno Haible  <bruno@clisp.org>
38984
38985         Make some tests ISO C 99 compliant.
38986         * tests/zerosize-ptr.h: New file.
38987         * tests/test-memchr.c: Include zerosize-ptr.h.
38988         (main): Use a zero-size object pointer instead of NULL.
38989         * tests/test-memchr2.c: Include zerosize-ptr.h.
38990         (main): Use a zero-size object pointer instead of NULL.
38991         * tests/test-memcmp.c: Include zerosize-ptr.h.
38992         (main): Use a zero-size object pointer instead of NULL.
38993         * tests/test-memmem.c: Include zerosize-ptr.h.
38994         (main): Use a zero-size object pointer instead of NULL.
38995         * tests/test-memrchr.c: Include zerosize-ptr.h.
38996         (main): Use a zero-size object pointer instead of NULL.
38997         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38998         m4/mmap-anon.m4.
38999         (Depends-on): Add getpagesize.
39000         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39001         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
39002         m4/mmap-anon.m4.
39003         (Depends-on): Add getpagesize.
39004         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39005         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
39006         m4/mmap-anon.m4.
39007         (Depends-on): Add getpagesize.
39008         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39009         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
39010         m4/mmap-anon.m4.
39011         (Depends-on): Add getpagesize.
39012         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39013         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
39014         m4/mmap-anon.m4.
39015         (Depends-on): Add getpagesize.
39016         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39017
39018 2009-05-12  Bruno Haible  <bruno@clisp.org>
39019
39020         Tests for module 'alignof'.
39021         * modules/alignof-tests: New file.
39022         * tests/test-alignof.c: New file.
39023
39024 2009-05-12  Bruno Haible  <bruno@clisp.org>
39025
39026         Fix alignof macro.
39027         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
39028         vendor compilers that are always correct.
39029
39030 2009-05-12  Bruno Haible  <bruno@clisp.org>
39031
39032         Make the MAP_ANONYMOUS detection work on HP-UX 11.
39033         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
39034         not whether its fully works.
39035
39036 2009-05-12  Bruno Haible  <bruno@clisp.org>
39037
39038         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
39039
39040 2009-05-12  Jim Meyering  <meyering@redhat.com>
39041
39042         * top/maint.mk: Adjust backslash alignment.
39043
39044 2009-05-11  Simon Josefsson  <simon@josefsson.org>
39045
39046         * top/maint.mk: Make $(srcdir)/build-aux configurable.
39047
39048 2009-05-11  Eric Blake  <ebb9@byu.net>
39049
39050         argp: avoid undefined behavior
39051         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
39052         macros.
39053
39054 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39055
39056         * tests/test-vc-list-files-git.sh: Do git config of user.email and
39057         user.name to prevent git commit from complaining.
39058
39059 2009-05-10  Bruno Haible  <bruno@clisp.org>
39060
39061         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
39062         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
39063         it rewrites every file name only once.
39064         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
39065
39066 2009-05-08  Bruno Haible  <bruno@clisp.org>
39067
39068         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
39069         instead of 'max'.
39070
39071 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39072
39073         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
39074         sockaddr_storage test.
39075
39076 2009-05-07  Simon Josefsson  <simon@josefsson.org>
39077
39078         * modules/sys_socket (Makefile.am): Substitute
39079         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
39080         * m4/sys_socket_h.m4: Check for sockaddr_storage.
39081         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
39082         * tests/test-sys_socket.c: Check sockaddr_storage.
39083
39084 2009-05-08  Bruno Haible  <bruno@clisp.org>
39085
39086         New module 'alignof'.
39087         * lib/alignof.h: New file.
39088         * modules/alignof: New file.
39089
39090 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39091             Bruno Haible  <bruno@clisp.org>
39092
39093         Fix test-file-has-acl on FreeBSD.
39094         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
39095         mask is implicitly added.
39096         * tests/test-file-has-acl.c: Include <signal.h>.
39097         (main): Terminate the test after 5 seconds.
39098         * modules/acl-tests (configure.ac): Check for alarm function.
39099
39100 2009-05-04  Bruno Haible  <bruno@clisp.org>
39101
39102         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
39103         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
39104         * modules/errno (configure.ac): Drop AC_REQUIRE.
39105         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
39106         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
39107
39108 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39109
39110         * modules/glob-tests: New module.
39111         * tests/test-glob.c: Add.
39112
39113 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39114
39115         * modules/fnmatch-tests: New module.
39116         * tests/test-fnmatch.c: Add.
39117
39118 2009-05-04  Eric Blake  <ebb9@byu.net>
39119
39120         maint: make the new no-submodule-changes rule VPATH-safe
39121         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
39122
39123 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39124             Bruno Haible  <bruno@clisp.org>
39125
39126         acl: Fix infinite loop on FreeBSD.
39127         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
39128         of return value from acl_get_entry.
39129         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
39130         Likewise.
39131
39132 2009-05-03  Bruno Haible  <bruno@clisp.org>
39133
39134         * lib/acl-internal.h (acl_entries): Clarify return value.
39135         * lib/acl_entries.c (acl_entries): Likewise.
39136
39137 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39138
39139         Bug fix in acl module.
39140         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
39141
39142 2009-05-03  Bruno Haible  <bruno@clisp.org>
39143
39144         Create gperf-generated file in the source dir, not in the build dir.
39145         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
39146         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
39147         * modules/unicase/locale-language (unicase/locale-languages.h):
39148         Likewise.
39149         * modules/unicase/special-casing (unicase/special-casing-table.h):
39150         Likewise.
39151         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
39152         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
39153         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
39154         Reported by Ralf Wildenhues.
39155
39156 2009-05-03  Bruno Haible  <bruno@clisp.org>
39157
39158         * modules/fnmatch (Description, configure.ac): Taken from
39159         fnmatch-posix.
39160         * modules/fnmatch-posix: Turn into a symbolic reference to the
39161         'fnmatch' module, and deprecate.
39162         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
39163
39164 2009-05-03  Bruno Haible  <bruno@clisp.org>
39165
39166         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
39167         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
39168         Reported by Ralf Wildenhues.
39169
39170 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39171
39172         * m4/fnmatch.m4: Fix fnmatch re-define.
39173
39174 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39175
39176         priv-set: new module and tests; adapt write-any-file
39177         * lib/priv-set.c: New file.
39178         * lib/priv-set.h: New file.
39179         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
39180         * lib/write-any-file.c: Simplify by using priv-set module.
39181         * m4/priv-set.m4: New file.
39182         * modules/priv-set: New file.
39183         * modules/unlinkdir: Add dependency on priv-set module.
39184         * modules/write-any-file: Likewise.
39185
39186         Tests for module 'priv-set'.
39187         * modules/priv-set-tests: New file.
39188         * tests/test-priv-set.c: New file.
39189
39190 2009-05-03  Jim Meyering  <meyering@redhat.com>
39191             Bruno Haible  <bruno@clisp.org>
39192
39193         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
39194         use the converted UTF-8 variant of the name instead.
39195
39196 2009-05-03  Jim Meyering  <meyering@redhat.com>
39197
39198         tests: tighten some getdate tests
39199         * tests/test-getdate.c (main): Tighten tests: require equality,
39200         not just greater than.  Set TZ envvar to UTC0.
39201
39202 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
39203
39204         getdate: correctly interpret "next monday" when run on a Monday
39205         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
39206         that e.g., "next tues" (when run on a tuesday) results in a date
39207         that is one week in the future, and not today's date.
39208         I.e., add a week when the wday is the same as the current one.
39209         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
39210         and earlier by Martin Bernreuther and Jan Minář.
39211         * tests/test-getdate.c (main): Check that "next DAY" is always in
39212         the future and that "last DAY" is always in the past.
39213
39214 2009-05-02  Jim Meyering  <meyering@redhat.com>
39215
39216         build: ensure that a release build fails when a submodule is unclean
39217         * top/maint.mk (no-submodule-changes): New rule.
39218         (alpha beta major): Depend on it.
39219
39220 2009-05-02  Bruno Haible  <bruno@clisp.org>
39221
39222         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
39223         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
39224         shell variable gl_fnmatch_required to detect which variant is
39225         requested.
39226         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
39227         gl_FUNC_FNMATCH_POSIX.
39228         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
39229         exclude fnmatch-posix.
39230
39231 2009-05-02  Bruno Haible  <bruno@clisp.org>
39232
39233         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
39234         * modules/mbsrtowcs (License): Change to LGPLv2+.
39235         * modules/strnlen1 (License): Likewise.
39236         Reported by Simon Josefsson.
39237
39238 2009-05-02  Bruno Haible  <bruno@clisp.org>
39239
39240         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
39241         "cross".
39242         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
39243         gnulib-tool was called with option --source-base=lib.
39244
39245 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39246
39247         Use automake *-local hooks without commands, for extensibility.
39248         * modules/localcharset (Makefile.am): Rename install-exec-local
39249         rule to install-exec-localcharset, and make it a prerequisite of
39250         install-exec-local.  Likewise, rename the uninstall-local rule to
39251         uninstall-localcharset, and make it a prerequisite of the former.
39252
39253 2009-05-01  Bruno Haible  <bruno@clisp.org>
39254
39255         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
39256         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39257         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
39258         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
39259         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
39260         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39261         m4/locale-zh.m4, m4/codeset.m4.
39262
39263         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39264         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
39265         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39266         m4/locale-zh.m4.
39267
39268         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
39269         REPLACE_WCRTOMB if mbstate_t must be replaced.
39270         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
39271         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
39272
39273 2009-05-01  Bruno Haible  <bruno@clisp.org>
39274
39275         Avoid compiler warnings when redefining macros defined by <libintl.h>.
39276         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
39277         dngettext, dcngettext, textdomain, bindtextdomain,
39278         bind_textdomain_codeset): Undefine before redefining.
39279
39280 2009-04-30  Bruno Haible  <bruno@clisp.org>
39281
39282         Fix bug introduced on 2009-04-25.
39283         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
39284         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
39285         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
39286         is defined.
39287         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
39288         is defined.
39289         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
39290         is defined.
39291         Reported by Elbert_Pol <elbert.pol@gmail.com>.
39292
39293 2009-04-28  Bruno Haible  <bruno@clisp.org>
39294
39295         Comment tweaks.
39296         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
39297         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
39298         * lib/unicase.h (u*_casexfrm): Likewise.
39299         Reported by Paolo Bonzini.
39300
39301 2009-04-28  Bruno Haible  <bruno@clisp.org>
39302
39303         Fix a compilation error.
39304         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
39305         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39306         Reported by Jim Meyering.
39307
39308 2009-04-27  Bruno Haible  <bruno@clisp.org>
39309
39310         New module 'libunistring'.
39311         * modules/libunistring: New file.
39312         * m4/libunistring.m4: New file.
39313         * MODULES.html.sh (Unicode string functions): Add it.
39314
39315 2009-04-27  Eric Blake  <ebb9@byu.net>
39316
39317         maint.mk: allow package-specific header to provide <config.h>
39318         * top/maint.mk (sc_require_config_h): New variable.
39319         (sc_require_config_h, sc_require_config_h_first): Use it.
39320
39321 2009-04-27  Simon Josefsson  <simon@josefsson.org>
39322
39323         * top/maint.mk (sc_avoid_if_before_free): Except
39324         useless-if-before-free script.
39325
39326 2009-04-27  Eric Blake  <ebb9@byu.net>
39327
39328         maintainer-makefile: depend on all required helper scripts
39329         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
39330         useless-if-before-free.
39331         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
39332         version, rather than assuming gnulib checkout is available.
39333         Reported by Simen Josefsson.
39334
39335 2009-04-26  Bruno Haible  <bruno@clisp.org>
39336
39337         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
39338         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
39339         "../" or "..".
39340
39341 2009-04-26  Bruno Haible  <bruno@clisp.org>
39342
39343         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
39344         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
39345         AC_LIB_HAVE_LINKFLAGS.
39346
39347 2009-04-26  Bruno Haible  <bruno@clisp.org>
39348
39349         Simplify calling convention of u*_conv_from_encoding.
39350         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
39351         u32_conv_from_encoding): Expect a resultbuf argument and return the
39352         result directly as a pointer.
39353         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
39354         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
39355         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
39356         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
39357         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39358         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39359         Update.
39360         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39361         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39362         * lib/vasnprintf.c (VASNPRINTF): Update.
39363         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39364         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39365         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39366         * NEWS: Mention the change.
39367
39368 2009-04-26  Bruno Haible  <bruno@clisp.org>
39369
39370         Simplify calling convention of u*_conv_to_encoding.
39371         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39372         u32_conv_to_encoding): Expect a resultbuf argument and return the
39373         result directly as a pointer.
39374         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39375         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39376         freeing scaled_offsets if mem_iconveha failed.
39377         * lib/unicase/u-casexfrm.h (FUNC): Update.
39378         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39379         * lib/vasnprintf.c (VASNPRINTF): Update.
39380         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39381         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39382         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39383         * NEWS: Mention the change.
39384
39385 2009-04-26  Bruno Haible  <bruno@clisp.org>
39386
39387         Avoid test failures on AIX and OSF/1.
39388         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39389         malloc(0).
39390         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39391         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39392         Likewise.
39393         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
39394         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
39395         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
39396         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
39397         * doc/posix-functions/malloc.texi: Document the portability problem
39398         related to malloc(0).
39399
39400 2009-04-26  Bruno Haible  <bruno@clisp.org>
39401
39402         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
39403         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
39404         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
39405
39406 2009-04-25  Bruno Haible  <bruno@clisp.org>
39407
39408         Avoid link error when creating a namespace clean library.
39409         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
39410         as macro with arguments if already defined as an alias.
39411         * lib/signbitf.c (gl_signbitf): Don't undefine.
39412         * lib/signbitd.c (gl_signbitd): Don't undefine.
39413         * lib/signbitl.c (gl_signbitl): Don't undefine.
39414
39415 2009-04-25  Jim Meyering  <meyering@redhat.com>
39416
39417         vc-list-files: fix another quoting bug
39418         * build-aux/vc-list-files: Avoid sed backslash expansion
39419         of pathological directory names.
39420
39421 2009-04-25  Eric Blake  <ebb9@byu.net>
39422
39423         vc-list-files: fix shell quoting error
39424         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
39425         timestamp.
39426
39427 2009-04-25  Jim Meyering  <meyering@redhat.com>
39428
39429         vc-list-files: restore lost functionality with subdir argument
39430         * build-aux/vc-list-files: When given a non-"." sub-directory
39431         argument, substitute the $dir/ prefix back onto each resulting name.
39432         Otherwise, coreutils' root_tests check would fail.
39433
39434 2009-04-24  Eric Blake  <ebb9@byu.net>
39435
39436         vc-list-files: ignore git symlinks
39437         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
39438         than ls-files, to ignore git symlinks.
39439
39440         maint.mk: import improvements from m4
39441         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
39442         (move_if_change): Delete unused macro.
39443         (news-date-check, vc-diff-check): Support VPATH builds.
39444         (announcement): Likewise.  Split --bootstrap-tools list...
39445         (boostrap-tools): ...into separate list, which can be overridden
39446         in cfg.mk.
39447         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
39448         requiring dependency on useless-if-before-free module.
39449         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
39450         Support VPATH builds.
39451
39452 2009-04-24  Jim Meyering  <meyering@redhat.com>
39453
39454         maint.mk: remove coreutils-specific rules and variables
39455         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
39456         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
39457         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
39458
39459         maint.mk: remove obsolete rule
39460         * top/maint.mk (rel-check): Remove rule.
39461         (WGET, WGETFLAGS): Remove now-unused variables.
39462
39463 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39464
39465         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
39466         consistency.
39467
39468         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
39469         '$(PATH_SEPARATOR)' instead of ':'.
39470
39471 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39472
39473         * lib/getopt1.c (main): Use 'const' for static array.
39474
39475 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39476
39477         * top/maint.mk: Sync with coreutils.
39478         * NEWS: Explain incompatibilities.
39479
39480 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39481             Bruno Haible  <bruno@clisp.org>
39482
39483         Fix cross-compilation results.
39484         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39485         statement, as third argument of AC_TRY_RUN.
39486         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39487         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39488         Likewise.
39489         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39490         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39491         Likewise.
39492         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39493         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39494         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39495
39496 2009-04-20  Bruno Haible  <bruno@clisp.org>
39497
39498         Avoid test failure on mingw.
39499         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39500
39501 2009-04-20  Bruno Haible  <bruno@clisp.org>
39502
39503         Avoid compilation error on mingw.
39504         * modules/localename-tests (Depends-on): Add locale.
39505
39506 2009-04-19  Bruno Haible  <bruno@clisp.org>
39507
39508         Support for building a shared library on Windows platforms.
39509         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39510         (main): Test the presence of UNINORM_NFC here.
39511         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39512         (main): Test the presence of UNINORM_NFD here.
39513         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39514         (main): Test the presence of UNINORM_NFKC here.
39515         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39516         (main): Test the presence of UNINORM_NFKD here.
39517
39518 2009-04-19  Bruno Haible  <bruno@clisp.org>
39519
39520         Avoid a compiler warning.
39521         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39522         Change type of variable 'sequence'.
39523
39524 2009-04-19  Bruno Haible  <bruno@clisp.org>
39525
39526         * modules/configmake (Makefile.am): When the contents of configmake.h
39527         does not change, arrange to preserve its modification time.
39528
39529 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39530
39531         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39532         gettext domain.
39533
39534 2009-04-16  Jim Meyering  <meyering@redhat.com>
39535
39536         useless-if-before-free: improve conversion code
39537         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39538         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39539
39540 2009-04-14  Bruno Haible  <bruno@clisp.org>
39541
39542         * modules/fcntl (Depends-on): Add extensions.
39543         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39544
39545 2009-04-12  Ben Pfaff  <blp@gnu.org>
39546
39547         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39548         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39549
39550 2009-03-20  Ben Pfaff  <blp@gnu.org>
39551
39552         Make rename replace existing destinations on Windows.
39553         * m4/rename.m4: Add test for Mingw.
39554         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39555         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39556         * doc/posix-functions/rename.texi: Document.
39557
39558 2009-04-10  Bruno Haible  <bruno@clisp.org>
39559
39560         New include file "iconveh.h".
39561         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39562         * lib/striconveh.h: Include it.
39563         (enum iconv_ilseq_handler): Remove definition.
39564         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39565         striconveh.h.
39566         * lib/striconveha.c: Include striconveh.h.
39567         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39568         * modules/striconveh (Files): Add lib/iconveh.h.
39569         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39570         lib/striconveh.h.
39571
39572 2009-04-10  Bruno Haible  <bruno@clisp.org>
39573
39574         * lib/uniconv.h: Update comment.
39575
39576 2009-04-10  Bruno Haible  <bruno@clisp.org>
39577
39578         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39579         always.
39580         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39581         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39582         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39583         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39584         "unistring-notinline.h", so that the function gets defined always.
39585         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39586         * lib/unistr/u8-uctomb.c: Likewise.
39587         * lib/unistr/u16-mbtouc.c: Likewise.
39588         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39589         * lib/unistr/u16-uctomb.c: Likewise.
39590         * lib/unistr/u32-mbtouc.c: Likewise.
39591         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39592         * lib/unistr/u32-uctomb.c: Likewise.
39593
39594 2009-04-10  Bruno Haible  <bruno@clisp.org>
39595
39596         Mark 'utime' obsolete.
39597         * modules/utime (Status, Notice): New sections.
39598         Suggested by Jim Meyering.
39599
39600         Fix cross-compile guess for utime test.
39601         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39602         autoconf.
39603         * doc/posix-functions/utime.texi: Give more precisions.
39604         Reported by Jan <ipif@ymail.com>.
39605
39606 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39607
39608         filevercmp: correct today's change
39609         * lib/filevercmp.c: Also handle coreutils' test inputs.
39610         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39611
39612         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39613         for reporting it.
39614         * lib/filevercmp.c: Special handle for "", "." and "..".
39615         * tests/test-filevercmp.c: Enlarge the set suite.
39616
39617 2009-04-07  Jim Meyering  <meyering@redhat.com>
39618
39619         useless-if-before-free: show how to remove braced useless free, too
39620         * build-aux/useless-if-before-free: still only in a comment, though.
39621
39622 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39623
39624         maint.mk: import changes to syntax-check macros from coreutils
39625         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39626         Use them in the relevant macros.
39627
39628 2009-04-06  Bruno Haible  <bruno@clisp.org>
39629
39630         Fix unportable use of bit-fields.
39631         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39632         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39633         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39634
39635 2009-04-06  Bruno Haible  <bruno@clisp.org>
39636
39637         Avoid test failures on AIX and OSF/1.
39638         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39639         that malloc(0) = NULL.
39640         * tests/unicase/test-u8-tolower.c (check): Likewise.
39641         * tests/unicase/test-u8-totitle.c (check): Likewise.
39642         * tests/unicase/test-u8-toupper.c (check): Likewise.
39643         * tests/unicase/test-u16-casefold.c (check): Likewise.
39644         * tests/unicase/test-u16-tolower.c (check): Likewise.
39645         * tests/unicase/test-u16-totitle.c (check): Likewise.
39646         * tests/unicase/test-u16-toupper.c (check): Likewise.
39647         * tests/unicase/test-u32-casefold.c (check): Likewise.
39648         * tests/unicase/test-u32-tolower.c (check): Likewise.
39649         * tests/unicase/test-u32-totitle.c (check): Likewise.
39650         * tests/unicase/test-u32-toupper.c (check): Likewise.
39651         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39652         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39653         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39654         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39655         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39656         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39657         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39658         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39659         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39660         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39661         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39662         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39663
39664 2009-04-05  Bruno Haible  <bruno@clisp.org>
39665
39666         Work around an autoconf limitation.
39667         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39668         comment line if it would be longer than 3 KB.
39669
39670 2009-04-05  Bruno Haible  <bruno@clisp.org>
39671
39672         Avoid test failure with libiconv-1.13.
39673         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39674         of the expected test results.
39675
39676 2009-04-05  Bruno Haible  <bruno@clisp.org>
39677
39678         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39679         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39680         that it should be installed.
39681
39682 2009-04-05  Bruno Haible  <bruno@clisp.org>
39683
39684         * gnulib-tool: New option --copy-file.
39685         (func_usage): Document it.
39686         (func_dest_tmpfilename): Moved out of func_import.
39687         (func_add_file, func_update_file): New functions, extracted from
39688         func_import.
39689         (func_import): Update.
39690
39691 2009-04-05  Karl Berry  <karl@gnu.org>
39692
39693         * README: prominently mention gnulib-tool.
39694         Rearrange sections so getting the code is near the top.
39695
39696 2009-04-05  Bruno Haible  <bruno@clisp.org>
39697
39698         * lib/unicase.h: Mention u*_cmp2.
39699         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39700         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39701         * lib/unicase/ulc-casecmp.c: Likewise.
39702         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39703         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39704         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39705         unistr/u8-cmp.
39706         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39707         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39708         unistr/u16-cmp.
39709         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39710         unistr/u32-cmp.
39711
39712         * lib/uninorm.h: Mention u*_cmp2.
39713         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39714         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39715         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39716         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39717         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39718         unistr/u8-cmp.
39719         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39720         unistr/u16-cmp.
39721         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39722         unistr/u32-cmp.
39723
39724         New module 'unistr/u32-cmp2'.
39725         * lib/unistr/u32-cmp2.c: New file.
39726         * modules/unistr/u32-cmp2: New file.
39727
39728         New module 'unistr/u16-cmp2'.
39729         * lib/unistr/u16-cmp2.c: New file.
39730         * modules/unistr/u16-cmp2: New file.
39731
39732         New module 'unistr/u8-cmp2'.
39733         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39734         * lib/unistr/u8-cmp2.c: New file.
39735         * lib/unistr/u-cmp2.h: New file.
39736         * modules/unistr/u8-cmp2: New file.
39737
39738 2009-04-05  Bruno Haible  <bruno@clisp.org>
39739
39740         * lib/unictype.h (uc_property_is_valid): New macro.
39741         * tests/unictype/test-pr_byname.c (main): Use it.
39742
39743         * lib/unistr.h: Doc fixes.
39744         * lib/uniconv.h: Doc fixes.
39745         * lib/unictype.h: Doc fixes.
39746
39747 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39748
39749         Port coreutils 7.2 to Solaris 8.
39750
39751         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39752         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39753         for Solaris 8.  This is a bit of a hack, as it means it's the
39754         caller's responsibility to add -lnsl if needed, but most likely it
39755         won't be needed since only getaddrinfo uses this and getaddrinfo
39756         isn't needed on Solaris 8.
39757
39758         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39759         problem to Solaris 8 encountered with coreutils 7.2, which
39760         resulted in a message "fnmatch.c:292: warning: passing argument 4
39761         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39762         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39763
39764 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39765
39766         * m4/ld-version-script.m4: Add FIXME comment.
39767
39768 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39769
39770         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39771         SOVERSION variable.
39772
39773 2009-04-02  Bruno Haible  <bruno@clisp.org>
39774
39775         * Makefile (info, html, dvi, pdf): Combine the rules.
39776         Suggested by Jim Meyering.
39777
39778 2009-04-01  Bruno Haible  <bruno@clisp.org>
39779
39780         * Makefile (info, html, dvi, pdf): New targets.
39781         Reported by Reuben Thomas <rrt@sc3d.org>.
39782
39783 2009-04-01  Bruno Haible  <bruno@clisp.org>
39784
39785         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39786         can be put into PATH.
39787         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39788
39789 2009-04-01  Bruno Haible  <bruno@clisp.org>
39790
39791         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39792
39793 2009-04-01  Bruno Haible  <bruno@clisp.org>
39794
39795         Rename module 'visibility'.
39796         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39797         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39798         * doc/gnulib.texi: Update.
39799         * MODULES.html.sh (Misc): Update.
39800         * NEWS: Mention the change.
39801
39802 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39803
39804         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39805         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39806         Eric Blake <ebb9@byu.net> for review.
39807         * MODULES.html.sh: Add lib-msvc-compat.
39808         * doc/gnulib.texi: Link to new section.
39809         * m4/ld-output-def.m4: New file.
39810         * doc/ld-output-def.texi: New file.
39811
39812 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39813
39814         Rename ld-version-script to lib-symbol-versions.  Suggested by
39815         Bruno Haible <bruno@clisp.org>.
39816         * modules/ld-version-script: Renamed to lib-symbol-versions.
39817         * doc/ld-version-script.texi: Fix module name.
39818         * MODULES.html.sh: Add lib-symbol-versions.
39819
39820 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39821
39822         * modules/u64-tests: New file.
39823         * tests/test-u64.c: New file.
39824
39825 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39826
39827         * MODULES.html.sh: Mention u64.
39828         * modules/u64: New module.
39829         * modules/crypto/sha512: Depend on u64 module instead of providing
39830         u64.h.
39831
39832 2009-03-27  Eric Blake  <ebb9@byu.net>
39833
39834         test-strerror: make debugging EAI_SYSTEM easier
39835         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39836         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39837         failure was EAI_SYSTEM.
39838
39839 2009-03-25  Bruno Haible  <bruno@clisp.org>
39840
39841         Fix a problem with --enable-relocatable on Solaris 7.
39842         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39843         since 2008-02-24.
39844
39845 2009-03-25  Eric Blake  <ebb9@byu.net>
39846
39847         test-sockets: avoid gcc warning
39848         * tests/test-sockets.c (main): Silence compiler warning.
39849
39850 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39851
39852         New modules nproc, pthread, contributed by Glen Lenker.
39853
39854         * MODULES.html.sh: Add pthread, nproc.
39855         * lib/nproc.c: New file.
39856         * lib/nproc.h: New file.
39857         * lib/pthread.in.h: New file.
39858         * m4/pthread.m4: New file.
39859         * modules/nproc: New file.
39860         * modules/pthread: New file.
39861
39862 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39863
39864         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39865         New variable.
39866
39867 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39868
39869         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39870         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39871         * tests/test-filevercmp.c: Add tests for backup suffixes.
39872
39873 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39874
39875         * modules/stdlib (Depends-on): Add stdint, needed when defining
39876         struct random_data on, for example, HP-UX 10.20.  Reported by
39877         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39878
39879 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39880
39881         * lib/readline.c (readline): Call fflush on stdout after printing
39882         prompt.
39883
39884 2009-03-20  Bruno Haible  <bruno@clisp.org>
39885
39886         Remove dependency from 'close' module to -lws2_32 on native Windows.
39887         * lib/close-hook.h: New file.
39888         * lib/close-hook.c: New file.
39889         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39890         w32sock.h.
39891         (_gl_close_fd_maybe_socket): Remove function.
39892         (rpl_close): Invoke execute_all_close_hooks instead of
39893         _gl_close_fd_maybe_socket.
39894         * lib/sockets.c: Include close-hook.h, w32sock.h.
39895         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39896         (close_sockets_hook): New variable.
39897         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39898         (gl_sockets_cleanup): Unregister it.
39899         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39900         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39901         * modules/close-hook: New file.
39902         * modules/close (Files): Remove lib/w32sock.h.
39903         (Depends-on): Add close-hook.
39904         (Link): Remove section.
39905         * modules/sockets (Files): Add lib/w32sock.h.
39906         (Depends-on): Add close-hook.
39907         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39908         invocation.
39909         * NEWS: Mention that LIB_CLOSE is gone.
39910
39911 2009-03-23  Eric Blake  <ebb9@byu.net>
39912
39913         signal-tests: test previous patch
39914         * tests/test-signal.c: New file.
39915         * modules/signal-tests: Likewise.
39916
39917         signal.h: always support 'volatile sig_atomic_t'
39918         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39919         (gl_SIGNAL_H_DEFAULTS): Add a default.
39920         * modules/signal (Makefile.am): Substitute if needed.
39921         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39922         users can blindly add volatile.
39923         * doc/posix-headers/signal.texi (signal.h): Document it.
39924         Reported by Matthew Woehlke.
39925
39926 2009-03-23  Jim Meyering  <meyering@redhat.com>
39927
39928         pathmax: PATH_MAX: use pathconf only when available
39929         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39930         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39931         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39932         This avoids a link failure in a PSP cross-compilation environment
39933         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39934
39935         * lib/vasnprintf.c (divide): Fix typo in comment.
39936
39937 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39938
39939         * gnulib-tool (func_filter_filelist): Fix comment.
39940
39941 2009-03-20  Bruno Haible  <bruno@clisp.org>
39942
39943         Make sockets.h self-contained.
39944         * lib/sockets.c: Include sockets.h first.
39945         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39946
39947 2009-03-19  Eric Blake  <ebb9@byu.net>
39948
39949         doc: mention more functions added in cygwin 1.7.0
39950         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39951         addition.
39952         * doc/posix-functions/log2f.texi: Likewise.
39953
39954 2009-03-19  Jim Meyering  <meyering@redhat.com>
39955
39956         fsusage: avoid syntax error due to statement-before-declaration
39957         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39958         after all declarations.  Reported by Matthew Woehlke in
39959         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39960
39961 2009-03-18  Eric Blake  <ebb9@byu.net>
39962
39963         build-aux/compile: sync from automake
39964         * build-aux/compile: New file, from automake.
39965         * config/srclist.txt: Mention build-aux/compile.
39966
39967 2009-03-17  Bruno Haible  <bruno@clisp.org>
39968
39969         * lib/git-merge-changelog.c: Fix typo in comment.
39970         Reported by Reuben Thomas <rrt@sc3d.org>.
39971
39972 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39973
39974         * m4/regex.m4: update and improve help for
39975         --without-included-regex.
39976
39977 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39978
39979         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39980         failure on missing include files.
39981
39982 2009-03-17  Eric Blake  <ebb9@byu.net>
39983
39984         doc: mention more functions added in cygwin 1.7.0
39985         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39986         addition.
39987         * doc/posix-functions/fwscanf.texi: Likewise.
39988         * doc/posix-functions/swprintf.texi: Likewise.
39989         * doc/posix-functions/swscanf.texi: Likewise.
39990         * doc/posix-functions/vfwprintf.texi: Likewise.
39991         * doc/posix-functions/vfwscanf.texi: Likewise.
39992         * doc/posix-functions/vswprintf.texi: Likewise.
39993         * doc/posix-functions/vswscanf.texi: Likewise.
39994         * doc/posix-functions/vwprintf.texi: Likewise.
39995         * doc/posix-functions/vwscanf.texi: Likewise.
39996         * doc/posix-functions/wcscasecmp.texi: Likewise.
39997         * doc/posix-functions/wcsdup.texi: Likewise.
39998         * doc/posix-functions/wcsftime.texi: Likewise.
39999         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40000         * doc/posix-functions/wprintf.texi: Likewise.
40001         * doc/posix-functions/wscanf.texi: Likewise.
40002         * doc/glibc-functions/gethostbyname2.texi: Likewise.
40003
40004 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40005
40006         maint.mk: really add $(AM_MAKEFLAGS)
40007         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
40008         was inadvertently omitted in the last commit.
40009         Spotted by Bruno Haible.
40010
40011         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
40012         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
40013         $(AM_MAKEFLAGS)' rather than plain `make'.
40014
40015         gnulib-tool: execute $MAKE not make
40016         * gnulib-tool: Default $MAKE to 'make'.
40017         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
40018         than make.  Initialize $MAKE in the do-autobuild script.
40019
40020         gnulib-tool: use $MAKE not make in generated files
40021         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
40022         make, in generated files.  Initialize $MAKE in the do-autobuild
40023         script.
40024
40025         * top/GNUmakefile (_have-git-version-gen): Fix typo.
40026
40027         GNUmakefile: disable parallelism only for multiple, recursive targets
40028         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
40029         additions in the Makefile.
40030         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
40031         by Automake.
40032         (.NOTPARALLEL): Only disable parallel builds if multiple targets
40033         are listed on the command line and at least one of them is
40034         listed in $(ALL_RECURSIVE_TARGETS).
40035
40036 2009-03-14  Bruno Haible  <bruno@clisp.org>
40037
40038         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
40039         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
40040         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
40041         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
40042         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
40043         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
40044         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
40045         unistr/u8-uctomb.
40046         * modules/unistr/u8-strchr (Depends-on): Likewise.
40047         * modules/unistr/u8-strrchr (Depends-on): Likewise.
40048         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
40049         unistr/u16-uctomb.
40050         * modules/unistr/u16-strchr (Depends-on): Likewise.
40051         * modules/unistr/u16-strrchr (Depends-on): Likewise.
40052
40053 2009-03-12  Bruno Haible  <bruno@clisp.org>
40054
40055         Work around select() bug on Interix 3.5.
40056         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
40057         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
40058         * m4/select.m4: New file.
40059         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
40060         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
40061         * modules/select (Files): Add m4/select.m4.
40062         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
40063         * modules/nanosleep (Depends-on): Add select.
40064         * modules/poll (Depends-on): Likewise.
40065         * doc/posix-functions/select.texi: Mention the Interix bug.
40066         Reported by Markus Duft <mduft@gentoo.org>.
40067
40068         * lib/select.c: Renamed from lib/winsock-select.c.
40069         * modules/select (Files): Add lib/select.c, remove
40070         lib/winsock-select.c.
40071         (configure.ac): Update.
40072
40073 2009-03-12  Jim Meyering  <meyering@redhat.com>
40074
40075         avoid gcc warnings about unused macro definitions
40076         * lib/readtokens.c (STREQ): Remove unused definition.
40077         * lib/xmalloc.c (SIZE_MAX): Likewise.
40078         * lib/openat-die.c (N_): Likewise.
40079         * lib/mountlist.c (SIZE_MAX): Remove definition.
40080         Instead, include <stdint.h>.
40081         * lib/readutmp.c: Likewise.
40082         * modules/readutmp (Depends-on): Add stdint.
40083         * modules/mountlist (Depends-on): Add stdint.
40084         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
40085
40086 2009-03-10  Bruno Haible  <bruno@clisp.org>
40087
40088         Tests for module 'mbmemcasecoll'.
40089         * modules/mbmemcasecoll-tests: New file.
40090         * tests/test-mbmemcasecoll1.sh: New file.
40091         * tests/test-mbmemcasecoll2.sh: New file.
40092         * tests/test-mbmemcasecoll3.sh: New file.
40093         * tests/test-mbmemcasecoll.c: New file.
40094
40095         New module 'mbmemcasecoll'.
40096         * lib/mbmemcasecoll.h: New file.
40097         * lib/mbmemcasecoll.c: New file.
40098         * modules/mbmemcasecoll: New file.
40099
40100         * tests/test-mbmemcasecmp.h: New file, extracted from
40101         tests/test-mbmemcasecmp.c.
40102         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
40103         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
40104         (main): Update.
40105         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
40106
40107 2009-03-09  Bruno Haible  <bruno@clisp.org>
40108
40109         Tests for module 'mbmemcasecmp'.
40110         * modules/mbmemcasecmp-tests: New file.
40111         * tests/test-mbmemcasecmp1.sh: New file.
40112         * tests/test-mbmemcasecmp2.sh: New file.
40113         * tests/test-mbmemcasecmp3.sh: New file.
40114         * tests/test-mbmemcasecmp.c: New file.
40115
40116         New module 'mbmemcasecmp'.
40117         * lib/mbmemcasecmp.h: New file.
40118         * lib/mbmemcasecmp.c: New file.
40119         * modules/mbmemcasecmp: New file.
40120
40121 2009-03-09  Bruno Haible  <bruno@clisp.org>
40122
40123         Tests for module 'unicase/ulc-casecoll'.
40124         * modules/unicase/ulc-casecoll-tests: New file.
40125         * tests/unicase/test-ulc-casecoll1.sh: New file.
40126         * tests/unicase/test-ulc-casecoll2.sh: New file.
40127         * tests/unicase/test-ulc-casecoll.c: New file.
40128
40129         New module 'unicase/ulc-casecoll'.
40130         * lib/unicase.h (ulc_casecoll): New declaration.
40131         * lib/unicase/ulc-casecoll.c: New file.
40132         * modules/unicase/ulc-casecoll: New file.
40133
40134         New module 'unicase/ulc-casexfrm'.
40135         * lib/unicase.h (ulc_casexfrm): New declaration.
40136         * lib/unicase/ulc-casexfrm.c: New file.
40137         * modules/unicase/ulc-casexfrm: New file.
40138
40139 2009-03-09  Bruno Haible  <bruno@clisp.org>
40140
40141         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
40142         invocations.
40143
40144         * m4/mbscasecmp.m4: Remove file.
40145         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
40146         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
40147
40148         * m4/mbscasestr.m4: Remove file.
40149         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
40150         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
40151
40152         * m4/mbschr.m4: Remove file.
40153         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
40154         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
40155
40156         * m4/mbscspn.m4: Remove file.
40157         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
40158         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
40159
40160         * m4/mbslen.m4: Remove file.
40161         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
40162         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
40163
40164         * m4/mbsncasecmp.m4: Remove file.
40165         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
40166         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
40167
40168         * m4/mbsnlen.m4: Remove file.
40169         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
40170         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
40171
40172         * m4/mbspbrk.m4: Remove file.
40173         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
40174         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
40175
40176         * m4/mbspcasecmp.m4: Remove file.
40177         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
40178         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
40179
40180         * m4/mbsrchr.m4: Remove file.
40181         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
40182         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
40183
40184         * m4/mbssep.m4: Remove file.
40185         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
40186         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
40187
40188         * m4/mbsspn.m4: Remove file.
40189         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
40190         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
40191
40192         * m4/mbsstr.m4: Remove file.
40193         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
40194         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
40195
40196         * m4/mbstok_r.m4: Remove file.
40197         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
40198         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
40199
40200         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
40201
40202         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
40203         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
40204
40205         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
40206
40207 2009-03-08  Bruno Haible  <bruno@clisp.org>
40208
40209         Tests for module 'unicase/ulc-casecmp'.
40210         * modules/unicase/ulc-casecmp-tests: New file.
40211         * tests/unicase/test-ulc-casecmp1.sh: New file.
40212         * tests/unicase/test-ulc-casecmp2.sh: New file.
40213         * tests/unicase/test-ulc-casecmp.c: New file.
40214
40215         New module 'unicase/ulc-casecmp'.
40216         * lib/unicase.h (ulc_casecmp): New declaration.
40217         * lib/unicase/ulc-casecmp.c: New file.
40218         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
40219         'const SRC_UNIT *'.
40220         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
40221         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
40222         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
40223         * modules/unicase/ulc-casecmp: New file.
40224
40225         Tests for module 'unicase/u32-is-cased'.
40226         * modules/unicase/u32-is-cased-tests: New file.
40227         * tests/unicase/test-u32-is-cased.c: New file.
40228
40229         Tests for module 'unicase/u16-is-cased'.
40230         * modules/unicase/u16-is-cased-tests: New file.
40231         * tests/unicase/test-u16-is-cased.c: New file.
40232
40233         Tests for module 'unicase/u8-is-cased'.
40234         * modules/unicase/u8-is-cased-tests: New file.
40235         * tests/unicase/test-u8-is-cased.c: New file.
40236         * tests/unicase/test-is-cased.h: New file.
40237
40238         New module 'unicase/u32-is-cased'.
40239         * lib/unicase/u32-is-cased.c: New file.
40240         * modules/unicase/u32-is-cased: New file.
40241
40242         New module 'unicase/u16-is-cased'.
40243         * lib/unicase/u16-is-cased.c: New file.
40244         * modules/unicase/u16-is-cased: New file.
40245
40246         New module 'unicase/u8-is-cased'.
40247         * lib/unicase/u8-is-cased.c: New file.
40248         * lib/unicase/u-is-cased.h: New file.
40249         * modules/unicase/u8-is-cased: New file.
40250
40251         Tests for module 'unicase/u32-is-casefolded'.
40252         * modules/unicase/u32-is-casefolded-tests: New file.
40253         * tests/unicase/test-u32-is-casefolded.c: New file.
40254
40255         Tests for module 'unicase/u16-is-casefolded'.
40256         * modules/unicase/u16-is-casefolded-tests: New file.
40257         * tests/unicase/test-u16-is-casefolded.c: New file.
40258
40259         Tests for module 'unicase/u8-is-casefolded'.
40260         * modules/unicase/u8-is-casefolded-tests: New file.
40261         * tests/unicase/test-u8-is-casefolded.c: New file.
40262         * tests/unicase/test-is-casefolded.h: New file.
40263
40264         New module 'unicase/u32-is-casefolded'.
40265         * lib/unicase/u32-is-casefolded.c: New file.
40266         * modules/unicase/u32-is-casefolded: New file.
40267
40268         New module 'unicase/u16-is-casefolded'.
40269         * lib/unicase/u16-is-casefolded.c: New file.
40270         * modules/unicase/u16-is-casefolded: New file.
40271
40272         New module 'unicase/u8-is-casefolded'.
40273         * lib/unicase/u8-is-casefolded.c: New file.
40274         * modules/unicase/u8-is-casefolded: New file.
40275
40276         Tests for module 'unicase/u32-is-titlecase'.
40277         * modules/unicase/u32-is-titlecase-tests: New file.
40278         * tests/unicase/test-u32-is-titlecase.c: New file.
40279
40280         Tests for module 'unicase/u16-is-titlecase'.
40281         * modules/unicase/u16-is-titlecase-tests: New file.
40282         * tests/unicase/test-u16-is-titlecase.c: New file.
40283
40284         Tests for module 'unicase/u8-is-titlecase'.
40285         * modules/unicase/u8-is-titlecase-tests: New file.
40286         * tests/unicase/test-u8-is-titlecase.c: New file.
40287         * tests/unicase/test-is-titlecase.h: New file.
40288
40289         New module 'unicase/u32-is-titlecase'.
40290         * lib/unicase/u32-is-titlecase.c: New file.
40291         * modules/unicase/u32-is-titlecase: New file.
40292
40293         New module 'unicase/u16-is-titlecase'.
40294         * lib/unicase/u16-is-titlecase.c: New file.
40295         * modules/unicase/u16-is-titlecase: New file.
40296
40297         New module 'unicase/u8-is-titlecase'.
40298         * lib/unicase/u8-is-titlecase.c: New file.
40299         * modules/unicase/u8-is-titlecase: New file.
40300
40301         Tests for module 'unicase/u32-is-lowercase'.
40302         * modules/unicase/u32-is-lowercase-tests: New file.
40303         * tests/unicase/test-u32-is-lowercase.c: New file.
40304
40305         Tests for module 'unicase/u16-is-lowercase'.
40306         * modules/unicase/u16-is-lowercase-tests: New file.
40307         * tests/unicase/test-u16-is-lowercase.c: New file.
40308
40309         Tests for module 'unicase/u8-is-lowercase'.
40310         * modules/unicase/u8-is-lowercase-tests: New file.
40311         * tests/unicase/test-u8-is-lowercase.c: New file.
40312         * tests/unicase/test-is-lowercase.h: New file.
40313
40314         New module 'unicase/u32-is-lowercase'.
40315         * lib/unicase/u32-is-lowercase.c: New file.
40316         * modules/unicase/u32-is-lowercase: New file.
40317
40318         New module 'unicase/u16-is-lowercase'.
40319         * lib/unicase/u16-is-lowercase.c: New file.
40320         * modules/unicase/u16-is-lowercase: New file.
40321
40322         New module 'unicase/u8-is-lowercase'.
40323         * lib/unicase/u8-is-lowercase.c: New file.
40324         * modules/unicase/u8-is-lowercase: New file.
40325
40326         Tests for module 'unicase/u32-is-uppercase'.
40327         * modules/unicase/u32-is-uppercase-tests: New file.
40328         * tests/unicase/test-u32-is-uppercase.c: New file.
40329
40330         Tests for module 'unicase/u16-is-uppercase'.
40331         * modules/unicase/u16-is-uppercase-tests: New file.
40332         * tests/unicase/test-u16-is-uppercase.c: New file.
40333
40334         Tests for module 'unicase/u8-is-uppercase'.
40335         * modules/unicase/u8-is-uppercase-tests: New file.
40336         * tests/unicase/test-u8-is-uppercase.c: New file.
40337         * tests/unicase/test-is-uppercase.h: New file.
40338
40339         New module 'unicase/u32-is-uppercase'.
40340         * lib/unicase/u32-is-uppercase.c: New file.
40341         * modules/unicase/u32-is-uppercase: New file.
40342
40343         New module 'unicase/u16-is-uppercase'.
40344         * lib/unicase/u16-is-uppercase.c: New file.
40345         * modules/unicase/u16-is-uppercase: New file.
40346
40347         New module 'unicase/u8-is-uppercase'.
40348         * lib/unicase/u8-is-uppercase.c: New file.
40349         * modules/unicase/u8-is-uppercase: New file.
40350
40351         New module 'unicase/u32-is-invariant'.
40352         * lib/unicase/u32-is-invariant.c: New file.
40353         * modules/unicase/u32-is-invariant: New file.
40354
40355         New module 'unicase/u16-is-invariant'.
40356         * lib/unicase/u16-is-invariant.c: New file.
40357         * modules/unicase/u16-is-invariant: New file.
40358
40359         New module 'unicase/u8-is-invariant'.
40360         * lib/unicase/u8-is-invariant.c: New file.
40361         * lib/unicase/invariant.h: New file.
40362         * lib/unicase/u-is-invariant.h: New file.
40363         * modules/unicase/u8-is-invariant: New file.
40364
40365         Tests for module 'unicase/u32-casecoll'.
40366         * modules/unicase/u32-casecoll-tests: New file.
40367         * tests/unicase/test-u32-casecoll.c: New file.
40368
40369         Tests for module 'unicase/u16-casecoll'.
40370         * modules/unicase/u16-casecoll-tests: New file.
40371         * tests/unicase/test-u16-casecoll.c: New file.
40372
40373         Tests for module 'unicase/u8-casecoll'.
40374         * modules/unicase/u8-casecoll-tests: New file.
40375         * tests/unicase/test-u8-casecoll.c: New file.
40376
40377         New module 'unicase/u32-casecoll'.
40378         * lib/unicase/u32-casecoll.c: New file.
40379         * modules/unicase/u32-casecoll: New file.
40380
40381         New module 'unicase/u16-casecoll'.
40382         * lib/unicase/u16-casecoll.c: New file.
40383         * modules/unicase/u16-casecoll: New file.
40384
40385         New module 'unicase/u8-casecoll'.
40386         * lib/unicase/u8-casecoll.c: New file.
40387         * lib/unicase/u-casecoll.h: New file.
40388         * modules/unicase/u8-casecoll: New file.
40389
40390         New module 'unicase/u32-casexfrm'.
40391         * lib/unicase/u32-casexfrm.c: New file.
40392         * modules/unicase/u32-casexfrm: New file.
40393
40394         New module 'unicase/u16-casexfrm'.
40395         * lib/unicase/u16-casexfrm.c: New file.
40396         * modules/unicase/u16-casexfrm: New file.
40397
40398         New module 'unicase/u8-casexfrm'.
40399         * lib/unicase/u8-casexfrm.c: New file.
40400         * lib/unicase/u-casexfrm.h: New file.
40401         * modules/unicase/u8-casexfrm: New file.
40402
40403         Tests for module 'unicase/u32-casecmp'.
40404         * modules/unicase/u32-casecmp-tests: New file.
40405         * tests/unicase/test-u32-casecmp.c: New file.
40406
40407         Tests for module 'unicase/u16-casecmp'.
40408         * modules/unicase/u16-casecmp-tests: New file.
40409         * tests/unicase/test-u16-casecmp.c: New file.
40410
40411         Tests for module 'unicase/u8-casecmp'.
40412         * modules/unicase/u8-casecmp-tests: New file.
40413         * tests/unicase/test-u8-casecmp.c: New file.
40414         * tests/unicase/test-casecmp.h: New file.
40415
40416         New module 'unicase/u32-casecmp'.
40417         * lib/unicase/u32-casecmp.c: New file.
40418         * modules/unicase/u32-casecmp: New file.
40419
40420         New module 'unicase/u16-casecmp'.
40421         * lib/unicase/u16-casecmp.c: New file.
40422         * modules/unicase/u16-casecmp: New file.
40423
40424         New module 'unicase/u8-casecmp'.
40425         * lib/unicase/u8-casecmp.c: New file.
40426         * lib/unicase/u-casecmp.h: New file.
40427         * modules/unicase/u8-casecmp: New file.
40428
40429         Tests for module 'unicase/u32-casefold'.
40430         * modules/unicase/u32-casefold-tests: New file.
40431         * tests/unicase/test-u32-casefold.c: New file.
40432
40433         Tests for module 'unicase/u16-casefold'.
40434         * modules/unicase/u16-casefold-tests: New file.
40435         * tests/unicase/test-u16-casefold.c: New file.
40436
40437         Tests for module 'unicase/u8-casefold'.
40438         * modules/unicase/u8-casefold-tests: New file.
40439         * tests/unicase/test-u8-casefold.c: New file.
40440
40441         New module 'unicase/u32-casefold'.
40442         * lib/unicase/u32-casefold.c: New file.
40443         * modules/unicase/u32-casefold: New file.
40444
40445         New module 'unicase/u16-casefold'.
40446         * lib/unicase/u16-casefold.c: New file.
40447         * modules/unicase/u16-casefold: New file.
40448
40449         New module 'unicase/u8-casefold'.
40450         * lib/unicase/u8-casefold.c: New file.
40451         * lib/unicase/u-casefold.h: New file.
40452         * modules/unicase/u8-casefold: New file.
40453
40454         New module 'unicase/tocasefold'.
40455         * lib/unicase/casefold.h: New file.
40456         * lib/unicase/tocasefold.c: New file.
40457         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
40458         * modules/unicase/tocasefold: New file.
40459
40460         Tests for module 'unicase/u32-totitle'.
40461         * modules/unicase/u32-totitle-tests: New file.
40462         * tests/unicase/test-u32-totitle.c: New file.
40463
40464         Tests for module 'unicase/u16-totitle'.
40465         * modules/unicase/u16-totitle-tests: New file.
40466         * tests/unicase/test-u16-totitle.c: New file.
40467
40468         Tests for module 'unicase/u8-totitle'.
40469         * modules/unicase/u8-totitle-tests: New file.
40470         * tests/unicase/test-u8-totitle.c: New file.
40471
40472         New module 'unicase/u32-totitle'.
40473         * lib/unicase/u32-totitle.c: New file.
40474         * modules/unicase/u32-totitle: New file.
40475
40476         New module 'unicase/u16-totitle'.
40477         * lib/unicase/u16-totitle.c: New file.
40478         * modules/unicase/u16-totitle: New file.
40479
40480         New module 'unicase/u8-totitle'.
40481         * lib/unicase/u8-totitle.c: New file.
40482         * lib/unicase/u-totitle.h: New file.
40483         * modules/unicase/u8-totitle: New file.
40484
40485         Tests for module 'unicase/u32-tolower'.
40486         * modules/unicase/u32-tolower-tests: New file.
40487         * tests/unicase/test-u32-tolower.c: New file.
40488
40489         Tests for module 'unicase/u16-tolower'.
40490         * modules/unicase/u16-tolower-tests: New file.
40491         * tests/unicase/test-u16-tolower.c: New file.
40492
40493         Tests for module 'unicase/u8-tolower'.
40494         * modules/unicase/u8-tolower-tests: New file.
40495         * tests/unicase/test-u8-tolower.c: New file.
40496
40497         New module 'unicase/u32-tolower'.
40498         * lib/unicase/u32-tolower.c: New file.
40499         * modules/unicase/u32-tolower: New file.
40500
40501         New module 'unicase/u16-tolower'.
40502         * lib/unicase/u16-tolower.c: New file.
40503         * modules/unicase/u16-tolower: New file.
40504
40505         New module 'unicase/u8-tolower'.
40506         * lib/unicase/u8-tolower.c: New file.
40507         * modules/unicase/u8-tolower: New file.
40508
40509         Tests for module 'unicase/u32-toupper'.
40510         * modules/unicase/u32-toupper-tests: New file.
40511         * tests/unicase/test-u32-toupper.c: New file.
40512
40513         Tests for module 'unicase/u16-toupper'.
40514         * modules/unicase/u16-toupper-tests: New file.
40515         * tests/unicase/test-u16-toupper.c: New file.
40516
40517         Tests for module 'unicase/u8-toupper'.
40518         * modules/unicase/u8-toupper-tests: New file.
40519         * tests/unicase/test-u8-toupper.c: New file.
40520
40521         New module 'unicase/u32-toupper'.
40522         * lib/unicase/u32-toupper.c: New file.
40523         * modules/unicase/u32-toupper: New file.
40524
40525         New module 'unicase/u16-toupper'.
40526         * lib/unicase/u16-toupper.c: New file.
40527         * modules/unicase/u16-toupper: New file.
40528
40529         New module 'unicase/u8-toupper'.
40530         * lib/unicase/u8-toupper.c: New file.
40531         * modules/unicase/u8-toupper: New file.
40532
40533         New module 'unicase/u32-casemap'.
40534         * lib/unicase/u32-casemap.c: New file.
40535         * modules/unicase/u32-casemap: New file.
40536
40537         New module 'unicase/u16-casemap'.
40538         * lib/unicase/u16-casemap.c: New file.
40539         * modules/unicase/u16-casemap: New file.
40540
40541         New module 'unicase/u8-casemap'.
40542         * lib/unicase/unicasemap.h: New file.
40543         * lib/unicase/u8-casemap.c: New file.
40544         * lib/unicase/u-casemap.h: New file.
40545         * modules/unicase/u8-casemap: New file.
40546
40547         New module 'unicase/special-casing'.
40548         * lib/unicase/special-casing.h: New file.
40549         * lib/unicase/special-casing.c: New file.
40550         * lib/unicase/special-casing-table.gperf: New file, generated by
40551         gen-uni-tables.c.
40552         * modules/unicase/special-casing: New file.
40553
40554         Tests for module 'unicase/locale-language'.
40555         * modules/unicase/locale-language-tests: New file.
40556         * tests/unicase/test-locale-language.sh: New file.
40557         * tests/unicase/test-locale-language.c: New file.
40558
40559         New module 'unicase/locale-language'.
40560         * lib/unicase/locale-language.c: New file.
40561         * lib/unicase/locale-languages.gperf: New file.
40562         * modules/unicase/locale-language: New file.
40563
40564         Generate more tables for case conversion and case folding.
40565         * lib/gen-uni-tables.c (SCC_*): New enum items.
40566         (struct special_casing_rule): New type.
40567         (casing_rules, num_casing_rules, allocated_casing_rules): New
40568         variables.
40569         (add_casing_rule, fill_casing_rules): New functions.
40570         (struct casefold_rule): New type.
40571         (casefolding_rules, num_casefolding_rules,
40572         allocated_casefolding_rules): New variables.
40573         (fill_casefolding_rules): New function.
40574         (unicode_casefold): New variable.
40575         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40576         sort_casing_rules, output_casing_rules): New functions.
40577         (main): Accept to more arguments: SpecialCasing.txt and
40578         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40579         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40580         Output mapping for casefolding.
40581
40582         * lib/unicase.h: Include stdbool.h, uninorm.h.
40583         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40584         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40585         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40586         arguments.
40587         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40588         resultp arguments.
40589         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40590         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40591         resultp arguments.
40592         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40593         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40594         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40595         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40596         declarations.
40597         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40598
40599 2009-03-08  Bruno Haible  <bruno@clisp.org>
40600
40601         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40602         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40603         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40604         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40605
40606 2009-03-07  Bruno Haible  <bruno@clisp.org>
40607
40608         Adjust u*_normcmp, u*_normcoll API.
40609         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40610         u16_normcoll, u32_normcoll): Change failure conventions.
40611         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40612         errno and return -1.
40613         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40614
40615 2009-03-07  Bruno Haible  <bruno@clisp.org>
40616
40617         Tests for module 'uninorm/u32-normcoll'.
40618         * modules/uninorm/u32-normcoll-tests: New file.
40619         * tests/uninorm/test-u32-normcoll.c: New file.
40620
40621         Tests for module 'uninorm/u16-normcoll'.
40622         * modules/uninorm/u16-normcoll-tests: New file.
40623         * tests/uninorm/test-u16-normcoll.c: New file.
40624
40625         Tests for module 'uninorm/u8-normcoll'.
40626         * modules/uninorm/u8-normcoll-tests: New file.
40627         * tests/uninorm/test-u8-normcoll.c: New file.
40628
40629 2009-03-07  Bruno Haible  <bruno@clisp.org>
40630
40631         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40632         tests/uninorm/test-u32-normcmp.c.
40633         * tests/uninorm/test-u32-normcmp.c: Include it.
40634         (test_nonascii): New function, extracted from main. Add some more
40635         tests.
40636         (main): Invoke test_ascii and test_nonascii.
40637         * modules/uninorm/u32-normcmp-tests (Files): Add
40638         tests/uninorm/test-u32-normcmp.h.
40639         (Depends-on): Remove uninorm/u32-normcmp.
40640
40641         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40642         tests/uninorm/test-u16-normcmp.c.
40643         * tests/uninorm/test-u16-normcmp.c: Include it.
40644         (test_nonascii): New function, extracted from main. Add some more
40645         tests.
40646         (main): Invoke test_ascii and test_nonascii.
40647         * modules/uninorm/u16-normcmp-tests (Files): Add
40648         tests/uninorm/test-u16-normcmp.h.
40649         (Depends-on): Remove uninorm/u16-normcmp.
40650
40651         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40652         tests/uninorm/test-u8-normcmp.c.
40653         * tests/uninorm/test-u8-normcmp.c: Include it.
40654         (test_nonascii): New function, extracted from main. Add some more
40655         tests.
40656         (main): Invoke test_ascii and test_nonascii.
40657         * modules/uninorm/u8-normcmp-tests (Files): Add
40658         tests/uninorm/test-u8-normcmp.h.
40659         (Depends-on): Remove uninorm/u8-normcmp.
40660
40661 2009-03-07  Bruno Haible  <bruno@clisp.org>
40662
40663         New module 'uninorm/u32-normcoll'.
40664         * lib/uninorm/u32-normcoll.c: New file.
40665         * modules/uninorm/u32-normcoll: New file.
40666
40667         New module 'uninorm/u16-normcoll'.
40668         * lib/uninorm/u16-normcoll.c: New file.
40669         * modules/uninorm/u16-normcoll: New file.
40670
40671         New module 'uninorm/u8-normcoll'.
40672         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40673         declarations.
40674         * lib/uninorm/u8-normcoll.c: New file.
40675         * lib/uninorm/u-normcoll.h: New file.
40676         * modules/uninorm/u8-normcoll: New file.
40677
40678         New module 'uninorm/u32-normxfrm'.
40679         * lib/uninorm/u32-normxfrm.c: New file.
40680         * modules/uninorm/u32-normxfrm: New file.
40681
40682         New module 'uninorm/u16-normxfrm'.
40683         * lib/uninorm/u16-normxfrm.c: New file.
40684         * modules/uninorm/u16-normxfrm: New file.
40685
40686         New module 'uninorm/u8-normxfrm'.
40687         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40688         declarations.
40689         * lib/uninorm/u8-normxfrm.c: New file.
40690         * lib/uninorm/u-normxfrm.h: New file.
40691         * modules/uninorm/u8-normxfrm: New file.
40692
40693 2009-03-07  Bruno Haible  <bruno@clisp.org>
40694
40695         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40696         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40697         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40698
40699 2009-03-07  Bruno Haible  <bruno@clisp.org>
40700
40701         New module 'memxfrm'.
40702         * lib/memxfrm.h: New file.
40703         * lib/memxfrm.c: New file.
40704         * modules/memxfrm: New file.
40705
40706 2009-03-07  Bruno Haible  <bruno@clisp.org>
40707
40708         New module 'memcmp2'.
40709         * lib/memcmp2.h: New file.
40710         * lib/memcmp2.c: New file.
40711         * modules/memcmp2: New file.
40712
40713 2009-03-07  Bruno Haible  <bruno@clisp.org>
40714
40715         Tests for module 'uninorm/decomposing-form'.
40716         * modules/uninorm/decomposing-form-tests: New file.
40717         * tests/uninorm/test-decomposing-form.c: New file.
40718
40719         New module 'uninorm/decomposing-form'.
40720         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40721         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40722         Add 'decomposing_variant' field.
40723         * lib/uninorm/decomposing-form.c: New file.
40724         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40725         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40726         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40727         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40728         * modules/uninorm/decomposing-form: New file.
40729         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40730         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40731
40732 2009-03-07  Bruno Haible  <bruno@clisp.org>
40733
40734         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40735         strings.
40736
40737 2009-03-06  Bruno Haible  <bruno@clisp.org>
40738
40739         Tests for module 'uninorm/u32-normcmp'.
40740         * tests/uninorm/test-u32-normcmp.c: New file.
40741         * modules/uninorm/u32-normcmp-tests: New file.
40742
40743         Tests for module 'uninorm/u16-normcmp'.
40744         * tests/uninorm/test-u16-normcmp.c: New file.
40745         * modules/uninorm/u16-normcmp-tests: New file.
40746
40747         Tests for module 'uninorm/u8-normcmp'.
40748         * tests/uninorm/test-u8-normcmp.c: New file.
40749         * modules/uninorm/u8-normcmp-tests: New file.
40750
40751         New module 'uninorm/u32-normcmp'.
40752         * lib/uninorm/u32-normcmp.c: New file.
40753         * modules/uninorm/u32-normcmp: New file.
40754
40755         New module 'uninorm/u16-normcmp'.
40756         * lib/uninorm/u16-normcmp.c: New file.
40757         * modules/uninorm/u16-normcmp: New file.
40758
40759         New module 'uninorm/u8-normcmp'.
40760         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40761         declarations.
40762         * lib/uninorm/u8-normcmp.c: New file.
40763         * lib/uninorm/u-normcmp.h: New file.
40764         * modules/uninorm/u8-normcmp: New file.
40765
40766 2009-03-06  Bruno Haible  <bruno@clisp.org>
40767
40768         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40769         Reported by Eric Blake.
40770
40771 2009-03-06  Eric Blake  <ebb9@byu.net>
40772             Bruno Haible  <bruno@clisp.org>
40773
40774         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40775         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40776         condition.
40777         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40778         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40779         condition.
40780         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40781
40782 2009-03-06  Eric Blake  <ebb9@byu.net>
40783
40784         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40785         to avoid compiler warnings.
40786         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40787
40788 2009-03-05  Bruno Haible  <bruno@clisp.org>
40789
40790         * tests/test-ftell.c (main): Disable test beyond end of file on
40791         FreeMiNT.
40792         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40793
40794 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40795
40796         * lib/filevercmp.c: Move hidden files up in ordering.
40797         * tests/test-filevercmp.c: Add tests for hidden files.
40798
40799 2009-03-04  Bruno Haible  <bruno@clisp.org>
40800
40801         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40802         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40803         AM_CFLAGS.
40804         Reported by Simon Josefsson.
40805
40806 2009-03-03  Bruno Haible  <bruno@clisp.org>
40807
40808         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40809         Reported by Simon Josefsson.
40810
40811         * doc/ld-version-script.texi: Update node reference.
40812
40813 2009-03-03  Bruno Haible  <bruno@clisp.org>
40814
40815         * modules/visibility (License): Change to 'unlimited'.
40816         Suggested by Simon Josefsson.
40817
40818 2009-03-03  Jim Meyering  <meyering@redhat.com>
40819
40820         unlinkdir: cannot_unlink_dir may modify process state
40821         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40822         it's neither thread-safe nor appropriate for use in a library.
40823
40824 2009-03-03  Eric Blake  <ebb9@byu.net>
40825
40826         test-closein: silence test under Darwin
40827         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40828         care if it dies from EPIPE or EBADF.
40829
40830 2009-03-03  Bruno Haible  <bruno@clisp.org>
40831
40832         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40833         earlier.
40834         * doc/visibility.texi: Fix @node and @section.
40835
40836 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40837
40838         * doc/gnulib.texi: Link to sections for ld version script and
40839         visibility.
40840         * doc/visibility.texi: Add @node and @section.
40841         * modules/ld-version-script: New module.
40842         * m4/ld-version-script.m4: New file.
40843         * doc/ld-version-script.texi: New file.
40844
40845 2009-03-02  David Lutterkort  <lutter@redhat.com>
40846
40847         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40848         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40849
40850 2009-03-02  Bruno Haible  <bruno@clisp.org>
40851
40852         * doc/visibility.texi: Mention libtool's -export-symbols option.
40853
40854 2009-03-02  Jim Meyering  <meyering@redhat.com>
40855
40856         announce-gen: new option: --no-print-checksums
40857         * build-aux/announce-gen (usage): Describe it.
40858         (print_checksums): Print a newline here, not in the [*] footnote.
40859         (main): Honor it.
40860
40861 2009-03-01  Bruno Haible  <bruno@clisp.org>
40862
40863         Use socklen_t in the native Windows replacements prototypes.
40864         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40865         instead of 'int'.
40866         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40867         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40868         * modules/getsockopt (Depends-on): Add socklen.
40869         * modules/setsockopt (Depends-on): Add socklen.
40870
40871 2009-03-01  Bruno Haible  <bruno@clisp.org>
40872
40873         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40874         least 4.2.
40875
40876 2009-03-01  Eric Blake  <ebb9@byu.net>
40877             Bruno Haible  <bruno@clisp.org>
40878
40879         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40880         error messages.
40881         * lib/wait-process.c (wait_subprocess): Omit error message about
40882         deadly signal sent to the child of termsigp != NULL.
40883
40884 2009-03-01  Eric Blake  <ebb9@byu.net>
40885
40886         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40887
40888 2009-03-01  Bruno Haible  <bruno@clisp.org>
40889
40890         Avoid a gcc warning.
40891         * tests/test-sched.c (b): Make global.
40892         Reported by Eric Blake.
40893
40894 2009-01-19  Martin Lambers  <marlam@marlam.de>
40895
40896         Provide POSIX semantics for socket timeout options on W32.
40897         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40898         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40899         * modules/setsockopt: Depend on sys_time module for struct timeval.
40900         * modules/getsockopt: Depend on sys_time module for struct timeval.
40901
40902 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40903
40904         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40905         __USE_GNU, for consistency with netdb.in.h.
40906         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40907
40908 2009-03-01  Bruno Haible  <bruno@clisp.org>
40909
40910         More support for FreeMiNT.
40911         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40912         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40913
40914 2009-03-01  Bruno Haible  <bruno@clisp.org>
40915
40916         More support for FreeMiNT.
40917         * lib/fpurge.c (fpurge): Correct last commit.
40918         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40919
40920 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40921
40922         Fix unportable awk script in vc-list-files.
40923         * build-aux/vc-list-files: In the replacement awk script, use
40924         substr with a second argument of 1, not zero.
40925         Report by Simon Josefsson.
40926
40927 2009-02-28  Bruno Haible  <bruno@clisp.org>
40928
40929         More support for FreeMiNT.
40930         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40931         to FreeMiNT today.
40932         * lib/fwriting.c (fwriting): Likewise.
40933         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40934
40935 2009-02-28  Bruno Haible  <bruno@clisp.org>
40936
40937         * tests/test-freadseek.c (main): Disable test beyond end of file on
40938         FreeMiNT.
40939         * tests/test-ftello.c (main): Likewise.
40940         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40941
40942 2009-02-28  Bruno Haible  <bruno@clisp.org>
40943
40944         Add tentative support for FreeMiNT.
40945         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40946         * lib/fpurge.c (fpurge): Likewise.
40947         * lib/freadable.c (freadable): Likewise.
40948         * lib/freading.c (freading): Likewise.
40949         * lib/freadptr.c (freadptr): Likewise.
40950         * lib/freadseek.c (freadptrinc): Likewise.
40951         * lib/fseeko.c (rpl_fseeko): Likewise.
40952         * lib/fseterr.c (fseterr): Likewise.
40953         * lib/fwritable.c (fwritable): Likewise.
40954         * lib/fwriting.c (fwriting): Likewise.
40955         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40956         Hourihane.
40957         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40958
40959 2009-02-28  Bruno Haible  <bruno@clisp.org>
40960
40961         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40962         SIGCHLD.
40963         Reported by Jim Meyering.
40964
40965 2009-02-28  Bruno Haible  <bruno@clisp.org>
40966
40967         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40968         Mention the results of these tests on various platforms.
40969         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40970         order.
40971         * doc/posix-functions/printf.texi: Likewise.
40972         * doc/posix-functions/snprintf.texi: Likewise.
40973         * doc/posix-functions/sprintf.texi: Likewise.
40974         * doc/posix-functions/vfprintf.texi: Likewise.
40975         * doc/posix-functions/vprintf.texi: Likewise.
40976         * doc/posix-functions/vsnprintf.texi: Likewise.
40977         * doc/posix-functions/vsprintf.texi: Likewise.
40978         * doc/glibc-functions/obstack_printf.texi: Likewise.
40979         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40980
40981 2009-02-28  Bruno Haible  <bruno@clisp.org>
40982
40983         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40984         Reported by Loïc Minier <lool@dooz.org>.
40985
40986 2009-02-27  Bruno Haible  <bruno@clisp.org>
40987
40988         * gnulib-tool (func_import): Make the sed expression used to create the
40989         sed script for updating the .gitignore file POSIX compliant.
40990         Reported by Eric Blake.
40991
40992 2009-02-27  Bruno Haible  <bruno@clisp.org>
40993
40994         * gnulib-tool (sed): Don't alias as "sed --posix".
40995         Reported by Eric Blake.
40996
40997 2009-02-27  Bruno Haible  <bruno@clisp.org>
40998
40999         Avoid test link errors.
41000         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
41001         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
41002         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
41003         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
41004         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41005
41006 2009-02-27  Bruno Haible  <bruno@clisp.org>
41007
41008         Avoid spurious "(cached)" in configure output.
41009         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
41010         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
41011         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41012         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41013         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41014         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
41015         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41016         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
41017         Reported by Eric Blake.
41018
41019 2009-02-27  Eric Blake  <ebb9@byu.net>
41020
41021         printf: fix regression in previous patch
41022         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
41023
41024 2009-02-27  Bruno Haible  <bruno@clisp.org>
41025
41026         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
41027         value.
41028         * lib/stdint.in.h: Likewise.
41029         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
41030
41031 2009-02-27  Eric Blake  <ebb9@byu.net>
41032
41033         doc: mention more functions added in cygwin 1.7.0
41034         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
41035         addition.
41036         * doc/posix-functions/open_wmemstream.texi: Likewise.
41037         * doc/posix-functions/wcsnlen.texi: Likewise.
41038         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41039         * doc/posix-functions/wcstod.texi: Likewise.
41040         * doc/posix-functions/wcstof.texi: Likewise.
41041         * doc/posix-functions/wcstoimax.texi: Likewise.
41042         * doc/posix-functions/wcstok.texi: Likewise.
41043         * doc/posix-functions/wcstoumax.texi: Likewise.
41044
41045         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
41046         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
41047         * doc/posix-functions/fprintf.texi: Update.
41048         * doc/posix-functions/printf.texi: Update.
41049         * doc/posix-functions/snprintf.texi: Update.
41050         * doc/posix-functions/sprintf.texi: Update.
41051         * doc/posix-functions/vfprintf.texi: Update.
41052         * doc/posix-functions/vprintf.texi: Update.
41053         * doc/posix-functions/vsnprintf.texi: Update.
41054         * doc/posix-functions/vsprintf.texi: Update.
41055         * doc/glibc-functions/obstack_printf.texi: Update.
41056         * doc/glibc-functions/obstack_vprintf.texi: Update.
41057
41058 2009-02-26  Eric Blake  <ebb9@byu.net>
41059
41060         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
41061         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
41062         compilation bug by using runtime conversion.
41063         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
41064         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
41065         * modules/ceill-tests (Files): Use nan.h.
41066         * modules/floorl-tests (Files): Likewise.
41067         * modules/frexpl-tests (Files): Likewise.
41068         * modules/isnanl-tests (Files): Likewise.
41069         * modules/ldexpl-tests (Files): Likewise.
41070         * modules/roundl-tests (Files): Likewise.
41071         * modules/truncl-tests (Files): Likewise.
41072         * tests/test-ceill.c (main): Use a working NaN.
41073         * tests/test-floorl.c (main): Likewise.
41074         * tests/test-frexpl.c (main): Likewise.
41075         * tests/test-isnan.c (test_long_double): Likewise.
41076         * tests/test-isnanl.h (main): Likewise.
41077         * tests/test-ldexpl.h (main): Likewise.
41078         * tests/test-roundl.h (main): Likewise.
41079         * tests/test-truncl.h (main): Likewise.
41080         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
41081
41082 2009-02-26  Eric Blake  <ebb9@byu.net>
41083             Bruno Haible  <bruno@clisp.org>
41084
41085         Work around a *printf bug with %ls on Solaris.
41086         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
41087         precision is specified, sprintf stops converting the wide string
41088         argument when the number of bytes that have been produced by this
41089         conversion equals or exceeds the precision.
41090         * doc/posix-functions/fprintf.texi: Update.
41091         * doc/posix-functions/printf.texi: Update.
41092         * doc/posix-functions/snprintf.texi: Update.
41093         * doc/posix-functions/sprintf.texi: Update.
41094         * doc/posix-functions/vfprintf.texi: Update.
41095         * doc/posix-functions/vprintf.texi: Update.
41096         * doc/posix-functions/vsnprintf.texi: Update.
41097         * doc/posix-functions/vsprintf.texi: Update.
41098         * doc/glibc-functions/obstack_printf.texi: Update.
41099         * doc/glibc-functions/obstack_vprintf.texi: Update.
41100
41101 2009-02-26  Eric Blake  <ebb9@byu.net>
41102
41103         stdlib: favor compiler check of random.h
41104         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
41105         to avoid an ObjC random.h installed by Swarm.
41106
41107 2009-02-26  Bruno Haible  <bruno@clisp.org>
41108
41109         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
41110         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
41111         Reported by Gary V. Vaughan <gary@gnu.org>.
41112
41113 2009-02-26  Bruno Haible  <bruno@clisp.org>
41114
41115         Fix *printf behaviour regarding the %ls directive.
41116         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
41117         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
41118         NEED_PRINTF_DIRECTIVE_LS.
41119         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
41120         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41121         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41122         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
41123         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
41124         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
41125         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41126         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41127         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41128         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41129         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41130         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
41131         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41132         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41133         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41134         * doc/posix-functions/fprintf.texi: Update.
41135         * doc/posix-functions/printf.texi: Update.
41136         * doc/posix-functions/snprintf.texi: Update.
41137         * doc/posix-functions/sprintf.texi: Update.
41138         * doc/posix-functions/vfprintf.texi: Update.
41139         * doc/posix-functions/vprintf.texi: Update.
41140         * doc/posix-functions/vsnprintf.texi: Update.
41141         * doc/posix-functions/vsprintf.texi: Update.
41142         * doc/glibc-functions/obstack_printf.texi: Update.
41143         * doc/glibc-functions/obstack_vprintf.texi: Update.
41144         Reported by Eric Blake.
41145
41146 2009-02-25  Bruno Haible  <bruno@clisp.org>
41147
41148         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
41149         with known value.
41150         Reported by Gary V. Vaughan <gary@gnu.org>.
41151
41152 2009-02-25  Bruno Haible  <bruno@clisp.org>
41153
41154         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
41155         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
41156         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
41157         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
41158         Reported by Gary V. Vaughan <gary@gnu.org>.
41159
41160 2009-02-25  Bruno Haible  <bruno@clisp.org>
41161
41162         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
41163         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
41164         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
41165         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
41166         Reported by Gary V. Vaughan <gary@gnu.org>.
41167
41168 2009-02-25  Eric Blake  <ebb9@byu.net>
41169
41170         tests: skip fseek/ftell tests if ungetc is broken
41171         * m4/ungetc.m4: New file.
41172         * modules/fseek-tests: Split test, so ungetc dependency is
41173         separate from rest of test.
41174         * modules/fseeko-tests: Likewise.
41175         * modules/ftell-tests: Likewise.
41176         * modules/ftello-tests: Likewise.
41177         * tests/test-fseek.c (main): Isolate ungetc dependency.
41178         * tests/test-fseeko.c (main): Likewise.
41179         * tests/test-ftell.c (main): Likewise.
41180         * tests/test-ftello.c (main): Likewise.
41181         * tests/test-fseek2.sh: New file.
41182         * tests/test-fseeko2.sh: Likewise.
41183         * tests/test-ftell2.sh: Likewise.
41184         * tests/test-ftello2.sh: Likewise.
41185
41186 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
41187
41188         test-getaddrinfo: fix usage of skip return code 77
41189         * tests/test-gettaddrinfo.c: Return skip code 77 only
41190         for first occurance of skip (4x77 is not 77)
41191
41192 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
41193
41194         strtod: avoid C99 decl-after-statement
41195         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
41196
41197 2009-02-24  Eric Blake  <ebb9@byu.net>
41198
41199         strtod: detect HP-UX 11.31 bug
41200         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
41201         Reported by Gary V. Vaughan.
41202
41203 2009-02-23  Bruno Haible  <bruno@clisp.org>
41204
41205         Fix invalid read past end of memory block.
41206         * lib/vasnprintf.c (DCHAR_SET): Define.
41207         (local_wcslen): Define only when needed.
41208         (local_strnlen, local_wcsnlen): New functions.
41209         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
41210         directives that involve a conversion ourselves.
41211         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
41212         wcsnlen, mbrtowc, wcrtomb.
41213         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
41214         * tests/test-vasprintf-posix.c (test_function): Likewise.
41215         * tests/test-snprintf-posix.h (test_function): Likewise.
41216         * tests/test-sprintf-posix.h (test_function): Likewise.
41217         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41218
41219 2009-02-22  Bruno Haible  <bruno@clisp.org>
41220
41221         Implement new clarified decomposition of Hangul syllables.
41222         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
41223         of type LTV, return only a pairwise decomposition.
41224         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
41225         Likewise.
41226         * tests/uninorm/test-decomposition.c (main): Updated expected result.
41227         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
41228         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
41229
41230 2009-02-22  Bruno Haible  <bruno@clisp.org>
41231
41232         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
41233         zero-length results and shrink excess allocated memory.
41234         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
41235         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
41236         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
41237         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
41238         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
41239         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
41240         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
41241         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
41242         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
41243         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
41244         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
41245         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
41246
41247 2009-02-21  Bruno Haible  <bruno@clisp.org>
41248
41249         * doc/gnulib.texi: Include safe-alloc.texi earlier.
41250         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
41251         spaces after a period. Put a space between a macro name and its
41252         argument list. Trivial rewordings.
41253         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
41254         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
41255         (main): Return 0 explicitly.
41256
41257 2009-02-21  Bruno Haible  <bruno@clisp.org>
41258
41259         Tests for module 'uninorm/filter'.
41260         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
41261         * modules/uninorm/filter-tests: New file.
41262
41263         New module 'uninorm/filter'.
41264         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
41265         uninorm_filter_flush, uninorm_filter_free): New declarations.
41266         * lib/uninorm/uninorm-filter.c: New file.
41267         * modules/uninorm/filter: New file.
41268
41269 2009-02-21  Bruno Haible  <bruno@clisp.org>
41270
41271         Tests for module 'uninorm/nfkc'.
41272         * tests/uninorm/test-nfkc.c: New file.
41273         * tests/uninorm/test-u8-nfkc.c: New file.
41274         * tests/uninorm/test-u16-nfkc.c: New file.
41275         * tests/uninorm/test-u32-nfkc.c: New file.
41276         * tests/uninorm/test-u32-nfkc-big.sh: New file.
41277         * tests/uninorm/test-u32-nfkc-big.c: New file.
41278         * modules/uninorm/nfkc-tests: New file.
41279
41280         New module 'uninorm/nfkc'.
41281         * lib/uninorm/nfkc.c: New file.
41282         * modules/uninorm/nfkc: New file.
41283
41284         Tests for module 'uninorm/nfkd'.
41285         * tests/uninorm/test-nfkd.c: New file.
41286         * tests/uninorm/test-u8-nfkd.c: New file.
41287         * tests/uninorm/test-u16-nfkd.c: New file.
41288         * tests/uninorm/test-u32-nfkd.c: New file.
41289         * tests/uninorm/test-u32-nfkd-big.sh: New file.
41290         * tests/uninorm/test-u32-nfkd-big.c: New file.
41291         * modules/uninorm/nfkd-tests: New file.
41292
41293         New module 'uninorm/nfkd'.
41294         * lib/uninorm/nfkd.c: New file.
41295         * modules/uninorm/nfkd: New file.
41296
41297         Tests for module 'uninorm/nfc'.
41298         * tests/uninorm/test-nfc.c: New file.
41299         * tests/uninorm/test-u8-nfc.c: New file.
41300         * tests/uninorm/test-u16-nfc.c: New file.
41301         * tests/uninorm/test-u32-nfc.c: New file.
41302         * tests/uninorm/test-u32-nfc-big.sh: New file.
41303         * tests/uninorm/test-u32-nfc-big.c: New file.
41304         * modules/uninorm/nfc-tests: New file.
41305
41306         New module 'uninorm/nfc'.
41307         * lib/uninorm/nfc.c: New file.
41308         * modules/uninorm/nfc: New file.
41309
41310         Tests for module 'uninorm/nfd'.
41311         * tests/uninorm/test-nfd.c: New file.
41312         * tests/uninorm/test-u8-nfd.c: New file.
41313         * tests/uninorm/test-u16-nfd.c: New file.
41314         * tests/uninorm/test-u32-nfd.c: New file.
41315         * tests/uninorm/test-u32-nfd-big.sh: New file.
41316         * tests/uninorm/test-u32-nfd-big.c: New file.
41317         * tests/uninorm/test-u32-normalize-big.h: New file.
41318         * tests/uninorm/test-u32-normalize-big.c: New file.
41319         * tests/uninorm/NormalizationTest.txt: New file, created from
41320         Unicode 5.1.0 NormalizationTest.txt.
41321         * modules/uninorm/nfd-tests: New file.
41322
41323         New module 'uninorm/nfd'.
41324         * lib/uninorm/nfd.c: New file.
41325         * modules/uninorm/nfd: New file.
41326
41327         New module 'uninorm/u32-normalize'.
41328         * lib/uninorm/u32-normalize.c: New file.
41329         * modules/uninorm/u32-normalize: New file.
41330
41331         New module 'uninorm/u16-normalize'.
41332         * lib/uninorm/u16-normalize.c: New file.
41333         * modules/uninorm/u16-normalize: New file.
41334
41335         New module 'uninorm/u8-normalize'.
41336         * lib/uninorm/u8-normalize.c: New file.
41337         * lib/uninorm/normalize-internal.h: New file.
41338         * lib/uninorm/u-normalize-internal.h: New file.
41339         * modules/uninorm/u8-normalize: New file.
41340
41341         New module 'uninorm/decompose-internal'.
41342         * lib/uninorm/decompose-internal.c: New file.
41343         * modules/uninorm/decompose-internal: New file.
41344
41345         Tests for module 'uninorm/composition'.
41346         * tests/uninorm/test-composition.c: New file.
41347         * modules/uninorm/composition-tests: New file.
41348
41349         New module 'uninorm/composition'.
41350         * lib/uninorm/composition.c: New file.
41351         * lib/uninorm/composition-table.gperf: New file, generated by
41352         gen-uni-tables.
41353         * modules/uninorm/composition: New file.
41354
41355         Tests for module 'uninorm/compat-decomposition'.
41356         * tests/uninorm/test-compat-decomposition.c: New file.
41357         * modules/uninorm/compat-decomposition-tests: New file.
41358
41359         New module 'uninorm/compat-decomposition'.
41360         * lib/uninorm/decompose-internal.h: New file.
41361         * lib/uninorm/compat-decomposition.c: New file.
41362         * modules/uninorm/compat-decomposition: New file.
41363
41364         Tests for module 'uninorm/canonical-decomposition'.
41365         * tests/uninorm/test-canonical-decomposition.c: New file.
41366         * modules/uninorm/canonical-decomposition-tests: New file.
41367
41368         New module 'uninorm/canonical-decomposition'.
41369         * lib/uninorm/canonical-decomposition.c: New file.
41370         * modules/uninorm/canonical-decomposition: New file.
41371
41372         Tests for module 'uninorm/decomposition'.
41373         * tests/uninorm/test-decomposition.c: New file.
41374         * modules/uninorm/decomposition-tests: New file.
41375
41376         New module 'uninorm/decomposition'.
41377         * lib/uninorm/decomposition.c: New file.
41378         * modules/uninorm/decomposition: New file.
41379
41380         New module 'uninorm/decomposition-table'.
41381         * lib/uninorm/decomposition-table.h: New file.
41382         * lib/uninorm/decomposition-table.c: New file.
41383         * lib/uninorm/decomposition-table1.h: New file, generated by
41384         gen-uni-tables.
41385         * lib/uninorm/decomposition-table2.h: New file, generated by
41386         gen-uni-tables.
41387         * modules/uninorm/decomposition-table: New file.
41388
41389         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41390         (UC_DECOMP_*): New enumeration items.
41391         (get_decomposition): New function.
41392         (struct decomp_table): New type.
41393         (output_decomposition, output_decomposition_tables): New functions.
41394         (unicode_composition_exclusions): New variable.
41395         (fill_composition_exclusions, debug_output_composition_tables): New
41396         functions.
41397         (main): Accept one more argument. Invoke fill_composition_exclusions.
41398         Output decomposition and composition tables.
41399
41400         New module 'uninorm/base'.
41401         * lib/uninorm.h: New file.
41402         * lib/unictype.h: Update comment.
41403         * modules/uninorm/base: New file.
41404
41405 2009-02-21  David Lutterkort  <lutter@redhat.com>
41406
41407         Tests for module 'safe-alloc'.
41408         * tests/test-safe-alloc.c: New file.
41409         * modules/safe-alloc-tests: New file.
41410
41411         New module 'safe-alloc'.
41412         * lib/safe-alloc.h: New file.
41413         * lib/safe-alloc.c: New file.
41414         * m4/safe-alloc.m4: New file.
41415         * modules/safe-alloc: New file.
41416         * doc/safe-alloc.texi: New file.
41417         * doc/gnulib.texi: Include it.
41418         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41419         safe-alloc.
41420
41421 2009-02-18  Bruno Haible  <bruno@clisp.org>
41422
41423         Fix link error on non-glibc systems.
41424         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
41425         variable.
41426         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41427
41428 2009-02-18  Jim Meyering  <meyering@redhat.com>
41429
41430         fts: avoid used-uninitialized error due to recent change
41431         * lib/fts.c (fts_read): Guard uses of the new member,
41432         parent->fts_n_dirs_remaining, since it's not relevant for
41433         the parent of a directory specified on the command-line.
41434
41435 2009-02-17  James Youngman  <jay@gnu.org>
41436             Bruno Haible  <bruno@clisp.org>
41437
41438         * m4/include_next.m4: Reformulate comment.
41439
41440 2009-02-16  Jim Meyering  <meyering@redhat.com>
41441
41442         fts: add #if guards so that the fts_lgpl module still builds
41443         * lib/fts.c: Guard just-added hash-table-using parts with
41444         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
41445         Reported by Simon Josefsson.
41446
41447 2009-02-15  Bruno Haible  <bruno@clisp.org>
41448
41449         * modules/array-mergesort-tests: New file.
41450         * tests/test-array-mergesort.c: New file.
41451
41452         New module 'array-mergesort'.
41453         * modules/array-mergesort: New file.
41454         * lib/array-mergesort.h: New file.
41455
41456 2009-02-15  Bruno Haible  <bruno@clisp.org>
41457
41458         Fix 2009-02-07 commit.
41459         * lib/gen-uni-tables.c (output_predicate, output_category,
41460         output_combclass, output_bidi_category, output_decimal_digit,
41461         output_digit, output_numeric, output_mirror, output_scripts,
41462         output_ident_category, output_simple_mapping): Fix format directives.
41463         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
41464
41465 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
41466
41467         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
41468         fixes are available from IBM.
41469
41470 2009-02-13  Jim Meyering  <meyering@redhat.com>
41471
41472         fts: arrange not to stat non-directories in more cases
41473         This makes GNU find (when it doesn't need to stat each file)
41474         *much* more efficient at traversing reiserfs file systems.
41475         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41476         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41477         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41478         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41479         (leaf_optimization_applies): New function.
41480         (LCO_hash, LCO_compare): New helper functions.
41481         (link_count_optimize_ok): New function.
41482         (fts_stat): Initialize new member (if dir).
41483         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41484         we've just stat'ed a directory.  Skip the stat call when possible.
41485         ---
41486         Note this AFS-related exchange:
41487         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41488         and note find's pioctl call in find/fstype.c.
41489         But that is necessary only if you want to enable the
41490         optimization for AFS, and for now, I don't.
41491
41492         fts: move a function definition "up" (no semantic change)
41493         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41494         "up" to precede upcoming use of a related function.
41495
41496 2009-02-11  Jim Meyering  <meyering@redhat.com>
41497
41498         fts: correct internal computation of nlinks (optimization-related)
41499         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41500         whether the current entry is a directory, so don't test it.
41501
41502 2009-02-10  Bruno Haible  <bruno@clisp.org>
41503
41504         Tests for module 'uniwbrk/ulc-wordbreaks'.
41505         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41506         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41507         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41508
41509         Tests for module 'uniwbrk/u32-wordbreaks'.
41510         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41511         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41512
41513         Tests for module 'uniwbrk/u16-wordbreaks'.
41514         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41515         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41516
41517         Tests for module 'uniwbrk/u8-wordbreaks'.
41518         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41519         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41520
41521 2009-02-10  Bruno Haible  <bruno@clisp.org>
41522
41523         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41524         property.
41525         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41526         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41527         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41528
41529 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41530
41531         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41532         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41533
41534 2009-02-10  Bruno Haible  <bruno@clisp.org>
41535
41536         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41537         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41538         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41539         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41540         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41541         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41542
41543 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41544
41545         * lib/sockets.h (gl_fd_to_handle): New function.
41546
41547         * tests/test-sockets.c: Call gl_fd_to_handle.
41548
41549 2009-02-09  Bruno Haible  <bruno@clisp.org>
41550
41551         * doc/havelib.texi: Document the conventions on bi-arch systems.
41552
41553 2009-02-08  Bruno Haible  <bruno@clisp.org>
41554
41555         Document the AC_LIB_LINKFLAGS macro.
41556         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41557         * doc/gnulib.texi: Include it.
41558
41559 2009-02-08  Bruno Haible  <bruno@clisp.org>
41560
41561         Fix wrong order of sections, compared to TOC.
41562         * doc/gnulib.texi: Include relocatable-maint.texi after the
41563         "Regular expressions" node, not before.
41564
41565 2009-02-08  Bruno Haible  <bruno@clisp.org>
41566
41567         Tests for module 'unicase/totitle'.
41568         * modules/unicase/totitle-tests: New file.
41569
41570         Tests for module 'unicase/tolower'.
41571         * modules/unicase/tolower-tests: New file.
41572
41573         Tests for module 'unicase/toupper'.
41574         * modules/unicase/toupper-tests: New file.
41575         * tests/unicase/test-mapping-part1.h: New file.
41576         * tests/unicase/test-mapping-part2.h: New file.
41577
41578         New module 'unicase/totitle'.
41579         * modules/unicase/totitle: New file.
41580         * lib/unicase/totitle.c: New file.
41581
41582         New module 'unicase/tolower'.
41583         * modules/unicase/tolower: New file.
41584         * lib/unicase/tolower.c: New file.
41585
41586         New module 'unicase/toupper'.
41587         * modules/unicase/toupper: New file.
41588         * lib/unicase/toupper.c: New file.
41589         * lib/unicase/simple-mapping.h: New file.
41590
41591         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41592         (mapping_table): New structure.
41593         (output_simple_mapping): New function.
41594         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41595         * modules/gen-uni-tables (Description): Update.
41596         * lib/unicase/toupper.h: New file, automatically generated by
41597         gen-uni-tables.
41598         * lib/unicase/tolower.h: New file, automatically generated by
41599         gen-uni-tables.
41600         * lib/unicase/totitle.h: New file, automatically generated by
41601         gen-uni-tables.
41602         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41603         gen-uni-tables.
41604         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41605         gen-uni-tables.
41606         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41607         gen-uni-tables.
41608
41609         New module 'unicase/base'.
41610         * modules/unicase/base: New file.
41611         * lib/unicase.h: New file.
41612
41613 2009-02-08  Bruno Haible  <bruno@clisp.org>
41614
41615         New module 'uniwbrk/ulc-wordbreaks'.
41616         * modules/uniwbrk/ulc-wordbreaks: New file.
41617         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41618
41619         New module 'uniwbrk/u32-wordbreaks'.
41620         * modules/uniwbrk/u32-wordbreaks: New file.
41621         * lib/uniwbrk/u32-wordbreaks.c: New file.
41622
41623         New module 'uniwbrk/u16-wordbreaks'.
41624         * modules/uniwbrk/u16-wordbreaks: New file.
41625         * lib/uniwbrk/u16-wordbreaks.c: New file.
41626
41627         New module 'uniwbrk/u8-wordbreaks'.
41628         * modules/uniwbrk/u8-wordbreaks: New file.
41629         * lib/uniwbrk/u8-wordbreaks.c: New file.
41630         * lib/uniwbrk/u-wordbreaks.h: New file.
41631
41632         New module 'uniwbrk/table'.
41633         * modules/uniwbrk/table: New file.
41634         * lib/uniwbrk/wbrktable.h: New file.
41635         * lib/uniwbrk/wbrktable.c: New file.
41636
41637         New module 'uniwbrk/wordbreak-property'.
41638         * modules/uniwbrk/wordbreak-property: New file.
41639         * lib/uniwbrk/wordbreak-property.c: New file.
41640
41641         * lib/gen-uni-tables.c (WBP_*): New enum items.
41642         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41643         (unicode_org_wbp): New variable.
41644         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41645         New functions.
41646         (wbp_table): New structure.
41647         (output_wbp, output_wbrk_tables): New functions.
41648         (main): Accept additional argument. Invoke fill_org_wbp,
41649         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41650         output_wbrk_tables.
41651         * modules/gen-uni-tables (Description): Update.
41652         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41653         gen-uni-tables.
41654
41655         New module 'uniwbrk/base'.
41656         * modules/uniwbrk/base: New file.
41657         * lib/uniwbrk.h: New file.
41658
41659 2009-02-08  Bruno Haible  <bruno@clisp.org>
41660
41661         Update to Unicode 5.1.0.
41662         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41663         U+2185..U+2188.
41664         (is_property_default_ignorable_code_point): Don't include characters
41665         of category Cc or Cs and not-a-characters.
41666         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41667         U+0D79, U+109E, U+109F, U+A60C.
41668         * lib/unictype/bidi_of.h: Regenerated.
41669         * lib/unictype/blocks.h: Regenerated.
41670         * lib/unictype/categ_C.h: Regenerated.
41671         * lib/unictype/categ_Cf.h: Regenerated.
41672         * lib/unictype/categ_Cn.h: Regenerated.
41673         * lib/unictype/categ_L.h: Regenerated.
41674         * lib/unictype/categ_Ll.h: Regenerated.
41675         * lib/unictype/categ_Lm.h: Regenerated.
41676         * lib/unictype/categ_Lo.h: Regenerated.
41677         * lib/unictype/categ_Lu.h: Regenerated.
41678         * lib/unictype/categ_M.h: Regenerated.
41679         * lib/unictype/categ_Mc.h: Regenerated.
41680         * lib/unictype/categ_Me.h: Regenerated.
41681         * lib/unictype/categ_Mn.h: Regenerated.
41682         * lib/unictype/categ_N.h: Regenerated.
41683         * lib/unictype/categ_Nd.h: Regenerated.
41684         * lib/unictype/categ_Nl.h: Regenerated.
41685         * lib/unictype/categ_No.h: Regenerated.
41686         * lib/unictype/categ_P.h: Regenerated.
41687         * lib/unictype/categ_Pd.h: Regenerated.
41688         * lib/unictype/categ_Pe.h: Regenerated.
41689         * lib/unictype/categ_Pf.h: Regenerated.
41690         * lib/unictype/categ_Pi.h: Regenerated.
41691         * lib/unictype/categ_Po.h: Regenerated.
41692         * lib/unictype/categ_Ps.h: Regenerated.
41693         * lib/unictype/categ_S.h: Regenerated.
41694         * lib/unictype/categ_Sk.h: Regenerated.
41695         * lib/unictype/categ_Sm.h: Regenerated.
41696         * lib/unictype/categ_So.h: Regenerated.
41697         * lib/unictype/categ_of.h: Regenerated.
41698         * lib/unictype/combining.h: Regenerated.
41699         * lib/unictype/ctype_alnum.h: Regenerated.
41700         * lib/unictype/ctype_alpha.h: Regenerated.
41701         * lib/unictype/ctype_graph.h: Regenerated.
41702         * lib/unictype/ctype_lower.h: Regenerated.
41703         * lib/unictype/ctype_print.h: Regenerated.
41704         * lib/unictype/ctype_punct.h: Regenerated.
41705         * lib/unictype/ctype_upper.h: Regenerated.
41706         * lib/unictype/decdigit.h: Regenerated.
41707         * lib/unictype/digit.h: Regenerated.
41708         * lib/unictype/mirror.h: Regenerated.
41709         * lib/unictype/numeric.h: Regenerated.
41710         * lib/unictype/pr_alphabetic.h: Regenerated.
41711         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41712         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41713         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41714         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41715         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41716         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41717         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41718         * lib/unictype/pr_combining.h: Regenerated.
41719         * lib/unictype/pr_dash.h: Regenerated.
41720         * lib/unictype/pr_decimal_digit.h: Regenerated.
41721         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41722         * lib/unictype/pr_deprecated.h: Regenerated.
41723         * lib/unictype/pr_diacritic.h: Regenerated.
41724         * lib/unictype/pr_extender.h: Regenerated.
41725         * lib/unictype/pr_format_control.h: Regenerated.
41726         * lib/unictype/pr_grapheme_base.h: Regenerated.
41727         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41728         * lib/unictype/pr_grapheme_link.h: Regenerated.
41729         * lib/unictype/pr_id_continue.h: Regenerated.
41730         * lib/unictype/pr_id_start.h: Regenerated.
41731         * lib/unictype/pr_ideographic.h: Regenerated.
41732         * lib/unictype/pr_ignorable_control.h: Regenerated.
41733         * lib/unictype/pr_lowercase.h: Regenerated.
41734         * lib/unictype/pr_math.h: Regenerated.
41735         * lib/unictype/pr_numeric.h: Regenerated.
41736         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41737         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41738         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41739         * lib/unictype/pr_other_id_continue.h: Regenerated.
41740         * lib/unictype/pr_other_lowercase.h: Regenerated.
41741         * lib/unictype/pr_other_math.h: Regenerated.
41742         * lib/unictype/pr_punctuation.h: Regenerated.
41743         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41744         * lib/unictype/pr_soft_dotted.h: Regenerated.
41745         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41746         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41747         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41748         * lib/unictype/pr_uppercase.h: Regenerated.
41749         * lib/unictype/pr_xid_continue.h: Regenerated.
41750         * lib/unictype/pr_xid_start.h: Regenerated.
41751         * lib/unictype/pr_zero_width.h: Regenerated.
41752         * lib/unictype/scripts.h: Regenerated.
41753         * lib/unictype/scripts_byname.gperf: Regenerated.
41754         * lib/unictype/sy_java_ident.h: Regenerated.
41755         * lib/unilbrk/lbrkprop1.h: Regenerated.
41756         * lib/unilbrk/lbrkprop2.h: Regenerated.
41757         * tests/unictype/test-categ_C.c: Regenerated.
41758         * tests/unictype/test-categ_Cf.c: Regenerated.
41759         * tests/unictype/test-categ_Cn.c: Regenerated.
41760         * tests/unictype/test-categ_L.c: Regenerated.
41761         * tests/unictype/test-categ_Ll.c: Regenerated.
41762         * tests/unictype/test-categ_Lm.c: Regenerated.
41763         * tests/unictype/test-categ_Lo.c: Regenerated.
41764         * tests/unictype/test-categ_Lu.c: Regenerated.
41765         * tests/unictype/test-categ_M.c: Regenerated.
41766         * tests/unictype/test-categ_Mc.c: Regenerated.
41767         * tests/unictype/test-categ_Me.c: Regenerated.
41768         * tests/unictype/test-categ_Mn.c: Regenerated.
41769         * tests/unictype/test-categ_N.c: Regenerated.
41770         * tests/unictype/test-categ_Nd.c: Regenerated.
41771         * tests/unictype/test-categ_Nl.c: Regenerated.
41772         * tests/unictype/test-categ_No.c: Regenerated.
41773         * tests/unictype/test-categ_P.c: Regenerated.
41774         * tests/unictype/test-categ_Pd.c: Regenerated.
41775         * tests/unictype/test-categ_Pe.c: Regenerated.
41776         * tests/unictype/test-categ_Pf.c: Regenerated.
41777         * tests/unictype/test-categ_Pi.c: Regenerated.
41778         * tests/unictype/test-categ_Po.c: Regenerated.
41779         * tests/unictype/test-categ_Ps.c: Regenerated.
41780         * tests/unictype/test-categ_S.c: Regenerated.
41781         * tests/unictype/test-categ_Sk.c: Regenerated.
41782         * tests/unictype/test-categ_Sm.c: Regenerated.
41783         * tests/unictype/test-categ_So.c: Regenerated.
41784         * tests/unictype/test-ctype_alnum.c: Regenerated.
41785         * tests/unictype/test-ctype_alpha.c: Regenerated.
41786         * tests/unictype/test-ctype_graph.c: Regenerated.
41787         * tests/unictype/test-ctype_lower.c: Regenerated.
41788         * tests/unictype/test-ctype_print.c: Regenerated.
41789         * tests/unictype/test-ctype_punct.c: Regenerated.
41790         * tests/unictype/test-ctype_upper.c: Regenerated.
41791         * tests/unictype/test-decdigit.h: Regenerated.
41792         * tests/unictype/test-digit.h: Regenerated.
41793         * tests/unictype/test-numeric.h: Regenerated.
41794         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41795         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41796         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41797         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41798         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41799         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41800         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41801         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41802         * tests/unictype/test-pr_combining.c: Regenerated.
41803         * tests/unictype/test-pr_dash.c: Regenerated.
41804         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41805         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41806         * tests/unictype/test-pr_deprecated.c: Regenerated.
41807         * tests/unictype/test-pr_diacritic.c: Regenerated.
41808         * tests/unictype/test-pr_extender.c: Regenerated.
41809         * tests/unictype/test-pr_format_control.c: Regenerated.
41810         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41811         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41812         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41813         * tests/unictype/test-pr_id_continue.c: Regenerated.
41814         * tests/unictype/test-pr_id_start.c: Regenerated.
41815         * tests/unictype/test-pr_ideographic.c: Regenerated.
41816         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41817         * tests/unictype/test-pr_lowercase.c: Regenerated.
41818         * tests/unictype/test-pr_math.c: Regenerated.
41819         * tests/unictype/test-pr_numeric.c: Regenerated.
41820         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41821         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41822         Regenerated.
41823         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41824         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41825         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41826         * tests/unictype/test-pr_other_math.c: Regenerated.
41827         * tests/unictype/test-pr_punctuation.c: Regenerated.
41828         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41829         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41830         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41831         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41832         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41833         * tests/unictype/test-pr_uppercase.c: Regenerated.
41834         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41835         * tests/unictype/test-pr_xid_start.c: Regenerated.
41836         * tests/unictype/test-pr_zero_width.c: Regenerated.
41837
41838         Update to Unicode 5.1.0.
41839         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41840         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41841         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41842         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41843         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41844         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41845         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41846         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41847         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41848         (nonspacing_table_ind): Update.
41849         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41850
41851         Update to Unicode 5.1.0.
41852         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41853         code transform.
41854         * lib/uniname/uniname.c (unicode_character_name,
41855         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41856         * lib/uniname/uninames.h: Regenerated.
41857         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41858
41859 2009-02-07  Bruno Haible  <bruno@clisp.org>
41860
41861         Merge gen-ctype and gen-lbrk into a single program.
41862         * lib/gen-uni-tables.c: New file, incorporating
41863         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41864         Add directory prefixes to the names of the generated files.
41865         * lib/unictype/gen-ctype.c: Remove file.
41866         * lib/unilbrk/gen-lbrk.c: Remove file.
41867         * modules/gen-uni-tables: New file.
41868         * modules/unictype/gen-ctype: Remove file.
41869         * modules/unilbrk/gen-lbrk: Remove file.
41870
41871 2009-02-07  Bruno Haible  <bruno@clisp.org>
41872
41873         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41874
41875         New module 'unistr/u32-strcoll'.
41876         * modules/unistr/u32-strcoll: New file.
41877         * lib/unistr/u32-strcoll.c: New file.
41878
41879         New module 'unistr/u16-strcoll'.
41880         * modules/unistr/u16-strcoll: New file.
41881         * lib/unistr/u16-strcoll.c: New file.
41882
41883         New module 'unistr/u8-strcoll'.
41884         * modules/unistr/u8-strcoll: New file.
41885         * lib/unistr/u8-strcoll.c: New file.
41886         * lib/unistr/u-strcoll.h: New file.
41887
41888 2009-02-07  Bruno Haible  <bruno@clisp.org>
41889
41890         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41891         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41892         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41893         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41894         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41895         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41896
41897 2009-02-07  Bruno Haible  <bruno@clisp.org>
41898
41899         Make 64-bit clean.
41900         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41901         output_combclass, output_bidi_category, output_decimal_digit,
41902         output_digit, output_numeric, output_mirror, output_scripts,
41903         output_ident_category): Use proper width specifier in format strings.
41904
41905 2009-02-07  Bruno Haible  <bruno@clisp.org>
41906
41907         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41908         failure behaviour.
41909
41910 2009-02-07  Jim Meyering  <meyering@redhat.com>
41911
41912         regex: avoid compilation failure with upcoming gcc-4.4
41913         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41914         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41915         "... error: integer overflow in preprocessor expression".
41916
41917 2009-02-05  Ben Pfaff  <blp@gnu.org>
41918
41919         Fix link errors on Windows when close module is used.
41920         * modules/close: Add $(LIB_CLOSE) to Link section.
41921         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41922         $(LIB_CLOSE) on Windows.
41923
41924 2009-02-05  Jim Meyering  <meyering@redhat.com>
41925
41926         still avoid unused-parameter warnings, but do it cleanly
41927         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41928         (get_fs_usage): Cast to void instead.
41929         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41930         (dev_from_mount_options, read_file_system_list): Cast to void.
41931         Prompted by Bruno Haible.
41932
41933 2009-02-04  Jim Meyering  <meyering@redhat.com>
41934
41935         fsusage.c: correct copyright year
41936         * lib/fsusage.c: Reflect year in which the change is pushed into
41937
41938         avoid misc. warnings
41939         * lib/fsusage.c (UNUSED_PARAM): Define.
41940         (get_fs_usage): Mark parameter "disk" as unused.
41941         * lib/getugroups.c (getgrent): Use "void" in prototype.
41942         * lib/mountlist.c: Mark unused parameters.
41943         (read_file_system_list): Declare a local with "const".
41944         * lib/nanosleep.c (getnow): Declare static.
41945         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41946
41947         dirfd: set errno upon failure
41948         * lib/dirfd.c: Include <errno.h>.
41949         Set errno to ENOTSUP when returning -1.
41950         * modules/dirfd (Depends-on): Add errno.
41951         Suggested by John Kodis <kodis@comcast.net>.
41952
41953 2009-02-01  Bruno Haible  <bruno@clisp.org>
41954
41955         Don't assume sizeof (long) >= sizeof (void *).
41956         * lib/memcmp.c: Include stdint.h.
41957         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41958         srcp2 to 'const byte *'.
41959         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41960         types to uintptr_t.
41961         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41962         * modules/memcmp (Depends-on): Add stdint.
41963         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41964
41965 2009-01-30  Eric Blake  <ebb9@byu.net>
41966
41967         fix more require-before-expand issues
41968         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41969         expand, AC_PROG_AWK.
41970         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41971
41972 2009-01-28  Eric Blake  <ebb9@byu.net>
41973
41974         version-etc: use consistent URL formatting
41975         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41976         Improve formatting.  Use fputs for string without %.
41977
41978 2009-01-28  Jim Meyering  <meyering@redhat.com>
41979
41980         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41981         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41982         "underquoted definition of NAME" from autoconf-2.59.
41983
41984 2009-01-28  Bruno Haible  <bruno@clisp.org>
41985
41986         * doc/gnulib.texi: Add "Obsolete modules" to index.
41987
41988 2009-01-28  Jim Meyering  <meyering@redhat.com>
41989
41990         useless-if-before-free: recognize more variants
41991         * build-aux/useless-if-before-free: Also recognize e.g.,
41992         if (NULL != p) free (p);
41993
41994 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41995
41996         test-getaddrinfo: skip (don't fail) this test when there's no network
41997         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41998         on the presumption that it means you lack network access.
41999
42000 2009-01-26  Jim Meyering  <meyering@redhat.com>
42001
42002         fflush: avoid warnings on modern systems
42003         * lib/fflush.c (rpl_fflush): Move declarations of locals,
42004         pos and result, into scopes where they're used.
42005
42006 2009-01-26  Eric Blake  <ebb9@byu.net>
42007
42008         Silence warning reintroduced by recent extensions patch.
42009         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
42010         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
42011         autoconf.
42012
42013         Backport improved autoconf semantics of AC_DEFUN_ONCE.
42014         * m4/00gnulib.m4: New file.
42015         * gnulib-tool (func_get_filelist): Always use it.
42016         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
42017         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
42018
42019 2009-01-25  Bruno Haible  <bruno@clisp.org>
42020
42021         Make test-quotearg work on MacOS X and AIX.
42022         * tests/test-quotearg.sh: New file.
42023         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
42024         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
42025         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
42026         include <libintl.h>.
42027         (fake_locale): Remove variable.
42028         (gettext, dgettext, dcgettext): Remove functions.
42029         (main): Instead of setting a fake locale, set a real locale. Call
42030         textdomain and bindtextdomain.
42031         * modules/quotearg-tests (Files): Add the new files.
42032         (Depends-on): Add gettext, setenv, unsetenv.
42033         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42034         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
42035         Augment TESTS_ENVIRONMENT.
42036
42037 2009-01-25  Bruno Haible  <bruno@clisp.org>
42038
42039         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
42040         fr_FR.ISO8859-1 locale on MacOS X.
42041         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
42042         ja_JP.eucJP locale on MacOS X.
42043         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
42044         zh_CN.GB18030 locale on MacOS X.
42045
42046 2009-01-25  Bruno Haible  <bruno@clisp.org>
42047
42048         Avoid link errors on MacOS X 10.3.
42049         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
42050         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
42051
42052 2009-01-25  Bruno Haible  <bruno@clisp.org>
42053
42054         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42055         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
42056         * modules/pipe (Files): Remove m4/posix_spawn.m4.
42057         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42058         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
42059         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42060         posix_spawnattr_init, posix_spawnattr_setsigmask,
42061         posix_spawnattr_setflags, posix_spawnattr_destroy.
42062
42063         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42064         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
42065         * modules/execute (Files): Remove m4/posix_spawn.m4.
42066         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42067         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42068         posix_spawnattr_init, posix_spawnattr_setsigmask,
42069         posix_spawnattr_setflags, posix_spawnattr_destroy.
42070
42071 2009-01-25  Bruno Haible  <bruno@clisp.org>
42072
42073         * lib/glthread/threadlib.c: Include <stdlib.h>.
42074
42075 2009-01-25  Bruno Haible  <bruno@clisp.org>
42076
42077         * lib/glthread/threadlib.c (dummy): New declaration.
42078
42079 2009-01-25  Bruno Haible  <bruno@clisp.org>
42080
42081         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
42082         multibyte characters also for the GB18030 encoding. Don't crash when
42083         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
42084
42085 2009-01-25  Bruno Haible  <bruno@clisp.org>
42086
42087         Avoid redefining 'struct random_data' on OSF/1 5.1.
42088         * lib/stdlib.in.h: Include <random.h> if it exists.
42089         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
42090         HAVE_RANDOM_H. Include <random.h> when testing whether
42091         'struct random_data' exists.
42092         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
42093
42094 2009-01-25  Bruno Haible  <bruno@clisp.org>
42095
42096         Don't install charset.alias on MacOS X >= 10.3.
42097         * lib/localcharset.c (DARWIN7): New macro.
42098         (get_charset_aliases): Hardcode the result for Darwin7.
42099         * modules/localcharset (install-exec-local): Don't install
42100         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
42101
42102 2009-01-25  Bruno Haible  <bruno@clisp.org>
42103
42104         Don't install charset.alias on mingw and Cygwin.
42105         * modules/localcharset (install-exec-local): Don't install
42106         charset.alias on mingw and Cygwin, if the file does not yet exist.
42107         The result for these platforms is hardcoded in localcharset.c.
42108
42109 2009-01-25  Bruno Haible  <bruno@clisp.org>
42110
42111         Make it possible again to use AC_GNU_SOURCE together with gnulib.
42112         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
42113         before requiring AC_USE_SYSTEM_EXTENSIONS.
42114
42115 2009-01-25  Jim Meyering  <meyering@redhat.com>
42116
42117         c-strtod: avoid warnings
42118         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
42119         "assignment discards qualifiers from pointer target type" warnings.
42120
42121 2009-01-24  Bruno Haible  <bruno@clisp.org>
42122
42123         Add support for non-UTF-8 locales on MacOS X.
42124         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
42125         canonical encodings. For Darwin 7 and newer, don't map traditional
42126         encodings to UTF-8.
42127         Reported by Vincent Lefevre <vincent@vinc17.org>
42128         at <http://savannah.gnu.org/bugs/?25235>.
42129
42130 2009-01-24  Bruno Haible  <bruno@clisp.org>
42131
42132         * doc/gnulib.texi (Obsolete modules): New section.
42133         Reported by Mike Frysinger <vapier@gentoo.org>.
42134
42135 2009-01-24  Bruno Haible  <bruno@clisp.org>
42136
42137         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
42138         (%.dvi): New rule.
42139
42140 2009-01-24  Bruno Haible  <bruno@clisp.org>
42141
42142         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
42143         Reported by Eric Blake.
42144
42145 2009-01-24  Bruno Haible  <bruno@clisp.org>
42146
42147         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
42148         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
42149         Reported by Gary V. Vaughan <gary@gnu.org>.
42150
42151 2009-01-24  Bruno Haible  <bruno@clisp.org>
42152
42153         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
42154
42155 2009-01-23  Bruno Haible  <bruno@clisp.org>
42156
42157         Make c-strtod, c-strtold usable in libraries.
42158         * lib/c-strtod.c: Include string.h instead of xalloc.h.
42159         (C_STRTOD): Call strdup instead of xstrdup.
42160         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
42161         * modules/c-strtold (Depends-on): Likewise.
42162         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
42163         * NEWS: Mention the change.
42164         Reported by Michael Gold <mgold@ncf.ca>.
42165
42166 2009-01-23  Jim Meyering  <meyering@redhat.com>
42167
42168         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
42169         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
42170         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
42171
42172 2009-01-23  Simon Josefsson  <simon@josefsson.org>
42173
42174         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
42175         GNU CoreUtils.
42176         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
42177         * modules/version-etc (Description): Update.
42178
42179 2009-01-22  Bruno Haible  <bruno@clisp.org>
42180
42181         Cache the C locale object.
42182         * lib/c-strtod.c (c_locale_cache): New variable.
42183         (c_locale): New function.
42184         (C_STRTOD): Use it, and don't call freelocale.
42185         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
42186         Suggested by Paolo Bonzini.
42187
42188 2009-01-21  Bruno Haible  <bruno@clisp.org>
42189
42190         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
42191         conditions other than overflow.
42192
42193 2009-01-21  Bruno Haible  <bruno@clisp.org>
42194
42195         * lib/c-strtod.c: Include errno.h.
42196         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
42197         value from STRTOD_L and STRTOD.
42198
42199 2009-01-21  Bruno Haible  <bruno@clisp.org>
42200         and Jim Meyering  <meyering@redhat.com>
42201
42202         nanosleep: skip configure test (fail it) for apple universal builds
42203         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
42204         universal builds, assume that nanosleep does not work.
42205         * modules/nanosleep (Depends-on): Add multiarch.
42206
42207         mktime: skip configure test (fail it) for apple universal builds
42208         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
42209         universal builds, assume that mktime does not work.
42210         * modules/mktime (Depends-on): Add multiarch.
42211
42212 2009-01-21  Eric Blake  <ebb9@byu.net>
42213
42214         multiarch: avoid expand-before-require warning
42215         * modules/multiarch (configure.ac): Require, rather than expand,
42216         gl_MULTIARCH.
42217         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
42218         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
42219         enforce that all clients require it.  Partial reversion of
42220         2008-12-29 patch.
42221
42222         error: avoid expand-before-require warning
42223         * modules/errno (configure.ac): Require, rather than expand,
42224         gl_HEADER_ERRNO_H.
42225         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
42226         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
42227         enforce that all clients require it.
42228
42229         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
42230         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
42231         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
42232         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
42233
42234 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
42235
42236         Revert:
42237         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42238
42239         regex: do not depend on obsolete modules.
42240         * modules/regex: Remove memcmp and memmove.
42241
42242 2009-01-20  Bruno Haible  <bruno@clisp.org>
42243
42244         Make the 'link' module link on Windows NT 4.
42245         * lib/link.c (_WIN32_WINNT): Don't define.
42246         (CreateHardLinkFuncType): New type.
42247         (CreateHardLinkFunc, initialized): New variables.
42248         (initialize): New function.
42249         (link): Invoke CreateHardLink indirectly through the function pointer.
42250
42251 2009-01-20  Bruno Haible  <bruno@clisp.org>
42252
42253         Fix compilation failure on mingw.
42254         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
42255
42256 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
42257
42258         * doc/c-strtod.texi: Mention a couple of restrictions.
42259
42260 2009-01-20  Jim Meyering  <meyering@redhat.com>
42261
42262         gettimeofday: move more declarations out of functions
42263         * lib/gettimeofday.c: Move extern declarations of tzset and
42264         gmtime out of containing functions.  Prompted by Bruno Haible.
42265
42266 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42267
42268         regex: do not depend on obsolete modules.
42269         * modules/regex: Remove memcmp and memmove.
42270
42271 2009-01-19  Bruno Haible  <bruno@clisp.org>
42272
42273         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42274         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
42275         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42276         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
42277         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
42278
42279 2009-01-19  Bruno Haible  <bruno@clisp.org>
42280
42281         * tests/test-link.c: Include <errno.h>.
42282         (main): Exit with code 77 when a hard link cannot be created due to
42283         the file system.
42284         * tests/test-link.sh: Skip test when a hard link cannot be created due
42285         to the file system.
42286         Suggested by Eric Blake.
42287
42288 2009-01-19  Martin Lambers  <marlam@marlam.de>
42289
42290         * modules/link-tests: New file.
42291         * tests/test-link.sh: New file.
42292         * tests/test-link.c: New file.
42293
42294 2009-01-19  Eric Blake  <ebb9@byu.net>
42295
42296         doc: mention another function added in cygwin 1.7.0
42297         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
42298         Another new function in cygwin 1.7.
42299
42300 2009-01-19  Bruno Haible  <bruno@clisp.org>
42301
42302         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42303         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
42304         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
42305         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42306         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42307         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
42308         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42309         * m4/md4.m4 (gl_MD4): Likewise.
42310         * m4/md5.m4 (gl_MD5): Likewise.
42311         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
42312         * m4/sha1.m4 (gl_SHA1): Likewise.
42313         * m4/sha256.m4 (gl_SHA256): Likewise.
42314         * m4/sha512.m4 (gl_SHA512): Likewise.
42315
42316 2009-01-19  Bruno Haible  <bruno@clisp.org>
42317
42318         * modules/uniname/uniname-tests (Depends-on): Add progname.
42319         * tests/uniname/test-uninames.c: Include progname.h.
42320         (main): Call set_program_name.
42321
42322         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
42323         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
42324         (main): Call set_program_name.
42325
42326         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
42327         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
42328         (main): Call set_program_name.
42329
42330         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
42331         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
42332         (main): Call set_program_name.
42333
42334         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
42335         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
42336         (main): Call set_program_name.
42337
42338         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
42339         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
42340         (main): Call set_program_name.
42341
42342         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
42343         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
42344         (main): Call set_program_name.
42345
42346         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
42347         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
42348         (main): Call set_program_name.
42349
42350         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
42351         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
42352         (main): Call set_program_name.
42353
42354 2009-01-19  Eric Blake  <ebb9@byu.net>
42355
42356         test-unistd: test previous patch
42357         * tests/test-unistd.c: Test *_FILENO macros.
42358
42359         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42360         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42361         Guarantee a definition.
42362         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42363         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42364         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42365         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42366         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42367         Likewise.
42368         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42369         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42370         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42371         Likewise.
42372         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42373         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42374         (STDERR_FILENO): Likewise.
42375         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42376         (STDERR_FILENO): Likewise.
42377         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42378         (STDERR_FILENO): Likewise.
42379         Reported by Elbert Pol.
42380
42381 2009-01-19  Eric Blake  <ebb9@byu.net>
42382
42383         doc: mention more functions added in cygwin 1.7.0
42384         * doc/posix-functions/abort.texi (abort): Update wording related
42385         to cygwin.
42386         * doc/posix-functions/daylight.texi (daylight): Likewise.
42387         * doc/posix-functions/optarg.texi (optarg): Likewise.
42388         * doc/posix-functions/optarg.texi (opterr): Likewise.
42389         * doc/posix-functions/optarg.texi (optind): Likewise.
42390         * doc/posix-functions/optarg.texi (optopt): Likewise.
42391         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
42392         worked in 1.5.x, and was withdrawn in 1.7.
42393         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
42394         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
42395         cygwin versions.
42396         * doc/posix-functions/perror.texi (perror): Likewise.
42397         * doc/posix-functions/printf.texi (printf): Likewise.
42398         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
42399         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
42400         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
42401         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
42402         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42403         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
42404         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42405         Likewise.
42406         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42407         Likewise.
42408         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
42409         this function.
42410         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
42411         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
42412         Likewise.
42413         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
42414         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
42415         * doc/posix-functions/confstr.texi (confstr): Likewise.
42416         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
42417         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
42418         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
42419         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
42420         * doc/posix-functions/fputws.texi (fputws): Likewise.
42421         * doc/posix-functions/fwide.texi (fwide): Likewise.
42422         * doc/posix-functions/getwc.texi (getwc): Likewise.
42423         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
42424         * doc/posix-functions/putwc.texi (putwc): Likewise.
42425         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
42426         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
42427         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
42428         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
42429         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
42430         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
42431         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
42432         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
42433         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
42434         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
42435         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
42436
42437 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42438
42439         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
42440         * lib/ioctl.c: Include <sys/ioctl.h>.
42441
42442 2009-01-19  Simon Josefsson  <simon@josefsson.org>
42443
42444         * modules/getdate-tests (Depends-on): Add progname.
42445         * tests/test-getdate.c: Use progname module, to avoid link errors
42446         on non-glibc systems.
42447
42448 2009-01-18  Simon Josefsson  <simon@josefsson.org>
42449
42450         * modules/filenamecat-tests (Depends-on): Add progname.
42451         * modules/fstrcmp-tests (Depends-on): Likewise.
42452
42453         * tests/test-filenamecat.c: Use progname module, to avoid link
42454         errors on non-glibc systems.
42455         * tests/test-fstrcmp.c: Likewise.
42456
42457 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42458
42459         gettimeofday: avoid warning: nested extern declaration of 'localtime'
42460         * lib/gettimeofday.c: Move extern declaration out of function.
42461
42462 2009-01-18  Bruno Haible  <bruno@clisp.org>
42463
42464         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
42465         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
42466         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
42467
42468 2009-01-18  Bruno Haible  <bruno@clisp.org>
42469
42470         * lib/strftime.c (MEMPCPY): Remove unused macro.
42471         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42472
42473 2009-01-18  Martin Lambers  <marlam@marlam.de>
42474
42475         New module 'link'.
42476         * lib/unistd.in.h (link): New declaration.
42477         * lib/link.c: New file.
42478         * m4/link.m4: New file.
42479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42480         HAVE_LINK.
42481         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42482         * modules/link: New file.
42483         * doc/posix-functions/link.texi: Mention the new module.
42484
42485 2009-01-18  Bruno Haible  <bruno@clisp.org>
42486
42487         * tests/test-avltree_list.c (main): Call set_program_name.
42488         * tests/test-avltree_oset.c (main): Likewise.
42489         * tests/test-obstack-printf.c: Include progname.h.
42490         (main): Call set_program_name.
42491         * tests/test-quotearg.c: Include progname.h.
42492         (main): Call set_program_name.
42493         * tests/test-xmemdup0.c: Include progname.h.
42494         (main): Call set_program_name.
42495
42496 2009-01-18  Bruno Haible  <bruno@clisp.org>
42497
42498         New module 'alphasort'.
42499         * lib/dirent.in.h (alphasort): New declaration.
42500         * lib/alphasort.c: New file, from glibc with modifications.
42501         * m4/alphasort.m4: New file.
42502         * modules/alphasort: New file.
42503         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42504         HAVE_ALPHASORT.
42505         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42506         HAVE_ALPHASORT.
42507         * doc/posix-functions/alphasort.texi: Mention the new module and the
42508         portability problems.
42509
42510 2009-01-18  Bruno Haible  <bruno@clisp.org>
42511
42512         New module 'scandir'.
42513         * lib/dirent.in.h (scandir): New declaration.
42514         * lib/scandir.c: New file, from glibc with modifications.
42515         * m4/scandir.m4: New file.
42516         * modules/scandir: New file.
42517         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42518         HAVE_SCANDIR.
42519         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42520         HAVE_SCANDIR.
42521         * doc/posix-functions/scandir.texi: Mention the new module and the
42522         portability problems.
42523
42524 2009-01-17  Bruno Haible  <bruno@clisp.org>
42525
42526         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42527         Update documentation.
42528         (func_remove_suffix): Escape all dots in the suffix. Update
42529         documentation.
42530         (func_filter_filelist): Update documentation.
42531         Reported by Ralf Wildenhues.
42532
42533 2009-01-17  Bruno Haible  <bruno@clisp.org>
42534
42535         * modules/dprintf-posix-tests: New file.
42536         * tests/test-dprintf-posix.sh: New file.
42537         * tests/test-dprintf-posix.c: New file.
42538
42539         New modules 'dprintf', 'dprintf-posix'.
42540         * lib/stdio.in.h (dprintf): New declaration.
42541         * lib/dprintf.c: New file.
42542         * m4/dprintf.m4: New file.
42543         * m4/dprintf-posix.m4: New file.
42544         * modules/dprintf: New file.
42545         * modules/dprintf-posix: New file.
42546         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42547         HAVE_DPRINTF, REPLACE_DPRINTF.
42548         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42549         HAVE_DPRINTF, REPLACE_DPRINTF.
42550         * doc/posix-functions/dprintf.texi: Mention the new modules.
42551
42552 2009-01-17  Bruno Haible  <bruno@clisp.org>
42553
42554         * modules/vdprintf-posix-tests: New file.
42555         * tests/test-vdprintf-posix.sh: New file.
42556         * tests/test-vdprintf-posix.c: New file.
42557
42558         New modules 'vdprintf', 'vdprintf-posix'.
42559         * lib/stdio.in.h (vdprintf): New declaration.
42560         * lib/vdprintf.c: New file.
42561         * m4/vdprintf.m4: New file.
42562         * m4/vdprintf-posix.m4: New file.
42563         * modules/vdprintf: New file.
42564         * modules/vdprintf-posix: New file.
42565         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42566         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42567         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42568         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42569         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42570
42571 2009-01-17  Bruno Haible  <bruno@clisp.org>
42572
42573         Fix replacement of fopen on mingw.
42574         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42575         mingw.
42576
42577 2009-01-17  Bruno Haible  <bruno@clisp.org>
42578
42579         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42580         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42581
42582 2009-01-17  Bruno Haible  <bruno@clisp.org>
42583
42584         Avoid test-fflush2.sh failure on mingw.
42585         * tests/test-fflush2.c: Include binary-io.h.
42586         (main): Put standard input into binary mode.
42587         * modules/fflush-tests (Depends-on): Add binary-io.
42588
42589 2009-01-17  Bruno Haible  <bruno@clisp.org>
42590
42591         * lib/wchar.in.h: In another particular situation, include only the
42592         system's <wchar.h> file.
42593         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42594         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42595         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42596
42597 2009-01-17  Bruno Haible  <bruno@clisp.org>
42598
42599         Support for stripping executables in --enable-relocatable.
42600         * build-aux/install-reloc: Expect one more argument, or an environment
42601         variable RELOC_STRIP_PROG. If set, strip the destination program and
42602         its wrapper.
42603         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42604         RELOC_STRIP_PROG.
42605         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42606         to set RELOCATABLE_STRIP.
42607         * NEWS: Mention the new Makefile requirement.
42608
42609 2009-01-17  Bruno Haible  <bruno@clisp.org>
42610
42611         * build-aux/install-reloc: Remove debugging information left over by
42612         C compiler on MacOS X.
42613
42614 2009-01-17  Bruno Haible  <bruno@clisp.org>
42615
42616         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42617         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42618         _NSGetExecutablePath.
42619
42620 2009-01-16  Jim Meyering  <meyering@redhat.com>
42621
42622         strerror: avoid warnings about discarding "const"
42623         * lib/strerror.c (rpl_strerror): Instead of returning a const
42624         string from each and every "case", use a variable, and add a single
42625         cast after the switch.
42626
42627 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42628
42629         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42630
42631 2009-01-16  Bruno Haible  <bruno@clisp.org>
42632
42633         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42634         array initializer syntax that also works in C++ mode.
42635         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42636
42637 2009-01-16  Jim Meyering  <meyering@redhat.com>
42638
42639         poll: suppress a warning
42640         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42641         to ignore "...unsigned expression < 0 is always false" warnings.
42642
42643 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42644
42645         poll: remove declarations of unused variables
42646         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42647         sockbuf and optlen.
42648
42649 2009-01-15  Bruno Haible  <bruno@clisp.org>
42650
42651         Make fflush-after-ungetc POSIX compliant on BSD systems.
42652         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42653         (clear_ungetc_buffer): Implement also for other systems.
42654         (rpl_fflush): On glibc systems, invoke
42655         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42656         clear_ungetc_buffer after fetching the stream's position, not before.
42657
42658 2009-01-15  Bruno Haible  <bruno@clisp.org>
42659
42660         Make fflush-after-ungetc POSIX compliant on glibc systems.
42661         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42662         after ungetc.
42663         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42664         (rpl_fflush): On glibc systems, simply call the system's fflush
42665         function after clearing the ungetc buffer.
42666         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42667         Instead, lseek only to the end of file, then use the system's fseeko
42668         for the rest. On glibc systems, reset the EOF indicator bit.
42669
42670 2009-01-15  Jim Meyering  <meyering@redhat.com>
42671
42672         openmp.m4: revert quote-adding change, for portability to older autoconf
42673         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42674         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42675         Simon Josefsson noticed the problem when using autoconf-2.61.
42676
42677 2009-01-15  Bruno Haible  <bruno@clisp.org>
42678
42679         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42680         * tests/test-fflush2.c (ASSERT): Always fail.
42681         (main): Add two tests for fflush() after ungetc(), taking into account
42682         the Austin Group's clarification.
42683         Suggested by Eric Blake.
42684
42685 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42686
42687         mktime.m4: remove K&R-style function prototypes
42688         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42689         for the Sun C++ compiler.
42690
42691 2009-01-14  Bruno Haible  <bruno@clisp.org>
42692
42693         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42694         while including <wchar.h>.
42695         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42696         the system's <wchar.h> file.
42697         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42698
42699 2009-01-14  Bruno Haible  <bruno@clisp.org>
42700
42701         * m4/csharp.m4: Don't mention gettext on the serial number line.
42702         * m4/csharpexec.m4: Likewise.
42703         * m4/eaccess.m4: Likewise.
42704         * m4/javaexec.m4: Likewise.
42705         * m4/sig_atomic_t.m4: Likewise.
42706         * m4/tmpdir.m4: Likewise.
42707         * m4/intldir.m4: Bump gettext version.
42708         * m4/lib-ld.m4: Likewise.
42709
42710 2009-01-14  Bruno Haible  <bruno@clisp.org>
42711
42712         * lib/progname.c (set_program_name): Add more comments.
42713         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42714
42715 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42716
42717         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42718         were sys/stat.h does not define it.
42719
42720 2009-01-14  Jim Meyering  <meyering@redhat.com>
42721
42722         many *.m4 files: improve m4 quoting
42723         99% of this change was performed by running the following commands:
42724         git ls-files | grep '\.m4$' | xargs perl -pi \
42725           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42726           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42727           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42728           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42729         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42730         The remainder were to add Copyright dates, increment serial numbers,
42731         undo some changes in comments, exclude m4/intl.m4, and add quotes
42732         around the "1" in ",1" where the unusual spacing prohibited the
42733         above regexps from doing the job.  For more details, see
42734         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42735         * m4/acl.m4: Modified.
42736         * m4/afs.m4: Likewise.
42737         * m4/alloca.m4: Likewise.
42738         * m4/argp.m4: Likewise.
42739         * m4/argz.m4: Likewise.
42740         * m4/atexit.m4: Likewise.
42741         * m4/bison-i18n.m4: Likewise.
42742         * m4/bison.m4: Likewise.
42743         * m4/byteswap.m4: Likewise.
42744         * m4/c-stack.m4: Likewise.
42745         * m4/c-strtod.m4: Likewise.
42746         * m4/calloc.m4: Likewise.
42747         * m4/canonicalize-lgpl.m4: Likewise.
42748         * m4/chown.m4: Likewise.
42749         * m4/clock_time.m4: Likewise.
42750         * m4/codeset.m4: Likewise.
42751         * m4/copy-file.m4: Likewise.
42752         * m4/csharp.m4: Likewise.
42753         * m4/csharpcomp.m4: Likewise.
42754         * m4/csharpexec.m4: Likewise.
42755         * m4/d-ino.m4: Likewise.
42756         * m4/d-type.m4: Likewise.
42757         * m4/dirfd.m4: Likewise.
42758         * m4/double-slash-root.m4: Likewise.
42759         * m4/eaccess.m4: Likewise.
42760         * m4/eealloc.m4: Likewise.
42761         * m4/environ.m4: Likewise.
42762         * m4/errno_h.m4: Likewise.
42763         * m4/euidaccess.m4: Likewise.
42764         * m4/execute.m4: Likewise.
42765         * m4/fatal-signal.m4: Likewise.
42766         * m4/fchdir.m4: Likewise.
42767         * m4/fcntl_h.m4: Likewise.
42768         * m4/fileblocks.m4: Likewise.
42769         * m4/filenamecat.m4: Likewise.
42770         * m4/findprog.m4: Likewise.
42771         * m4/flexmember.m4: Likewise.
42772         * m4/fnmatch.m4: Likewise.
42773         * m4/fopen.m4: Likewise.
42774         * m4/fpending.m4: Likewise.
42775         * m4/fprintf-posix.m4: Likewise.
42776         * m4/free.m4: Likewise.
42777         * m4/frexp.m4: Likewise.
42778         * m4/frexpl.m4: Likewise.
42779         * m4/fsusage.m4: Likewise.
42780         * m4/ftruncate.m4: Likewise.
42781         * m4/gc-camellia.m4: Likewise.
42782         * m4/gc-random.m4: Likewise.
42783         * m4/gc.m4: Likewise.
42784         * m4/getaddrinfo.m4: Likewise.
42785         * m4/getcwd-abort-bug.m4: Likewise.
42786         * m4/getcwd-path-max.m4: Likewise.
42787         * m4/getdate.m4: Likewise.
42788         * m4/getdomainname.m4: Likewise.
42789         * m4/getgroups.m4: Likewise.
42790         * m4/gethostname.m4: Likewise.
42791         * m4/gethrxtime.m4: Likewise.
42792         * m4/getline.m4: Likewise.
42793         * m4/getloadavg.m4: Likewise.
42794         * m4/getndelim2.m4: Likewise.
42795         * m4/getpass.m4: Likewise.
42796         * m4/gettext.m4: Likewise.
42797         * m4/gettime.m4: Likewise.
42798         * m4/gettimeofday.m4: Likewise.
42799         * m4/gnulib-common.m4: Likewise.
42800         * m4/group-member.m4: Likewise.
42801         * m4/host-os.m4: Likewise.
42802         * m4/iconv.m4: Likewise.
42803         * m4/iconv_open.m4: Likewise.
42804         * m4/inet_ntop.m4: Likewise.
42805         * m4/inet_pton.m4: Likewise.
42806         * m4/inline.m4: Likewise.
42807         * m4/intldir.m4: Likewise.
42808         * m4/intlmacosx.m4: Likewise.
42809         * m4/intmax.m4: Likewise.
42810         * m4/intmax_t.m4: Likewise.
42811         * m4/inttypes.m4: Likewise.
42812         * m4/inttypes_h.m4: Likewise.
42813         * m4/inttypes-pri.m4: Likewise.
42814         * m4/isapipe.m4: Likewise.
42815         * m4/isnand.m4: Likewise.
42816         * m4/isnanf.m4: Likewise.
42817         * m4/isnanl.m4: Likewise.
42818         * m4/javacomp.m4: Likewise.
42819         * m4/javaexec.m4: Likewise.
42820         * m4/jm-winsz1.m4: Likewise.
42821         * m4/jm-winsz2.m4: Likewise.
42822         * m4/lchown.m4: Likewise.
42823         * m4/lcmessage.m4: Likewise.
42824         * m4/ldexpl.m4: Likewise.
42825         * m4/lib-ld.m4: Likewise.
42826         * m4/lib-link.m4: Likewise.
42827         * m4/libsigsegv.m4: Likewise.
42828         * m4/link-follow.m4: Likewise.
42829         * m4/localcharset.m4: Likewise.
42830         * m4/locale-fr.m4: Likewise.
42831         * m4/locale-ja.m4: Likewise.
42832         * m4/locale-tr.m4: Likewise.
42833         * m4/locale-zh.m4: Likewise.
42834         * m4/lock.m4: Likewise.
42835         * m4/longlong.m4: Likewise.
42836         * m4/ls-mntd-fs.m4: Likewise.
42837         * m4/lstat.m4: Likewise.
42838         * m4/malloc.m4: Likewise.
42839         * m4/mathl.m4: Likewise.
42840         * m4/mbrtowc.m4: Likewise.
42841         * m4/mbstate_t.m4: Likewise.
42842         * m4/mbswidth.m4: Likewise.
42843         * m4/memchr.m4: Likewise.
42844         * m4/memcmp.m4: Likewise.
42845         * m4/memcpy.m4: Likewise.
42846         * m4/memmem.m4: Likewise.
42847         * m4/memmove.m4: Likewise.
42848         * m4/mempcpy.m4: Likewise.
42849         * m4/memrchr.m4: Likewise.
42850         * m4/memset.m4: Likewise.
42851         * m4/minmax.m4: Likewise.
42852         * m4/mkdir-slash.m4: Likewise.
42853         * m4/mkdtemp.m4: Likewise.
42854         * m4/mktime.m4: Likewise.
42855         * m4/mmap-anon.m4: Likewise.
42856         * m4/mountlist.m4: Likewise.
42857         * m4/nanosleep.m4: Likewise.
42858         * m4/nls.m4: Likewise.
42859         * m4/nocrash.m4: Likewise.
42860         * m4/open.m4: Likewise.
42861         * m4/openat.m4: Likewise.
42862         * m4/openmp.m4: Likewise.
42863         * m4/pathmax.m4: Likewise.
42864         * m4/perl.m4: Likewise.
42865         * m4/physmem.m4: Likewise.
42866         * m4/pipe.m4: Likewise.
42867         * m4/po.m4: Likewise.
42868         * m4/poll.m4: Likewise.
42869         * m4/posixtm.m4: Likewise.
42870         * m4/posixver.m4: Likewise.
42871         * m4/printf-frexp.m4: Likewise.
42872         * m4/printf-frexpl.m4: Likewise.
42873         * m4/printf-posix.m4: Likewise.
42874         * m4/printf-posix-rpl.m4: Likewise.
42875         * m4/printf.m4: Likewise.
42876         * m4/progtest.m4: Likewise.
42877         * m4/putenv.m4: Likewise.
42878         * m4/readline.m4: Likewise.
42879         * m4/readlink.m4: Likewise.
42880         * m4/readutmp.m4: Likewise.
42881         * m4/realloc.m4: Likewise.
42882         * m4/regex.m4: Likewise.
42883         * m4/relocatable.m4: Likewise.
42884         * m4/relocatable-lib.m4: Likewise.
42885         * m4/rename-dest-slash.m4: Likewise.
42886         * m4/rename.m4: Likewise.
42887         * m4/rmdir-errno.m4: Likewise.
42888         * m4/rmdir.m4: Likewise.
42889         * m4/roundf.m4: Likewise.
42890         * m4/roundl.m4: Likewise.
42891         * m4/rpmatch.m4: Likewise.
42892         * m4/save-cwd.m4: Likewise.
42893         * m4/selinux-selinux-h.m4: Likewise.
42894         * m4/setenv.m4: Likewise.
42895         * m4/settime.m4: Likewise.
42896         * m4/sig2str.m4: Likewise.
42897         * m4/sig_atomic_t.m4: Likewise.
42898         * m4/signalblocking.m4: Likewise.
42899         * m4/signbit.m4: Likewise.
42900         * m4/sigpipe.m4: Likewise.
42901         * m4/sockets.m4: Likewise.
42902         * m4/sockpfaf.m4: Likewise.
42903         * m4/st_dm_mode.m4: Likewise.
42904         * m4/stat-time.m4: Likewise.
42905         * m4/stdbool.m4: Likewise.
42906         * m4/stdint.m4: Likewise.
42907         * m4/stdint_h.m4: Likewise.
42908         * m4/stpcpy.m4: Likewise.
42909         * m4/stpncpy.m4: Likewise.
42910         * m4/strcase.m4: Likewise.
42911         * m4/strchrnul.m4: Likewise.
42912         * m4/strcspn.m4: Likewise.
42913         * m4/strdup.m4: Likewise.
42914         * m4/strftime.m4: Likewise.
42915         * m4/strndup.m4: Likewise.
42916         * m4/strnlen.m4: Likewise.
42917         * m4/strpbrk.m4: Likewise.
42918         * m4/strptime.m4: Likewise.
42919         * m4/strsep.m4: Likewise.
42920         * m4/strtod.m4: Likewise.
42921         * m4/strtoimax.m4: Likewise.
42922         * m4/strtok_r.m4: Likewise.
42923         * m4/strtol.m4: Likewise.
42924         * m4/strtoll.m4: Likewise.
42925         * m4/strtoul.m4: Likewise.
42926         * m4/strtoull.m4: Likewise.
42927         * m4/strtoumax.m4: Likewise.
42928         * m4/strverscmp.m4: Likewise.
42929         * m4/threadlib.m4: Likewise.
42930         * m4/timegm.m4: Likewise.
42931         * m4/tm_gmtoff.m4: Likewise.
42932         * m4/tmpdir.m4: Likewise.
42933         * m4/tmpfile.m4: Likewise.
42934         * m4/tzset.m4: Likewise.
42935         * m4/uintmax_t.m4: Likewise.
42936         * m4/unlinkdir.m4: Likewise.
42937         * m4/unlocked-io.m4: Likewise.
42938         * m4/uptime.m4: Likewise.
42939         * m4/userspec.m4: Likewise.
42940         * m4/utimbuf.m4: Likewise.
42941         * m4/utime.m4: Likewise.
42942         * m4/utimes-null.m4: Likewise.
42943         * m4/utimes.m4: Likewise.
42944         * m4/vararrays.m4: Likewise.
42945         * m4/vasnprintf.m4: Likewise.
42946         * m4/vfprintf-posix.m4: Likewise.
42947         * m4/vprintf-posix.m4: Likewise.
42948         * m4/wait-process.m4: Likewise.
42949         * m4/wchar_t.m4: Likewise.
42950         * m4/wint_t.m4: Likewise.
42951         * m4/write-any-file.m4: Likewise.
42952         * m4/yield.m4: Likewise.
42953
42954 2009-01-13  Bruno Haible  <bruno@clisp.org>
42955
42956         Avoid test-copy-file.sh failures when ACL support insufficient.
42957         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42958         TESTS_ENVIRONMENT.
42959         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42960         Reported by Jim Meyering.
42961
42962 2009-01-13  Bruno Haible  <bruno@clisp.org>
42963
42964         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42965         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42966         * modules/unistdio/u8-printf-parse (Files): Likewise.
42967         * modules/unistdio/u32-printf-parse (Files): Likewise.
42968         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42969
42970 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42971
42972         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42973         and m4/inttypes_h.m4 too.
42974
42975 2009-01-12  Eric Blake  <ebb9@byu.net>
42976
42977         tests: IRIX 6.2 cc can't compile -0.0 into .data
42978         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42979         rather than at compile-time.
42980         * tests/test-floorl.c (minus_zero): Likewise.
42981         * tests/test-frexpl.c (minus_zero): Likewise.
42982         * tests/test-isnan.c (minus_zerol): Likewise.
42983         * tests/test-isnanl.h (minus_zero): Likewise.
42984         * tests/test-ldexpl.c (minus_zero): Likewise.
42985         * tests/test-roundl.c (minus_zero): Likewise.
42986         * tests/test-signbit.c (minus_zerol): Likewise.
42987         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42988         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42989         * tests/test-truncl.c (minus_zero): Likewise.
42990         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42991         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42992         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42993
42994 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42995
42996         regex: fix glibc bug 9697
42997         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42998         handling.
42999
43000 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43001
43002         regex: fix glibc bug 697
43003         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
43004         being NULL also if there are no backreferences.
43005
43006 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43007
43008         regex: merge glibc changes
43009         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
43010         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
43011         re_string_skip_chars, re_string_reconstruct): Likewise.
43012         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
43013
43014 2009-01-07  Jim Meyering  <meyering@redhat.com>
43015
43016         poll: filter through cppi
43017         * lib/poll.c: Indent cpp directives to reflect nesting.
43018
43019 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
43020
43021         poll: don't return uninitialized
43022         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
43023
43024 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
43025
43026         avoid compile failure on AIX 6.1
43027         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
43028         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
43029
43030 2009-01-04  Jim Meyering  <meyering@redhat.com>
43031
43032         remove duplicate inclusion of <stdio.h>
43033         * tests/test-fprintf-posix.c: Likewise.
43034         * tests/test-printf-posix.c: Likewise.
43035         * tests/test-snprintf-posix.c: Likewise.
43036         * tests/test-sprintf-posix.c: Likewise.
43037         * tests/test-vasprintf-posix.c: Likewise.
43038         * tests/test-vfprintf-posix.c: Likewise.
43039         * tests/test-vprintf-posix.c: Likewise.
43040         * tests/test-vsnprintf-posix.c: Likewise.
43041         * tests/test-vsprintf-posix.c: Likewise.
43042
43043 2009-01-03  Jim Meyering  <meyering@redhat.com>
43044
43045         gnulib-tool: fix sed-based filtering
43046         * gnulib-tool (func_filter_filelist): Remove extra backslash
43047         in sed_fff_filter definition.
43048
43049 2009-01-02  Jim Meyering  <meyering@redhat.com>
43050
43051         strftime: avoid compilation failure on Solaris 2.6
43052         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
43053         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
43054         Don't #define mbrlen or mbsinit, since now they're guaranteed to
43055         be available.  Reported by Tom G. Christensen.  Details in
43056         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
43057
43058 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43059             Bruno Haible  <bruno@clisp.org>
43060
43061         Speed up gnulib-tool by doing more string processing through shell
43062         built-ins.
43063         * gnulib-tool (fast_func_append): New variable.
43064         (func_remove_prefix, func_remove_suffix): New functions.
43065         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
43066         (func_filter_filelist): New function.
43067         (func_get_dependencies): Use func_remove_suffix instead of sed.
43068         (func_get_automake_snippet): Use func_filter_filelist instead of a
43069         subshell and sed invocation.
43070
43071 2009-01-01  Bruno Haible  <bruno@clisp.org>
43072
43073         Fix a security bug.
43074         * gnulib-tool (func_import, import, update): Don't allow the characters
43075         '"', '$', '`', '\' in macro arguments that become part of commands that
43076         are evaluated.
43077
43078 2009-01-01  Bruno Haible  <bruno@clisp.org>
43079
43080         * gnulib-tool (func_reset_sigpipe): Add more comments.
43081
43082 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43083
43084         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
43085         func_emit_tests_Makefile_am, func_import): Abort loops early if we
43086         already know the answer.
43087
43088 2009-01-01  Jim Meyering  <meyering@redhat.com>
43089
43090         * lib/version-etc.c (version_etc_va): Update copyright year.
43091
43092 2008-12-30  Bruno Haible  <bruno@clisp.org>
43093
43094         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
43095         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
43096         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
43097
43098 2008-12-29  Eric Blake  <ebb9@byu.net>
43099
43100         multiarch: avoid autoconf AC_REQUIRE bug
43101         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
43102         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
43103         2.63 and older.
43104         Reported by Bruno Haible, and analyzed in
43105         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
43106
43107 2008-12-29  Bruno Haible  <bruno@clisp.org>
43108
43109         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
43110         files in subdirectories correctly.
43111         Reported by Ralf Wildenhues.
43112
43113 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43114
43115         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
43116         rather than 'join FILE -', for Solaris join.
43117
43118 2008-12-29  Bruno Haible  <bruno@clisp.org>
43119
43120         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
43121         quoting.
43122         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43123         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
43124         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
43125         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
43126         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
43127         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
43128         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
43129         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
43130         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43131         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
43132         * m4/nls.m4 (AM_NLS): Likewise.
43133         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
43134         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
43135         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
43136         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
43137         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
43138         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
43139         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
43140         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
43141         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
43142         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43143         * m4/xsize.m4 (gl_XSIZE): Likewise.
43144         Suggested by Jim Meyering.
43145
43146 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43147
43148         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
43149         * lib/parse-duration.c: use a switch instead of cascading if's.
43150
43151 2008-12-29  Eric Blake  <ebb9@byu.net>
43152
43153         wchar.h: supply WEOF on Irix 5.3
43154         * lib/wchar.in.h (wint_t): Also supply WEOF.
43155         * lib/wctype.in.h (wint_t): Likewise.
43156         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
43157         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
43158         Reported by Tom G. Christensen.
43159
43160 2008-12-26  Bruno Haible  <bruno@clisp.org>
43161
43162         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
43163         i486, i586, i686.
43164
43165 2008-12-26  Bruno Haible  <bruno@clisp.org>
43166
43167         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
43168
43169 2008-12-26  Bruno Haible  <bruno@clisp.org>
43170
43171         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
43172         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
43173         not __STDC_CONSTANT_MACROS.
43174         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43175
43176 2008-12-25  Bruno Haible  <bruno@clisp.org>
43177
43178         Add support for universal builds to vasnprintf.
43179         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
43180         universal builds, guess no.
43181         * modules/vasnprintf-posix (Depends-on): Add multiarch.
43182         * modules/vasprintf-posix (Depends-on): Likewise.
43183         * modules/fprintf-posix (Depends-on): Likewise.
43184         * modules/vfprintf-posix (Depends-on): Likewise.
43185         * modules/snprintf-posix (Depends-on): Likewise.
43186         * modules/vsnprintf-posix (Depends-on): Likewise.
43187         * modules/sprintf-posix (Depends-on): Likewise.
43188         * modules/vsprintf-posix (Depends-on): Likewise.
43189         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43190         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43191         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43192         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43193         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43194         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43195         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43196
43197         Add support for universal builds to <inttypes.h>.
43198         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
43199         _SCNu64_PREFIX): In Apple
43200         universal builds, define directly, using _LP64.
43201         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
43202         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
43203         * modules/inttypes (Depends-on): Add multiarch.
43204         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43205
43206         Add support for universal builds to <stdint.h>.
43207         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
43208         universal builds, define directly, using _LP64.
43209         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
43210         Apple universal builds, don't test for the size and suffix of ptrdiff_t
43211         and size_t.
43212         * modules/stdint (Depends-on): Add multiarch.
43213         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43214
43215         New module 'multiarch'.
43216         * modules/multiarch: New file.
43217         * m4/multiarch.m4: New file.
43218
43219 2008-12-25  Bruno Haible  <bruno@clisp.org>
43220
43221         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
43222
43223 2008-12-25  Bruno Haible  <bruno@clisp.org>
43224
43225         * modules/btowc (License): Relicense under LGPLv2+.
43226         * modules/mbsinit (License): Likewise.
43227         * modules/mbrtowc (License): Likewise.
43228         * modules/wcrtomb (License): Likewise.
43229         * modules/streq (License): Likewise.
43230         Reported by David Lutterkort <lutter@redhat.com>.
43231
43232 2008-12-23  Bruno Haible  <bruno@clisp.org>
43233
43234         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
43235
43236 2008-12-23  Bruno Haible  <bruno@clisp.org>
43237
43238         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
43239         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
43240         GETADDRINFO_LIB, not in LIBS.
43241         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
43242         * modules/canon-host (Link): Likewise.
43243         * NEWS: Mention the change.
43244         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
43245         GETADDRINFO_LIB.
43246
43247 2008-12-22  Bruno Haible  <bruno@clisp.org>
43248
43249         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
43250         * doc/posix-functions/iswalpha_l.texi: Likewise.
43251         * doc/posix-functions/iswblank_l.texi: Likewise.
43252         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43253         * doc/posix-functions/iswctype_l.texi: Likewise.
43254         * doc/posix-functions/iswdigit_l.texi: Likewise.
43255         * doc/posix-functions/iswgraph_l.texi: Likewise.
43256         * doc/posix-functions/iswlower_l.texi: Likewise.
43257         * doc/posix-functions/iswprint_l.texi: Likewise.
43258         * doc/posix-functions/iswpunct_l.texi: Likewise.
43259         * doc/posix-functions/iswspace_l.texi: Likewise.
43260         * doc/posix-functions/iswupper_l.texi: Likewise.
43261         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43262         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
43263         * doc/posix-functions/open_wmemstream.texi: Likewise.
43264         * doc/posix-functions/swscanf.texi: Likewise.
43265         * doc/posix-functions/towctrans_l.texi: Likewise.
43266         * doc/posix-functions/towlower.texi: Likewise.
43267         * doc/posix-functions/towlower_l.texi: Likewise.
43268         * doc/posix-functions/towupper.texi: Likewise.
43269         * doc/posix-functions/towupper_l.texi: Likewise.
43270         * doc/posix-functions/vfwprintf.texi: Likewise.
43271         * doc/posix-functions/vfwscanf.texi: Likewise.
43272         * doc/posix-functions/vswscanf.texi: Likewise.
43273         * doc/posix-functions/vwprintf.texi: Likewise.
43274         * doc/posix-functions/vwscanf.texi: Likewise.
43275         * doc/posix-functions/wcpcpy.texi: Likewise.
43276         * doc/posix-functions/wcpncpy.texi: Likewise.
43277         * doc/posix-functions/wcscasecmp.texi: Likewise.
43278         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
43279         * doc/posix-functions/wcscoll_l.texi: Likewise.
43280         * doc/posix-functions/wcsdup.texi: Likewise.
43281         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43282         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
43283         * doc/posix-functions/wcsnlen.texi: Likewise.
43284         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43285         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43286         * doc/posix-functions/wctrans_l.texi: Likewise.
43287         * doc/posix-functions/wctype_l.texi: Likewise.
43288         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
43289         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
43290         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
43291         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
43292         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
43293         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
43294         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
43295         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
43296         * doc/glibc-functions/wcschrnul.texi: Likewise.
43297         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43298         * doc/glibc-functions/wcstod_l.texi: Likewise.
43299         * doc/glibc-functions/wcstof_l.texi: Likewise.
43300         * doc/glibc-functions/wcstol_l.texi: Likewise.
43301         * doc/glibc-functions/wcstold_l.texi: Likewise.
43302         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43303         * doc/glibc-functions/wcstoq.texi: Likewise.
43304         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43305         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43306         * doc/glibc-functions/wcstouq.texi: Likewise.
43307         * doc/glibc-functions/wmempcpy.texi: Likewise.
43308
43309 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
43310             Eric Blake  <ebb9@byu.net>
43311             Paolo Bonzini  <bonzini@gnu.org>
43312             Bruno Haible  <bruno@clisp.org>
43313
43314         Make c-stack work on Haiku.
43315         * lib/c-stack.c (SA_ONSTACK): Define fallback.
43316         (c_stack_action): Use SA_ONSTACK flag.
43317
43318 2008-12-22  Bruno Haible  <bruno@clisp.org>
43319
43320         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
43321
43322 2008-12-22  Bruno Haible  <bruno@clisp.org>
43323
43324         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
43325         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
43326         being overridden.
43327         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
43328         New macros.
43329         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
43330         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
43331         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
43332         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
43333
43334 2008-12-22  Bruno Haible  <bruno@clisp.org>
43335
43336         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
43337         from test code.
43338
43339 2008-12-22  Eric Blake  <ebb9@byu.net>
43340
43341         Avoid gcc warnings on cygwin.
43342         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
43343         Avoid unused variable.
43344         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
43345         Likewise.
43346
43347 2008-12-22  Bruno Haible  <bruno@clisp.org>
43348
43349         Remove HAVE_MBRTOWC conditionals.
43350         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
43351         (mbscasecmp): Assume mbrtowc function.
43352         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
43353         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
43354         * lib/mbschr.c: Include mbuiter.h unconditionally.
43355         (mbschr): Assume mbrtowc function.
43356         * lib/mbscspn.c: Include mbuiter.h unconditionally.
43357         (mbscspn): Assume mbrtowc function.
43358         * lib/mbslen.c: Include mbuiter.h unconditionally.
43359         (mbslen): Assume mbrtowc function.
43360         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43361         (mbsncasecmp): Assume mbrtowc function.
43362         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43363         (mbsnlen): Assume mbrtowc function.
43364         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43365         (mbspbrk): Assume mbrtowc function.
43366         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43367         (mbspcasecmp): Assume mbrtowc function.
43368         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43369         (mbsrchr): Assume mbrtowc function.
43370         * lib/mbssep.c: Include mbuiter.h unconditionally.
43371         (mbssep): Assume mbrtowc function.
43372         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43373         (mbsspn): Assume mbrtowc function.
43374         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43375         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43376         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43377         (mbstok_r): Assume mbrtowc function.
43378         * lib/propername.c: Include mbuiter.h unconditionally.
43379         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
43380         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43381         (trim2): Assume mbrtowc function.
43382         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43383         (mbsnwidth): Assume mbrtowc function.
43384         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43385         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43386         fallback definitions.
43387         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43388
43389 2008-12-22  Bruno Haible  <bruno@clisp.org>
43390
43391         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
43392
43393 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
43394
43395         * modules/regex: Request emulations for the mb*/wc* functions we need.
43396         * m4/regex.m4: Don't look for those functions here.
43397         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
43398
43399 2008-12-22  Bruno Haible  <bruno@clisp.org>
43400
43401         * modules/fnmatch (Depends-on): Remove duplicated dependency.
43402
43403 2008-12-21  Bruno Haible  <bruno@clisp.org>
43404
43405         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
43406         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
43407         (Include): Remove conditionalization.
43408         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
43409         (Include): Remove conditionalization.
43410         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
43411         (Include): Remove conditionalization.
43412         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
43413         * m4/mbfile.m4 (gl_MBFILE): Likewise.
43414         * NEWS: Mention the change.
43415         Reported by Alan Hourihane <alanh@fairlite.co.uk>
43416         via Sergey Poznyakoff <gray@gnu.org.ua>.
43417
43418 2008-12-21  Bruno Haible  <bruno@clisp.org>
43419
43420         * MODULES.html.sh (Extended multibyte and wide character utilities
43421         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
43422         wcrtomb, wcsrtombs.
43423         (Support for systems lacking POSIX:2008): Add accept, bind, close,
43424         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
43425         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
43426         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
43427
43428 2008-12-21  Bruno Haible  <bruno@clisp.org>
43429
43430         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
43431
43432 2008-12-21  Bruno Haible  <bruno@clisp.org>
43433
43434         * modules/wcsnrtombs-tests: New file.
43435         * tests/test-wcsnrtombs1.sh: New file.
43436         * tests/test-wcsnrtombs2.sh: New file.
43437         * tests/test-wcsnrtombs3.sh: New file.
43438         * tests/test-wcsnrtombs4.sh: New file.
43439         * tests/test-wcsnrtombs.c: New file.
43440
43441         New module 'wcsnrtombs'.
43442         * lib/wchar.in.h (wcsnrtombs): New declaration.
43443         * lib/wcsnrtombs.c: New file.
43444         * lib/wcsrtombs-state.c: New file.
43445         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
43446         (internal_state): Remove variable.
43447         * m4/wcsnrtombs.m4: New file.
43448         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
43449         compilation units.
43450         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
43451         HAVE_WCSNRTOMBS.
43452         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
43453         HAVE_WCSNRTOMBS.
43454         * modules/wcsnrtombs: New file.
43455         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
43456         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
43457
43458 2008-12-21  Bruno Haible  <bruno@clisp.org>
43459
43460         * modules/wcsrtombs-tests: New file.
43461         * tests/test-wcsrtombs1.sh: New file.
43462         * tests/test-wcsrtombs2.sh: New file.
43463         * tests/test-wcsrtombs3.sh: New file.
43464         * tests/test-wcsrtombs4.sh: New file.
43465         * tests/test-wcsrtombs.c: New file.
43466
43467         New module 'wcsrtombs'.
43468         * lib/wchar.in.h (wcsrtombs): New declaration.
43469         * lib/wcsrtombs.c: New file.
43470         * m4/wcsrtombs.m4: New file.
43471         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43472         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43473         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43474         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43475         * modules/wcsrtombs: New file.
43476         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43477         bugs.
43478
43479 2008-12-21  Bruno Haible  <bruno@clisp.org>
43480
43481         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43482         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43483         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43484         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43485         if not correct.
43486         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43487         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43488         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43489         m4/locale-zh.m4, m4/codeset.m4.
43490         * doc/posix-functions/wcrtomb.texi: Document the bug.
43491
43492 2008-12-21  Bruno Haible  <bruno@clisp.org>
43493
43494         Work around a btowc() bug on IRIX 6.5.
43495         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43496         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43497         REPLACE_WTOBC if not.
43498         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43499         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43500         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43501
43502 2008-12-21  Bruno Haible  <bruno@clisp.org>
43503
43504         * modules/wcrtomb-tests: New file.
43505         * tests/test-wcrtomb.sh: New file.
43506         * tests/test-wcrtomb.c: New file.
43507
43508         New module 'wcrtomb'.
43509         * lib/wchar.in.h (wcrtomb): New declaration.
43510         * lib/wcrtomb.c: New file.
43511         * m4/wcrtomb.m4: New file.
43512         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43513         HAVE_WCRTOMB.
43514         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43515         HAVE_WCRTOMB.
43516         * modules/wcrtomb: New file.
43517         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43518
43519 2008-12-21  Bruno Haible  <bruno@clisp.org>
43520
43521         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43522         * modules/mbsrtowcs (Files): Likewise.
43523         * modules/wctob (Files): Likewise.
43524         * modules/c-strcase-tests (Files): Likewise.
43525         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43526         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43527         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43528         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43529         * modules/vasnprintf-posix-tests (Files): Likewise.
43530
43531 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43532
43533         gitlog-to-changelog: pass all command-line arguments to git-log
43534         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43535         it is sometimes convenient to filter the commits in various ways.
43536         gitlog-to-changelog only allows --since to specify a start date,
43537         but git-log itself supports many other filtering mechanisms.
43538         At the moment, I want to filter by branch name.  Rather than
43539         adding a --branch option to gitlog-to-changelog, it seems more
43540         flexible to simply pass all options directly to git-log and let
43541         git do the work.  Notice that this effectively makes --since a
43542         redundant option for gitlog-to-changelog, but removing it would
43543         require current usage to change since calls would then require
43544         an additional '--'.
43545
43546 2008-12-21  Bruno Haible  <bruno@clisp.org>
43547
43548         * modules/mbsnrtowcs-tests: New file.
43549         * tests/test-mbsnrtowcs1.sh: New file.
43550         * tests/test-mbsnrtowcs2.sh: New file.
43551         * tests/test-mbsnrtowcs3.sh: New file.
43552         * tests/test-mbsnrtowcs4.sh: New file.
43553         * tests/test-mbsnrtowcs.c: New file.
43554
43555         New module 'mbsnrtowcs'.
43556         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43557         * lib/mbsnrtowcs.c: New file.
43558         * lib/mbsrtowcs-state.c: New file.
43559         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43560         (internal_state): Remove variable.
43561         * m4/mbsnrtowcs.m4: New file.
43562         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43563         compilation units.
43564         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43565         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43566         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43567         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43568         * modules/mbsnrtowcs: New file.
43569         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43570         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43571         portability problem.
43572
43573 2008-12-21  Bruno Haible  <bruno@clisp.org>
43574
43575         Work around mbsrtowcs bug.
43576         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43577         (gl_FUNC_MBSRTOWCS): Invoke it.
43578         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43579         m4/locale-zh.m4.
43580         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43581
43582 2008-12-21  Bruno Haible  <bruno@clisp.org>
43583
43584         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43585
43586 2008-12-21  Bruno Haible  <bruno@clisp.org>
43587
43588         Update doc for AIX.
43589         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43590         16-bit wchar_t type.
43591         * doc/posix-functions/btowc.texi: Likewise.
43592         * doc/posix-functions/fgetwc.texi: Likewise.
43593         * doc/posix-functions/fgetws.texi: Likewise.
43594         * doc/posix-functions/fputwc.texi: Likewise.
43595         * doc/posix-functions/fputws.texi: Likewise.
43596         * doc/posix-functions/fwide.texi: Likewise.
43597         * doc/posix-functions/fwprintf.texi: Likewise.
43598         * doc/posix-functions/fwscanf.texi: Likewise.
43599         * doc/posix-functions/getwchar.texi: Likewise.
43600         * doc/posix-functions/getwc.texi: Likewise.
43601         * doc/posix-functions/iswalnum.texi: Likewise.
43602         * doc/posix-functions/iswalpha.texi: Likewise.
43603         * doc/posix-functions/iswblank.texi: Likewise.
43604         * doc/posix-functions/iswcntrl.texi: Likewise.
43605         * doc/posix-functions/iswctype.texi: Likewise.
43606         * doc/posix-functions/iswdigit.texi: Likewise.
43607         * doc/posix-functions/iswgraph.texi: Likewise.
43608         * doc/posix-functions/iswlower.texi: Likewise.
43609         * doc/posix-functions/iswprint.texi: Likewise.
43610         * doc/posix-functions/iswpunct.texi: Likewise.
43611         * doc/posix-functions/iswspace.texi: Likewise.
43612         * doc/posix-functions/iswupper.texi: Likewise.
43613         * doc/posix-functions/iswxdigit.texi: Likewise.
43614         * doc/posix-functions/mbrtowc.texi: Likewise.
43615         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43616         * doc/posix-functions/mbstowcs.texi: Likewise.
43617         * doc/posix-functions/mbtowc.texi: Likewise.
43618         * doc/posix-functions/putwchar.texi: Likewise.
43619         * doc/posix-functions/putwc.texi: Likewise.
43620         * doc/posix-functions/swprintf.texi: Likewise.
43621         * doc/posix-functions/tolower.texi: Likewise.
43622         * doc/posix-functions/toupper.texi: Likewise.
43623         * doc/posix-functions/towctrans.texi: Likewise.
43624         * doc/posix-functions/ungetwc.texi: Likewise.
43625         * doc/posix-functions/vswprintf.texi: Likewise.
43626         * doc/posix-functions/wcrtomb.texi: Likewise.
43627         * doc/posix-functions/wcscat.texi: Likewise.
43628         * doc/posix-functions/wcschr.texi: Likewise.
43629         * doc/posix-functions/wcscmp.texi: Likewise.
43630         * doc/posix-functions/wcscoll.texi: Likewise.
43631         * doc/posix-functions/wcscpy.texi: Likewise.
43632         * doc/posix-functions/wcscspn.texi: Likewise.
43633         * doc/posix-functions/wcsftime.texi: Likewise.
43634         * doc/posix-functions/wcslen.texi: Likewise.
43635         * doc/posix-functions/wcsncat.texi: Likewise.
43636         * doc/posix-functions/wcsncmp.texi: Likewise.
43637         * doc/posix-functions/wcsncpy.texi: Likewise.
43638         * doc/posix-functions/wcspbrk.texi: Likewise.
43639         * doc/posix-functions/wcsrchr.texi: Likewise.
43640         * doc/posix-functions/wcsrtombs.texi: Likewise.
43641         * doc/posix-functions/wcsspn.texi: Likewise.
43642         * doc/posix-functions/wcsstr.texi: Likewise.
43643         * doc/posix-functions/wcstod.texi: Likewise.
43644         * doc/posix-functions/wcstof.texi: Likewise.
43645         * doc/posix-functions/wcstoimax.texi: Likewise.
43646         * doc/posix-functions/wcstok.texi: Likewise.
43647         * doc/posix-functions/wcstold.texi: Likewise.
43648         * doc/posix-functions/wcstoll.texi: Likewise.
43649         * doc/posix-functions/wcstol.texi: Likewise.
43650         * doc/posix-functions/wcstombs.texi: Likewise.
43651         * doc/posix-functions/wcstoull.texi: Likewise.
43652         * doc/posix-functions/wcstoul.texi: Likewise.
43653         * doc/posix-functions/wcstoumax.texi: Likewise.
43654         * doc/posix-functions/wcswidth.texi: Likewise.
43655         * doc/posix-functions/wcsxfrm.texi: Likewise.
43656         * doc/posix-functions/wctob.texi: Likewise.
43657         * doc/posix-functions/wctomb.texi: Likewise.
43658         * doc/posix-functions/wctrans.texi: Likewise.
43659         * doc/posix-functions/wctype.texi: Likewise.
43660         * doc/posix-functions/wcwidth.texi: Likewise.
43661         * doc/posix-functions/wmemchr.texi: Likewise.
43662         * doc/posix-functions/wmemcmp.texi: Likewise.
43663         * doc/posix-functions/wmemcpy.texi: Likewise.
43664         * doc/posix-functions/wmemmove.texi: Likewise.
43665         * doc/posix-functions/wmemset.texi: Likewise.
43666         * doc/posix-functions/wprintf.texi: Likewise.
43667         * doc/posix-functions/wscanf.texi: Likewise.
43668
43669 2008-12-21  Bruno Haible  <bruno@clisp.org>
43670
43671         Update doc for HP-UX 11.11.
43672         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43673         in HP-UX version 11.00, not in all versions of HP-UX 11.
43674         * doc/posix-functions/fwide.texi: Likewise.
43675         * doc/posix-functions/fwprintf.texi: Likewise.
43676         * doc/posix-functions/fwscanf.texi: Likewise.
43677         * doc/posix-functions/inet_ntop.texi: Likewise.
43678         * doc/posix-functions/inet_pton.texi: Likewise.
43679         * doc/posix-functions/mbrlen.texi: Likewise.
43680         * doc/posix-functions/mbrtowc.texi: Likewise.
43681         * doc/posix-functions/mbsinit.texi: Likewise.
43682         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43683         * doc/posix-functions/swprintf.texi: Likewise.
43684         * doc/posix-functions/swscanf.texi: Likewise.
43685         * doc/posix-functions/towctrans.texi: Likewise.
43686         * doc/posix-functions/vfwprintf.texi: Likewise.
43687         * doc/posix-functions/vswprintf.texi: Likewise.
43688         * doc/posix-functions/vwprintf.texi: Likewise.
43689         * doc/posix-functions/wcrtomb.texi: Likewise.
43690         * doc/posix-functions/wcsrtombs.texi: Likewise.
43691         * doc/posix-functions/wcsstr.texi: Likewise.
43692         * doc/posix-functions/wctob.texi: Likewise.
43693         * doc/posix-functions/wctrans.texi: Likewise.
43694         * doc/posix-functions/wmemchr.texi: Likewise.
43695         * doc/posix-functions/wmemcmp.texi: Likewise.
43696         * doc/posix-functions/wmemcpy.texi: Likewise.
43697         * doc/posix-functions/wmemmove.texi: Likewise.
43698         * doc/posix-functions/wmemset.texi: Likewise.
43699         * doc/posix-functions/wprintf.texi: Likewise.
43700         * doc/posix-functions/wscanf.texi: Likewise.
43701
43702 2008-12-21  Bruno Haible  <bruno@clisp.org>
43703
43704         Work around a portability problem.
43705         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43706         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43707
43708 2008-12-20  Bruno Haible  <bruno@clisp.org>
43709
43710         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43711         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43712         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43713         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43714         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43715
43716         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43717         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43718         set.
43719         (GNULIB_defined_mbstate_t): New macro.
43720         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43721         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43722         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43723         reuses the system's mbrtowc function but works around the bugs.
43724         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43725         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43726         macros.
43727         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43728         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43729         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43730         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43731         REPLACE_MBSINIT if mbsinit needs to be overridden.
43732         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43733         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43734         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43735         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43736         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43737         m4/locale-zh.m4.
43738         (Depends): Add mbsinit.
43739         * modules/mbsinit (Depends): Add mbrtowc.
43740         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43741
43742 2008-12-20  Bruno Haible  <bruno@clisp.org>
43743
43744         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43745         so that there are no conversion errors on AIX.
43746         * tests/test-mbsrtowcs.c (main): LIkewise.
43747
43748 2008-12-20  Bruno Haible  <bruno@clisp.org>
43749
43750         Work around wctob bug on Solaris <= 9.
43751         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43752         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43753         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43754         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43755         * modules/wctob (Files): Add m4/locale-fr.m4.
43756         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43757
43758 2008-12-20  Bruno Haible  <bruno@clisp.org>
43759
43760         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43761         /dev/null.
43762         * tests/test-select-in.sh: Likewise.
43763         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43764
43765 2008-12-20  Bruno Haible  <bruno@clisp.org>
43766
43767         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43768         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43769         Cygwin 1.5.x.
43770
43771 2008-12-20  Bruno Haible  <bruno@clisp.org>
43772
43773         Ensure mbstate_t is defined on HP-UX 11.11.
43774         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43775         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43776         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43777         AC_USE_SYSTEM_EXTENSIONS.
43778         * modules/fnmatch (Depends-on): Add extensions.
43779         * modules/mbrlen (Depends-on): Likewise.
43780         * modules/mbrtowc (Depends-on): Likewise.
43781         * modules/mbsinit (Depends-on): Likewise.
43782         * modules/mbsrtowcs (Depends-on): Likewise.
43783         * modules/mbswidth (Depends-on): Likewise.
43784         * modules/quotearg (Depends-on): Likewise.
43785         * modules/strftime (Depends-on): Likewise.
43786
43787 2008-12-20  Bruno Haible  <bruno@clisp.org>
43788
43789         Ensure wctob is declared on IRIX 6.5.
43790         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43791         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43792         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43793         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43794         of HAVE_WCTOB.
43795         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43796         HAVE_WCTOB.
43797         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43798
43799 2008-12-19  Bruno Haible  <bruno@clisp.org>
43800
43801         * modules/mbsrtowcs-tests: New file.
43802         * tests/test-mbsrtowcs1.sh: New file.
43803         * tests/test-mbsrtowcs2.sh: New file.
43804         * tests/test-mbsrtowcs3.sh: New file.
43805         * tests/test-mbsrtowcs4.sh: New file.
43806         * tests/test-mbsrtowcs.c: New file.
43807
43808         New module 'mbsrtowcs'.
43809         * lib/wchar.in.h (mbsrtowcs): New declaration.
43810         * lib/mbsrtowcs.c: New file.
43811         * m4/mbsrtowcs.m4: New file.
43812         * modules/mbsrtowcs: New file.
43813         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43814         HAVE_MBSRTOWCS.
43815         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43816         HAVE_MBSRTOWCS.
43817         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43818
43819 2008-12-19  Bruno Haible  <bruno@clisp.org>
43820
43821         New module 'mbrlen'.
43822         * lib/wchar.in.h (mbrlen): New declaration.
43823         * lib/mbrlen.c: New file.
43824         * m4/mbrlen.m4: New file.
43825         * modules/mbrlen: New file.
43826         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43827         HAVE_MBRLEN.
43828         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43829         HAVE_MBRLEN.
43830         * doc/posix-functions/mbrlen.texi: Document the new module.
43831
43832 2008-12-19  Bruno Haible  <bruno@clisp.org>
43833
43834         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43835         * modules/mbrtowc (Depends-on): Add verify.
43836         Suggested by Paul Eggert.
43837
43838 2008-12-18  Bruno Haible  <bruno@clisp.org>
43839
43840         * modules/mbsinit-tests: New file.
43841         * tests/test-mbsinit.sh: New file.
43842         * tests/test-mbsinit.c: New file.
43843
43844 2008-12-18  Bruno Haible  <bruno@clisp.org>
43845
43846         * modules/mbrtowc-tests: New file.
43847         * tests/test-mbrtowc1.sh: New file.
43848         * tests/test-mbrtowc2.sh: New file.
43849         * tests/test-mbrtowc3.sh: New file.
43850         * tests/test-mbrtowc4.sh: New file.
43851         * tests/test-mbrtowc.c: New file.
43852
43853         New module 'mbrtowc'.
43854         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43855         mbsinit and mbrtowc.
43856         (mbrtowc): New declaration.
43857         * lib/mbrtowc.c: New file.
43858         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43859         * modules/mbrtowc: New file.
43860         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43861         HAVE_MBRTOWC.
43862         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43863         HAVE_MBRTOWC.
43864         * doc/posix-functions/mbrtowc.texi: Document the new module.
43865
43866 2008-12-18  Bruno Haible  <bruno@clisp.org>
43867
43868         New module 'wctob'.
43869         * lib/wchar.in.h (wctob): New declaration.
43870         * lib/wctob.c: New file.
43871         * m4/wctob.m4: New file.
43872         * modules/wctob: New file.
43873         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43874         HAVE_WCTOB.
43875         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43876         * doc/posix-functions/wctob.texi: Document the new module.
43877
43878 2008-12-18  Bruno Haible  <bruno@clisp.org>
43879
43880         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43881         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43882
43883 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43884
43885         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43886         G. Christensen" <tgc@jupiterrise.com>.
43887
43888         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43889         G. Christensen" <tgc@jupiterrise.com>.
43890
43891         * lib/flock.c: Need to include string.h.  Reported by "Tom
43892         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43893         <ebb9@byu.net>.
43894
43895 2008-12-18  Bruno Haible  <bruno@clisp.org>
43896
43897         * m4/locale-ja.m4: New file, from GNU gettext.
43898
43899 2008-12-17  Bruno Haible  <bruno@clisp.org>
43900
43901         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43902         Suggested by Eric Blake.
43903
43904 2008-12-17  Bruno Haible  <bruno@clisp.org>
43905
43906         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43907
43908 2008-12-17  Bruno Haible  <bruno@clisp.org>
43909
43910         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43911         * modules/mbsinit (Depends-on): Add verify.
43912         Suggested by Paul Eggert.
43913
43914 2008-12-17  Bruno Haible  <bruno@clisp.org>
43915
43916         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43917         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43918         gl_FUNC_MBRTOWC.
43919         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43920         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43921         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43922         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43923         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43924         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43925         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43926         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43927         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43928         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43929         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43930         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43931         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43932         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43933         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43934         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43935         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43936         * modules/trim (configure.ac): Likewise.
43937
43938 2008-12-17  Bruno Haible  <bruno@clisp.org>
43939
43940         * modules/btowc-tests: New file.
43941         * tests/test-btowc1.sh: New file.
43942         * tests/test-btowc2.sh: New file.
43943         * tests/test-btowc.c: New file.
43944
43945         New module 'btowc'.
43946         * lib/wchar.in.h (btowc): New declaration.
43947         * lib/btowc.c: New file.
43948         * m4/btowc.m4: New file.
43949         * modules/btowc: New file.
43950         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43951         HAVE_BTOWC.
43952         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43953         * doc/posix-functions/btowc.texi: Document the new module.
43954
43955 2008-12-17  Bruno Haible  <bruno@clisp.org>
43956
43957         New module 'mbsinit'.
43958         * lib/wchar.in.h (mbsinit): New declaration.
43959         * lib/mbsinit.c: New file.
43960         * m4/mbsinit.m4: New file.
43961         * modules/mbsinit: New file.
43962         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43963         HAVE_MBSINIT.
43964         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43965         HAVE_MBSINIT.
43966         * doc/posix-functions/mbsinit.texi: Document the new module.
43967
43968 2008-12-16  Bruno Haible  <bruno@clisp.org>
43969
43970         * lib/unistd.in.h: Add comment.
43971         * tests/test-environ.c: Don't include <stdlib.h>.
43972
43973 2008-12-16  Bruno Haible  <bruno@clisp.org>
43974
43975         * lib/parse-duration.h (parse_duration): Document return value
43976         convention.
43977         * lib/parse-duration.c: Include specification header first. Add
43978         comments.
43979         (_): Remove macro.
43980         (parse_year_month_day, parse_hour_minute_second): Move side effects
43981         outside of strchr call.
43982         (parse_non_iso8601): Move side effects outside of isspace call.
43983         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43984         call.
43985
43986 2008-12-16  Bruno Haible  <bruno@clisp.org>
43987
43988         * tests/test-parse-duration.sh: Produce no output when the test
43989         succeeds.
43990
43991 2008-12-16  Bruno Haible  <bruno@clisp.org>
43992
43993         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43994         expressions.
43995
43996 2008-12-15  Bruno Haible  <bruno@clisp.org>
43997
43998         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43999         * doc/glibc-functions/flistxattr.texi: Likewise.
44000         * doc/glibc-functions/fopencookie.texi: Likewise.
44001         * doc/glibc-functions/fremovexattr.texi: Likewise.
44002         * doc/glibc-functions/fsetxattr.texi: Likewise.
44003         * doc/glibc-functions/getxattr.texi: Likewise.
44004         * doc/glibc-functions/lgetxattr.texi: Likewise.
44005         * doc/glibc-functions/listxattr.texi: Likewise.
44006         * doc/glibc-functions/llistxattr.texi: Likewise.
44007         * doc/glibc-functions/lremovexattr.texi: Likewise.
44008         * doc/glibc-functions/lsetxattr.texi: Likewise.
44009         * doc/glibc-functions/removexattr.texi: Likewise.
44010         * doc/glibc-functions/setxattr.texi: Likewise.
44011         * doc/posix-functions/open_memstream.texi: Likewise.
44012
44013 2008-12-15  Eric Blake  <ebb9@byu.net>
44014
44015         Update doc for cygwin 1.7.
44016         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
44017         functions.
44018         * doc/posix-functions/fchmodat.texi: Likewise.
44019         * doc/posix-functions/fchownat.texi: Likewise.
44020         * doc/posix-functions/fdopendir.texi: Likewise.
44021         * doc/posix-functions/fmemopen.texi: Likewise.
44022         * doc/posix-functions/freeaddrinfo.texi: Likewise.
44023         * doc/posix-functions/fstatat.texi: Likewise.
44024         * doc/posix-functions/futimens.texi: Likewise.
44025         * doc/posix-functions/gai_strerror.texi: Likewise.
44026         * doc/posix-functions/getaddrinfo.texi: Likewise.
44027         * doc/posix-functions/getnameinfo.texi: Likewise.
44028         * doc/posix-functions/if_freenameindex.texi: Likewise.
44029         * doc/posix-functions/if_indextoname.texi: Likewise.
44030         * doc/posix-functions/if_nameindex.texi: Likewise.
44031         * doc/posix-functions/if_nametoindex.texi: Likewise.
44032         * doc/posix-functions/insque.texi: Likewise.
44033         * doc/posix-functions/linkat.texi: Likewise.
44034         * doc/posix-functions/llrint.texi: Likewise.
44035         * doc/posix-functions/llrintf.texi: Likewise.
44036         * doc/posix-functions/llrintl.texi: Likewise.
44037         * doc/posix-functions/lockf.texi: Likewise.
44038         * doc/posix-functions/lrintl.texi: Likewise.
44039         * doc/posix-functions/mkdirat.texi: Likewise.
44040         * doc/posix-functions/mkfifoat.texi: Likewise.
44041         * doc/posix-functions/mknodat.texi: Likewise.
44042         * doc/posix-functions/mq_close.texi: Likewise.
44043         * doc/posix-functions/mq_getattr.texi: Likewise.
44044         * doc/posix-functions/mq_notify.texi: Likewise.
44045         * doc/posix-functions/mq_open.texi: Likewise.
44046         * doc/posix-functions/mq_receive.texi: Likewise.
44047         * doc/posix-functions/mq_send.texi: Likewise.
44048         * doc/posix-functions/mq_setattr.texi: Likewise.
44049         * doc/posix-functions/mq_timedreceive.texi: Likewise.
44050         * doc/posix-functions/mq_timedsend.texi: Likewise.
44051         * doc/posix-functions/mq_unlink.texi: Likewise.
44052         * doc/posix-functions/open_memstream.texi: Likewise.
44053         * doc/posix-functions/openat.texi: Likewise.
44054         * doc/posix-functions/posix_fadvise.texi: Likewise.
44055         * doc/posix-functions/posix_fallocate.texi: Likewise.
44056         * doc/posix-functions/posix_madvise.texi: Likewise.
44057         * doc/posix-functions/posix_memalign.texi: Likewise.
44058         * doc/posix-functions/posix_openpt.texi: Likewise.
44059         * doc/posix-functions/readlinkat.texi: Likewise.
44060         * doc/posix-functions/remque.texi: Likewise.
44061         * doc/posix-functions/renameat.texi: Likewise.
44062         * doc/posix-functions/rintl.texi: Likewise.
44063         * doc/posix-functions/sem_unlink.texi: Likewise.
44064         * doc/posix-functions/shm_open.texi: Likewise.
44065         * doc/posix-functions/shm_unlink.texi: Likewise.
44066         * doc/posix-functions/signgam.texi: Likewise.
44067         * doc/posix-functions/sigset.texi: Likewise.
44068         * doc/posix-functions/stpcpy.texi: Likewise.
44069         * doc/posix-functions/stpncpy.texi: Likewise.
44070         * doc/posix-functions/strerror.texi: Likewise.
44071         * doc/posix-functions/strtod.texi: Likewise.
44072         * doc/posix-functions/symlinkat.texi: Likewise.
44073         * doc/posix-functions/unlinkat.texi: Likewise.
44074         * doc/posix-functions/utimensat.texi: Likewise.
44075         * doc/glibc-functions/bindresvport.texi: Likewise.
44076         * doc/glibc-functions/dn_expand.texi: Likewise.
44077         * doc/glibc-functions/exp10.texi: Likewise.
44078         * doc/glibc-functions/exp10f.texi: Likewise.
44079         * doc/glibc-functions/fgetxattr.texi: Likewise.
44080         * doc/glibc-functions/flistxattr.texi: Likewise.
44081         * doc/glibc-functions/fopencookie.texi: Likewise.
44082         * doc/glibc-functions/freeifaddrs.texi: Likewise.
44083         * doc/glibc-functions/fremovexattr.texi: Likewise.
44084         * doc/glibc-functions/fsetxattr.texi: Likewise.
44085         * doc/glibc-functions/getifaddrs.texi: Likewise.
44086         * doc/glibc-functions/getxattr.texi: Likewise.
44087         * doc/glibc-functions/lgetxattr.texi: Likewise.
44088         * doc/glibc-functions/listxattr.texi: Likewise.
44089         * doc/glibc-functions/llistxattr.texi: Likewise.
44090         * doc/glibc-functions/lremovexattr.texi: Likewise.
44091         * doc/glibc-functions/lsetxattr.texi: Likewise.
44092         * doc/glibc-functions/pow10.texi: Likewise.
44093         * doc/glibc-functions/pow10f.texi: Likewise.
44094         * doc/glibc-functions/rcmd_af.texi: Likewise.
44095         * doc/glibc-functions/removexattr.texi: Likewise.
44096         * doc/glibc-functions/res_init.texi: Likewise.
44097         * doc/glibc-functions/res_mkquery.texi: Likewise.
44098         * doc/glibc-functions/res_query.texi: Likewise.
44099         * doc/glibc-functions/res_querydomain.texi: Likewise.
44100         * doc/glibc-functions/res_send.texi: Likewise.
44101         * doc/glibc-functions/rresvport_af.texi: Likewise.
44102         * doc/glibc-functions/setxattr.texi: Likewise.
44103         * doc/glibc-functions/strcasestr.texi: Likewise.
44104
44105 2008-12-15  Bruno Haible  <bruno@clisp.org>
44106
44107         Fix compilation error on OSF/1 4.0.
44108         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
44109         <sys/time.h>, simply delegate to the system header.
44110         Reported by Daniel Richard G. <oss@teragram.com>.
44111
44112 2008-12-15  Bruno Haible  <bruno@clisp.org>
44113
44114         * doc/posix-functions/openat.texi: Mention the 'openat' module.
44115         * doc/posix-functions/fchmodat.texi: Likewise.
44116         * doc/posix-functions/fchownat.texi: Likewise.
44117         * doc/posix-functions/fdopendir.texi: Likewise.
44118         * doc/posix-functions/fstatat.texi: Likewise.
44119         * doc/posix-functions/mkdirat.texi: Likewise.
44120         * doc/posix-functions/unlinkat.texi: Likewise.
44121
44122 2008-12-14  Bruno Haible  <bruno@clisp.org>
44123
44124         Update doc for POSIX:2008.
44125         * doc/posix-functions/faccessat.texi: New file.
44126         * doc/posix-functions/fchmodat.texi: New file.
44127         * doc/posix-functions/fchownat.texi: New file.
44128         * doc/posix-functions/fdopendir.texi: New file.
44129         * doc/posix-functions/fstatat.texi: New file.
44130         * doc/posix-functions/futimens.texi: New file.
44131         * doc/posix-functions/linkat.texi: New file.
44132         * doc/posix-functions/mkdirat.texi: New file.
44133         * doc/posix-functions/mkfifoat.texi: New file.
44134         * doc/posix-functions/mknodat.texi: New file.
44135         * doc/posix-functions/open_wmemstream.texi: New file.
44136         * doc/posix-functions/openat.texi: New file.
44137         * doc/posix-functions/psiginfo.texi: New file.
44138         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
44139         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
44140         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
44141         * doc/posix-functions/readlinkat.texi: New file.
44142         * doc/posix-functions/renameat.texi: New file.
44143         * doc/posix-functions/strerror_l.texi: New file.
44144         * doc/posix-functions/symlinkat.texi: New file.
44145         * doc/posix-functions/unlinkat.texi: New file.
44146         * doc/posix-functions/utimensat.texi: New file.
44147         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44148
44149 2008-12-14  Bruno Haible  <bruno@clisp.org>
44150
44151         Update doc for POSIX:2008.
44152         * doc/posix-functions/alphasort.texi: Renamed from
44153         doc/glibc-functions/alphasort.texi.
44154         * doc/posix-functions/dirfd.texi: Renamed from
44155         doc/glibc-functions/dirfd.texi.
44156         * doc/posix-functions/dprintf.texi: Renamed from
44157         doc/glibc-functions/dprintf.texi.
44158         * doc/posix-functions/duplocale.texi: Renamed from
44159         doc/glibc-functions/duplocale.texi.
44160         * doc/posix-functions/fexecve.texi: Renamed from
44161         doc/glibc-functions/fexecve.texi.
44162         * doc/posix-functions/fmemopen.texi: Renamed from
44163         doc/glibc-functions/fmemopen.texi.
44164         * doc/posix-functions/freelocale.texi: Renamed from
44165         doc/glibc-functions/freelocale.texi.
44166         * doc/posix-functions/getdate_err.texi: Renamed from
44167         doc/glibc-functions/getdate_err.texi.
44168         * doc/posix-functions/isalnum_l.texi: Renamed from
44169         doc/glibc-functions/isalnum_l.texi.
44170         * doc/posix-functions/isalpha_l.texi: Renamed from
44171         doc/glibc-functions/isalpha_l.texi.
44172         * doc/posix-functions/isblank_l.texi: Renamed from
44173         doc/glibc-functions/isblank_l.texi.
44174         * doc/posix-functions/iscntrl_l.texi: Renamed from
44175         doc/glibc-functions/iscntrl_l.texi.
44176         * doc/posix-functions/isdigit_l.texi: Renamed from
44177         doc/glibc-functions/isdigit_l.texi.
44178         * doc/posix-functions/isgraph_l.texi: Renamed from
44179         doc/glibc-functions/isgraph_l.texi.
44180         * doc/posix-functions/islower_l.texi: Renamed from
44181         doc/glibc-functions/islower_l.texi.
44182         * doc/posix-functions/isprint_l.texi: Renamed from
44183         doc/glibc-functions/isprint_l.texi.
44184         * doc/posix-functions/ispunct_l.texi: Renamed from
44185         doc/glibc-functions/ispunct_l.texi.
44186         * doc/posix-functions/isspace_l.texi: Renamed from
44187         doc/glibc-functions/isspace_l.texi.
44188         * doc/posix-functions/isupper_l.texi: Renamed from
44189         doc/glibc-functions/isupper_l.texi.
44190         * doc/posix-functions/iswalnum_l.texi: Renamed from
44191         doc/glibc-functions/iswalnum_l.texi.
44192         * doc/posix-functions/iswalpha_l.texi: Renamed from
44193         doc/glibc-functions/iswalpha_l.texi.
44194         * doc/posix-functions/iswblank_l.texi: Renamed from
44195         doc/glibc-functions/iswblank_l.texi.
44196         * doc/posix-functions/iswcntrl_l.texi: Renamed from
44197         doc/glibc-functions/iswcntrl_l.texi.
44198         * doc/posix-functions/iswctype_l.texi: Renamed from
44199         doc/glibc-functions/iswctype_l.texi.
44200         * doc/posix-functions/iswdigit_l.texi: Renamed from
44201         doc/glibc-functions/iswdigit_l.texi.
44202         * doc/posix-functions/iswgraph_l.texi: Renamed from
44203         doc/glibc-functions/iswgraph_l.texi.
44204         * doc/posix-functions/iswlower_l.texi: Renamed from
44205         doc/glibc-functions/iswlower_l.texi.
44206         * doc/posix-functions/iswprint_l.texi: Renamed from
44207         doc/glibc-functions/iswprint_l.texi.
44208         * doc/posix-functions/iswpunct_l.texi: Renamed from
44209         doc/glibc-functions/iswpunct_l.texi.
44210         * doc/posix-functions/iswspace_l.texi: Renamed from
44211         doc/glibc-functions/iswspace_l.texi.
44212         * doc/posix-functions/iswupper_l.texi: Renamed from
44213         doc/glibc-functions/iswupper_l.texi.
44214         * doc/posix-functions/iswxdigit_l.texi: Renamed from
44215         doc/glibc-functions/iswxdigit_l.texi.
44216         * doc/posix-functions/isxdigit_l.texi: Renamed from
44217         doc/glibc-functions/isxdigit_l.texi.
44218         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
44219         doc/glibc-functions/mbsnrtowcs.texi.
44220         * doc/posix-functions/mkdtemp.texi: Renamed from
44221         doc/glibc-functions/mkdtemp.texi.
44222         * doc/posix-functions/newlocale.texi: Renamed from
44223         doc/glibc-functions/newlocale.texi.
44224         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
44225         doc/glibc-functions/nl_langinfo_l.texi.
44226         * doc/posix-functions/open_memstream.texi: Renamed from
44227         doc/glibc-functions/open_memstream.texi.
44228         * doc/posix-functions/opterr.texi: Renamed from
44229         doc/glibc-functions/opterr.texi.
44230         * doc/posix-functions/optind.texi: Renamed from
44231         doc/glibc-functions/optind.texi.
44232         * doc/posix-functions/optopt.texi: Renamed from
44233         doc/glibc-functions/optopt.texi.
44234         * doc/posix-functions/psignal.texi: Renamed from
44235         doc/glibc-functions/psignal.texi.
44236         * doc/posix-functions/scandir.texi: Renamed from
44237         doc/glibc-functions/scandir.texi.
44238         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
44239         doc/glibc-functions/sched_get_priority_min.texi.
44240         * doc/posix-functions/signgam.texi: Renamed from
44241         doc/glibc-functions/signgam.texi.
44242         * doc/posix-functions/stpcpy.texi: Renamed from
44243         doc/glibc-functions/stpcpy.texi.
44244         * doc/posix-functions/stpncpy.texi: Renamed from
44245         doc/glibc-functions/stpncpy.texi.
44246         * doc/posix-functions/strcasecmp_l.texi: Renamed from
44247         doc/glibc-functions/strcasecmp_l.texi.
44248         * doc/posix-functions/strcoll_l.texi: Renamed from
44249         doc/glibc-functions/strcoll_l.texi.
44250         * doc/posix-functions/strfmon_l.texi: Renamed from
44251         doc/glibc-functions/strfmon_l.texi.
44252         * doc/posix-functions/strftime_l.texi: Renamed from
44253         doc/glibc-functions/strftime_l.texi.
44254         * doc/posix-functions/strncasecmp_l.texi: Renamed from
44255         doc/glibc-functions/strncasecmp_l.texi.
44256         * doc/posix-functions/strndup.texi: Renamed from
44257         doc/glibc-functions/strndup.texi.
44258         * doc/posix-functions/strnlen.texi: Renamed from
44259         doc/glibc-functions/strnlen.texi.
44260         * doc/posix-functions/strsignal.texi: Renamed from
44261         doc/glibc-functions/strsignal.texi.
44262         * doc/posix-functions/strxfrm_l.texi: Renamed from
44263         doc/glibc-functions/strxfrm_l.texi.
44264         * doc/posix-functions/timer_gettime.texi: Renamed from
44265         doc/glibc-functions/timer_gettime.texi.
44266         * doc/posix-functions/tolower_l.texi: Renamed from
44267         doc/glibc-functions/tolower_l.texi.
44268         * doc/posix-functions/toupper_l.texi: Renamed from
44269         doc/glibc-functions/toupper_l.texi.
44270         * doc/posix-functions/towctrans_l.texi: Renamed from
44271         doc/glibc-functions/towctrans_l.texi.
44272         * doc/posix-functions/towlower_l.texi: Renamed from
44273         doc/glibc-functions/towlower_l.texi.
44274         * doc/posix-functions/towupper_l.texi: Renamed from
44275         doc/glibc-functions/towupper_l.texi.
44276         * doc/posix-functions/uselocale.texi: Renamed from
44277         doc/glibc-functions/uselocale.texi.
44278         * doc/posix-functions/vdprintf.texi: Renamed from
44279         doc/glibc-functions/vdprintf.texi.
44280         * doc/posix-functions/wcpcpy.texi:
44281         Renamed from doc/glibc-functions/wcpcpy.texi.
44282         * doc/posix-functions/wcpncpy.texi: Renamed from
44283         doc/glibc-functions/wcpncpy.texi.
44284         * doc/posix-functions/wcscasecmp.texi: Renamed from
44285         doc/glibc-functions/wcscasecmp.texi.
44286         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
44287         doc/glibc-functions/wcscasecmp_l.texi.
44288         * doc/posix-functions/wcscoll_l.texi: Renamed from
44289         doc/glibc-functions/wcscoll_l.texi.
44290         * doc/posix-functions/wcsdup.texi: Renamed from
44291         doc/glibc-functions/wcsdup.texi.
44292         * doc/posix-functions/wcsncasecmp.texi: Renamed from
44293         doc/glibc-functions/wcsncasecmp.texi.
44294         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
44295         doc/glibc-functions/wcsncasecmp_l.texi.
44296         * doc/posix-functions/wcsnlen.texi: Renamed from
44297         doc/glibc-functions/wcsnlen.texi.
44298         * doc/posix-functions/wcsnrtombs.texi: Renamed from
44299         doc/glibc-functions/wcsnrtombs.texi.
44300         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
44301         doc/glibc-functions/wcsxfrm_l.texi.
44302         * doc/posix-functions/wctrans_l.texi: Renamed from
44303         doc/glibc-functions/wctrans_l.texi.
44304         * doc/posix-functions/wctype_l.texi: Renamed from
44305         doc/glibc-functions/wctype_l.texi.
44306         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44307         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
44308         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
44309         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
44310         these subsections.
44311         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
44312         Remove sections.
44313
44314 2008-12-14  Bruno Haible  <bruno@clisp.org>
44315
44316         Update doc for POSIX:2008.
44317         * doc/posix-functions/*.texi: Update URL of POSIX specification.
44318
44319 2008-12-14  Bruno Haible  <bruno@clisp.org>
44320
44321         Update doc for POSIX:2008.
44322         * doc/pastposix-functions/bcmp.texi: Renamed from
44323         doc/posix-functions/bcmp.texi.
44324         * doc/pastposix-functions/bcopy.texi: Renamed from
44325         doc/posix-functions/bcopy.texi.
44326         * doc/pastposix-functions/bsd_signal.texi: Renamed from
44327         doc/posix-functions/bsd_signal.texi.
44328         * doc/pastposix-functions/bzero.texi: Renamed from
44329         doc/posix-functions/bzero.texi.
44330         * doc/pastposix-functions/ecvt.texi: Renamed from
44331         doc/posix-functions/ecvt.texi.
44332         * doc/pastposix-functions/fcvt.texi: Renamed from
44333         doc/posix-functions/fcvt.texi.
44334         * doc/pastposix-functions/ftime.texi: Renamed from
44335         doc/posix-functions/ftime.texi.
44336         * doc/pastposix-functions/gcvt.texi: Renamed from
44337         doc/posix-functions/gcvt.texi.
44338         * doc/pastposix-functions/getcontext.texi: Renamed from
44339         doc/posix-functions/getcontext.texi.
44340         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
44341         doc/posix-functions/gethostbyaddr.texi.
44342         * doc/pastposix-functions/gethostbyname.texi: Renamed from
44343         doc/posix-functions/gethostbyname.texi.
44344         * doc/pastposix-functions/getwd.texi: Renamed from
44345         doc/posix-functions/getwd.texi.
44346         * doc/pastposix-functions/h_errno.texi: Renamed from
44347         doc/posix-functions/h_errno.texi.
44348         * doc/pastposix-functions/index.texi: Renamed from
44349         doc/posix-functions/index.texi.
44350         * doc/pastposix-functions/makecontext.texi: Renamed from
44351         doc/posix-functions/makecontext.texi.
44352         * doc/pastposix-functions/mktemp.texi: Renamed from
44353         doc/posix-functions/mktemp.texi.
44354         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
44355         doc/posix-functions/pthread_attr_getstackaddr.texi.
44356         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
44357         doc/posix-functions/pthread_attr_setstackaddr.texi.
44358         * doc/pastposix-functions/rindex.texi: Renamed from
44359         doc/posix-functions/rindex.texi.
44360         * doc/pastposix-functions/scalb.texi: Renamed from
44361         doc/posix-functions/scalb.texi.
44362         * doc/pastposix-functions/setcontext.texi: Renamed from
44363         doc/posix-functions/setcontext.texi.
44364         * doc/pastposix-functions/swapcontext.texi: Renamed from
44365         doc/posix-functions/swapcontext.texi.
44366         * doc/pastposix-functions/ualarm.texi: Renamed from
44367         doc/posix-functions/ualarm.texi.
44368         * doc/pastposix-functions/usleep.texi: Renamed from
44369         doc/posix-functions/usleep.texi.
44370         * doc/pastposix-functions/vfork.texi: Renamed from
44371         doc/posix-functions/vfork.texi.
44372         * doc/pastposix-functions/wcswcs.texi: Renamed from
44373         doc/posix-functions/wcswcs.texi.
44374         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44375         (Function Substitutes): Update.
44376
44377 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44378
44379         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
44380         m4/strerror.m4.
44381
44382 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44383             Bruno Haible  <bruno@clisp.org>
44384
44385         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44386
44387 2008-12-13  Bruno Haible  <bruno@clisp.org>
44388
44389         * modules/strtoull (Depends-on): Remove unistd.
44390
44391 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44392
44393         * modules/strtoull (Depends-on): Add stdlib.
44394
44395 2008-12-11  Simon Josefsson  <simon@josefsson.org>
44396
44397         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
44398
44399 2008-12-10  Jim Meyering  <meyering@redhat.com>
44400
44401         gl_ASSERT: don't say assertions are disabled when they're not
44402         * m4/assert.m4 (gl_ASSERT): Do not make configure report
44403         "checking whether to enable assertions... no", when they are in
44404         fact enabled.  This is solely a bug in the output of configure.
44405         In spite of saying "no", NDEBUG was not defined in that case.
44406         Also, as noted by Eric Blake, leave assertions enabled upon
44407         --enable-assert=INVALID.
44408
44409 2008-12-10  Bruno Haible  <bruno@clisp.org>
44410
44411         Change MODULES.html to refer to POSIX:2008 where possible.
44412         * MODULES.html.sh (POSIX2008_URL): New variable.
44413         (posix_headers): Remove sys/timeb, ucontext.
44414         (posix2001_headers): New variable.
44415         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
44416         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
44417         index, makecontext, mktemp, pthread_attr_getstackaddr,
44418         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
44419         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
44420         (posix2001_functions): New variable.
44421         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
44422         otherwise.
44423
44424 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44425
44426         add missing include to parse-duration.c
44427         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
44428         * modules/parse-duration (Depends-on): Add xalloc.
44429
44430         fix sed script reading maint.mk
44431         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
44432         (syntax-check-rules): Use it.
44433
44434 2008-12-09  Bruno Haible  <bruno@clisp.org>
44435
44436         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
44437         MacOS X 10.4/PowerPC.
44438         Reported by Simon Josefsson.
44439
44440 2008-12-08  Jim Meyering  <meyering@redhat.com>
44441
44442         work around mingw's lack of some S_IF definitions
44443         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
44444         Reported by Simon Josefsson.
44445
44446 2008-12-08  Bruno Haible  <bruno@clisp.org>
44447
44448         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
44449         applied to variables. Needed on MacOS X 10.4/PowerPC.
44450         Reported by Simon Josefsson.
44451
44452 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
44453         and Eric Blake  <ebb9@byu.net>
44454
44455         assert: honor --enable-assert
44456         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
44457         order to honor --enable-assert, rather than treating it as a
44458         synonym for --disable-assert.
44459
44460 2008-12-08  Jim Meyering  <meyering@redhat.com>
44461
44462         * lib/posixtm.c: Remove now-useless declaration of mktime.
44463
44464         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
44465
44466 2008-12-07  Bruno Haible  <bruno@clisp.org>
44467
44468         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
44469         test_once): Mark functions as static.
44470         * tests/test-tls.c (test_tls): Likewise.
44471
44472 2008-12-07  Bruno Haible  <bruno@clisp.org>
44473
44474         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44475         iconv_register_autodetect.
44476
44477 2008-12-07  Jim Meyering  <meyering@redhat.com>
44478
44479         posixtm.c: avoid a warning
44480         * lib/posixtm.c (posixtime): Don't initialize tm0.
44481         It's no longer needed to placate gcc4's -Wuninitialized,
44482         and the attempt to placate would elicit a new warning.
44483
44484         unicodeio.c: mark unused parameters
44485         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44486         (fallback_failure_callback): Likewise.
44487
44488 2008-12-07  Bruno Haible  <bruno@clisp.org>
44489
44490         * gnulib-tool (func_create_testdir): When building the tests
44491         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44492         Reported by Simon Josefsson.
44493
44494 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44495
44496         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44497
44498 2008-12-06  Bruno Haible  <bruno@clisp.org>
44499
44500         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44501         Suggested by Eric Blake.
44502
44503 2008-12-06  Bruno Haible  <bruno@clisp.org>
44504
44505         Fix a c-stack test failure on MacOS X.
44506         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44507         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44508         handler for SIGBUS as well.
44509         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44510         install a signal handler for SIGBUS as well.
44511         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44512
44513 2008-12-06  Bruno Haible  <bruno@clisp.org>
44514
44515         Advocacy documentation.
44516         * doc/gnulib-intro.texi (Benefits): New section.
44517         * doc/gnulib.texi: Update.
44518
44519 2008-12-06  Bruno Haible  <bruno@clisp.org>
44520
44521         Document the 'manywarnings' module.
44522         * doc/manywarnings.texi: New file.
44523         * doc/gnulib.texi: Include it.
44524
44525 2008-12-05  Eric Blake  <ebb9@byu.net>
44526
44527         tests: silence some gcc warnings
44528         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44529         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44530         type mismatches.
44531
44532 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44533             Bruno Haible  <bruno@clisp.org>
44534
44535         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44536
44537 2008-11-29  Jim Meyering  <meyering@redhat.com>
44538
44539         unicodeio.c: mark unused parameters
44540         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44541         (fallback_failure_callback): Likewise.
44542
44543         fts: fix a thinko
44544         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44545         (set_stat_type): Return S_IF*-valued "type" directly.
44546         Prompted by James Youngman's spotting a related bug.
44547         Confirmed by further testing through find.
44548
44549         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44550         * lib/fts.c (D_TYPE): Define.
44551         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44552         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44553         (s_ifmt_shift_bits): New function.
44554         (set_stat_type): New function.
44555         (fts_build): When not calling fts_stat, call set_stat_type
44556         to propagate dirent.d_type info to fts_read caller.
44557         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44558         fts_statp->st_mode type information may be valid.
44559
44560 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44561
44562         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44563         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44564         <sds@gnu.org>.
44565
44566 2008-11-20  Bruno Haible  <bruno@clisp.org>
44567
44568         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44569         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44570         INCLUDE_NEXT.
44571         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44572         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44573         * modules/math (Makefile.am): Substitute
44574         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44575         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44576
44577 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44578             Bruno Haible  <bruno@clisp.org>
44579
44580         * lib/stdint.in.h: Define all type macros so that their expansion is
44581         a single typedef'ed token. Fixes a compilation failure in Boost which
44582         does "using ::int8_t;".
44583
44584 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44585
44586         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44587         gl_MANYWARN_ALL_GCC.
44588         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44589         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44590         * modules/manywarnings: New file.
44591         * MODULES.html.sh: Mention manywarnings module.
44592
44593 2008-11-18  Bruno Haible  <bruno@clisp.org>
44594
44595         * doc/gnulib-tool.texi (Unit tests): New section.
44596
44597 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44598
44599         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44600         paths like 'lib/po/foo.po'.
44601
44602 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44603
44604         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44605         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44606
44607 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44608
44609         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44610         parameter works.
44611
44612 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44613
44614         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44615
44616 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44617
44618         * modules/parse-duration-tests: New file.
44619         * tests/test-parse-duration.sh: New file.
44620         * tests/test-parse-duration.c: New file.
44621
44622         New module 'parse-duration'.
44623         * lib/parse-duration.h: New file.
44624         * lib/parse-duration.c: New file.
44625         * modules/parse-duration: New file.
44626
44627 2008-11-17  Bruno Haible  <bruno@clisp.org>
44628
44629         * tests/test-select-out.sh: Comment out the first pipe test.
44630         Reported by Simon Josefsson.
44631
44632 2008-11-17  Bruno Haible  <bruno@clisp.org>
44633
44634         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44635         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44636         gl_HOSTENT.
44637
44638 2008-11-17  Bruno Haible  <bruno@clisp.org>
44639
44640         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44641         -lnetwork and -lnet. Needed for Haiku and BeOS.
44642
44643 2008-11-16  Bruno Haible  <bruno@clisp.org>
44644
44645         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44646
44647 2008-11-16  Bruno Haible  <bruno@clisp.org>
44648
44649         Avoid test failure on Haiku.
44650         * tests/test-fsync.c: Include <errno.h>.
44651         (main): Don't require that fsync (0) fails.
44652
44653 2008-11-15  Bruno Haible  <bruno@clisp.org>
44654
44655         New module 'hostent'.
44656         * modules/hostent: New file.
44657         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44658
44659 2008-11-15  Bruno Haible  <bruno@clisp.org>
44660
44661         New module 'servent'.
44662         * modules/servent: New file.
44663         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44664
44665 2008-11-15  Bruno Haible  <bruno@clisp.org>
44666
44667         Avoid generating same test program with two different rules.
44668         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44669         test-frexp to test-frexp-nolibm.
44670         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44671         test-frexpl to test-frexpl-nolibm.
44672
44673 2008-11-15  Bruno Haible  <bruno@clisp.org>
44674
44675         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44676         $(FREXPL_LIBM).
44677
44678 2008-11-15  Bruno Haible  <bruno@clisp.org>
44679
44680         * lib/netdb.in.h: Activate the definitions also when the system's
44681         <netdb.h> has 'struct addrinfo'.
44682         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44683         EAI_OVERFLOW or AI_NUMERICSERV.
44684         * doc/posix-headers/netdb.texi: Document the problem.
44685
44686 2008-11-15  Bruno Haible  <bruno@clisp.org>
44687
44688         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44689
44690         Make the 'sched' module work on platforms where <sched.h> exists but
44691         is incomplete (such as Haiku).
44692         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44693         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44694         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44695         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44696         HAVE_STRUCT_SCHED_PARAM.
44697         * modules/sched (Depends-on): Add include_next.
44698         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44699         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44700         * doc/posix-headers/sched.texi: Document the issue.
44701
44702 2008-11-13  Jim Meyering  <meyering@redhat.com>
44703
44704         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44705         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44706         test would fail due to the difference in the Report bugs to ...
44707         line.  The expected address is empty, "<>", while the actual
44708         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44709
44710 2008-11-12  Bruno Haible  <bruno@clisp.org>
44711
44712         lstat: don't compile lstat.c on systems lacking lstat
44713         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44714         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44715         Reported by Daniel P. Berrange via Jim Meyering.
44716
44717 2008-11-12  Jim Meyering  <meyering@redhat.com>
44718
44719         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44720
44721 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44722
44723         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44724         instead.
44725
44726 2008-11-12  Bruno Haible  <bruno@clisp.org>
44727
44728         * lib/unicodeio.c: Include unistr.h.
44729         (utf8_wctomb): Remove function.
44730         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44731
44732 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44733
44734         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44735         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44736         <bruno@clisp.org>.
44737         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44738
44739 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44740
44741         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44742         * doc/gnulib.texi: Add section for warnings.
44743
44744 2008-11-11  Bruno Haible  <bruno@clisp.org>
44745
44746         * lib/sockets.h: Add a comment.
44747
44748 2008-11-11  Karl Berry  <karl@gnu.org>
44749
44750         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44751
44752 2008-11-11  Eric Blake  <ebb9@byu.net>
44753
44754         fdl.texi: avoid git symlinks
44755         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44756
44757 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44758
44759         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44760
44761 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44762
44763         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44764         (gl_WARN_ADD): Substitute $2 if literal.
44765
44766 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44767
44768         * m4/warning.m4: Remove.
44769
44770 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44771
44772         * m4/warnings.m4: Almost complete rewrite. :-)
44773
44774 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44775
44776         * modules/warnings: New module.
44777         * m4/warnings.m4: New file.
44778         * MODULES.html.sh: Mention warnings module.
44779         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44780         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44781
44782 2008-11-10  Eric Blake  <ebb9@byu.net>
44783
44784         fdl.texi: make a symlink to the latest version
44785         * doc/standards.texi: Revert today's earlier change.
44786         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44787         * doc/fdl.texi: ...and replace this with a symlink to the newer
44788         fdl-1.3.texi.
44789
44790 2008-11-10  Bruno Haible  <bruno@clisp.org>
44791
44792         * tests/test-select-fd.c (main): Accept the result file name as fourth
44793         argument.
44794         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44795         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44796
44797 2008-11-10  Bruno Haible  <bruno@clisp.org>
44798
44799         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44800         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44801         as autoconf-substituted macros.
44802         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44803         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44804         gl_NETDB_H_DEFAULTS. Set these variables.
44805         * modules/netdb (Makefile.am): Substitute these variables.
44806
44807 2008-11-10  Eric Blake  <ebb9@byu.net>
44808
44809         standards.texi: include correct file for FDL 1.3
44810         * doc/standards.texi (GNU Free Documentation License): Change
44811         include file to pull in FDL 1.3, not 1.2.
44812
44813         fdl.texi: revert accidental change to license
44814         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44815
44816 2008-11-10  Bruno Haible  <bruno@clisp.org>
44817
44818         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44819         cross-compiling guesses also when the native compile gives no result.
44820
44821 2008-11-10  Bruno Haible  <bruno@clisp.org>
44822
44823         * lib/spawni.c (__spawni): Force variable into the stack.
44824
44825 2008-11-10  Bruno Haible  <bruno@clisp.org>
44826
44827         Add support for Haiku.
44828         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44829         glibc and BeOS, but also on Haiku.
44830         * lib/fpurge.c (fpurge): Likewise.
44831         * lib/freadable.c (freadable): Likewise.
44832         * lib/freadahead.c (freadahead): Likewise.
44833         * lib/freading.c (freading): Likewise.
44834         * lib/freadptr.c (freadptr): Likewise.
44835         * lib/freadseek.c (freadptrinc): Likewise.
44836         * lib/fseeko.c (rpl_fseeko): Likewise.
44837         * lib/fseterr.c (fseterr): Likewise.
44838         * lib/fwritable.c (fwritable): Likewise.
44839         * lib/fwriting.c (fwriting): Likewise.
44840         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44841
44842 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44843
44844         * lib/config.charset: Treat Haiku like BeOS.
44845
44846 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44847
44848         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44849         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44850
44851 2008-11-08  Bruno Haible  <bruno@clisp.org>
44852
44853         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44854         AC_CACHE_CHECK.
44855
44856 2008-11-08  Bruno Haible  <bruno@clisp.org>
44857
44858         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44859
44860 2008-11-08  Bruno Haible  <bruno@clisp.org>
44861
44862         * tests/test-select-fd.c: New file.
44863         * tests/test-select-in.sh: New file.
44864         * tests/test-select-out.sh: New file.
44865         * tests/test-select-stdin.c: New file.
44866         * modules/select-tests (Files): Add the new files.
44867         (Depends-on): Add gettimeofday.
44868         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44869         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44870         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44871
44872 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44873             Bruno Haible  <bruno@clisp.org>
44874
44875         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44876
44877 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44878
44879         * build-aux/pmccabe2html: Added support for C++ source files.
44880
44881 2008-11-05  Ben Pfaff  <blp@gnu.org>
44882
44883         Fix lib/close.c build on Windows.
44884         * modules/close (Files): Add lib/w32sock.h.
44885
44886 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44887
44888         Accept Bison's NEWS format.
44889         * build-aux/announce-gen (print_news_deltas): Tweak
44890         $re_prefix.
44891
44892 2008-11-04  Bruno Haible  <bruno@clisp.org>
44893
44894         * modules/random_r (Maintainer): Add glibc.
44895
44896 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44897
44898         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44899         by karl@freefriends.org (Karl Berry).
44900         * doc/alloca.texi: Likewise.
44901         * doc/c-ctype.texi: Likewise.
44902         * doc/c-strcase.texi: Likewise.
44903         * doc/c-strcaseeq.texi: Likewise.
44904         * doc/c-strcasestr.texi: Likewise.
44905         * doc/c-strstr.texi: Likewise.
44906         * doc/c-strtod.texi: Likewise.
44907         * doc/c-strtold.texi: Likewise.
44908         * doc/ctime.texi: Likewise.
44909         * doc/error.texi: Likewise.
44910         * doc/fdl.texi: Likewise.
44911         * doc/gcd.texi: Likewise.
44912         * doc/getdate.texi: Likewise.
44913         * doc/gnulib-intro.texi: Likewise.
44914         * doc/gnulib-tool.texi: Likewise.
44915         * doc/gnulib.texi: Likewise.
44916         * doc/inet_ntoa.texi: Likewise.
44917         * doc/maintain.texi: Likewise.
44918         * doc/make-stds.texi: Likewise.
44919         * doc/quote.texi: Likewise.
44920         * doc/regexprops-generic.texi: Likewise.
44921         * doc/standards.texi: Likewise.
44922         * doc/verify.texi: Likewise.
44923         * doc/visibility.texi: Likewise.
44924         * doc/gnulib.texi (GNU Free Documentation License): Include
44925         fdl-1.3.texi instead of fdl.texi.
44926
44927 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44928
44929         * doc/fdl-1.3.texi: New file, from
44930         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44931         * modules/fdl-1.3: Add.
44932         * MODULES.html.sh: Add fdl-1.3.
44933
44934 2008-11-03  Bruno Haible  <bruno@clisp.org>
44935
44936         Make determination of absolute name of header file work with AIX xlc.
44937         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44938         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44939         preprocessing.
44940         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44941         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44942
44943 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44944
44945         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44946         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44947         <ludo@gnu.org>.
44948
44949 2008-11-02  Bruno Haible  <bruno@clisp.org>
44950
44951         Mark 'strpbrk' obsolete.
44952         * modules/strpbrk (Status, Notice): New sections.
44953         * modules/strtok_r (Depends-on): Add strpbrk.
44954
44955 2008-11-02  Bruno Haible  <bruno@clisp.org>
44956
44957         Mark 'strdup' obsolete.
44958         * modules/strdup (Status, Notice): New sections.
44959         * modules/findprog (Depends-on): Add strdup.
44960         * modules/getaddrinfo (Depends-on): Likewise.
44961         * modules/localename (Depends-on): Likewise.
44962         * modules/relocatable-lib (Depends-on): Likewise.
44963         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44964         * modules/relocatable-prog (Depends-on): Likewise.
44965         * modules/trim (Depends-on): Likewise.
44966         * modules/unictype/gen-ctype (Depends-on): Likewise.
44967         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44968
44969 2008-11-02  Bruno Haible  <bruno@clisp.org>
44970
44971         Mark 'strcspn' obsolete.
44972         * modules/strcspn (Status, Notice): New sections.
44973
44974 2008-11-02  Bruno Haible  <bruno@clisp.org>
44975
44976         Mark 'rmdir' obsolete.
44977         * modules/rmdir (Status, Notice): New sections.
44978         * modules/clean-temp (Depends-on): Add rmdir.
44979         * modules/openat (Depends-on): Likewise.
44980
44981 2008-11-02  Bruno Haible  <bruno@clisp.org>
44982
44983         Mark 'raise' obsolete.
44984         * modules/raise (Status, Notice): New sections.
44985         (Include): Specify <signal.h>.
44986         * modules/stdio (Depends-on): Add raise.
44987         * modules/write (Depends-on): Likewise.
44988
44989 2008-11-02  Bruno Haible  <bruno@clisp.org>
44990
44991         Mark 'memset' obsolete.
44992         * modules/memset (Status, Notice): New sections.
44993
44994 2008-11-02  Bruno Haible  <bruno@clisp.org>
44995
44996         Mark 'memmove' obsolete.
44997         * modules/memmove (Status, Notice): New sections.
44998         * modules/argp (Depends-on): Add memmove.
44999         * modules/argz (Depends-on): Likewise.
45000         * modules/canonicalize (Depends-on): Likewise.
45001         * modules/canonicalize-lgpl (Depends-on): Likewise.
45002         * modules/fts (Depends-on): Likewise.
45003         * modules/getcwd (Depends-on): Likewise.
45004         * modules/human (Depends-on): Likewise.
45005         * modules/regex (Depends-on): Likewise.
45006         * modules/striconveh (Depends-on): Likewise.
45007         * modules/trim (Depends-on): Likewise.
45008         * modules/unistr/u8-move (Depends-on): Likewise.
45009         * modules/unistr/u16-move (Depends-on): Likewise.
45010         * modules/unistr/u32-move (Depends-on): Likewise.
45011
45012 2008-11-02  Bruno Haible  <bruno@clisp.org>
45013
45014         Mark 'memcpy' obsolete.
45015         * modules/memcpy (Status, Notice): New sections.
45016
45017 2008-11-02  Bruno Haible  <bruno@clisp.org>
45018
45019         Mark 'memcmp' obsolete.
45020         * modules/memcmp (Status, Notice): New sections.
45021         * modules/argmatch (Depends-on): Add memchr.
45022         * modules/backupfile (Depends-on): Likewise.
45023         * modules/c-strcasestr (Depends-on): Likewise.
45024         * modules/crypto/des (Depends-on): Likewise.
45025         * modules/csharpcomp (Depends-on): Likewise.
45026         * modules/fnmatch (Depends-on): Likewise.
45027         * modules/git-merge-changelog (Depends-on): Likewise.
45028         * modules/isnand (Depends-on): Likewise.
45029         * modules/isnand-nolibm (Depends-on): Likewise.
45030         * modules/isnanf (Depends-on): Likewise.
45031         * modules/isnanf-nolibm (Depends-on): Likewise.
45032         * modules/isnanl (Depends-on): Likewise.
45033         * modules/isnanl-nolibm (Depends-on): Likewise.
45034         * modules/mbchar (Depends-on): Likewise.
45035         * modules/memcoll (Depends-on): Likewise.
45036         * modules/quotearg (Depends-on): Likewise.
45037         * modules/regex (Depends-on): Likewise.
45038         * modules/relocatable-prog (Depends-on): Likewise.
45039         * modules/same (Depends-on): Likewise.
45040         * modules/signbit (Depends-on): Likewise.
45041         * modules/strcasestr-simple (Depends-on): Likewise.
45042         * modules/unictype/gen-ctype (Depends-on): Likewise.
45043         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45044         * modules/uniname/uniname (Depends-on): Likewise.
45045         * modules/unistr/u8-cmp (Depends-on): Likewise.
45046
45047 2008-11-02  Bruno Haible  <bruno@clisp.org>
45048
45049         Mark 'memchr' obsolete.
45050         * modules/memchr (Status, Notice): New sections.
45051         * modules/argp (Depends-on): Add memchr.
45052         * modules/base64 (Depends-on): Likewise.
45053         * modules/c-strcasestr (Depends-on): Likewise.
45054         * modules/chdir-long (Depends-on): Likewise.
45055         * modules/fnmatch (Depends-on): Likewise.
45056         * modules/getsubopt (Depends-on): Likewise.
45057         * modules/git-merge-changelog (Depends-on): Likewise.
45058         * modules/glob (Depends-on): Likewise.
45059         * modules/strcasestr-simple (Depends-on): Likewise.
45060         * modules/strnlen (Depends-on): Likewise.
45061
45062 2008-11-02  Bruno Haible  <bruno@clisp.org>
45063
45064         Mark 'atexit' obsolete.
45065         * modules/atexit (Status, Notice): New sections.
45066         * modules/chdir-long (Depends-on): Add atexit.
45067         * modules/wait-process (Depends-on): Likewise.
45068
45069 2008-11-02  Bruno Haible  <bruno@clisp.org>
45070
45071         * gnulib-tool: New option --with-obsolete.
45072         (func_usage): Document it.
45073         (func_modules_transitive_closure): Drop obsolete dependencies if
45074         incobsolete is not true.
45075         (func_import): Read and save the incobsolete variable to the cache.
45076
45077 2008-11-02  Bruno Haible  <bruno@clisp.org>
45078
45079         * modules/TEMPLATE-EXTENDED: New field 'Status'.
45080         * gnulib-tool: New option --extract-status.
45081         (func_usage): Document it.
45082         (sed_extract_prog): Recognize it.
45083         (func_get_status): New function.
45084
45085 2008-10-30  Simon Josefsson  <simon@josefsson.org>
45086
45087         * modules/sockets (License): Change from LGPL to LGPLv2+.
45088
45089 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45090
45091         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
45092
45093 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45094
45095         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45096         Mention times and sys_times.
45097         * modules/sys_times, modules/sys_times-tests: New modules.
45098         * modules/times, modules/times-tests: Likewise
45099         * m4/sys_times_h.m4: New file.
45100         * lib/sys_times.in.h: Likewise
45101         * lib/times.c: Likewise.
45102         * tests/test-sys_times.c: Likewise.
45103         * tests/test-times.c: Likewise.
45104         * doc/posix-headers/sys_times.texi: Update.
45105         * doc/posix-functions/times.texi: Update.
45106
45107 2008-10-28  Jim Meyering  <meyering@redhat.com>
45108
45109         * modules/tempname (Depends-on): Add lstat.
45110
45111         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
45112
45113 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45114
45115         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
45116         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
45117         using idiom used elsewhere in gnulib.
45118
45119 2008-10-27  Jim Meyering  <meyering@redhat.com>
45120
45121         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
45122
45123 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45124
45125         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
45126         TESTS_ENVIRONMENT, for shell scripts that needs to call built
45127         programs.
45128         * tests/test-argp-2.sh: Use $EXEEXT when needed.
45129
45130 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45131
45132         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
45133
45134 2008-10-27  Bruno Haible  <bruno@clisp.org>
45135
45136         * tests/test-lstat.c: Include <stdio.h>.
45137
45138 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45139
45140         * modules/lstat-tests: New module.
45141         * tests/test-lstat.c: New file.
45142
45143 2008-10-26  Jim Meyering  <meyering@redhat.com>
45144
45145         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
45146
45147 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45148             Bruno Haible  <bruno@clisp.org>
45149
45150         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
45151         * modules/configmake (Include): Add a note that the include must come
45152         after all system headers.
45153         * lib/javaversion.c: Include configmake.h after all other includes.
45154
45155 2008-10-26  Bruno Haible  <bruno@clisp.org>
45156
45157         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
45158         HAVE_STRUCT_RANDOM_DATA to 1.
45159         (gl_STDLIB_H): Simplify.
45160
45161 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45162
45163         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
45164         substitute HAVE_STRUCT_RANDOM_DATA.
45165         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
45166         random_data.
45167         * modules/stdlib (Makefile.am): Substitute
45168         HAVE_STRUCT_RANDOM_DATA.
45169
45170 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45171
45172         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
45173         * doc/gnulib-intro.texi (Copyright): Likewise.
45174
45175 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45176
45177         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
45178         findings.
45179
45180 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
45181             Bruno Haible  <bruno@clisp.org>
45182
45183         * lib/unistd.in.h: Include <winsock2.h>.
45184         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
45185         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
45186         Provide dummy declarations.
45187         (gethostname): Override.
45188         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
45189         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
45190         gl_PREREQ_SYS_H_WINSOCK2.
45191         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
45192         * doc/posix-functions/gethostname.texi: More details.
45193
45194 2008-10-25  Bruno Haible  <bruno@clisp.org>
45195
45196         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45197         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
45198         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
45199
45200         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
45201         here ...
45202         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
45203         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
45204         gl_UNISTD_H_DEFAULTS.
45205
45206 2008-10-25  Eric Blake  <ebb9@byu.net>
45207
45208         signbit: avoid spurious compiler failure
45209         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
45210         declarations inside function.
45211
45212 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45213             Bruno Haible  <bruno@clisp.org>
45214
45215         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
45216         * modules/random_r (Depends-on): Add stdint.
45217
45218 2008-10-24  Bruno Haible  <bruno@clisp.org>
45219
45220         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
45221         Eggert.
45222         * modules/strerror (License): Likewise.
45223
45224 2008-10-24  Jim Meyering  <meyering@redhat.com>
45225
45226         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
45227         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
45228
45229 2008-10-24  Eric Blake  <ebb9@byu.net>
45230
45231         getgroups: fix compilation when getgroups is available
45232         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
45233         but with <config.h> override of getgroups disabled.
45234
45235 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45236
45237         * doc/gnulib.texi (Header files): Add note about C++ problems.
45238         Explained by Bruno Haible <bruno@clisp.org>.
45239
45240 2008-10-23  Bruno Haible  <bruno@clisp.org>
45241
45242         Define a dummy SA_NODEFER macro on Interix.
45243         * lib/signal.in.h (SA_NODEFER): Define fallback.
45244         Reported by Aleksey Cheusov <cheusov@tut.by> via
45245         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
45246
45247 2008-10-23  Bruno Haible  <bruno@clisp.org>
45248
45249         * modules/freadahead (License): Change to LGPLv2+.
45250         Suggested by Simon Josefsson.
45251
45252 2008-10-23  Jim Meyering  <meyering@redhat.com>
45253
45254         random_r: new module
45255         * modules/random_r: New file.
45256         * m4/random_r.m4: New file.
45257         * lib/random_r.c: New file, from glibc.
45258         * modules/random_r-tests: New file.
45259         * tests/test-random_r.c: New file.
45260         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
45261          Declare.
45262         (RAND_MAX): Define.
45263         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
45264         * modules/stdlib: Substitute them, too.
45265         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
45266         * doc/glibc-functions/initstate_r.texi: Mention the new module.
45267         * doc/glibc-functions/random_r.texi: Likewise.
45268         * doc/glibc-functions/setstate_r.texi: Likewise.
45269         * doc/glibc-functions/srandom_r.texi: Likewise.
45270         * config/srclist.txt: Mention it.
45271
45272 2008-10-23  David Lutterkort  <lutter@redhat.com>
45273
45274         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
45275         link requirement
45276
45277 2008-10-23  Jim Meyering  <meyering@redhat.com>
45278
45279         selinux-h: mark parameters of stub functions as intentionally unused
45280         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
45281         * lib/se-context.in.h: Likewise.
45282
45283 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45284
45285         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
45286
45287 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45288
45289         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
45290
45291 2008-10-22  Eric Blake  <ebb9@byu.net>
45292
45293         glthread/thread: avoid compiler warning
45294         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
45295         Add unreachable abort to silence compiler.
45296
45297 2008-10-22  Eric Blake  <ebb9@byu.net>
45298
45299         netdb: also supply struct addrinfo for cygwin 1.5.x
45300         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
45301         older cygwin.
45302         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
45303         cygwin.
45304         * doc/posix-headers/netdb.texi (netdb.h): Document this.
45305
45306 2008-10-22  Bruno Haible  <bruno@clisp.org>
45307
45308         * users.txt: Update entry about pspp.
45309
45310 2008-10-21  Bruno Haible  <bruno@clisp.org>
45311
45312         Simplification.
45313         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
45314         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
45315
45316         Simplification.
45317         * lib/ioctl.c (ioctl): Don't undefine.
45318         * lib/socket.c (socket): Don't undefine.
45319
45320         Remove unused module indicator macros.
45321         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
45322         GNULIB_$1 as a C macro.
45323
45324         * doc/posix-functions/close.texi: Undo last change.
45325         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
45326         Windows platforms.
45327
45328 2008-10-21  Bruno Haible  <bruno@clisp.org>
45329
45330         Add gethostname() declaration to <unistd.h>.
45331         * lib/unistd.in.h (gethostname): New declaration.
45332         * lib/gethostname.c: Include <unistd.h>.
45333         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
45334         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
45335         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
45336         and HAVE_GETHOSTNAME.
45337         * modules/gethostname (Depends-on): Add unistd.
45338         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45339         (Include): Specify <unistd.h>.
45340         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
45341         HAVE_GETHOSTNAME.
45342         * tests/test-gethostname.c: Include <unistd.h> first.
45343
45344 2008-10-21  Bruno Haible  <bruno@clisp.org>
45345
45346         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
45347         * modules/select-tests (Depends-on): Likewise.
45348         Reported by Simon Josefsson.
45349
45350 2008-10-21  Simon Josefsson  <simon@josefsson.org>
45351
45352         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
45353         * lib/accept.c: New file, based on winsock.c.
45354         * lib/bind.c: New file, based on winsock.c.
45355         * lib/connect.c: New file, based on winsock.c.
45356         * lib/getpeername.c: New file, based on winsock.c.
45357         * lib/getsockname.c: New file, based on winsock.c.
45358         * lib/getsockopt.c: New file, based on winsock.c.
45359         * lib/ioctl.c: New file, based on winsock.c.
45360         * lib/listen.c: New file, based on winsock.c.
45361         * lib/recv.c: New file, based on winsock.c.
45362         * lib/recvfrom.c: New file, based on winsock.c.
45363         * lib/send.c: New file, based on winsock.c.
45364         * lib/sendto.c: New file, based on winsock.c.
45365         * lib/setsockopt.c: New file, based on winsock.c.
45366         * lib/shutdown.c: New file, based on winsock.c.
45367         * lib/socket.c: New file, based on winsock.c.
45368         * lib/w32sock.h: New file, based on winsock.c.
45369         * lib/winsock.c: Remove file.
45370         * modules/accept: Likewise.
45371         * modules/bind: Likewise.
45372         * modules/connect: Likewise.
45373         * modules/getpeername: Likewise.
45374         * modules/getsockname: Likewise.
45375         * modules/getsockopt: Likewise.
45376         * modules/ioctl: Likewise.
45377         * modules/listen: Likewise.
45378         * modules/recv: Likewise.
45379         * modules/recvfrom: Likewise.
45380         * modules/send: Likewise.
45381         * modules/sendto: Likewise.
45382         * modules/setsockopt: Likewise.
45383         * modules/shutdown: Likewise.
45384         * modules/socket: Use socket.c instead of winsock.c.
45385         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45386         * doc/posix-functions/accept.texi: Doc fix.
45387         * doc/posix-functions/bind.texi: Doc fix.
45388         * doc/posix-functions/close.texi: Doc fix.
45389         * doc/posix-functions/connect.texi: Doc fix.
45390         * doc/posix-functions/getpeername.texi: Doc fix.
45391         * doc/posix-functions/getsockname.texi: Doc fix.
45392         * doc/posix-functions/getsockopt.texi: Doc fix.
45393         * doc/posix-functions/ioctl.texi: Doc fix.
45394         * doc/posix-functions/listen.texi: Doc fix.
45395         * doc/posix-functions/recv.texi: Doc fix.
45396         * doc/posix-functions/recvfrom.texi: Doc fix.
45397         * doc/posix-functions/send.texi: Doc fix.
45398         * doc/posix-functions/sendto.texi: Doc fix.
45399         * doc/posix-functions/setsockopt.texi: Doc fix.
45400         * doc/posix-functions/shutdown.texi: Doc fix.
45401         * doc/posix-functions/socket.texi: Doc fix.
45402
45403 2008-10-20  Bruno Haible  <bruno@clisp.org>
45404
45405         Take into account the role of SIGABRT_COMPAT on Windows 2008.
45406         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
45407         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
45408         as an alias for SIGABRT.
45409         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
45410         (sigaction): Map it to SIGABRT.
45411         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
45412
45413 2008-10-20  Bruno Haible  <bruno@clisp.org>
45414
45415         * lib/fts.c: Don't include lstat.h.
45416         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
45417
45418         Move the lstat() declaration to <sys/stat.h>.
45419         * lib/lstat.h: Remove file.
45420         * lib/sys_stat.in.h: Add special invocation convention.
45421         (lstat): New declaration.
45422         * lib/lstat.c (orig_lstat): New function.
45423         (rpl_lstat): Use orig_lstat instead of lstat.
45424         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
45425         AC_C_INLINE. Set REPLACE_LSTAT.
45426         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
45427         and REPLACE_LSTAT.
45428         * modules/lstat (Files): Remove lib/lstat.h.
45429         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45430         (Include): Specify <sys/stat.h> instead of lstat.h.
45431         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
45432         REPLACE_LSTAT.
45433         * NEWS: Mention the change.
45434
45435 2008-10-20  Bruno Haible  <bruno@clisp.org>
45436
45437         * modules/posix_spawn-tests: New file.
45438         * tests/test-posix_spawn3.c: New file.
45439
45440 2008-10-20  Bruno Haible  <bruno@clisp.org>
45441
45442         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
45443         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45444         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
45445         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45446         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
45447
45448 2008-10-20  Bruno Haible  <bruno@clisp.org>
45449
45450         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
45451         of posix_spawn on AIX 5.3.
45452
45453 2008-10-20  Bruno Haible  <bruno@clisp.org>
45454
45455         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
45456
45457 2008-10-20  Bruno Haible  <bruno@clisp.org>
45458
45459         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
45460         of AC_LANG_PROGRAM.
45461
45462 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45463
45464         * lib/netdb.in.h: Don't define GNU specific constants until they
45465         are supported or needed.  Reported by Bruno Haible
45466         <bruno@clisp.org>.
45467
45468 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45469
45470         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45471
45472 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45473
45474         * lib/getaddrinfo.h: Remove file.
45475         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45476         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45477         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45478         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45479         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45480         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45481         * tests/test-getaddrinfo.c: Likewise.
45482         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45483         * NEWS: Mention change.
45484
45485 2008-10-19  Bruno Haible  <bruno@clisp.org>
45486
45487         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45488
45489 2008-10-19  Bruno Haible  <bruno@clisp.org>
45490
45491         * lib/wait-process.c: Include simply <sys/wait.h>.
45492         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45493         WIFSTOPPED): Remove fallback definitions.
45494         * modules/wait-process (Depends-on): Add sys_wait.
45495
45496         New module 'sys_wait'.
45497         * modules/sys_wait: New file.
45498         * lib/sys_wait.in.h: New file, partially copied from
45499         lib/wait-process.c.
45500         * m4/sys_wait_h.m4: New file.
45501         * doc/posix-headers/sys_wait.texi: Mention the new module.
45502
45503 2008-10-19  Bruno Haible  <bruno@clisp.org>
45504
45505         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45506
45507 2008-10-19  Bruno Haible  <bruno@clisp.org>
45508
45509         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45510         * lib/wait-process.c (WAIT_T): Remove type.
45511         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45512         (wait_subprocess): Update.
45513
45514 2008-10-19  Bruno Haible  <bruno@clisp.org>
45515
45516         New module 'atoll'.
45517         * modules/atoll: New file.
45518         * lib/stdlib.in.h (atoll): New declaration.
45519         * lib/atoll.c: New file, from glibc with modifications.
45520         * m4/atoll.m4: New file.
45521         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45522         HAVE_ATOLL.
45523         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45524         * doc/posix-functions/atoll.texi: Mention the new module.
45525
45526 2008-10-19  Bruno Haible  <bruno@clisp.org>
45527
45528         Add strtoull() declaration to <stdlib.h>.
45529         * lib/stdlib.in.h (strtoull): New declaration.
45530         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45531         Set HAVE_STRTOULL.
45532         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45533         HAVE_STRTOULL.
45534         * modules/strtoull (Depends-on): Add stdlib.
45535         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45536         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45537         HAVE_STRTOULL.
45538
45539 2008-10-19  Bruno Haible  <bruno@clisp.org>
45540
45541         Add strtoll() declaration to <stdlib.h>.
45542         * lib/stdlib.in.h (strtoll): New declaration.
45543         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45544         Set HAVE_STRTOLL.
45545         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45546         HAVE_STRTOLL.
45547         * modules/strtoll (Depends-on): Add stdlib.
45548         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45549         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45550
45551 2008-10-19  Bruno Haible  <bruno@clisp.org>
45552
45553         * modules/bcopy (Depends-on): Add strings.
45554         (Include): Specify <strings.h>.
45555
45556 2008-10-19  Bruno Haible  <bruno@clisp.org>
45557
45558         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45559
45560 2008-10-19  Bruno Haible  <bruno@clisp.org>
45561
45562         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45563         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45564         mingw.
45565
45566 2008-10-19  Bruno Haible  <bruno@clisp.org>
45567
45568         * lib/atanl.c: Don't include isnanl.h.
45569         * lib/cosl.c: Likewise.
45570         * lib/ldexpl.c: Likewise.
45571         * lib/logl.c: Likewise.
45572         * lib/sinl.c: Likewise.
45573         * lib/sqrtl.c: Likewise.
45574         * lib/tanl.c: Likewise.
45575
45576         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45577         * lib/isnanf.h: Remove file.
45578         * lib/isnand.h: Remove file.
45579         * lib/isnanl.h: Remove file.
45580         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45581         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45582         macros.
45583         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45584         HAVE_ISNANF, don't define it as a C macro.
45585         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45586         HAVE_ISNAND, don't define it as a C macro.
45587         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45588         HAVE_ISNANL, don't define it as a C macro.
45589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45590         HAVE_ISNAN[FDL].
45591         * modules/isnanf (Files): Remove lib/isnanf.h.
45592         (Depends-on): Add math.
45593         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45594         (Include): Specify <math.h> instead of isnanf.h.
45595         * modules/isnand (Files): Remove lib/isnand.h.
45596         (Depends-on): Add math.
45597         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45598         (Include): Specify <math.h> instead of isnand.h.
45599         * modules/isnanl (Files): Remove lib/isnanl.h.
45600         (Depends-on): Add math.
45601         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45602         (Include): Specify <math.h> instead of isnanl.h.
45603         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45604         HAVE_ISNAN[FDL].
45605         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45606         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45607         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45608         * NEWS: Mention the change.
45609
45610 2008-10-18  Bruno Haible  <bruno@clisp.org>
45611
45612         Add getusershell(), setusershell(), endusershell() declarations to
45613         <unistd.h>.
45614         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45615         declarations.
45616         * lib/getusershell.c: Include unistd.h.
45617         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45618         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45619         HAVE_GETUSERSHELL.
45620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45621         and HAVE_GETUSERSHELL.
45622         * modules/getusershell (Depends-on): Add unistd, extensions.
45623         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45624         (Include): Specify <unistd.h>.
45625         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45626         HAVE_GETUSERSHELL.
45627
45628 2008-10-18  Bruno Haible  <bruno@clisp.org>
45629
45630         Add a getloadavg() declaration to <stdlib.h>.
45631         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45632         getloadavg declaration.
45633         (getloadavg): New declaration.
45634         * lib/getloadavg.c: Include <stdlib.h> first.
45635         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45636         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45637         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45638         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45639         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45640         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45641         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45642         (Include): Specify <stdlib.h>.
45643         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45644         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45645
45646 2008-10-18  Bruno Haible  <bruno@clisp.org>
45647
45648         * lib/dirchownmod.c: Don't include lchmod.h.
45649
45650         Move the lchmod() declaration to <sys/stat.h>.
45651         * lib/lchmod.h: Remove file.
45652         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45653         (lchmod): New declaration, moved here from lib/lchown.h.
45654         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45655         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45656         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45657         and HAVE_LCHMOD.
45658         * modules/lchmod (Files): Remove lib/lchmod.h.
45659         (Depends-on): Add sys_stat, extensions.
45660         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45661         (Include): Specify <sys/stat.h> instead of lchmod.h.
45662         * modules/sys_stat (Depends-on): Add link-warning.
45663         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45664         definition of GL_LINK_WARNING.
45665         * NEWS: Mention the change.
45666
45667 2008-10-18  Bruno Haible  <bruno@clisp.org>
45668
45669         * lib/fchdir.c: Don't include dirfd.h.
45670         * lib/fts.c: Likewise.
45671         * lib/getcwd.c: Likewise.
45672         * lib/glob.c: Likewise.
45673
45674         Move the dirfd() declaration to <dirent.h>.
45675         * lib/dirfd.h: Remove file.
45676         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45677         (dirfd): New declaration.
45678         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45679         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45680         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45681         HAVE_DECL_DIRFD.
45682         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45683         HAVE_DECL_DIRFD.
45684         * modules/dirfd (Files): Remove lib/dirfd.h.
45685         (Depends-on): Add dirent, extensions.
45686         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45687         (Include): Specify <dirent.h> instead of dirfd.h.
45688         * modules/dirent (Depends-on): Add link-warning.
45689         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45690         definition of GL_LINK_WARNING.
45691         * NEWS: Mention the change.
45692
45693 2008-10-18  Bruno Haible  <bruno@clisp.org>
45694
45695         Move the euidaccess() declaration to <unistd.h>.
45696         * lib/euidaccess.h: Remove file.
45697         * lib/unistd.in.h (euidaccess): New declaration.
45698         * lib/euidaccess.c: Don't include euidaccess.h.
45699         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45700         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45702         and HAVE_EUIDACCESS.
45703         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45704         (Depends-on): Add unistd.
45705         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45706         (Include): Specify <unistd.h> instead of euidaccess.h.
45707         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45708         HAVE_EUIDACCESS.
45709         * NEWS: Mention the change.
45710
45711 2008-10-18  Bruno Haible  <bruno@clisp.org>
45712
45713         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45714
45715         Move the getdomainname() declaration to <unistd.h>.
45716         * lib/getdomainname.h: Remove file.
45717         * lib/unistd.in.h (getdomainname): New declaration.
45718         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45719         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45720         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45721         HAVE_GETDOMAINNAME.
45722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45723         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45724         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45725         (Depends-on): Add unistd, extensions.
45726         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45727         (Includes): Specify <unistd.h> instead of getdomainname.h.
45728         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45729         HAVE_GETDOMAINNAME.
45730         * NEWS: Mention the change.
45731
45732 2008-10-18  Bruno Haible  <bruno@clisp.org>
45733
45734         * modules/dirent: New file.
45735         * m4/dirent_h.m4: New file.
45736         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45737         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45738         * modules/fchdir (Files): Remove lib/dirent.in.h.
45739         (Depends-on): Add dirent.
45740         (Makefile.am): Move rules to modules/dirent.
45741         * doc/posix-headers/dirent.texi: Mention the new module.
45742
45743 2008-10-18  Bruno Haible  <bruno@clisp.org>
45744
45745         Avoid -Wunused-parameter warnings in public gnulib header files.
45746         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45747         macro.
45748         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45749
45750 2008-10-18  Bruno Haible  <bruno@clisp.org>
45751
45752         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45753         * doc/glibc-functions/error.texi: Mention the module 'error'.
45754         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45755         * doc/glibc-functions/getdomainname.texi: Mention the module
45756         'getdomainname'.
45757         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45758         * doc/glibc-functions/getpagesize.texi: Mention the module
45759         'getpagesize'.
45760         * doc/glibc-functions/getusershell.texi: Mention the module
45761         'getusershell'.
45762         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45763         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45764         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45765         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45766         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45767         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45768         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45769         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45770         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45771         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45772         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45773         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45774         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45775         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45776
45777 2008-10-17  Bruno Haible  <bruno@clisp.org>
45778
45779         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45780         HP-UX and IRIX, use -0.0L.
45781         * tests/test-ceill.c (minus_zero): Likewise.
45782         * tests/test-floorl.c (minus_zero): Likewise.
45783         * tests/test-frexpl.c (minus_zero): Likewise.
45784         * tests/test-isnan.c (minus_zerol): Likewise.
45785         * tests/test-isnanl.h (minus_zero): Likewise.
45786         * tests/test-ldexpl.c (minus_zero): Likewise.
45787         * tests/test-roundl.c (minus_zero): Likewise.
45788         * tests/test-signbit.c (minus_zerol): Likewise.
45789         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45790         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45791         * tests/test-truncl.c (minus_zero): Likewise.
45792         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45793         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45794         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45795         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45796
45797 2008-10-17  Bruno Haible  <bruno@clisp.org>
45798
45799         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45800         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45801         that it gets activated only for gcc >= 3.0.
45802         * lib/dirent.in.h: Likewise.
45803         * lib/errno.in.h: Likewise.
45804         * lib/fcntl.in.h: Likewise.
45805         * lib/float.in.h: Likewise.
45806         * lib/iconv.in.h: Likewise.
45807         * lib/inttypes.in.h: Likewise.
45808         * lib/locale.in.h: Likewise.
45809         * lib/math.in.h: Likewise.
45810         * lib/netdb.in.h: Likewise.
45811         * lib/netinet_in.in.h: Likewise.
45812         * lib/search.in.h: Likewise.
45813         * lib/signal.in.h: Likewise.
45814         * lib/spawn.in.h: Likewise.
45815         * lib/stdarg.in.h: Likewise.
45816         * lib/stdint.in.h: Likewise.
45817         * lib/stdio.in.h: Likewise.
45818         * lib/stdlib.in.h: Likewise.
45819         * lib/string.in.h: Likewise.
45820         * lib/strings.in.h: Likewise.
45821         * lib/sys_file.in.h: Likewise.
45822         * lib/sys_ioctl.in.h: Likewise.
45823         * lib/sys_select.in.h: Likewise.
45824         * lib/sys_socket.in.h: Likewise.
45825         * lib/sys_stat.in.h: Likewise.
45826         * lib/sys_time.in.h: Likewise.
45827         * lib/sysexits.in.h: Likewise.
45828         * lib/time.in.h: Likewise.
45829         * lib/unistd.in.h: Likewise.
45830         * lib/wchar.in.h: Likewise.
45831         * lib/wctype.in.h: Likewise.
45832         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45833
45834 2008-10-17  Jim Meyering  <meyering@redhat.com>
45835
45836         ignore-value: don't depend on inline module
45837         * modules/ignore-value (Depends-on): Remove 'inline'.
45838         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45839         Suggestion from Bruno Haible.
45840
45841 2008-10-17  Bruno Haible  <bruno@clisp.org>
45842
45843         New implementation of condition variables for Win32.
45844         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45845         (gl_linked_waitqueue_t): New type.
45846         (gl_cond_t): Use it.
45847         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45848         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45849         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45850         (glthread_cond_init_func, glthread_cond_wait_func,
45851         glthread_cond_timedwait_func, glthread_cond_signal_func,
45852         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45853         Reimplemented on the basis of gl_linked_waitqueue_t.
45854         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45855         gl_waitqueue_t.
45856         (gl_rwlock_t): Update.
45857         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45858
45859 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45860
45861         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45862         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45863
45864 2008-10-17  Jim Meyering  <meyering@redhat.com>
45865
45866         ignore-value: new module
45867         * modules/ignore-value: New file.
45868         * lib/ignore-value.h: New file.
45869         * MODULES.html.sh (Compiler warning management): New section,
45870         just for this module.  More to come.
45871
45872 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45873
45874         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45875         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45876         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45877
45878 2008-10-16  Jim Meyering  <meyering@redhat.com>
45879
45880         openat-die.c: avoid 'no previous prototype' warning
45881         * lib/openat-die.c: Include "openat.h".
45882         Reported by Reuben Thomas <rrt@sc3d.org>.
45883
45884 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45885
45886         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45887         * lib/netdb.in.h: Fix typo.
45888         Reported by Bruno Haible  <bruno@clisp.org>
45889
45890         * lib/netdb.in.h: Include sys/socket.h for platforms without
45891         netdb.h, to get structures like hostent on MinGW.
45892         * modules/netdb (Depends-on): Add sys_socket.
45893
45894 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45895
45896         * modules/netdb, modules/netdb-tests: New file.
45897         * m4/netdb_h.m4: New file.
45898         * lib/netdb.in.h: Add, currently just an empty file pending
45899         definitions.
45900         * tests/test-netdb.c: New file.
45901         * doc/posix-headers/netdb.texi: Mention that we replace it if
45902         needed.
45903         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45904         netdb.
45905
45906 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45907
45908         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45909         with code.
45910
45911 2008-10-13  Bruno Haible  <bruno@clisp.org>
45912
45913         * lib/glthread/cond.c (glthread_cond_wait_func,
45914         glthread_cond_timedwait_func): Add a comment.
45915
45916 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45917
45918         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45919         * tests/test-select.c: Likewise,
45920
45921 2008-10-13  Bruno Haible  <bruno@clisp.org>
45922
45923         * lib/glthread/cond.c (glthread_cond_wait_func,
45924         glthread_cond_timedwait_func): Fix variable name.
45925         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45926
45927 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45928
45929         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45930         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45931         struct sockaddr.sa_len.
45932         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45933
45934 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45935
45936         * build-aux/pmccabe2html: Add css and css_url parameters.
45937
45938 2008-10-12  Bruno Haible  <bruno@clisp.org>
45939
45940         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45941         calling aclx_get.
45942         Reported by Rainer Tammer <tammer@tammer.net>.
45943
45944 2008-10-12  Bruno Haible  <bruno@clisp.org>
45945
45946         Use msvcrt aware primitives for creation/termination of Win32 threads.
45947         * lib/glthread/thread.c: Include <process.h>.
45948         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45949         (wrapper_func): Update signature.
45950         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45951
45952 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45953             Bruno Haible  <bruno@clisp.org>
45954
45955         Provide a Win32 implementation of the 'cond' module.
45956         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45957         * lib/glthread/cond.c (glthread_cond_init_func,
45958         glthread_cond_wait_func, glthread_cond_timedwait_func,
45959         glthread_cond_signal_func, glthread_cond_broadcast_func,
45960         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45961         * modules/cond (Dependencies): Add gettimeofday.
45962
45963 2008-10-11  Bruno Haible  <bruno@clisp.org>
45964
45965         Make sleep work on older versions of mingw.
45966         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45967         only whether it exists.
45968         * doc/posix-functions/sleep.texi: Mention the problem with older
45969         versions of mingw.
45970
45971 2008-10-11  Bruno Haible  <bruno@clisp.org>
45972
45973         New module 'shutdown'.
45974         * modules/shutdown: New file.
45975         * lib/sys_socket.in.h (shutdown): New declaration.
45976         * lib/winsock.c (shutdown): New function.
45977         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45978         GNULIB_SHUTDOWN.
45979         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45980         * doc/posix-functions/shutdown.texi: Document the new module.
45981
45982 2008-10-11  Jim Meyering  <meyering@redhat.com>
45983
45984         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45985
45986 2008-10-11  Bruno Haible  <bruno@clisp.org>
45987
45988         New module 'fclose'.
45989         * modules/fclose: New file.
45990         * lib/stdio.in.h (fclose): New declaration.
45991         * lib/fclose.c: New file.
45992         * m4/fclose.m4: New file.
45993         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45994         REPLACE_FCLOSE.
45995         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45996         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45997         REPLACE_FCLOSE.
45998         * modules/close (Depends-on): fclose.
45999         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
46000
46001 2008-10-11  Bruno Haible  <bruno@clisp.org>
46002
46003         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
46004         set errno and don't call _close.
46005
46006 2008-10-10  Bruno Haible  <bruno@clisp.org>
46007
46008         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
46009         ACL, not afterwards. Fixes test failure on Cygwin.
46010
46011 2008-10-09  Ben Pfaff  <blp@gnu.org>
46012
46013         * build-aux/announce-gen: Fix gnulib version related part of usage
46014         message.  Die with a useful error message if no tarballs are
46015         found.
46016
46017 2008-10-10  Jim Meyering  <meyering@redhat.com>
46018
46019         bootstrap: use git's --depth=N option only if it's supported
46020         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
46021         recognize the --depth option.  Reported by Pádraig Brady.
46022
46023 2008-10-09  Bruno Haible  <bruno@clisp.org>
46024
46025         New module 'ioctl'.
46026         * modules/ioctl: New file.
46027         * lib/sys_socket.in.h (ioctl): Remove declaration.
46028         * lib/winsock.c: Include <sys/ioctl.h>.
46029         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
46030         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46031         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
46032         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
46033         * doc/posix-functions/ioctl.texi: Mention the new module.
46034
46035 2008-10-09  Bruno Haible  <bruno@clisp.org>
46036
46037         New module 'sys_ioctl'.
46038         * lib/sys_ioctl.in.h: New file.
46039         * m4/sys_ioctl_h.m4: New file.
46040         * modules/sys_ioctl: New file.
46041         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
46042
46043 2008-10-09  Bruno Haible  <bruno@clisp.org>
46044
46045         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
46046         * lib/winsock.c: Include <stdarg.h>.
46047         (rpl_ioctl): Change to second argument 'int' and then varargs.
46048
46049 2008-10-09  Bruno Haible  <bruno@clisp.org>
46050
46051         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
46052         when the sys_socket module is present and the system has <winsock2.h>.
46053
46054 2008-10-09  Bruno Haible  <bruno@clisp.org>
46055
46056         * doc/posix-functions/close.texi: Mention module 'close' instead of
46057         module 'sys_socket'.
46058
46059 2008-10-09  Bruno Haible  <bruno@clisp.org>
46060
46061         * doc/glibc-headers/sys_ioctl.texi: New file.
46062         * doc/gnulib.texi: Include it.
46063
46064 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46065             Bruno Haible  <bruno@clisp.org>
46066
46067         Combine the two replacements of 'close'.
46068         * lib/sys_socket.in.h (close): Define to a reminder to include
46069         <unistd.h>.
46070         (_gl_close_fd_maybe_socket): New declaration.
46071         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
46072         * lib/winsock.c (close): Remove undefinition.
46073         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
46074         needed for the gnulib module 'close'.
46075         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
46076         define to an error symbol or to a warning, if suitable.
46077         * lib/close.c: Include <sys/socket.h>.
46078         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
46079         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
46080         UNISTD_H_HAVE_WINSOCK2_H.
46081         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
46082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46083         UNISTD_H_HAVE_WINSOCK2_H.
46084         * modules/sys_socket (Files): Add m4/unistd_h.m4.
46085         (configure.ac): Set a module indicator.
46086         (Makefile.am): Substitute GNULIB_CLOSE.
46087         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
46088         * modules/poll-tests (Depends-on): Add close.
46089         * modules/select-tests (Depends-on): Likewise.
46090
46091 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46092             Bruno Haible  <bruno@clisp.org>
46093
46094         New module 'close'.
46095         * modules/close: New file.
46096         * lib/unistd.in.h (close): Move declaration out of the
46097         FCHDIR_REPLACEMENT scope.
46098         (_gl_unregister_fd): New declaration.
46099         * lib/close.c: New file.
46100         * lib/fchdir.c (rpl_close): Remove function.
46101         * m4/close.m4: New file.
46102         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46103         close.
46104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
46105         REPLACE_CLOSE.
46106         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
46107         REPLACE_CLOSE.
46108         * modules/fchdir (Depends-on): Add close.
46109
46110 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46111             Bruno Haible  <bruno@clisp.org>
46112
46113         * lib/fcntl.in.h (open): Simplify conditionals.
46114         (_gl_register_fd): New declaration.
46115         * lib/fchdir.c (rpl_open): Remove function.
46116         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
46117         also.
46118         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
46119         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46120         open.
46121
46122 2008-10-09  Jim Meyering  <meyering@redhat.com>
46123
46124         GNUmakefile: use the more name-space-friendly "_version"
46125         * top/GNUmakefile (_dummy): Update.
46126         (_version): Rename from "version".
46127
46128 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46129             Bruno Haible  <bruno@clisp.org>
46130
46131         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
46132         rpl_close.
46133         (_gl_register_fd): New function, extracted from rpl_open.
46134         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
46135         (rpl_open, rpl_opendir): Use _gl_register_fd.
46136
46137 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46138
46139         Fix organization of 'open' replacement.
46140         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
46141         (gl_FUNC_OPEN): Use it.
46142         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
46143
46144 2008-10-08  Bruno Haible  <bruno@clisp.org>
46145
46146         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
46147
46148 2008-10-08  Simon Josefsson  <simon@josefsson.org>
46149
46150         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
46151         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
46152         listen).
46153
46154 2008-10-08  Eric Blake  <ebb9@byu.net>
46155
46156         GNUmakefile: add 'make version' target
46157         * top/GNUmakefile (_curr-ver): Split version update rules...
46158         (version): ...into a target.
46159
46160 2008-10-07  Bruno Haible  <bruno@clisp.org>
46161
46162         Use a more portable replacement expression for -0.0L.
46163         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
46164         instead of -0.0L. Fix m4 quotation.
46165
46166         * tests/test-signbit.c: Include <float.h>.
46167         (minus_zero): New variable.
46168         (test_signbitl): Use minus_zero instead of -zero.
46169         * modules/signbit-tests (Depends-on): Add float.
46170
46171         * tests/test-ceill.c: Include <float.h>.
46172         (zero): Remove variable.
46173         (minus_zero): New variable.
46174         (main): Use minus_zero instead of -zero.
46175         * modules/ceill-tests (Depends-on): Add float.
46176
46177         * tests/test-floorl.c: Include <float.h>.
46178         (zero): Remove variable.
46179         (minus_zero): New variable.
46180         (main): Use minus_zero instead of -zero.
46181         * modules/floorl-tests (Depends-on): Add float.
46182
46183         * tests/test-roundl.c: Include <float.h>.
46184         (zero): Remove variable.
46185         (minus_zero): New variable.
46186         (main): Use minus_zero instead of -zero.
46187         * modules/roundl-tests (Depends-on): Add float.
46188
46189         * tests/test-truncl.c: Include <float.h>.
46190         (zero): Remove variable.
46191         (minus_zero): New variable.
46192         (main): Use minus_zero instead of -zero.
46193         * modules/truncl-tests (Depends-on): Add float.
46194
46195         * tests/test-frexpl.c (zero): Remove variable.
46196         (minus_zero): New variable.
46197         (main): Use minus_zero instead of -zero.
46198         * modules/frexpl-tests (Depends-on): Add float.
46199
46200         * tests/test-isnan.c (zerol): Remove variable.
46201         (minus_zerol): New variable.
46202         (test_long_double): Use minus_zerol instead of -zerol.
46203         * modules/isnan-tests (Depends-on): Add float.
46204
46205         * tests/test-isnanl.h (zero): Remove variable.
46206         (minus_zero): New variable.
46207         (main): Use minus_zero instead of -zero.
46208         * modules/isnanl-nolibm-tests (Depends-on): Add float.
46209         * modules/isnanl-tests (Depends-on): Add float.
46210
46211         * tests/test-ldexpl.c (zero): Remove variable.
46212         (minus_zero): New variable.
46213         (main): Use minus_zero instead of -zero.
46214         * modules/ldexpl-tests (Depends-on): Add float.
46215
46216         * tests/test-snprintf-posix.h (zerol): Remove variable.
46217         (minus_zerol): New variable.
46218         (test_function): Use minus_zerol instead of -zerol.
46219         * modules/snprintf-posix-tests (Depends-on): Add float.
46220         * modules/vsnprintf-posix-tests (Depends-on): Add float.
46221
46222         * tests/test-sprintf-posix.h (zerol): Remove variable.
46223         (minus_zerol): New variable.
46224         (test_function): Use minus_zerol instead of -zerol.
46225         * modules/sprintf-posix-tests (Depends-on): Add float.
46226         * modules/vsprintf-posix-tests (Depends-on): Add float.
46227
46228         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
46229         (minus_zerol): New variable.
46230         (test_function): Use minus_zerol instead of -zerol.
46231         * modules/vasnprintf-posix-tests (Depends-on): Add float.
46232
46233         * tests/test-vasprintf-posix.c (zerol): Remove variable.
46234         (minus_zerol): New variable.
46235         (test_function): Use minus_zerol instead of -zerol.
46236         * modules/vasprintf-posix-tests (Depends-on): Add float.
46237
46238 2008-10-07  Simon Josefsson  <simon@josefsson.org>
46239
46240         * MODULES.html.sh (Support for building documentation): Mention
46241         pmccabe2html.  Sort entries.
46242
46243         Add pmccabe2html module, from gnupdf.
46244         * build-aux/pmccabe.css: New file.
46245         * build-aux/pmccabe2html: New file.
46246         * m4/pmccabe2html.m4: New file.
46247         * modules/pmccabe2html: New file.
46248
46249 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
46250
46251         flock: new module
46252         * MODULES.html.sh: Add to list of modules.
46253         * lib/flock.c: flock implementation for Windows and Unix systems
46254         which have fcntl.
46255         * doc/glibc-functions/flock.texi: Update documentation.
46256         * lib/sys_file.in.h: <sys/file.h> header file.
46257         * m4/flock.m4: M4 macros.
46258         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
46259         * modules/flock: flock module.
46260         * modules/flock-tests: flock tests module.
46261         * modules/sys_file: sys/file.h module.
46262         * tests/test-flock.c: test suite for flock.
46263
46264 2008-10-06  Jim Meyering  <meyering@redhat.com>
46265
46266         bootstrap: check for LT_INIT more portably still ;-)
46267         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
46268         Spotted by Bruno Haible.
46269
46270 2008-10-06  Eric Blake  <ebb9@byu.net>
46271
46272         test-signbit: avoid tripping Irix cc bug on -0.0L
46273         * tests/test-signbit.c (minus_zerol): Delete, and replace with
46274         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
46275         entire testsuite consistent and avoids an Irix 6.2 bug.
46276
46277 2008-10-05  Bruno Haible  <bruno@clisp.org>
46278             Jim Meyering  <jim@meyering.net>
46279
46280         Add an option for ignoring EPIPE during close_stdout.
46281         * lib/closeout.h: Include <stdbool.h>.
46282         (close_stdout_set_ignore_EPIPE): New declaration.
46283         * lib/closeout.c: Include <stdbool.h>.
46284         (ignore_EPIPE): New variable.
46285         (close_stdout_set_ignore_EPIPE): New function.
46286         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
46287         * lib/close-stream.c (close_stream): Mention the possible EPIPE
46288         failure.
46289         * modules/closeout (Depends-on): Add stdbool.
46290
46291 2008-10-05  Bruno Haible  <bruno@clisp.org>
46292
46293         * modules/accept: New file.
46294         * modules/bind: New file.
46295         * modules/connect: New file.
46296         * modules/getpeername: New file.
46297         * modules/getsockname: New file.
46298         * modules/getsockopt: New file.
46299         * modules/listen: New file.
46300         * modules/recv: New file.
46301         * modules/recvfrom: New file.
46302         * modules/send: New file.
46303         * modules/sendto: New file.
46304         * modules/setsockopt: New file.
46305         * modules/socket: New file.
46306         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
46307         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46308         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
46309         the particular module is requested. Add a link warning when the
46310         particular module is not requested.
46311         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
46312         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
46313         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
46314         the particular module is requested.
46315         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
46316         gl_SYS_SOCKET_H_DEFAULTS): New macros.
46317         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
46318         * modules/sys_socket (Depends-on): Add link-warning.
46319         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
46320         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
46321         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
46322         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
46323         GL_LINK_WARNING.
46324         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
46325         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
46326         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
46327         * doc/posix-functions/getpeername.texi: Mention the new module
46328         'getpeername'.
46329         * doc/posix-functions/getsockname.texi: Mention the new module
46330         'getsockname'.
46331         * doc/posix-functions/getsockopt.texi: Mention the new module
46332         'getsockopt'.
46333         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
46334         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
46335         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
46336         * doc/posix-functions/send.texi: Mention the new module 'send'.
46337         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
46338         * doc/posix-functions/setsockopt.texi: Mention the new module
46339         'setsockopt'.
46340         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
46341         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
46342         listen, connect, accept.
46343         * modules/select-tests (Depends-on): Likewise.
46344
46345 2008-10-05  Bruno Haible  <bruno@clisp.org>
46346
46347         * lib/winsock.c (strerror): Remove unused #undef.
46348         (rpl_close): Remove unused local variable.
46349
46350         * modules/sys_socket (Depends-on); Add errno.
46351
46352 2008-10-05  Bruno Haible  <bruno@clisp.org>
46353
46354         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
46355         (select): Add a link warning when the 'select' module is not used.
46356         * modules/sys_select (Depends-on): Add link-warning.
46357         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46358         Suggested by Paolo Bonzini.
46359
46360 2008-10-05  Jim Meyering  <meyering@redhat.com>
46361
46362         bootstrap: check for LT_INIT more portably
46363         * build-aux/bootstrap: Avoid using grep -E, since it's not
46364         portable enough.  Suggestion from Bruno Haible.
46365
46366 2008-10-05  Bruno Haible  <bruno@clisp.org>
46367
46368         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46369         as being fixed by gnulib.
46370
46371 2008-10-05  Bruno Haible  <bruno@clisp.org>
46372
46373         * modules/select-tests: New file, mostly copied from
46374         modules/sys_select-tests.
46375         * tests/test-select.c: New file, mostly copied from
46376         tests/test-sys_select.c.
46377         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46378         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46379         (Makefile.am): Remove test_sys_select_LDADD.
46380
46381         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46382         to an undefined symbol, for an error message.
46383         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46384         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46385         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46386         winsock-select.c here.
46387         * modules/sys_select (Files): Remove lib/winsock-select.c.
46388         (Depends-on): Remove alloca.
46389         (Makefile.am): Substitute GNULIB_SELECT.
46390         * modules/select: New file.
46391         * doc/posix-functions/select.texi: Update.
46392
46393 2008-10-05  Bruno Haible  <bruno@clisp.org>
46394
46395         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
46396         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
46397         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
46398         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
46399         getdtablesize.
46400         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46401         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46402
46403 2008-10-05  Bruno Haible  <bruno@clisp.org>
46404
46405         * modules/getdtablesize-tests: New file.
46406         * tests/test-getdtablesize.c: New file.
46407
46408         New module 'getdtablesize'.
46409         * lib/unistd.in.h (getdtablesize): New declaration.
46410         * lib/getdtablesize.c: New file.
46411         * m4/getdtablesize.m4: New file.
46412         * modules/getdtablesize: New file.
46413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46414         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
46415         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
46416         HAVE_GETDTABLESIZE.
46417         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
46418
46419 2008-10-05  Bruno Haible  <bruno@clisp.org>
46420
46421         * modules/sched (Makefile.am): Fix typo.
46422         Reported by Simon Josefsson.
46423
46424 2008-10-05  Jim Meyering  <meyering@redhat.com>
46425
46426         bootstrap: check for LT_INIT, too
46427         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
46428         are deprecated.  Suggestion from Ralf Wildenhues.
46429
46430 2008-10-05  Bruno Haible  <bruno@clisp.org>
46431
46432         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
46433         overriding them by ours.
46434         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
46435
46436 2008-10-05  Jim Meyering  <meyering@redhat.com>
46437
46438         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
46439         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
46440         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
46441
46442 2008-10-04  Bruno Haible  <bruno@clisp.org>
46443
46444         * modules/dup2 (License): Change to LGPLv2+.
46445         * modules/sleep (License): Likewise.
46446         * modules/perror (License): Likewise.
46447         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
46448         Blake.
46449         * modules/signal (License): Likewise.
46450         * modules/sigprocmask (License): Likewise.
46451         * modules/raise (License): Change to LGPLv2+, with approval by Jim
46452         Meyering.
46453
46454 2008-10-04  Bruno Haible  <bruno@clisp.org>
46455
46456         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
46457         Reported by Rainer Tammer <tammer@tammer.net>.
46458
46459 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
46460             Bruno Haible  <bruno@clisp.org>
46461
46462         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
46463         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
46464         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
46465
46466 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
46467
46468         filevercmp: new module
46469         * lib/filevercmp.h: New function filevercmp comparing version strings.
46470         * lib/filevercmp.c: Implementation of filevercmp function.
46471         * modules/filevercmp: Module metadata.
46472         * tests/test-filevercmp.c: Unit test for new module.
46473         * modules/filevercmp-tests: Unit test metadata.
46474         * MODULES.html.sh: Add filevercmp module.
46475
46476 2008-10-03  Bruno Haible  <bruno@clisp.org>
46477
46478         * lib/c-ctype.h: Add comment.
46479         Reported by Jim Meyering.
46480
46481 2008-10-02  Bruno Haible  <bruno@clisp.org>
46482
46483         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46484
46485 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46486
46487         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46488         name of bootstrap.conf accordingly.
46489
46490 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46491
46492         * build-aux/bootstrap: Install git-merge-changelog configuration
46493         items into .gitconfig if needed.
46494
46495 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46496
46497         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46498         git repository, and initialize/update it accordingly.
46499
46500 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46501
46502         * modules/fsync-tests: New file.
46503         * tests/test-fsync.c: New file.
46504
46505         New module 'fsync'.
46506         * lib/fsync.c: New file.
46507         * m4/fsync.m4: New file.
46508         * modules/fsync: New file.
46509         * lib/unistd.in.h (fsync): New declaration.
46510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46511         GNULIB_FSYNC and HAVE_FSYNC.
46512         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46513         * MODULES.html.sh (posix_functions): Add fsync.
46514         * doc/posix-functions/fsync.texi: Mention the new module.
46515
46516 2008-10-02  Jim Meyering  <meyering@redhat.com>
46517
46518         fts.c: sync with similar code from coreutils' remove.c
46519         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46520         Guard also with "#if defined __linux__", since for now at least,
46521         this code is Linux-kernel-specific.
46522
46523 2008-10-02  Jim Meyering  <meyering@redhat.com>
46524
46525         fts: bug fixes
46526         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46527         Include <sys/vfs.h>, not <sys/statfs.h>.
46528
46529         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46530         Include <sys/vfs.h>, not <sys/statfs.h>.
46531
46532 2008-10-01  Bruno Haible  <bruno@clisp.org>
46533
46534         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46535         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46536         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46537         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46538         * doc/posix-functions/posix_spawnp.texi: Likewise.
46539         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46540         whether posix_spawn actually works.
46541         * m4/pipe.m4 (gl_PIPE): Likewise.
46542         * modules/execute (Files): Add m4/posix_spawn.m4.
46543         * modules/pipe (Files): Add m4/posix_spawn.m4.
46544         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46545
46546 2008-10-01  Jim Meyering  <meyering@redhat.com>
46547
46548         remove trailing spaces
46549         * NEWS: Likewise.
46550         * lib/poll.c (poll): Likewise.
46551         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46552         * lib/winsock.c (rpl_close): Likewise.
46553         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46554         * modules/yield: Likewise.
46555         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46556         * tests/test-sys_select.c (connect_to_socket): Likewise.
46557
46558         fts.c: adjust a new interface to be more generally useful
46559         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46560         (fts_build): Adjust caller.
46561
46562 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46563
46564         * modules/cond-tests: New file.
46565         * tests/test-cond.c: New file.
46566
46567 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46568             Bruno Haible  <bruno@clisp.org>
46569
46570         * modules/cond (Dependencies): Add errno, time.
46571         * lib/glthread/cond.h: Include <time.h>.
46572         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46573         across platforms.
46574
46575 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46576             Bruno Haible  <bruno@clisp.org>
46577
46578         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46579
46580 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46581             Bruno Haible  <bruno@clisp.org>
46582
46583         * modules/tls-tests (Depends-on): Add thread, yield.
46584         (configure.ac): Remove all checks.
46585         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46586         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46587         gl_thread_self): Remove definitions. Include glthread/thread.h and
46588         glthread/yield.h instead.
46589         (test_tls): Pass an additional NULL argument to gl_thread_join.
46590
46591 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46592             Bruno Haible  <bruno@clisp.org>
46593
46594         * modules/lock-tests (Depends-on): Add thread, yield.
46595         (configure.ac): Remove all checks.
46596         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46597         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46598         gl_thread_self): Remove definitions. Include glthread/thread.h and
46599         glthread/yield.h instead.
46600         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46601         additional NULL argument to gl_thread_join.
46602
46603 2008-09-30  Bruno Haible  <bruno@clisp.org>
46604
46605         Fix the Win32 implementation of the 'thread' module.
46606         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46607         pointer type.
46608         (gl_thread_self): Invoke gl_thread_self_func.
46609         (gl_thread_self_func): New declaration.
46610         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46611         (do_init_self_key, init_self_key): New functions.
46612         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46613         Remove some fields.
46614         (running_threads, running_lock): Remove variables.
46615         (get_current_thread_handle): New function.
46616         (gl_thread_self_func, wrapper_func, glthread_create_func,
46617         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46618         simplified.
46619
46620 2008-09-30  Bruno Haible  <bruno@clisp.org>
46621
46622         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46623         files.
46624
46625 2008-09-30  Jim Meyering  <meyering@redhat.com>
46626
46627         fts.m4: correct the test for statfs.f_type
46628         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46629         when checking for statfs.f_type.
46630
46631 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46632
46633         tests: avoid some compiler warnings
46634         * tests/test-memchr.c (main): Pass NULL indirectly.
46635         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46636
46637 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
46638
46639         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46640         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46641         exactly specified dayshifts.
46642         (dayshift): New rule.
46643         (rel): Add dayshift.
46644         (relative_time_table) [tomorrow, yesterday, today, now]:
46645         Use tDAY_SHIFT in place of tDAY_UNIT.
46646         * tests/test-getdate.c: Add tests for now-disallowed countable
46647         dayshifts, e.g., "4 yesterday ago".
46648
46649 2008-09-29  Bruno Haible  <bruno@clisp.org>
46650
46651         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46652         * tests/test-posix_spawn1.in.sh: Renamed from
46653         tests/test-posix_spawn.in.sh.
46654         * tests/test-posix_spawn2.c: New file.
46655         * tests/test-posix_spawn2.in.sh: New file.
46656         * modules/posix_spawnp-tests (Files): Update.
46657         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46658
46659 2008-09-29  Bruno Haible  <bruno@clisp.org>
46660
46661         Propagate effects of putenv/setenv/unsetenv to child processes.
46662         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46663         * lib/pipe.c (create_pipe): Likewise.
46664
46665 2008-09-29  Bruno Haible  <bruno@clisp.org>
46666
46667         Enable use of shell scripts as executables in mingw.
46668         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46669         run the program as a shell script.
46670         * lib/pipe.c (create_pipe): Likewise.
46671         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46672         resulting array.
46673
46674 2008-09-29  Eric Blake  <ebb9@byu.net>
46675
46676         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46677
46678 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46679
46680         * doc/posix-functions/accept.texi: Update mingw problems.
46681         * doc/posix-functions/bind.texi: Update mingw problems.
46682         * doc/posix-functions/close.texi: Update mingw problems.
46683         * doc/posix-functions/connect.texi: Update mingw problems.
46684         * doc/posix-functions/getpeername.texi: Update mingw problems.
46685         * doc/posix-functions/getsockname.texi: Update mingw problems.
46686         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46687         * doc/posix-functions/ioctl.texi: Update mingw problems.
46688         * doc/posix-functions/listen.texi: Update mingw problems.
46689         * doc/posix-functions/recv.texi: Update mingw problems.
46690         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46691         * doc/posix-functions/select.texi: Update mingw problems.
46692         * doc/posix-functions/send.texi: Update mingw problems.
46693         * doc/posix-functions/sendto.texi: Update mingw problems.
46694         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46695         * doc/posix-functions/socket.texi: Update mingw problems.
46696
46697 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46698             Bruno Haible  <bruno@clisp.org>
46699
46700         * lib/sys_select.in.h: Include sys/time.h.
46701         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46702         * modules/sys_select: Depend on sys_time.
46703         * tests/test-sys_select.c: Test that sys/select.h defines struct
46704         timeval fully.
46705
46706 2008-09-29  Bruno Haible  <bruno@clisp.org>
46707
46708         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46709         * lib/sys_select.in.h: Likewise.
46710
46711 2008-09-29  Bruno Haible  <bruno@clisp.org>
46712
46713         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46714
46715 2008-09-29  Bruno Haible  <bruno@clisp.org>
46716
46717         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46718         Set LIBSOCKET instead of augmenting LIBS.
46719         * modules/sockets (Link): New section.
46720         * modules/sockets-tests (test_sockets_LDADD): New variable.
46721         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46722         * modules/poll-tests (test_poll_LDADD): New variable.
46723         * NEWS: Document the change.
46724
46725 2008-09-29  Bruno Haible  <bruno@clisp.org>
46726
46727         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46728         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46729         ARPA_INET_H directly.
46730         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46731
46732 2008-09-28  Bruno Haible  <bruno@clisp.org>
46733
46734         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46735         from gl_HEADER_SYS_SOCKET.
46736         (gl_HEADER_SYS_SOCKET): Invoke it.
46737         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46738
46739 2008-09-28  Bruno Haible  <bruno@clisp.org>
46740
46741         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46742         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46743         Needed on OSF/1 4.0.
46744
46745 2008-09-28  Bruno Haible  <bruno@clisp.org>
46746
46747         Override open more carefully.
46748         * lib/open.c (orig_open): New function.
46749         (rpl_open): Use orig_open instead of open.
46750         * lib/fcntl.in.h: Add special invocation convention.
46751         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46752         (gl_FUNC_OPEN): Invoke it.
46753
46754         Override freopen more carefully.
46755         * lib/freopen.c (orig_freopen): New function.
46756         (rpl_freopen): Use orig_freopen instead of freopen.
46757         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46758         (gl_FUNC_FREOPEN): Invoke it.
46759
46760         Override fopen more carefully.
46761         * lib/fopen.c (orig_fopen): New function.
46762         (rpl_fopen): Use orig_fopen instead of fopen.
46763         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46764         (gl_FUNC_FOPEN): Invoke it.
46765         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46766
46767 2008-09-28  Bruno Haible  <bruno@clisp.org>
46768
46769         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46770         SIGPIPE.
46771
46772 2008-09-28  Bruno Haible  <bruno@clisp.org>
46773
46774         * tests/test-sigaction.c (handler, main): Disable the check whether
46775         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46776         glibc systems with LinuxThreads.
46777
46778 2008-09-28  Bruno Haible  <bruno@clisp.org>
46779
46780         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46781
46782         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46783         with AIX xlc.
46784         * lib/fcntl.in.h (open): Likewise.
46785         Reported by Rainer Tammer <tammer@tammer.net>.
46786
46787 2008-09-28  Bruno Haible  <bruno@clisp.org>
46788
46789         * modules/posix_spawnp-tests: New file.
46790         * tests/test-posix_spawn.c: New file.
46791         * tests/test-posix_spawn.in.sh: New file.
46792
46793         New module 'posix_spawnp'.
46794         * modules/posix_spawnp: New file.
46795         * lib/spawnp.c: New file, from GNU libc with modifications.
46796         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46797
46798         New module 'posix_spawn'.
46799         * modules/posix_spawn: New file.
46800         * lib/spawn.c: New file, from GNU libc with modifications.
46801         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46802
46803         New module 'posix_spawnattr_destroy'.
46804         * modules/posix_spawnattr_destroy: New file.
46805         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46806         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46807         module.
46808
46809         New module 'posix_spawnattr_setsigmask'.
46810         * modules/posix_spawnattr_setsigmask: New file.
46811         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46812         modifications.
46813         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46814         new module.
46815
46816         New module 'posix_spawnattr_getsigmask'.
46817         * modules/posix_spawnattr_getsigmask: New file.
46818         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46819         modifications.
46820         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46821         new module.
46822
46823         New module 'posix_spawnattr_setsigdefault'.
46824         * modules/posix_spawnattr_setsigdefault: New file.
46825         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46826         modifications.
46827         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46828         new module.
46829
46830         New module 'posix_spawnattr_getsigdefault'.
46831         * modules/posix_spawnattr_getsigdefault: New file.
46832         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46833         modifications.
46834         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46835         new module.
46836
46837         New module 'posix_spawnattr_setschedpolicy'.
46838         * modules/posix_spawnattr_setschedpolicy: New file.
46839         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46840         modifications.
46841         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46842         new module.
46843
46844         New module 'posix_spawnattr_getschedpolicy'.
46845         * modules/posix_spawnattr_getschedpolicy: New file.
46846         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46847         modifications.
46848         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46849         new module.
46850
46851         New module 'posix_spawnattr_setschedparam'.
46852         * modules/posix_spawnattr_setschedparam: New file.
46853         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46854         modifications.
46855         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46856         new module.
46857
46858         New module 'posix_spawnattr_getschedparam'.
46859         * modules/posix_spawnattr_getschedparam: New file.
46860         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46861         modifications.
46862         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46863         new module.
46864
46865         New module 'posix_spawnattr_setpgroup'.
46866         * modules/posix_spawnattr_setpgroup: New file.
46867         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46868         modifications.
46869         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46870         module.
46871
46872         New module 'posix_spawnattr_getpgroup'.
46873         * modules/posix_spawnattr_getpgroup: New file.
46874         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46875         modifications.
46876         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46877         module.
46878
46879         New module 'posix_spawnattr_setflags'.
46880         * modules/posix_spawnattr_setflags: New file.
46881         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46882         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46883         module.
46884
46885         New module 'posix_spawnattr_getflags'.
46886         * modules/posix_spawnattr_getflags: New file.
46887         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46888         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46889         module.
46890
46891         New module 'posix_spawnattr_init'.
46892         * modules/posix_spawnattr_init: New file.
46893         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46894         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46895         module.
46896
46897         New module 'posix_spawn_file_actions_destroy'.
46898         * modules/posix_spawn_file_actions_destroy: New file.
46899         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46900         modifications.
46901         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46902         the new module.
46903
46904         New module 'posix_spawn_file_actions_addopen'.
46905         * modules/posix_spawn_file_actions_addopen: New file.
46906         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46907         modifications.
46908         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46909         the new module.
46910
46911         New module 'posix_spawn_file_actions_adddup2'.
46912         * modules/posix_spawn_file_actions_adddup2: New file.
46913         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46914         modifications.
46915         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46916         the new module.
46917
46918         New module 'posix_spawn_file_actions_addclose'.
46919         * modules/posix_spawn_file_actions_addclose: New file.
46920         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46921         modifications.
46922         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46923         the new module.
46924
46925         New module 'posix_spawn_file_actions_init'.
46926         * modules/posix_spawn_file_actions_init: New file.
46927         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46928         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46929         new module.
46930
46931         New module 'posix_spawn-internal'.
46932         * modules/posix_spawn-internal: New file.
46933         * lib/spawn_int.h: New file, from GNU libc with modifications.
46934         * lib/spawni.c: New file, from GNU libc with modifications.
46935         * m4/posix_spawn.m4: New file.
46936
46937         New module 'spawn'.
46938         * modules/spawn: New file.
46939         * lib/spawn.in.h: New file, from GNU libc with modifications.
46940         * m4/spawn_h.m4: New file.
46941         * doc/posix-headers/spawn.texi: Mention the new module.
46942
46943 2008-09-28  Bruno Haible  <bruno@clisp.org>
46944
46945         * modules/sched-tests: New file.
46946         * tests/test-sched.c: New file.
46947
46948         New module 'sched'.
46949         * modules/sched: New file.
46950         * lib/sched.in.h: New file.
46951         * m4/sched_h.m4: New file.
46952         * doc/posix-headers/sched.texi: Mention the new module.
46953
46954 2008-09-27  Eric Blake  <ebb9@byu.net>
46955
46956         Fix previous patch, and tweak references to $0.
46957         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46958         (func_version, func_gnulib_dir): Don't call this program
46959         gnulib-tool.
46960         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46961         with using $0 in function.
46962         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46963         (func_fatal_error): Reuse the name the user invoked us with.
46964
46965 2008-09-27  Bruno Haible  <bruno@clisp.org>
46966
46967         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46968         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46969         (gl_ICONV_H): Not here.
46970         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46971         instead of assigning ICONV_H directly.
46972
46973         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46974         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46975         WCHAR_H directly.
46976
46977 2008-09-27  Bruno Haible  <bruno@clisp.org>
46978
46979         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46980         * modules/arpa_inet (Depends-on): Add link-warning.
46981         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46982         * modules/unistd (Makefile.am): Likewise.
46983
46984 2008-09-26  Bruno Haible  <bruno@clisp.org>
46985
46986         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46987         variables.
46988         (func_version): Essentially copied from gnulib-tool.
46989         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46990         func_readlink): Copied from gnulib-tool.
46991
46992 2008-09-26  Bruno Haible  <bruno@clisp.org>
46993
46994         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46995         invoking git-version-gen.
46996
46997 2008-09-26  Bruno Haible  <bruno@clisp.org>
46998
46999         * posix-modules: Update to directory names changed on 2008-01-19.
47000         Remove commas in output before splitting into words. No more need to
47001         avoid 'ftruncate' since 2007-02-19.
47002
47003 2008-09-26  Bruno Haible  <bruno@clisp.org>
47004
47005         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
47006
47007 2008-09-26  Bruno Haible  <bruno@clisp.org>
47008
47009         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
47010         * modules/fwriteerror (Depends-on): Add errno.
47011
47012 2008-09-26  Bruno Haible  <bruno@clisp.org>
47013
47014         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
47015         * tests/test-vc-list-files-cvs.sh: Likewise.
47016
47017 2008-09-26  Bruno Haible  <bruno@clisp.org>
47018
47019         * doc/posix-headers/sys_resource.texi: Reorder items.
47020
47021 2008-09-26  Jim Meyering  <meyering@redhat.com>
47022
47023         fts: tweak inode comparison function
47024         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
47025         inode numbers, as documented.
47026
47027         fts: sort dirent entries on inode number before traversing
47028         This avoids a quadratic, seek-related performance penalty when
47029         operating on a directory containing many entries (measurable at 10k;
47030         3.5 hours at 2 million entries with a cold cache) on certain types
47031         of file systems, including ext3 and ext4, but not tmpfs.
47032         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
47033         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
47034         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
47035         (fs_handles_readdir_ordered_dirents_efficiently): New function.
47036         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
47037         (fts_build): Set the stat.st_ino member from D_INO.
47038         If it is likely to be useful, sort dirent entries on inode number.
47039
47040         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
47041         and the struct statfs.f_type member.
47042         * modules/fts (Depends-on): Add d-ino.
47043
47044 2008-09-26  Bruno Haible  <bruno@clisp.org>
47045
47046         * modules/sigpipe-die (Depends-on): Add sigpipe.
47047
47048         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
47049         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
47050         and GNULIB_STDIO_H_SIGPIPE are set.
47051         * lib/stdio-write.c: New file.
47052         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
47053         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47054         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47055         REPLACE_STDIO_WRITE_FUNCS.
47056         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
47057         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47058         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47059         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47060         * modules/stdio (Files): Add lib/stdio-write.c.
47061         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
47062         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47063         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47064         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47065         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
47066         REPLACE_FPRINTF_POSIX.
47067         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
47068         REPLACE_PRINTF_POSIX.
47069         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
47070         REPLACE_VFPRINTF_POSIX.
47071         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
47072         REPLACE_VPRINTF_POSIX.
47073         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
47074         SIGPIPE issue.
47075         * doc/posix-functions/fputc.texi: Likewise.
47076         * doc/posix-functions/fputs.texi: Likewise.
47077         * doc/posix-functions/fwrite.texi: Likewise.
47078         * doc/posix-functions/printf.texi: Likewise.
47079         * doc/posix-functions/putc.texi: Likewise.
47080         * doc/posix-functions/putchar.texi: Likewise.
47081         * doc/posix-functions/puts.texi: Likewise.
47082         * doc/posix-functions/vfprintf.texi: Likewise.
47083         * doc/posix-functions/vprintf.texi: Likewise.
47084
47085         * modules/safe-write (Depends-on): Add write.
47086
47087         * modules/sigpipe-tests: New file.
47088         * tests/test-sigpipe.c: New file.
47089         * tests/test-sigpipe.sh: New file.
47090
47091         * modules/write: New file.
47092         * lib/unistd.in.h: Include <sys/types.h>.
47093         (write): New declaration.
47094         * lib/write.c: New file.
47095         * m4/write.m4: New file.
47096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47097         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
47098         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
47099         GNULIB_WRITE, REPLACE_WRITE.
47100         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
47101         and the SIGPIPE issue.
47102
47103         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
47104         (raise): New declaration.
47105         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
47106         (ext_signal): New function.
47107         (rpl_raise): New function.
47108         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47109         GNULIB_SIGNAL_H_SIGPIPE.
47110         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
47111         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
47112
47113         * modules/sigpipe: New file.
47114         * m4/sigpipe.m4: New file.
47115
47116 2008-09-25  Derek Price  <derek@ximbiot.com>
47117             Bruno Haible  <bruno@clisp.org>
47118
47119         * gnulib-tool (func_import): Report all license incompatibilities, not
47120         just the first one.
47121
47122 2008-09-25  Bruno Haible  <bruno@clisp.org>
47123
47124         * gnulib-tool (func_import): When computing the edits, consider not
47125         only the Makefile.ams that exist but also those that will be generated.
47126
47127 2008-09-25  Simon Josefsson  <simon@josefsson.org>
47128
47129         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
47130         fixes gnulib-tool --test warning about duplicate dependency.
47131
47132 2008-09-25  Bruno Haible  <bruno@clisp.org>
47133
47134         * gnulib-tool: Don't ask the user to perform edits in the generated
47135         Makefile.ams.
47136         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
47137         apply to the Makefile.am being generated.
47138         (func_emit_tests_Makefile_am): Execute edits that apply to the
47139         Makefile.am being generated.
47140         (func_import): Setup list of Makefile.am edits before emitting the
47141         Makefile.ams, not at the end.
47142         (func_create_testdir): Update.
47143         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47144
47145 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47146
47147         * gnulib-tool (func_import): Store the --tests-base option in the
47148         comment in gnulib-cache.m4.
47149
47150 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
47151
47152         * NEWS: Document increased portability that sys_select now provides.
47153
47154         * lib/sys_select.in.h: Install select wrapper.
47155         * lib/sys_socket.in.h: Use more descriptive name when there is no
47156         select wrapper.
47157         * lib/winsock-select.c: New.
47158         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
47159         Require gl_HEADER_SYS_SOCKET.
47160         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
47161         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
47162         * tests/test-sys_select.c: Add functional tests.
47163
47164 2008-09-24  Eric Blake  <ebb9@byu.net>
47165
47166         open, fopen: close fd leak in last patch
47167         * lib/open.c (rpl_open): Close fd before returning error.
47168         * lib/fopen.c (rpl_fopen): Close fd before returning error.
47169         * doc/posix-functions/open.texi (open): Document that Irix also
47170         has the bug.
47171         * doc/posix-functions/fopen.texi (fopen): Likewise.
47172         Reported by Paolo Bonzini.
47173
47174 2008-09-24  Bruno Haible  <bruno@clisp.org>
47175
47176         Ensure that a filename ending in a slash cannot be used to access a
47177         non-directory.
47178         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
47179         to check whether it's really a directory.
47180         * lib/fopen.c: Include fcntl.h, unistd.h.
47181         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
47182         and fdopen().
47183         * modules/fopen (Depends-on): Add unistd.
47184         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
47185         * tests/test-fopen.c (main): Likewise.
47186         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
47187         * doc/posix-functions/fopen.texi: Likewise.
47188         Reported by Eric Blake.
47189
47190 2008-09-23  Eric Blake  <ebb9@byu.net>
47191
47192         c-stack: avoid compiler optimizations when provoking overflow
47193         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
47194         recursion harder to optimize, to ensure a stack overflow occurs.
47195         * tests/test-c-stack.c (recurse): Likewise.
47196         Borrowed from libsigsegv.
47197
47198         c-stack: work around Irix sigaltstack bug
47199         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
47200         whether sigaltstack uses wrong end of stack_t (copied in part from
47201         libsigsegv).
47202         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
47203         Irix bug, without requiring an over-allocation.
47204         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
47205         bug.
47206
47207         fopen: document mingw bug on directories
47208         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
47209         not allowing a stream visiting a directory, even though reading
47210         from such a stream is not portable.
47211
47212 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47213
47214         * lib/poll.c: Rewrite.
47215         * modules/poll: Depend on alloca.
47216
47217 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47218
47219         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
47220         instead define prototypes for a full set of wrappers.  Ensure
47221         that Cygwin does not use the compatibility code, which is only
47222         for MinGW.
47223         * lib/winsock.c: New.
47224         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
47225         * modules/sys_socket: Add lib/winsock.c.
47226
47227         * modules/poll-tests: Add errno and perror.
47228         * tests/test-poll.c: Use ioctl, not ioctlsocket.
47229
47230 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47231
47232         * tests/test-poll.c: Downgrade minimum needed Winsock version.
47233
47234 2008-09-23  Bruno Haible  <bruno@clisp.org>
47235
47236         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
47237         * doc/glibc-functions/*: Likewise.
47238
47239 2008-09-23  Simon Josefsson  <simon@josefsson.org>
47240
47241         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
47242         success.
47243
47244 2008-09-22  Eric Blake  <ebb9@byu.net>
47245             Bruno Haible  <bruno@clisp.org>
47246
47247         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
47248         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
47249         supply %A but mishandle pseudo-NaN.
47250         Reported by Simon Josefsson.
47251
47252 2008-09-21  Bruno Haible  <bruno@clisp.org>
47253
47254         * tests/test-lock.c (main): Tweak skip message.
47255         * tests/test-tls.c (main): Likewise.
47256
47257 2008-09-21  Bruno Haible  <bruno@clisp.org>
47258
47259         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
47260         whether 'struct sigaction' has sa_sigaction here...
47261         (gl_PREREQ_SIG_HANDLER_H): ... not here.
47262         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
47263
47264 2008-09-21  Bruno Haible  <bruno@clisp.org>
47265
47266         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
47267         section.
47268         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
47269         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
47270         the new section.
47271         (Support for obsolete systems lacking POSIX:2001): New section.
47272         (String handling <string.h>): Move strdup to the new section.
47273         Suggested by Simon Josefsson and Paolo Bonzini.
47274
47275 2008-09-21  Bruno Haible  <bruno@clisp.org>
47276
47277         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
47278         exponents in %e and %g results on 'long double'. Needed for mingw's
47279         improved *printf functions.
47280         * tests/test-vasprintf-posix.c (test_function): Likewise.
47281         * tests/test-snprintf-posix.h (test_function): Likewise.
47282         * tests/test-sprintf-posix.h (test_function): Likewise.
47283         Reported by Eric Blake.
47284
47285 2008-09-21  Bruno Haible  <bruno@clisp.org>
47286
47287         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
47288         * tests/test-sprintf-posix.h (test_function): Likewise.
47289
47290 2008-09-21  Bruno Haible  <bruno@clisp.org>
47291
47292         * modules/getpass (Depends-on): Add strdup-posix.
47293
47294         New module 'strdup-posix'.
47295         * modules/strdup-posix: New file.
47296         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
47297         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
47298         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47299         REPLACE_STRDUP.
47300         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
47301         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
47302         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47303         strdup-posix.
47304
47305         * modules/strdup (Depends-on): Remove malloc-posix.
47306
47307 2008-09-20  Bruno Haible  <bruno@clisp.org>
47308
47309         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
47310         Wildenhues.
47311
47312 2008-09-20  Bruno Haible  <bruno@clisp.org>
47313
47314         Ensure that wint_t gets defined on IRIX 5.3.
47315         * lib/wchar.in.h (wint_t): Define if not defined by the system.
47316         * lib/wctype.in.h (wint_t): Likewise.
47317         (__wctype_wint_t): Remove type.
47318         (isw*): Use wint_t instead of __wctype_wint_t.
47319         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
47320         * modules/wchar (Files): Add m4/wint_t.m4.
47321         (Makefile.am): Substitute HAVE_WINT_T.
47322         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
47323         * tests/test-wctype.c: Check that wint_t is defined.
47324         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
47325         * doc/posix-headers/wctype.texi: Likewise.
47326         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47327
47328 2008-09-18  Bruno Haible  <bruno@clisp.org>
47329
47330         * gnulib-tool (func_exit): Update comment.
47331
47332 2008-09-18  Simon Josefsson  <simon@josefsson.org>
47333
47334         * modules/getaddrinfo (Depends-on): Remove strdup, this module
47335         assumes strdup exists and does not depend on strdup to return
47336         ENOMEM on out of memory conditions.
47337
47338 2008-09-18  Bruno Haible  <bruno@clisp.org>
47339
47340         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
47341         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
47342         digits for the exponent.
47343
47344 2008-09-18  Jim Meyering  <meyering@redhat.com>
47345             Bruno Haible  <bruno@clisp.org>
47346
47347         * lib/vasnprintf.c (decimal_point_char): Define also if
47348         NEED_PRINTF_INFINITE_LONG_DOUBLE.
47349
47350 2008-09-16  Bruno Haible  <bruno@clisp.org>
47351         and Eric Blake  <ebb9@byu.net>
47352
47353         vasnprintf: support Irix 5.3
47354         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
47355         that mishandle long double infinity.
47356         Reported by Tom G. Christensen.
47357
47358 2008-09-16  Bruno Haible  <bruno@clisp.org>
47359
47360         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47361         Solaris 9.
47362         * doc/glibc-functions/alphasort.texi: Likewise.
47363         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47364
47365 2008-09-16  Jim Meyering  <meyering@redhat.com>
47366
47367         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47368         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47369         a umask modification leak out of a subshell.  Otherwise, the
47370         opensolaris /bin/sh would be accepted and thus cause unwarranted
47371         failures in the coreutils test suite.
47372
47373 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47374
47375         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47376         to succeed.
47377
47378 2008-09-16  Jim Meyering  <meyering@redhat.com>
47379
47380         avoid spurious test failure when library is built without ACL support
47381         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47382         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47383         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47384         * tests/test-copy-acl.sh: Likewise.
47385
47386 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47387
47388         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47389         based on character occurrence counts.
47390
47391 2008-09-15  Eric Blake  <ebb9@byu.net>
47392
47393         tests: avoid some compiler warnings
47394         * tests/test-memchr.c (main): Pass NULL indirectly.
47395         * tests/test-closein.c (main): Avoid unused variable.
47396
47397 2008-09-15  Bruno Haible  <bruno@clisp.org>
47398
47399         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
47400         are missing on OpenBSD 4.0 individually.
47401         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47402
47403 2008-09-15  Bruno Haible  <bruno@clisp.org>
47404
47405         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
47406         * doc/posix-functions/strerror.texi: Mention also Cygwin.
47407         * doc/posix-functions/perror.texi: Likewise.
47408         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
47409         is missing.
47410         Reported by Eric Blake.
47411
47412         * lib/errno.in.h: Use replacement values >= 2000.
47413         Reported by Eric Blake.
47414
47415 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47416
47417         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
47418         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
47419         limit.
47420         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
47421         compareseq was aborted.
47422
47423 2008-09-14  Bruno Haible  <bruno@clisp.org>
47424
47425         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
47426         yvec_edit_count.
47427         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
47428         (fstrcmp_bounded): Simplify result computation accordingly.
47429
47430 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47431
47432         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
47433         (fstrcmp): Define in terms of fstrcmp_bounded.
47434         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
47435         lower_bound argument.
47436         Return quickly if the result is certainly < lower_bound.
47437         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
47438
47439 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47440
47441         * lib/diffseq.h (EARLY_ABORT): New macro.
47442         (compareseq): Change return type to bool. Return true when EARLY_ABORT
47443         evaluates to true.
47444
47445 2008-09-14  Bruno Haible  <bruno@clisp.org>
47446
47447         * modules/perror-tests: New file.
47448         * tests/test-perror.sh: New file.
47449         * tests/test-perror.c: New file.
47450
47451         New module 'perror'.
47452         * lib/stdio.in.h (perror): New declaration.
47453         * lib/perror.c: New file.
47454         * m4/perror.m4: New file.
47455         * modules/perror: New file.
47456         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
47457         * doc/posix-functions/perror.texi: Mention the perror module.
47458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
47459         REPLACE_PERROR.
47460         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
47461         REPLACE_PERROR.
47462
47463 2008-09-14  Bruno Haible  <bruno@clisp.org>
47464
47465         * modules/stdio (Makefile.am): Reorder to match the order in
47466         lib/stdio.in.h.
47467         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47468
47469 2008-09-13  Bruno Haible  <bruno@clisp.org>
47470
47471         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47472
47473 2008-09-13  Bruno Haible  <bruno@clisp.org>
47474
47475         Extend strerror to cover the added errno values.
47476         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47477         (rpl_strerror): Provide error messages for the added errno values and
47478         for the WSA* values.
47479         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47480         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47481         strerror.
47482         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47483         * modules/strerror (Depends-on): Add errno.
47484         * doc/posix-functions/strerror.texi: Document the change.
47485         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47486         and EOVERFLOW.
47487
47488 2008-09-13  Bruno Haible  <bruno@clisp.org>
47489
47490         * modules/EOVERFLOW: Remove file.
47491         * m4/eoverflow.m4: Remove file.
47492         * modules/EOVERFLOW-tests: Remove file.
47493         * tests/test-EOVERFLOW.c: Remove file.
47494         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47495         * modules/ftell (Depends-on): Likewise.
47496         * modules/getdelim (Depends-on): Likewise.
47497         * modules/getugroups (Depends-on): Likewise.
47498         * modules/poll (Depends-on): Likewise.
47499         * modules/snprintf (Depends-on): Likewise.
47500         * modules/sprintf-posix (Depends-on): Likewise.
47501         * modules/vasnprintf (Depends-on): Likewise.
47502         * modules/vasprintf (Depends-on): Likewise.
47503         * modules/vfprintf-posix (Depends-on): Likewise.
47504         * modules/vsnprintf (Depends-on): Likewise.
47505         * modules/vsprintf-posix (Depends-on): Likewise.
47506         * modules/xvasprintf (Depends-on): Likewise.
47507         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47508         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47509         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47510         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47511         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47512         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47513         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47514         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47515         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47516         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47517         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47518         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47519         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47520         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47521         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47522         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47523         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47524         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47525         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47526         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47527         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47528         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47529         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47530         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47531         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47532         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47533         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47534         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47535         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47536         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47537         * MODULES.html.sh: Remove EOVERFLOW.
47538         * NEWS: Mention the change.
47539
47540 2008-09-13  Bruno Haible  <bruno@clisp.org>
47541
47542         * modules/errno-tests: New file.
47543         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47544
47545         * lib/errno.in.h: New file.
47546         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47547         * modules/errno: New file.
47548         * doc/posix-headers/errno.texi: Update documentation.
47549         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47550
47551 2008-09-13  Bruno Haible  <bruno@clisp.org>
47552
47553         * tests/test-poll.c: Use #if for native Windows, rather than testing
47554         __MSVCRT__.
47555
47556 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47557             Bruno Haible  <bruno@clisp.org>
47558
47559         * lib/glob.c: Don't include <pwd.h> on native Windows.
47560         (WINDOWS32): New macro.
47561         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47562
47563 2008-09-13  Bruno Haible  <bruno@clisp.org>
47564
47565         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47566         (ETIMEDOUT): Remove macro.
47567         (glthread_cond_timedwait_multithreaded): New declaration.
47568         (glthread_cond_timedwait): Use it.
47569         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47570         (glthread_cond_timedwait_multithreaded): New function.
47571
47572 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47573
47574         * modules/poll-tests: Do not check for io.h.
47575         * tests/test-poll.c: Check for __MSVCRT__ instead.
47576
47577 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47578
47579         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47580         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47581         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47582
47583 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47584
47585         * modules/poll-tests: New.
47586         * tests/test-poll.c: New.
47587
47588 2008-09-12  Eric Blake  <ebb9@byu.net>
47589
47590         frexp: test for NetBSD failure on -0.0
47591         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47592         not all, bugs from NetBSD 3.0 have been fixed.
47593         * doc/posix-functions/frexp.texi (frexp): Document bug.
47594         Reported by Thomas Klausner.
47595
47596         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47597         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47598         literal -0.0.
47599         Reported by Jonathan C. Patschke <jp@centtech.com>.
47600
47601 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47602
47603         * lib/glthread/cond.h: Use dummy implementation also if
47604         USE_WIN32_THREADS.
47605
47606 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47607
47608         * modules/fnmatch-posix (License): Change to LGPLv2+.
47609         * modules/fnmatch-gnu (License): Likewise.
47610
47611 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47612
47613         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47614
47615 2008-09-11  Jim Meyering  <meyering@redhat.com>
47616
47617         * users.txt: Add gtk-vnc.
47618
47619 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47620
47621         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47622         rotate amounts.
47623
47624         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47625         required for 16-bit and 8-bit rotates.
47626         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47627         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47628         UINT8_MAX instead of hard-coded constants.
47629         Suggested by Paul Eggert.
47630
47631 2008-09-07  Bruno Haible  <bruno@clisp.org>
47632
47633         * tests/test-striconveh.c (main): Check behaviour when converting from
47634         UTF-7.
47635
47636         Make striconveh work better with stateful encodings.
47637         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47638         that iconv does not increment the inptr when returning -1/EINVAL.
47639
47640 2008-09-07  Bruno Haible  <bruno@clisp.org>
47641
47642         * build-aux/config.rpath: Update according to libtool-2.2.6.
47643         * build-aux/config.libpath: Likewise.
47644
47645 2008-09-06  Bruno Haible  <bruno@clisp.org>
47646
47647         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47648         * lib/freadptr.c (freadptr): Likewise.
47649         * lib/freadseek.c (freadptrinc): Likewise.
47650         Reported by Simon Josefsson.
47651
47652 2008-09-06  Bruno Haible  <bruno@clisp.org>
47653
47654         * modules/freadptr (License): Change to LGPLv2+.
47655         * modules/freadseek (License): Likewise.
47656         Suggested by Eric Blake.
47657
47658         * modules/memchr2 (License): Change to LGPLv2+.
47659         Approved by Eric Blake.
47660
47661 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47662             Bruno Haible  <bruno@clisp.org>
47663
47664         Make gnulib-tool work with native 'sed' on AIX.
47665         * gnulib-tool (sed_noop): New variable.
47666         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47667         func_add_or_update, func_create_testdir): Use it to initialize sed
47668         script variables.
47669         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47670
47671 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47672             Bruno Haible  <bruno@clisp.org>
47673
47674         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47675         also works after #include directives.
47676
47677 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
47678
47679         getdate.y: reject an out-of-range timezone value
47680         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47681         the range [-24...+24].  When specified with only one or two digits,
47682         * tests/test-getdate.c: Tests for the fix.
47683         * doc/getdate.texi: Document this change.
47684
47685 2008-09-03  Bruno Haible  <bruno@clisp.org>
47686
47687         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47688
47689 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47690
47691         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47692         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47693         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47694         Blake <ebb9@byu.net>.
47695
47696         * tests/test-bitrotate.c: Add more test vectors.
47697
47698 2008-09-02  Eric Blake  <ebb9@byu.net>
47699
47700         vasnprintf-posix: handle large precision via %.*d
47701         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47702         when handling it ourselves.
47703         * tests/test-vasnprintf-posix.c (test_function): Add test.
47704         * tests/test-snprintf-posix.h (test_function): Likewise.
47705         * tests/test-sprintf-posix.h (test_function): Likewise.
47706         * tests/test-vasprintf-posix.c (test_function): Likewise.
47707         Reported by Alain Guibert.
47708
47709 2008-09-01  Eric Blake  <ebb9@byu.net>
47710
47711         c-stack: make configure-time check more robust
47712         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47713         successful sigaction call.
47714         Reported by Tom G. Christensen.
47715
47716 2008-09-01  Bruno Haible  <bruno@clisp.org>
47717
47718         New module 'findprog-lgpl'.
47719         * modules/findprog-lgpl: New file.
47720         * lib/findprog-lgpl.c: New file.
47721         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47722         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47723         to decide whether to use strdup or xstrdup, concatenated_filename or
47724         xconcatenated_filename.
47725
47726 2008-09-01  Bruno Haible  <bruno@clisp.org>
47727
47728         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47729         'xconcat-filename' (GPL).
47730         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47731         (License): Change to LGPLv2+.
47732         * modules/xconcat-filename: New file.
47733         * lib/concat-filename.h (concatenated_filename): Change specification.
47734         (xconcatenated_filename): New declaration.
47735         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47736         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47737         memory situations.
47738         * lib/xconcat-filename.c: New file.
47739         * NEWS: Mention the change.
47740         * lib/findprog.c: Include concat-filename.h, not filename.h.
47741         (find_in_path): Use xconcatenated_filename instead of
47742         concatenated_filename.
47743         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47744         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47745         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47746         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47747         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47748         instead of concatenated_filename.
47749         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47750         (execute_java_class): Use xconcatenated_filename instead of
47751         concatenated_filename.
47752         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47753         * modules/javacomp (Depends-on): Likewise.
47754         * modules/javaexec (Depends-on): Likewise.
47755
47756 2008-09-01  Bruno Haible  <bruno@clisp.org>
47757
47758         Split module 'filename' into 'filename' and 'concat-filename'.
47759         * modules/filename: Keep only lib/filename.h.
47760         (License): Change to LGPLv2+.
47761         * modules/concat-filename: New file, extracted from modules/filename.
47762         * lib/filename.h (concatenated_filename): Remove declaration.
47763         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47764         * lib/concat-filename.c: Include concat-filename.h.
47765         * NEWS: Mention the change.
47766
47767 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47768
47769         * lib/bitrotate.h (rotl8, rotr8): Add.
47770
47771         * modules/bitrotate (configure.ac): Need
47772         AC_REQUIRE([AC_C_INLINE]).
47773         (Description): Mention stdint.h.  Reported by Bruno Haible
47774         <bruno@clisp.org>.
47775
47776         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47777         Paolo Bonzini <bonzini@gnu.org>.
47778
47779 2008-08-31  Bruno Haible  <bruno@clisp.org>
47780
47781         Assume Solaris specific bi-arch conventions on Solaris systems.
47782         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47783         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47784         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47785         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47786         like acl_libdirstem.
47787         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47788         acl_libdirstem.
47789         * NEWS: Mention the change.
47790         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47791
47792 2008-08-31  Jim Meyering  <meyering@redhat.com>
47793
47794         * lib/strftime.h: Add comments describing the two added arguments.
47795
47796         remove duplicate #include directives
47797         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47798         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47799
47800 2008-08-31  Bruno Haible  <bruno@clisp.org>
47801
47802         New module 'sigpipe-die'.
47803         * modules/sigpipe-die: New file.
47804         * lib/sigpipe-die.h: New file.
47805         * lib/sigpipe-die.c: New file.
47806         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47807
47808 2008-08-31  Bruno Haible  <bruno@clisp.org>
47809
47810         Don't override previously installed signal handlers.
47811         * lib/fatal-signal.c (saved_sigactions): New variable.
47812         (uninstall_handlers): Reset the signal to the saved handler, not
47813         to SIG_DFL (except when ignored).
47814         (install_handlers): Save the previous handlers.
47815
47816 2008-08-30  Bruno Haible  <bruno@clisp.org>
47817
47818         * gnulib-tool (func_reset_sigpipe): New function.
47819         (func_get_automake_snippet, func_modules_transitive_closure,
47820         func_import): Invoke it before a join command that reads from stdin,
47821         to avoid "echo: write error: Broken pipe" error messages on stderr.
47822         Reported by Sam Steingold <sds@gnu.org>.
47823
47824 2008-08-30  Bruno Haible  <bruno@clisp.org>
47825
47826         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47827         Code copied from m4/open.m4.
47828         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47829         access and the filename ends in a slash. Code copied from lib/open.c.
47830         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47831         * tests/test-fopen.c (main): Check against bug with trailing slash.
47832
47833 2008-08-29  Bruno Haible  <bruno@clisp.org>
47834
47835         Avoid some "gcc -pedantic" warnings.
47836         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47837         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47838         * lib/dirent.in.h: Likewise.
47839         * lib/fcntl.in.h: Likewise.
47840         * lib/float.in.h: Likewise.
47841         * lib/iconv.in.h: Likewise.
47842         * lib/inttypes.in.h: Likewise.
47843         * lib/locale.in.h: Likewise.
47844         * lib/math.in.h: Likewise.
47845         * lib/netinet_in.in.h: Likewise.
47846         * lib/search.in.h: Likewise.
47847         * lib/signal.in.h: Likewise.
47848         * lib/stdarg.in.h: Likewise.
47849         * lib/stdint.in.h: Likewise.
47850         * lib/stdio.in.h: Likewise.
47851         * lib/stdlib.in.h: Likewise.
47852         * lib/string.in.h: Likewise.
47853         * lib/strings.in.h: Likewise.
47854         * lib/sys_select.in.h: Likewise.
47855         * lib/sys_socket.in.h: Likewise.
47856         * lib/sys_stat.in.h: Likewise.
47857         * lib/sys_time.in.h: Likewise.
47858         * lib/sysexits.in.h: Likewise.
47859         * lib/time.in.h: Likewise.
47860         * lib/unistd.in.h: Likewise.
47861         * lib/wchar.in.h: Likewise.
47862         * lib/wctype.in.h: Likewise.
47863         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47864         * modules/fchdir (Makefile.am): Likewise.
47865         * modules/fcntl (Makefile.am): Likewise.
47866         * modules/float (Makefile.am): Likewise.
47867         * modules/iconv_open (Makefile.am): Likewise.
47868         * modules/inttypes (Makefile.am): Likewise.
47869         * modules/locale (Makefile.am): Likewise.
47870         * modules/math (Makefile.am): Likewise.
47871         * modules/netinet_in (Makefile.am): Likewise.
47872         * modules/search (Makefile.am): Likewise.
47873         * modules/signal (Makefile.am): Likewise.
47874         * modules/stdarg (Makefile.am): Likewise.
47875         * modules/stdint (Makefile.am): Likewise.
47876         * modules/stdio (Makefile.am): Likewise.
47877         * modules/stdlib (Makefile.am): Likewise.
47878         * modules/string (Makefile.am): Likewise.
47879         * modules/strings (Makefile.am): Likewise.
47880         * modules/sys_select (Makefile.am): Likewise.
47881         * modules/sys_socket (Makefile.am): Likewise.
47882         * modules/sys_stat (Makefile.am): Likewise.
47883         * modules/sys_time (Makefile.am): Likewise.
47884         * modules/sysexits (Makefile.am): Likewise.
47885         * modules/time (Makefile.am): Likewise.
47886         * modules/unistd (Makefile.am): Likewise.
47887         * modules/wchar (Makefile.am): Likewise.
47888         * modules/wctype (Makefile.am): Likewise.
47889         Reported by Reuben Thomas <rrt@sc3d.org>.
47890
47891 2008-08-29  Bruno Haible  <bruno@clisp.org>
47892
47893         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47894         any more.
47895
47896 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47897
47898         * MODULES.html.sh (Misc): Add bitrotate.
47899
47900         * modules/bitrotate: New file.
47901
47902         * lib/bitrotate.h: New file.
47903
47904         * modules/bitrotate-tests: New file.
47905
47906         * tests/test-bitrotate.c: New file.
47907
47908         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47909         on the bitrotate module.
47910
47911         * lib/arctwo.c: Use new bitrotate module.
47912
47913 2008-08-29  Jim Meyering  <meyering@redhat.com>
47914
47915         bootstrap: merge changes from coreutils
47916         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47917         of copied files.  Remove a kludge, now that this is fixed.
47918         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47919         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47920         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47921
47922 2008-08-29  Bruno Haible  <bruno@clisp.org>
47923
47924         * MODULES.html.sh: Remove --cvs-urls option.
47925
47926 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47927
47928         maint.mk: adjust to file name change
47929         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47930
47931 2008-08-28  Jim Meyering  <meyering@redhat.com>
47932
47933         * modules/getndelim2 (License): Relicense to LGPLv2+.
47934         Approved by Richard Stallman for the version of 1995, and by
47935         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47936
47937 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47938
47939         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47940         dummy if one is not available.  Do not touch them if
47941         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47942         (getc_maybe_unlocked): New.
47943         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47944
47945 2008-08-26  Eric Blake  <ebb9@byu.net>
47946
47947         doc/INSTALL: resync from autoconf
47948         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47949         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47950         moving...
47951         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47952         * INSTALL: Regenerate.
47953         * INSTALL.ISO: New file.
47954         * INSTALL.UTF-8: Likewise.
47955
47956 2008-08-26  Jim Meyering  <meyering@redhat.com>
47957
47958         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47959         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47960         these definitions conditional, so that they may be overridden, too.
47961
47962 2008-08-26  Bruno Haible  <bruno@clisp.org>
47963
47964         Generate INSTALL file variants with prettier quotes.
47965         * doc/Makefile (INSTALL_PRELUDE): New macro.
47966         (INSTALL): Use it.
47967         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47968
47969 2008-08-26  Bruno Haible  <bruno@clisp.org>
47970
47971         Run makeinfo in an English locale.
47972         * doc/Makefile (MAKEINFO): New variable.
47973
47974 2008-08-26  Bruno Haible  <bruno@clisp.org>
47975
47976         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47977         Suggested by Eric Blake.
47978
47979 2008-08-25  Bruno Haible  <bruno@clisp.org>
47980
47981         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47982
47983 2008-08-25  Eric Blake  <ebb9@byu.net>
47984
47985         c-stack: test that stack overflow can be caught
47986         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47987         that platform allows handling stack overflow; at least OS/2 EMX
47988         has sigaltstack, but crashes before transferring control to
47989         handler on stack overflow.
47990         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47991         check for HAVE_STACK_OVERFLOW_HANDLING.
47992         Reported by Elbert Pol.
47993
47994 2008-08-25  Bruno Haible  <bruno@clisp.org>
47995
47996         * doc/posix-functions/strftime.texi: Fix description of strftime
47997         module.
47998
47999 2008-08-24  Bruno Haible  <bruno@clisp.org>
48000
48001         * tests/uniwidth/test-uc_width2.c: New file.
48002         * tests/uniwidth/test-uc_width2.sh: New file.
48003         * modules/uniwidth/width-tests (Files): Add the new files.
48004         (TESTS): Add uniwidth/test-uc_width2.sh.
48005         (TESTS_ENVIRONMENT): New variable.
48006         (check_PROGRAMS): Add test-uc_width2.
48007         (test_uc_width2_SOURCES): New variable.
48008
48009         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
48010         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
48011         not 0x00AB.
48012         Reported by Alexander V. Lukyanov <lav@netis.ru>.
48013
48014 2008-08-22  Eric Blake  <ebb9@byu.net>
48015
48016         test-lock, test-tls: mention why a test is skipped
48017         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
48018         skipped.
48019         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
48020
48021         count-one-bits: relax license
48022         * modules/count-one-bits (License): Relicense to LGPLv2+.
48023         Suggested by Ludovic Courtès, approved by Ben Pfaff.
48024
48025 2008-08-22  Andreas Schwab  <schwab@suse.de>
48026
48027         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
48028         Remove spurious space in assignment.
48029
48030 2008-08-21  Simon Josefsson  <simon@josefsson.org>
48031
48032         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
48033         Paul Eggert <eggert@CS.UCLA.EDU>.
48034
48035 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
48036
48037         * modules/gettext: Add m4/threadlib.m4.
48038
48039 2008-08-19  Eric Blake  <ebb9@byu.net>
48040
48041         test-c-stack: fix compilation failure on FreeBSD 5.0
48042         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
48043         headers before <sys/resource.h>.
48044         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
48045         the bug.
48046         Reported by Nelson H. F. Beebe.
48047
48048         strverscmp: migrate from "strverscmp.h" to <string.h>
48049         * modules/string (Makefile.am): Add new hooks.
48050         * modules/strverscmp (Files): Remove strverscmp.h.
48051         (Depends-on): Add string.
48052         (configure.ac): Add indicator.
48053         (Include): Mention new header.
48054         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
48055         defaults.
48056         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
48057         results.
48058         * lib/strverscmp.h: Delete.
48059         * lib/string.in.h (strverscmp): Provide declaration, when needed.
48060         * tests/test-strverscmp.c (includes): Adjust client.
48061         * lib/check-version.c (includes): Likewise.
48062         * NEWS: Document the change.
48063
48064         strverscmp: add unit test
48065         * modules/strverscmp-tests: New file.
48066         * tests/test-strverscmp.c: Likewise.
48067
48068 2008-08-19  Simon Josefsson  <simon@josefsson.org>
48069
48070         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
48071         regarding Windows crypto stuff, from Mono.
48072
48073 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
48074
48075         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
48076         if present, for intel RND.  Return error on failures.
48077
48078 2008-08-18  Ben Pfaff  <blp@gnu.org>
48079
48080         gitlog-to-changelog: give better diagnostic for failed pipe-open
48081         * build-aux/gitlog-to-changelog: Improve error message: suggest
48082         that the version of Git may be too old.
48083
48084 2008-08-18  Simon Josefsson  <simon@josefsson.org>
48085
48086         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
48087         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
48088
48089 2008-08-18  Bruno Haible  <bruno@clisp.org>
48090
48091         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
48092         pthread_in_use().
48093
48094 2008-08-18  Bruno Haible  <bruno@clisp.org>
48095
48096         * lib/glthread/threadlib.c: Include <pthread.h>.
48097
48098 2008-08-18  Bruno Haible  <bruno@clisp.org>
48099
48100         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
48101         glthread_recursive_lock_* macros.
48102         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
48103         Fix syntax error.
48104
48105 2008-08-18  Bruno Haible  <bruno@clisp.org>
48106
48107         * lib/glthread/thread.c: Avoid forcing a context switch right after
48108         thread creation.
48109
48110 2008-08-17  Bruno Haible  <bruno@clisp.org>
48111
48112         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
48113         * lib/glthread/thread.h: Provide Win32 specific implementation.
48114         * modules/thread (Files): Add lib/glthread/thread.c.
48115         (Depends-on): Add lock.
48116         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
48117
48118 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48119
48120         New module 'yield'.
48121         * modules/yield: New file.
48122         * lib/glthread/yield.h: New file.
48123         * m4/yield.m4: New file.
48124         * MODULES.html.sh (Multithreading): Add yield.
48125
48126 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48127
48128         New module 'thread'.
48129         * modules/thread: New file.
48130         * lib/glthread/thread.h: New file.
48131         * m4/thread.m4: New file.
48132         * MODULES.html.sh (Multithreading): Add thread.
48133
48134 2008-08-17  Bruno Haible  <bruno@clisp.org>
48135
48136         * lib/glthread/lock.h: Include <stdlib.h> always.
48137         * lib/glthread/tls.h: Likewise.
48138         * lib/glthread/cond.h: Likewise.
48139
48140 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48141
48142         New module 'cond'.
48143         * modules/cond: New file.
48144         * lib/glthread/cond.h: New file.
48145         * lib/glthread/cond.c: New file.
48146         * m4/cond.m4: New file.
48147         * MODULES.html.sh (Multithreading): Add cond.
48148
48149 2008-08-16  Eric Blake  <ebb9@byu.net>
48150
48151         c-stack: fix regression on Irix 5.3 from 2008-06-21
48152         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
48153         sa_sigaction...
48154         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
48155         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
48156         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
48157         * modules/signal (Makefile.am): Use the value.
48158         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
48159         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
48160         * doc/posix-headers/signal.texi (signal.h): Document this
48161         portability issue.
48162         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
48163         Reported by Tom G. Christensen.
48164
48165 2008-08-17  Bruno Haible  <bruno@clisp.org>
48166
48167         New module 'threadlib'.
48168         * modules/threadlib: New file.
48169         * lib/glthread/threadlib.c: New file, extracted from
48170         lib/glthread/lock.c.
48171         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
48172         functions.
48173         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
48174         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
48175         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
48176         macros.
48177         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
48178         (gl_DISABLE_THREADS): Remove macro.
48179         * modules/lock (Files): Remove build-aux/config.rpath.
48180         (Depends-on): Remove havelib. Add threadlib.
48181         (configure.ac-early): Remove section.
48182         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
48183         * modules/tls (Depends-on): Remove lock. Add threadlib.
48184         (Link): New section, copied from threadlib.
48185         * MODULES.html.sh (Multithreading): Add threadlib.
48186
48187 2008-08-14  Bruno Haible  <bruno@clisp.org>
48188
48189         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
48190         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
48191         glthread_rwlock_unlock, glthread_rwlock_destroy,
48192         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
48193         glthread_recursive_lock_destroy): Define as macros always.
48194         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
48195         glthread_lock_lock.
48196         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
48197         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
48198         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
48199         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
48200         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
48201         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
48202         (glthread_recursive_lock_lock_func): Renamed from
48203         glthread_recursive_lock_lock.
48204         (glthread_recursive_lock_unlock_func): Renamed from
48205         glthread_recursive_lock_unlock.
48206         (glthread_recursive_lock_destroy_func): Renamed from
48207         glthread_recursive_lock_destroy.
48208
48209 2008-08-14  Bruno Haible  <bruno@clisp.org>
48210
48211         * lib/glthread/lock.h: Renamed from lib/lock.h.
48212         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
48213         * lib/glthread/tls.h: Renamed from lib/tls.h.
48214         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
48215         * lib/fstrcmp.c: Update includes.
48216         * lib/strsignal.c: Update includes.
48217         * modules/lock (Files, Makefile.am): Update.
48218         (Include): Change to "glthread/lock.h".
48219         * modules/tls (Files, Makefile.am): Update.
48220         (Include): Change to "glthread/tls.h".
48221         * tests/test-lock.c: Update includes.
48222         * tests/test-tls.c: Update includes.
48223         * NEWS: Mention the renamed header files.
48224
48225 2008-08-11  Jim Meyering  <meyering@redhat.com>
48226
48227         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
48228
48229 2008-08-11  Eric Blake  <ebb9@byu.net>
48230
48231         test-c-stack: avoid C99-ism
48232         * tests/test-c-stack.c (main): Fix whitespace, move declaration
48233         before statement.
48234         Reported by Alain Guibert.
48235
48236 2008-08-10  Jim Meyering  <meyering@redhat.com>
48237
48238         ensure that return value of uinttostr et al are not ignored
48239         * lib/inttostr.h (__GNUC_PREREQ): Define.
48240         (__attribute_warn_unused_result__): Define.
48241         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
48242
48243 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
48244
48245         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
48246         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
48247
48248 2008-08-07  Jim Meyering  <meyering@redhat.com>
48249
48250         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
48251
48252         * modules/mkstemp (License): Relicense under LGPLv2+.
48253         * modules/tempname (License): Likewise.
48254
48255 2008-08-06  Bruno Haible  <bruno@clisp.org>
48256
48257         * lib/poll.c (poll): Further micro-optimization.
48258
48259 2008-08-06  Jim Meyering  <meyering@redhat.com>
48260
48261         inet_pton.c: use locale-independent tolower
48262         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
48263         (inet_pton6): Use c_tolower rather than tolower.
48264         * modules/inet_pton (Depends-on): Add c-ctype.
48265
48266 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
48267
48268         * lib/poll.c (poll): Avoid division when timeout is 0, cache
48269         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
48270
48271 2008-08-06  Jim Meyering  <meyering@redhat.com>
48272
48273         * modules/inet_pton (License): Relicense under LGPLv2+.
48274
48275 2008-08-03  Bruno Haible  <bruno@clisp.org>
48276
48277         Additional non-aborting API for lock and tls.
48278         * lib/lock.h: Include <errno.h>.
48279         (glthread_lock_init): New macro/function.
48280         (gl_lock_init): Define as wrapper around glthread_lock_init.
48281         (glthread_lock_lock): New macro/function.
48282         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
48283         (glthread_lock_unlock): New macro/function.
48284         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
48285         (glthread_lock_destroy): New macro/function.
48286         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
48287         (glthread_rwlock_init): New macro/function.
48288         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
48289         (glthread_rwlock_rdlock): New macro/function.
48290         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
48291         (glthread_rwlock_wrlock): New macro/function.
48292         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
48293         (glthread_rwlock_unlock): New macro/function.
48294         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
48295         (glthread_rwlock_destroy): New macro/function.
48296         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
48297         (glthread_recursive_lock_init): New macro/function.
48298         (gl_recursive_lock_init): Define as wrapper around
48299         glthread_recursive_lock_init.
48300         (glthread_recursive_lock_lock): New macro/function.
48301         (gl_recursive_lock_lock): Define as wrapper around
48302         glthread_recursive_lock_lock.
48303         (glthread_recursive_lock_unlock): New macro/function.
48304         (gl_recursive_lock_unlock): Define as wrapper around
48305         glthread_recursive_lock_unlock.
48306         (glthread_recursive_lock_destroy): New macro/function.
48307         (gl_recursive_lock_destroy): Define as wrapper around
48308         glthread_recursive_lock_destroy.
48309         (glthread_once): New macro/function.
48310         (gl_once): Define as wrapper around glthread_once.
48311         Update function declarations.
48312         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
48313         glthread_rwlock_init. Return error code.
48314         (glthread_rwlock_rdlock_multithreaded): Renamed from
48315         glthread_rwlock_rdlock. Return error code.
48316         (glthread_rwlock_wrlock_multithreaded): Renamed from
48317         glthread_rwlock_wrlock. Return error code.
48318         (glthread_rwlock_unlock_multithreaded): Renamed from
48319         glthread_rwlock_unlock. Return error code.
48320         (glthread_rwlock_destroy_multithreaded): Renamed from
48321         glthread_rwlock_destroy. Return error code.
48322         (glthread_recursive_lock_init_multithreaded): Renamed from
48323         glthread_recursive_lock_init. Return error code.
48324         (glthread_recursive_lock_lock_multithreaded): Renamed from
48325         glthread_recursive_lock_lock. Return error code.
48326         (glthread_recursive_lock_unlock_multithreaded): Renamed from
48327         glthread_recursive_lock_unlock. Return error code.
48328         (glthread_recursive_lock_destroy_multithreaded): Renamed from
48329         glthread_recursive_lock_destroy. Return error code.
48330         (glthread_once_call): Make static.
48331         (glthread_once_multithreaded): Renamed from glthread_once.
48332         * lib/tls.h: Include <errno.h>.
48333         (glthread_tls_key_init): New macro/function.
48334         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
48335         (glthread_tls_set): New macro/function.
48336         (gl_tls_set): Define as wrapper around glthread_tls_set.
48337         (glthread_tls_key_destroy): New macro/function.
48338         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
48339         Update function declarations.
48340         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
48341         glthread_tls_get.
48342         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48343
48344 2008-08-04  Eric Blake  <ebb9@byu.net>
48345
48346         gnumakefile: use space, not TAB, outside of targets
48347         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
48348
48349 2008-08-02  Jim Meyering  <meyering@redhat.com>
48350
48351         getdate.y: avoid locale-dependent date parsing failure
48352         In Turkish locales, getdate would fail to recognize keywords
48353         containing a lowercase "i".  The solution is not to rely on
48354         locale-sensitive case-conversion.
48355         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
48356         (lookup_word): Use c_toupper in place of toupper.
48357         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48358         Reported by Vefa Bicakci <bicave@superonline.com> in
48359         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48360         * modules/getdate (Depends-on): Add c-ctype.
48361
48362 2008-08-02  Bruno Haible  <bruno@clisp.org>
48363
48364         * gnulib-tool (func_import): When updating or creating a .gitignore
48365         file, prepend each added line with a slash, and ignore leading slashes
48366         from the existing lines.
48367         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48368
48369 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48370
48371         Portability fix for GNU make 3.79.1.
48372         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48373         versions do not understand.
48374
48375 2008-08-01  Bruno Haible  <bruno@clisp.org>
48376
48377         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48378         * tests/test-isnanf.h (zero): New variable.
48379         (main): Avoid literal -0.0f.
48380         * tests/test-isnand.h (zero): New variable.
48381         (main): Avoid literal -0.0.
48382         * tests/test-isnanl.h (zero): New variable.
48383         (main): Avoid literal -0.0L.
48384         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48385         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48386         -0.0, -0.0L.
48387         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48388         (test_signbitd): Avoid literal -0.0.
48389         (test_signbitl): Avoid literal -0.0L.
48390         * tests/test-ceilf1.c (zero): New variable.
48391         (main): Avoid literal -0.0f.
48392         * tests/test-ceill.c (zero): New variable.
48393         (main): Avoid literal -0.0L.
48394         * tests/test-floorf1.c (zero): New variable.
48395         (main): Avoid literal -0.0f.
48396         * tests/test-floorl.c (zero): New variable.
48397         (main): Avoid literal -0.0L.
48398         * tests/test-roundf1.c (zero): New variable.
48399         (main): Avoid literal -0.0f.
48400         * tests/test-round1.c (zero): New variable.
48401         (main): Avoid literal -0.0.
48402         * tests/test-roundl.c (zero): New variable.
48403         (main): Avoid literal -0.0L.
48404         * tests/test-truncf1.c (zero): New variable.
48405         (main): Avoid literal -0.0f.
48406         * tests/test-trunc1.c (zero): New variable.
48407         (main): Avoid literal -0.0.
48408         * tests/test-truncl.c (zero): New variable.
48409         (main): Avoid literal -0.0L.
48410         * tests/test-frexp.c (zero): New variable.
48411         (main): Avoid literal -0.0.
48412         * tests/test-frexpl.c (zero): New variable.
48413         (main): Avoid literal -0.0L.
48414         * tests/test-ldexpl.c (zero): New variable.
48415         (main): Avoid literal -0.0L.
48416         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48417         (zerod, zerol): New variables.
48418         (test_function): Avoid literals -0.0, -0.0L.
48419         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48420         (zerod, zerol): New variables.
48421         (test_function): Avoid literals -0.0, -0.0L.
48422         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48423         (zerod, zerol): New variables.
48424         (test_function): Avoid literals -0.0, -0.0L.
48425         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48426         (zerod, zerol): New variables.
48427         (test_function): Avoid literals -0.0, -0.0L.
48428         * tests/test-strtod.c (zero): New variable.
48429         (main): Avoid literal -0.0.
48430         Reported by Jonathan C. Patschke <jp@centtech.com>.
48431
48432 2008-07-31  Jim Meyering  <meyering@redhat.com>
48433
48434         sha256.h: correct definition of SHA224_DIGEST_SIZE
48435         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
48436         Reported by Paulie Pena IV <paulie4@gmail.com>.
48437         Define as 224 / 8, rather than as a literal.
48438         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
48439         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
48440         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
48441
48442 2008-07-31  Bruno Haible  <bruno@clisp.org>
48443
48444         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
48445         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
48446         Reported by Jonathan Patschke <jp@centtech.com>.
48447
48448 2008-07-31  Bruno Haible  <bruno@clisp.org>
48449
48450         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
48451         Reported by Paolo Bonzini <bonzini@gnu.org>.
48452
48453 2008-07-30  Eric Blake  <ebb9@byu.net>
48454
48455         test-strtod: allow compilation without -lm
48456         * tests/test-strtod.c (main): Avoid link dependence on fabs.
48457         Reported by Dennis Clarke <blastwave@gmail.com>.
48458
48459 2008-07-28  Jim Meyering  <meyering@redhat.com>
48460
48461         bootstrap: work also when there are no .po files in po/
48462         * build-aux/bootstrap (update_po_files): Complete the change
48463         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
48464
48465 2008-07-27  Jim Meyering  <meyering@redhat.com>
48466
48467         * users.txt: Add zile.
48468
48469 2008-07-26  Ben Pfaff  <blp@gnu.org>
48470
48471         Add missing dependencies on new m4/exponent[fdl].m4 files.
48472         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48473         * modules/isnand-nolibm: Add m4/exponentd.m4.
48474         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48475         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48476         m4/isnan[fdl].m4, because the macros actually used moved.
48477         Reported by Jim Meyering.
48478
48479 2008-07-14  Ben Pfaff  <blp@gnu.org>
48480
48481         Add isinf module.
48482         * lib/isinf.c: New file.
48483         * lib/math.in.h: Define isinf macro if we have decided to replace
48484         it.
48485         * m4/isinf.m4: New file.
48486         * m4/math_h.m4: Initialize and substitute variables for isinf
48487         module.
48488         * modules/isinf: New file.
48489         * modules/isinf-tests: New file.
48490         * modules/math: Add substitutions for new module.
48491         * tests/test-isinf.c: New file.
48492         * doc/posix-functions/isinf.texi: Mention new module.
48493         * MODULES.html.sh: Mention new module.
48494
48495 2008-07-14  Ben Pfaff  <blp@gnu.org>
48496
48497         Factor out some macros for use by additional modules.
48498         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48499         exponentf.m4.
48500         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48501         exponentd.m4.
48502         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48503         file exponentl.m4.
48504         * m4/exponentf.m4: New file.
48505         * m4/exponentd.m4: New file.
48506         * m4/exponentl.m4: New file.
48507         * modules/isnanf: Use new file m4/exponentf.m4.
48508         * modules/isnand: Use new file m4/exponentd.m4.
48509         * modules/isnanl: Use new file m4/exponentl.m4.
48510
48511 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48512
48513         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48514         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48515         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48516         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48517
48518         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48519         readlink on platforms without PATH_MAX.
48520
48521 2008-07-21  Eric Blake  <ebb9@byu.net>
48522
48523         Warn, not fail, on stale version.
48524         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48525
48526         Don't allow installation with stale devel version number.
48527         * top/GNUmakefile (_is-install-target): New macro.
48528         (_curr-ver): Forbid installation with stale version number.
48529
48530 2008-07-20  Bruno Haible  <bruno@clisp.org>
48531
48532         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48533         TESTS_ENVIRONMENT.
48534         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48535
48536 2008-07-20  Bruno Haible  <bruno@clisp.org>
48537
48538         * lib/c-stack.h (c_stack_action): Add documentation.
48539         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48540
48541 2008-07-20  Bruno Haible  <bruno@clisp.org>
48542
48543         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48544         * modules/readlink (License): Likewise.
48545
48546 2008-07-17  Eric Blake  <ebb9@byu.net>
48547
48548         * modules/c-stack (Link): Fix typo.
48549
48550         Make c-stack use libsigsegv, when available.
48551         * modules/c-stack (Depends-on): Add libsigsegv.
48552         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48553         needed.
48554         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48555         (segv_handler, overflow_handler, c_stack_action)
48556         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48557         implementation when libsigsegv is available, but only when using
48558         the library is necessary.
48559         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48560         comment, explaining why XSI check fails on Linux.
48561         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48562         * tests/test-c-stack2.sh: Tweak skip message.
48563         * NEWS: Document new link-time requirements.
48564
48565 2008-07-16  Eric Blake  <ebb9@byu.net>
48566
48567         c-stack: Expose false positives when not using libsigsegv.
48568         * modules/c-stack-tests (Files): Expand test.
48569         * tests/test-c-stack.c (main): Add means to conditionally trigger
48570         non-overflow SIGSEGV.
48571         * tests/test-c-stack2.sh: New file.
48572
48573 2008-07-14  Bruno Haible  <bruno@clisp.org>
48574
48575         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48576         Reported by Eric Blake.
48577
48578 2008-07-14  Sam Steingold  <sds@gnu.org>
48579             Bruno Haible  <bruno@clisp.org>
48580
48581         New module libsigsegv.
48582         * modules/libsigsegv: New file.
48583         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48584         modifications.
48585         * MODULES.html.sh (Signal handling): New section.
48586
48587 2008-07-14  Bruno Haible  <bruno@clisp.org>
48588
48589         * modules/unictype/ctype-* (Description): Add the word "function".
48590         Improves the resulting doc in MODULES.html.
48591
48592 2008-07-12  Ben Pfaff  <blp@gnu.org>
48593
48594         Add longlong module.
48595         * modules/longlong: New file.
48596
48597 2008-07-12  Bruno Haible  <bruno@clisp.org>
48598
48599         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48600         to empty.
48601
48602 2008-07-10  Ben Pfaff  <blp@gnu.org>
48603
48604         Add isnan module.
48605         * doc/posix-functions/isnan.texi: Mention new module.
48606         * lib/math.in.h: Define isnan macro if we have decided to replace
48607         it.
48608         * m4/isnan.m4: New file.
48609         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48610         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48611         also.
48612         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48613         redundancy.
48614         * m4/math_h.m4: Initialize and substitute variables for isnan
48615         module.
48616         * modules/isnan: New file.
48617         * modules/isnan-tests: New file.
48618         * modules/math: Add substitutions for new module.
48619         * tests/test-isnan.c: New file.
48620         * MODULES.html.sh: Mention new module.
48621
48622 2008-07-10  Ben Pfaff  <blp@gnu.org>
48623
48624         Add isnanf module.
48625         * lib/isnanf.m4: New file.
48626         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48627         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48628         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48629         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48630         * modules/isnanf: New file.
48631         * modules/isnanf-tests: New file.
48632         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48633         files.
48634         * tests/test-isnanf-nolibm.c: factored most of its contents into
48635         new file tests/test-isnanf.h.
48636         * tests/test-isnanf.h: New file.
48637         * tests/test-isnanf.c: New file.
48638         * MODULES.html.sh: Mention new module.
48639         * doc/glibc-functions/isnanf.texi: Mention new module.
48640
48641 2008-07-10  Ben Pfaff  <blp@gnu.org>
48642
48643         Add isnand module.
48644         * lib/isnand.h: New file.
48645         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48646         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48647         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48648         functionality also.
48649         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48650         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48651         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48652         * modules/isnand: New file.
48653         * modules/isnand-tests: New file.
48654         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48655         files.
48656         * tests/test-isnand-nolibm.c: factored most of its contents into
48657         new file tests/test-isnand.h.
48658         * tests/test-isnand.h: New file.
48659         * tests/test-isnand.c: New file.
48660         * MODULES.html.sh: Mention new module.
48661
48662 2008-07-10  Ben Pfaff  <blp@gnu.org>
48663
48664         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48665         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48666         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48667         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48668         * modules/isnanf-nolibm: Update references to renamed files.
48669         * modules/isnand-nolibm: Likewise.
48670         * modules/isnanf-nolibm-tests: Likewise.
48671         * modules/isnand-nolibm-tests: Likewise.
48672         * lib/frexp.c: Likewise.
48673         * lib/isfinite.c: Likewise.
48674         * lib/signbitd.c: Likewise.
48675         * lib/signbitf.c: Likewise.
48676         * lib/vasnprintf.c: Likewise.
48677         * tests/test-ceilf1.c: Likewise.
48678         * tests/test-ceilf2.c: Likewise.
48679         * tests/test-floorf1.c: Likewise.
48680         * tests/test-floorf2.c: Likewise.
48681         * tests/test-frexp.c: Likewise.
48682         * tests/test-round1.c: Likewise.
48683         * tests/test-round2.c: Likewise.
48684         * tests/test-roundf1.c: Likewise.
48685         * tests/test-strtod.c: Likewise.
48686         * tests/test-trunc1.c: Likewise.
48687         * tests/test-trunc2.c: Likewise.
48688         * tests/test-truncf1.c: Likewise.
48689         * tests/test-truncf2.c: Likewise.
48690         * NEWS: Mention the renamed header files.
48691
48692 2008-07-11  Jim Meyering  <meyering@redhat.com>
48693
48694         vc-list-files: make the last-resort awk code more portable
48695         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48696         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48697         does not support it.
48698
48699 2008-07-10  Eric Blake  <ebb9@byu.net>
48700
48701         Work with tar's bootstrap.
48702         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48703         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48704         an m4 comment.
48705
48706 2008-07-09  Jim Meyering  <meyering@redhat.com>
48707
48708         posix-shell.m4: fix typo that made this test malfunction
48709         * m4/posix-shell.m4: Remove capitalization in variable name.
48710
48711 2008-07-08  Bruno Haible  <bruno@clisp.org>
48712
48713         * m4/onceonly.m4: Update comments.
48714         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48715
48716 2008-07-04  Jim Meyering  <meyering@redhat.com>
48717
48718         * users.txt: Add vc-dwim.
48719         (bison, coreutils): Use the gitweb URL.
48720
48721 2008-07-03  Jim Meyering  <meyering@redhat.com>
48722
48723         * users.txt: Add libffcall.  From Sam Steingold.
48724
48725 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
48726
48727         getdate.y: do not ignore TZ with relative day, month or year offset
48728         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48729         relative-date-handling, since otherwise, the latter would clobber the
48730         sole output (an updated Start value) of the tz-handling block.
48731         * tests/test-getdate.c: Tests for the fix
48732
48733 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48734
48735         Recognize 'foo_LIBRARIES += libgnu.a'.
48736         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48737         makefile snippet has already specified an installation location,
48738         also using '+='.
48739
48740 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
48741
48742         getdate.y: factor out common actions
48743         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48744         Use them in place of open-coded actions.
48745
48746 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48747
48748         Add self-test for getdate module.
48749         * modules/getdate-tests: New file.
48750         * tests/test-getdate.c: New file.
48751
48752 2008-06-29  Bruno Haible  <bruno@clisp.org>
48753
48754         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48755         .gitignore.
48756         Reported by Sylvain Beucler <beuc@beuc.net>.
48757
48758 2008-06-29  Bruno Haible  <bruno@clisp.org>
48759
48760         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48761         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48762
48763 2008-06-29  Bruno Haible  <bruno@clisp.org>
48764
48765         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48766         EXTRA_DIST.
48767         Reported by Sylvain Beucler <beuc@beuc.net>.
48768
48769 2008-06-26  Jim Meyering  <meyering@redhat.com>
48770
48771         make several modules depend on the "open" module
48772         This provides slightly increased consistency when opening-for-write
48773         the name of a non-directory spelled with a trailing slash.
48774         * modules/chdir-safer: Likewise.
48775         * modules/chown: Likewise.
48776         * modules/clean-temp: Likewise.
48777         * modules/copy-file: Likewise.
48778         * modules/fchdir: Likewise.
48779         * modules/fcntl-safer: Likewise.
48780         * modules/pipe: Likewise.
48781         * modules/utime: Likewise.
48782         Prompted by Eric Blake and Bruno Haible.
48783
48784 2008-06-24  Andreas Schwab  <schwab@suse.de>
48785
48786         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48787         literals can be used as initializers for global variables.
48788
48789 2008-06-23  Eric Blake  <ebb9@byu.net>
48790
48791         Make gnulib-cache.m4 easier to diff.
48792         * gnulib-tool (func_import): Allow newlines when reading cached
48793         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48794
48795 2008-06-23  Bruno Haible  <bruno@clisp.org>
48796
48797         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48798         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48799         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48800         m4/signalblocking.m4.
48801         (gl_PREREQ_SIGACTION): Don't invoke it.
48802         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48803         gl_PREREQ_SIG_HANDLER_H.
48804         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48805         Don't check for sigaction here.
48806
48807 2008-06-23  Bruno Haible  <bruno@clisp.org>
48808
48809         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48810         (install_handlers): Don't set the SA_RESETHAND flag.
48811
48812 2008-06-23  Bruno Haible  <bruno@clisp.org>
48813
48814         * m4/sigaction.m4: Comment fixes.
48815         * lib/signal.in.h: Likewise.
48816
48817 2008-06-23  Eric Blake  <ebb9@byu.net>
48818
48819         Fix typo.
48820         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48821
48822         Avoid SA_ namespace.
48823         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48824         Reported by Ralf Wildenhues.
48825
48826         Avoid test failure due to SA_RESTORER.
48827         * tests/test-sigaction.c (SA_MASK): New macro.
48828         (main): Avoid failing due to extension flags being set.
48829         Reported by Jim Meyering.
48830
48831         Revert use of sig-handler.h in sigprocmask.c.
48832         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48833         it requires the existence of struct sigaction.
48834         * lib/sigprocmask.c (handler_t): Restore typedef.
48835         (rpl_signal, old_handlers): Use local type.
48836
48837 2008-06-22  Bruno Haible  <bruno@clisp.org>
48838
48839         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48840         conditionally.
48841         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48842
48843 2008-06-22  Bruno Haible  <bruno@clisp.org>
48844
48845         * doc/posix-functions/siginterrupt.texi: Move note.
48846
48847         * lib/signal.in.h (SA_RESTART): New macro.
48848         * lib/sigaction.c: Update comment.
48849
48850         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48851
48852         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48853         (gl_PREREQ_SIGPROCMASK): Invoke it.
48854         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48855
48856         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48857
48858         * lib/sigprocmask.c: Update a comment.
48859
48860 2008-06-21  Eric Blake  <ebb9@byu.net>
48861
48862         Use sigaction module rather than signal().
48863         * modules/c-stack (Depends-on): Add sigaction.
48864         * modules/fatal-signal (Depends-on): Likewise.
48865         * modules/nanosleep (Depends-on): Likewise.
48866         * modules/sigprocmask (Files): Add sig-handler.h.
48867         * modules/sigaction (Files): Likewise.
48868         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48869         Eggert.
48870         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48871         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48872         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48873         (init_fatal_signals): Likewise.
48874         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48875         (siginterrupt): Delete fallback.
48876         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48877         instead.
48878         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48879         siginterrupt.
48880
48881         New module sigaction, for mingw.
48882         * modules/sigaction: New module...
48883         * modules/sigaction-tests: ...and its test.
48884         * m4/sigaction.m4: New file.
48885         * lib/sigaction.c: Likewise.
48886         * tests/test-sigaction.c: Likewise.
48887         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48888         * modules/signal (Makefile.am): Likewise.
48889         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48890         needed.
48891         * doc/posix-headers/signal.texi (signal.h): Mention provided
48892         types.
48893         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48894         that sigaction is preferable.
48895         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48896         module.
48897         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48898         sigaction.
48899
48900         Improve robustness of sigprocmask by overriding signal.
48901         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48902         is in use.
48903         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48904         (SIGKILL, SIGSTOP): Provide fallbacks.
48905         (rpl_signal): Implement.
48906         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48907         signal can be called inside handlers.
48908
48909         Fix nanosleep module on mingw.
48910         * modules/nanosleep (Depends-on): Add sys_select.
48911         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48912
48913         Fix licensing of sigprocmask.
48914         * modules/raise (License): Relicense as LGPL.
48915
48916 2008-06-21  Bruno Haible  <bruno@clisp.org>
48917
48918         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48919         result if it contains question marks.
48920         Reported by Michael Geng <linux@michaelgeng.de>.
48921
48922 2008-06-19  Bruno Haible  <bruno@clisp.org>
48923
48924         Fix CVS-ism.
48925         * doc/gnulib.texi: Include updated-stamp.texi.
48926         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48927         (updated-stamp.texi): New rule.
48928         (gnulib.info): Depend on it.
48929         * doc/.gitignore: Add updated-stamp.texi.
48930         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48931
48932 2008-06-19  Bruno Haible  <bruno@clisp.org>
48933
48934         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48935         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48936
48937 2008-06-19  Eric Blake  <ebb9@byu.net>
48938
48939         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48940         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48941         Reported by Stepan Kasal.
48942
48943 2008-06-18  Bruno Haible  <bruno@clisp.org>
48944
48945         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48946         Reported by Eric Blake.
48947
48948 2008-06-18  Eric Blake  <ebb9@byu.net>
48949
48950         Work around cygwin 1.5.25 strsignal bug.
48951         * tests/test-strsignal.c: Allow for const char *.
48952         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48953
48954 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48955
48956         * users.txt: Update URL to article and add author/date
48957         information.
48958
48959 2008-06-17  Bruno Haible  <bruno@clisp.org>
48960
48961         New macro gl_DISABLE_THREADS.
48962         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48963         if the user did not pass --enable-threads or --disable-threads option.
48964         (gl_DISABLE_THREADS): New macro.
48965         Reported by Eric Blake <ebb9@byu.net>.
48966
48967 2008-06-17  Bruno Haible  <bruno@clisp.org>
48968
48969         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48970         when the macro ignores it.
48971         Based on a patch by Eric Blake <ebb9@byu.net>.
48972
48973 2008-06-17  Bruno Haible  <bruno@clisp.org>
48974
48975         * modules/tls (License): Change to LGPLv2+.
48976         Reported by Eric Blake.
48977
48978 2008-06-17  Eric Blake  <ebb9@byu.net>
48979
48980         Simplify c-stack prerequisites.
48981         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48982         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48983         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48984         check.
48985         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48986         <sys/resource.h>.
48987
48988         Move c-stack test into testsuite.
48989         * modules/c-stack-tests: New file.
48990         * lib/c-stack.c [DEBUG]: Move test program...
48991         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48992         fail test if sigaltstack is lacking.
48993         * tests/test-c-stack.sh: New driver file.
48994
48995 2008-06-16  Eric Blake  <ebb9@byu.net>
48996
48997         Use raise module consistently.
48998         * modules/fatal-signal (Depends-on): Add raise.
48999         * modules/sigprocmask (Depends-on): Likewise.
49000         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
49001         * lib/sigprocmask.c (sigprocmask): Likewise.
49002         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49003         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
49004
49005         Fix compliance bug in sigpending.
49006         * lib/sigprocmask.c (sigpending): Return pending array via
49007         parameter, not return value.
49008
49009 2008-06-14  Eric Blake  <ebb9@byu.net>
49010
49011         Improve obstack-printf test code.
49012         * tests/test-obstack-printf.c (test_function): Fix comment, and
49013         simplify usage of obstack_* in macros.  Add a test for coverage.
49014         Reported by Bruno Haible.
49015
49016 2008-06-14  Bruno Haible  <bruno@clisp.org>
49017
49018         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
49019         array size as a constant, not as a const variable.
49020         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
49021         AC_USE_SYSTEM_EXTENSIONS.
49022         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49023         Test whether the obstack_printf function actually exists.
49024         * modules/obstack-printf (Depends-on): Add extensions.
49025         (Include): Remove obstack.h.
49026         * modules/obstack-printf-posix (Depends-on): Add extensions.
49027         (Include): Remove obstack.h.
49028
49029 2008-06-13  Eric Blake  <ebb9@byu.net>
49030
49031         Add obstack-printf and obstack-printf-posix modules.
49032         * modules/obstack-printf: New file.
49033         * modules/obstack-printf-posix: Likewise.
49034         * MODULES.html.sh (Misc): Mention them.
49035         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49036         Likewise.
49037         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49038         Likewise.
49039         * modules/stdio (Makefile.am): Accomodate new modules.
49040         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49041         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
49042         Declare.
49043         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
49044         functions.
49045         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
49046         (gl_REPLACE_OBSTACK_PRINTF): New macros
49047         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
49048         * tests/test-obstack-printf.c: New file.
49049         * modules/obstack-printf-tests: Likewise.
49050         * modules/obstack-printf-posix-tests: Likewise.
49051
49052 2008-06-11  Bruno Haible  <bruno@clisp.org>
49053
49054         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
49055         * lib/open.c: Include errno.h.
49056         (open): Fail when attempting to write to a file that has a trailing
49057         slash.
49058         * tests/test-open.c (main): Test against trailing slash bug.
49059         * doc/posix-functions/open.texi: Mention the trailing slash bug.
49060
49061 2008-06-10  Bruno Haible  <bruno@clisp.org>
49062
49063         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
49064         for $? to work inside the trap command, with various /bin/sh-s.
49065         * tests/test-vc-list-files-cvs.sh: Likewise.
49066
49067 2008-06-10  Bruno Haible  <bruno@clisp.org>
49068
49069         * lib/acl-internal.h: Don't include gettext.h here.
49070         * lib/set-mode-acl.c: Include gettext.h here.
49071         * lib/copy-acl.c: Likewise.
49072
49073 2008-06-10  Bruno Haible  <bruno@clisp.org>
49074
49075         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
49076         * lib/wait-process.c (wait_subprocess): Likewise.
49077         * lib/execute.h (execute): Add termsigp argument.
49078         * lib/execute.c (execute): Likewise.
49079         * lib/csharpcomp.c (compile_csharp_using_pnet,
49080         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
49081         * lib/csharpexec.c (execute_csharp_using_pnet,
49082         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
49083         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
49084         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
49085         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
49086         is_jikes_present): Update.
49087         * lib/javaexec.c (execute_java_class): Update.
49088         * lib/javaversion.c (execute_and_read_line): Update.
49089         * NEWS: Document the changes.
49090         Reported by Eric Blake.
49091
49092 2008-06-10  Eric Blake  <ebb9@byu.net>
49093
49094         Add missing include.
49095         * tests/test-strstr.c (includes): Add <signal.h>.
49096         * tests/test-strcasestr.c (includes): Likewise.
49097         * tests/test-memmem.c (includes): Likewise.
49098
49099 2008-06-10  Bruno Haible  <bruno@clisp.org>
49100
49101         * lib/wait-process.c (wait_subprocess): Add an assertion.
49102
49103 2008-06-10  Bruno Haible  <bruno@clisp.org>
49104
49105         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
49106
49107 2008-06-10  Bruno Haible  <bruno@clisp.org>
49108
49109         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
49110         using alarm().
49111         * tests/test-strcasestr.c (main): Likewise.
49112         * tests/test-strstr.c (main): Likewise.
49113
49114 2008-06-09  Bruno Haible  <bruno@clisp.org>
49115
49116         Work around the Solaris 10 ACE ACLs ABI change.
49117         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
49118         declare if ACL_NO_TRIVIAL is present.
49119         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
49120         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
49121         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
49122         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
49123         define if ACL_NO_TRIVIAL is present.
49124         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
49125         and use the current ABI.
49126         (file_has_acl): Use same #if condition as elsewhere.
49127         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
49128         in use, and use the current ABI.
49129         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
49130         Reported by Jim Meyering.
49131
49132 2008-06-09  Eric Blake  <ebb9@byu.net>
49133
49134         Work around environments that (stupidly) ignore SIGALRM.
49135         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
49136         before using alarm().
49137         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49138         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49139         Reported by Ian Beckwith <ianb@erislabs.net>.
49140
49141         Produce autobuild blurb earlier in log.
49142         * modules/autobuild (configure.ac-early): Move AB_INIT here.
49143
49144 2008-06-09  Jim Meyering  <meyering@redhat.com>
49145         and Ondřej Vašík  <ovasik@redhat.com>
49146
49147         utimens.c: correct kernel bug work-around
49148         Ondřej Vašík found that the invalid return value of 280 indicates
49149         failure, not success, and the kernel bug we're trying to work
49150         around affects not just the utimensat call, but also the fallback
49151         futimens call.
49152         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
49153         not success.
49154         [HAVE_FUTIMENS]: Use the same work-around, here.
49155
49156 2008-06-09  Jim Meyering  <meyering@redhat.com>
49157
49158         add more guards around definition of ACE_-related code
49159         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
49160         ALLOW and ACE_OWNER are also defined.
49161
49162 2008-06-08  Bruno Haible  <bruno@clisp.org>
49163
49164         * lib/acl-internal.h: Add me as co-author.
49165         * lib/file-has-acl.c: Likewise.
49166         * lib/set-mode-acl.c: Likewise.
49167         * lib/copy-acl.c: Likewise.
49168
49169 2008-06-08  Bruno Haible  <bruno@clisp.org>
49170
49171         Add support for AIX ACLs.
49172         * lib/acl-internal.h (acl_nontrivial): New declaration.
49173         * lib/file-has-acl.c (acl_nontrivial): New function.
49174         (file_has_acl): Add implementation using AIX 4 ACL API.
49175         * lib/set-mode-acl.c (qset_acl): Likewise.
49176         * lib/copy-acl.c (qcopy_acl): Likewise.
49177
49178 2008-06-08  Bruno Haible  <bruno@clisp.org>
49179
49180         Add support for HP-UX ACLs.
49181         * lib/acl-internal.h (acl_nontrivial): New declaration.
49182         * lib/file-has-acl.c (acl_nontrivial): New function.
49183         (file_has_acl): Add implementation using HP-UX 11 ACL API.
49184         * lib/set-mode-acl.c (qset_acl): Likewise.
49185         * lib/copy-acl.c (qcopy_acl): Likewise.
49186
49187 2008-06-08  Bruno Haible  <bruno@clisp.org>
49188
49189         Add support for Cygwin ACLs.
49190         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
49191         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
49192         the chmod_or_fchmod call.
49193         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
49194
49195 2008-06-08  Bruno Haible  <bruno@clisp.org>
49196
49197         Fix bug with setuid modes in Solaris 10+ code.
49198         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
49199         succeeded, when the mode contains some special bits.
49200
49201 2008-06-08  Bruno Haible  <bruno@clisp.org>
49202
49203         Add support for Solaris 7..10 ACLs.
49204         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
49205         declarations.
49206         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
49207         functions.
49208         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
49209         * lib/set-mode-acl.c (qset_acl): Likewise.
49210         * lib/copy-acl.c (qcopy_acl): Likewise.
49211
49212 2008-06-08  Bruno Haible  <bruno@clisp.org>
49213
49214         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
49215         declaration.
49216         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
49217         (acl_access_nontrivial): Remove MacOS X case.
49218         (file_has_acl): Use acl_extended_nontrivial.
49219         * lib/copy-acl.c (qcopy_acl): Likewise.
49220
49221 2008-06-08  Bruno Haible  <bruno@clisp.org>
49222
49223         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
49224
49225 2008-06-08  Jim Meyering  <meyering@redhat.com>
49226
49227         * modules/acl (Maintainer): Add Bruno Haible.
49228
49229 2008-06-07  Bruno Haible  <bruno@clisp.org>
49230
49231         Improve support for Tru64 ACLs.
49232         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
49233         ACL on OSF/1.
49234
49235 2008-06-07  Bruno Haible  <bruno@clisp.org>
49236
49237         Add support for MacOS X ACLs.
49238         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
49239         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
49240         * lib/set-mode-acl.c (qset_acl): Likewise.
49241         * lib/copy-acl.c (qcopy_acl): Likewise.
49242
49243 2008-06-07  Bruno Haible  <bruno@clisp.org>
49244
49245         Fix memory leak introduced on 2008-05-22.
49246         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
49247         use.
49248
49249 2008-06-07  Bruno Haible  <bruno@clisp.org>
49250
49251         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
49252         to construct an empty ACL.
49253
49254 2008-06-07  Bruno Haible  <bruno@clisp.org>
49255
49256         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
49257         precisely.
49258         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
49259
49260 2008-06-07  Bruno Haible  <bruno@clisp.org>
49261
49262         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
49263         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
49264
49265 2008-06-07  Bruno Haible  <bruno@clisp.org>
49266
49267         * doc/posix-functions/_setjmp.texi: Explain the use of this function
49268         regardless of POSIX.
49269         * doc/posix-functions/_longjmp.texi: Likewise.
49270         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
49271         SystemV platform in this case.
49272
49273 2008-06-06  Eric Blake  <ebb9@byu.net>
49274
49275         Document abort() bugs.
49276         * doc/posix-functions/abort.texi (abort): Mention anomalies.
49277
49278         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
49279         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
49280         sigsetjmp.
49281         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
49282         siglongjmp, but only as a macro.
49283         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
49284         is obsolete.
49285         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
49286
49287         Tweak documentation to cover cygwin argz bugs.
49288         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
49289         argz bug fix; no code change needed since no cygwin releases
49290         occurred between the last fix and the bug being tested.
49291         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
49292         module and recently fixed cygwin bugs.
49293         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
49294         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
49295         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
49296         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
49297         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
49298         Likewise.
49299         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
49300         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
49301         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
49302         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
49303         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
49304         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
49305         Likewise.
49306
49307         Avoid gcc warning on cygwin.
49308         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
49309         !ACL_NO_TRIVIAL]: Avoid unused variable.
49310
49311 2008-06-05  Eric Blake  <ebb9@byu.net>
49312
49313         Be tolerant of UNKNOWN version in gnulib-tool test dir.
49314         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
49315         git-version-gen fails to come up with a version.
49316         Reported by Simon Josefsson.
49317
49318 2008-06-05  Jim Meyering  <meyering@redhat.com>
49319             Paul Eggert  <eggert@cs.ucla.edu>
49320
49321         utimens.c: work around a probable Linux kernel bug
49322         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
49323         appears to be a kernel bug that causes utimensat to return 280
49324         instead of 0, indicating success.
49325
49326 2008-06-04  Bruno Haible  <bruno@clisp.org>
49327
49328         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
49329         2008-06-01 commit.
49330
49331 2008-06-04  Bruno Haible  <bruno@clisp.org>
49332
49333         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
49334         * lib/file-has-acl.c (acl_access_nontrivial): New function.
49335         (file_has_acl): Use it. Save errno afterwards.
49336         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
49337
49338 2008-06-03  Bruno Haible  <bruno@clisp.org>
49339
49340         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
49341         draft code. Simplify #ifs.
49342         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
49343         Put Solaris code after POSIX-draft code. Fix comments regarding
49344         Solaris 10, HP-UX. Mention Cygwin.
49345         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
49346
49347 2008-06-03  Eric Blake  <ebb9@byu.net>
49348
49349         Provide fallback for older kernels.
49350         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
49351         Provide runtime fallback if kernel lacks support.
49352         Reported by Mike Frysinger.
49353
49354 2008-06-02  Bruno Haible  <bruno@clisp.org>
49355
49356         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
49357         it exists.
49358
49359 2008-06-02  Bruno Haible  <bruno@clisp.org>
49360
49361         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49362         * lib/copy-acl.c (qcopy_acl): Update comment.
49363
49364 2008-06-02  Bruno Haible  <bruno@clisp.org>
49365
49366         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49367         like ACL APIs.
49368
49369 2008-06-02  Bruno Haible  <bruno@clisp.org>
49370
49371         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49372         * tests/test-set-mode-acl.sh: Likewise.
49373         * tests/test-copy-acl.sh: Likewise.
49374         * tests/test-copy-file.sh: Likewise.
49375
49376 2008-06-02  Bruno Haible  <bruno@clisp.org>
49377
49378         * tests/test-file-has-acl.sh: Remove unused code.
49379
49380 2008-06-01  Bruno Haible  <bruno@clisp.org>
49381
49382         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49383         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49384         messages.
49385         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49386
49387 2008-06-01  Bruno Haible  <bruno@clisp.org>
49388
49389         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49390         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49391         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
49392         APIs.
49393         * modules/acl-tests (configure.ac): Remove tests now contained in
49394         m4/acl.m4.
49395
49396 2008-06-02  Jim Meyering  <meyering@redhat.com>
49397
49398         announce-gen: use a better key-server host name
49399         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
49400         it may be more consistently reliable.  Suggested by Werner Koch
49401         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49402
49403 2008-06-01  Bruno Haible  <bruno@clisp.org>
49404
49405         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
49406         Reported by Voroskoi Andras <voroskoi@gmail.com>.
49407
49408 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
49409
49410         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
49411
49412 2008-06-01  Bruno Haible  <bruno@clisp.org>
49413
49414         New ACL tests.
49415         * tests/test-file-has-acl.sh: New file.
49416         * tests/test-file-has-acl.c: New file.
49417         * tests/test-set-mode-acl.sh: New file.
49418         * tests/test-set-mode-acl.c: New file.
49419         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
49420         * tests/test-copy-acl.c: New file.
49421         * modules/acl-tests: New file, based on modules/copy-file-tests.
49422         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
49423         (Depends-on): Add acl-tests.
49424         (configure.ac): Remove checks.
49425         (Makefile.am): Don't create test-sameacls program here any more.
49426
49427 2008-06-01  Bruno Haible  <bruno@clisp.org>
49428
49429         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
49430         * tests/test-sameacls.c: Include progname.h.
49431         (main): Invoke set_program_name. Portability fixes for MacOS X,
49432         Solaris, HP-UX.
49433
49434 2008-06-01  Bruno Haible  <bruno@clisp.org>
49435
49436         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
49437         function.
49438         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
49439
49440 2008-06-01  Bruno Haible  <bruno@clisp.org>
49441
49442         * modules/rpmatch (Depends-on): Add strdup.
49443
49444 2008-06-01  Bruno Haible  <bruno@clisp.org>
49445
49446         * lib/pipe.c: Include unistd-safer.h.
49447         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
49448         * modules/pipe (Depends-on): Add unistd-safer.
49449
49450 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49451
49452         * modules/autobuild (configure.ac): Call AB_INIT.
49453
49454 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49455
49456         * tests/test-getaddrinfo.c: Don't print debug messages by default.
49457         Suggested by Bruno Haible <bruno@clisp.org>.
49458
49459 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49460
49461         * tests/test-base64.c: Cast size_t to unsigned long when invoking
49462         printf.  Use %lu instead of %d.  Reported by Bruno Haible
49463         <bruno@clisp.org>.
49464
49465 2008-05-29  Eric Blake  <ebb9@byu.net>
49466
49467         Prefer new POSIX 200x interfaces over futimesat.
49468         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
49469         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
49470         when available.
49471         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49472
49473 2008-05-28  Bruno Haible  <bruno@clisp.org>
49474
49475         * modules/stpcpy (License): Change to LGPLv2+.
49476         Requested by David Lutterkort <dlutter@redhat.com>.
49477
49478 2008-05-27  Bruno Haible  <bruno@clisp.org>
49479
49480         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49481         current mingw.
49482         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49483
49484 2008-05-27  Bruno Haible  <bruno@clisp.org>
49485
49486         * modules/iconv_open (Link): New section, from module 'iconv'.
49487         * modules/striconv (Link): Likewise.
49488         * modules/striconveh (Link): Likewise.
49489         * modules/xstriconv (Link): Likewise.
49490         * modules/unicodeio (Link): Likewise.
49491         * modules/propername (Link): Likewise.
49492         Reported by Jim Meyering.
49493
49494 2008-05-26  Jim Meyering  <meyering@redhat.com>
49495
49496         sha256: do not artificially restrict buffer length to be < 2^32
49497         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49498         uint32_t to size_t.
49499         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49500         to match.
49501
49502         avoid unaligned access errors, e.g., on sparc
49503         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49504         direct access through a possibly-unaligned uint64* pointer.
49505         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49506         direct access through a possibly-unaligned uint32* pointer.
49507         Prompted by this patch from Tom "spot" Callaway:
49508         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49509
49510         sha512.c: fix typo in comment
49511         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49512
49513 2008-05-25  Bruno Haible  <bruno@clisp.org>
49514
49515         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49516         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49517         (Makefile.am): Update lib_SOURCES.
49518
49519 2008-05-25  Bruno Haible  <bruno@clisp.org>
49520
49521         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49522
49523 2008-05-25  Jim Meyering  <meyering@redhat.com>
49524
49525         useless-if-before-free: freed expr may have white-space differences
49526         * build-aux/useless-if-before-free: Recognize cases in which the
49527         freed expression differs from the tested one in embedded white
49528         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49529         $1 was used, so we can't make any regexp shy.  Improved tests now
49530         detect this.
49531
49532         useless-if-before-free: accept white space in the expression.
49533         * build-aux/useless-if-before-free: For now, any white space
49534         in the expression must be identical in the free argument.
49535
49536         useless-if-before-free: efficiency tweak
49537         * build-aux/useless-if-before-free: Make the expression-matching
49538         regexp "shy".
49539         Make the *outer* regexp shy, not the expr-matching one.
49540
49541         update code-in-comment to accept cast of free arg
49542         * build-aux/useless-if-before-free: Update regexp.
49543
49544 2008-05-25  Bruno Haible  <bruno@clisp.org>
49545
49546         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49547         * modules/copy-file-tests (Files, Makefile.am): Update.
49548         * tests/test-copy-file.c (func_test_copy): Update.
49549
49550 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49551
49552         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49553
49554 2008-05-23  Bruno Haible  <bruno@clisp.org>
49555
49556         Improve support for ACLs on OSF/1.
49557         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49558         Remove fallback for unknown flavors of ACLs.
49559
49560 2008-05-22  Bruno Haible  <bruno@clisp.org>
49561
49562         Add support for ACLs on OSF/1.
49563         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49564         replacements.
49565         (acl_free_text): New macro fallback.
49566         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49567         acl_free.
49568         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49569         acl_free_text function. Require AC_C_INLINE.
49570
49571 2008-05-22  Bruno Haible  <bruno@clisp.org>
49572
49573         Make copy_acl work on MacOS X 10.5.
49574         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49575         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49576         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49577         If MODE_INSIDE_ACL, don't assume that every system has the same text
49578         representation for ACLs as FreeBSD.
49579         * lib/copy-acl.c (copy_acl): Add support for platforms with
49580         !MODE_INSIDE_ACL.
49581         * lib/file-has-acl.c (file_has_acl): Likewise.
49582         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49583         FreeBSD, MacOS X, or IRIX, respectively.
49584
49585 2008-05-22  Bruno Haible  <bruno@clisp.org>
49586
49587         * lib/acl.h: Don't include <sys/acl.h>.
49588         (GETACLCNT): Move fallback to lib/acl-internal.h.
49589         * lib/acl-internal.h: Include <sys/acl.h> here.
49590         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49591
49592 2008-05-22  Bruno Haible  <bruno@clisp.org>
49593
49594         Split off copy_acl function to separate file.
49595         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49596         * lib/acl.c (copy_acl): Moved function to separate file.
49597         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49598         * modules/acl (Files): Add lib/copy-acl.c.
49599         (Makefiles.am): Augment lib_SOURCES.
49600
49601 2008-05-22  Bruno Haible  <bruno@clisp.org>
49602
49603         * modules/copy-file-tests: New file.
49604         * tests/test-copy-file.sh: New file.
49605         * tests/test-copy-file.c: New file.
49606         * tests/test-copy-file-sameacls.c: New file.
49607
49608 2008-05-22  Eric Blake  <ebb9@byu.net>
49609
49610         Avoid gcc warning.
49611         * tests/test-memcmp.c (main): Pass NULL indirectly.
49612
49613 2008-05-21  Bruno Haible  <bruno@clisp.org>
49614
49615         Add reference doc about ACLs.
49616         * doc/acl-resources.txt: New file.
49617         * doc/acl-cygwin.txt: New file.
49618
49619 2008-05-21  Bruno Haible  <bruno@clisp.org>
49620
49621         Avoid one more warning from gcc.
49622         * lib/vasnprintf.c (IF_LINT): Update comments.
49623         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49624
49625 2008-05-21  Jim Meyering  <meyering@redhat.com>
49626
49627         avoid a warning from gcc
49628         * lib/vasnprintf.c (IF_LINT): Define.
49629         (scale10_round_decimal_long_double):
49630         Use it to avoid a "may be used uninitialized" warning.
49631         (scale10_round_decimal_double): Likewise.
49632
49633 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49634
49635         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49636         declared.
49637
49638 2008-05-20  Bruno Haible  <bruno@clisp.org>
49639
49640         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49641         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49642
49643 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49644
49645         * modules/memcmp-tests: New file.
49646         * tests/test-memcmp.c: New file.
49647
49648 2008-05-19  Bruno Haible  <bruno@clisp.org>
49649
49650         * modules/propername (Notice, configure.ac): Put quoted "..." into
49651         --keyword option.
49652         * lib/propername.h: Update comments accordingly.
49653         Reported by Eric Blake.
49654
49655 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49656
49657         * modules/getpass-gnu (Depends-on): Add fseeko.
49658
49659 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49660
49661         * modules/base64-tests: New file.
49662
49663 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49664
49665         * lib/base64.c (base64_decode_ctx): If a decode context structure
49666         was passed in use it to ignore newlines.  If a context structure
49667         was _not_ passed in, continue to treat newlines as garbage (this
49668         is the historical behavior).  Formerly base64_decode.
49669         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49670         takes a decode context structure.
49671         * lib/base64.h (base64_decode): Macro for four-argument calls.
49672         (base64_decode_alloc): Likewise.
49673         * lib/base64.c (base64_decode_ctx): If a decode context structure
49674         was passed in use it to ignore newlines.  If a context structure
49675         was _not_ passed in, continue to treat newlines as garbage (this
49676         is the historical behavior).  Formerly base64_decode.
49677         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49678         takes a decode context structure.
49679         * lib/base64.h (base64_decode): Macro for four-argument calls.
49680         (base64_decode_alloc): Likewise.
49681
49682 2008-05-19  Jim Meyering  <meyering@redhat.com>
49683
49684         avoid a warning from gcc
49685         * lib/trim.c (IF_LINT): Define.
49686         (trim2): Use it to avoid a "may be used uninitialized" warning.
49687
49688         Fix doc typo.
49689         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49690
49691 2008-05-19  Bruno Haible  <bruno@clisp.org>
49692
49693         * doc/glibc-functions/getpass.texi: Document limits of other
49694         implementations.
49695
49696 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49697             Bruno Haible <bruno@clisp.org>
49698
49699         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49700
49701 2008-05-18  Bruno Haible  <bruno@clisp.org>
49702
49703         * modules/propername: New file, from GNU gettext.
49704         * lib/propername.h: New file, from GNU gettext.
49705         * lib/propername.c: New file, from GNU gettext.
49706         * MODULES.html.sh (Internationalization functions): Add propername.
49707
49708 2008-05-16  Jim Meyering  <meyering@redhat.com>
49709             Bruno Haible  <bruno@clisp.org>
49710
49711         Avoid some warnings from "gcc -Wshadow".
49712         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49713
49714 2008-05-15  Eric Blake  <ebb9@byu.net>
49715
49716         Extend previous patch to cygwin 1.7.0.
49717         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49718         fast implementation in cygwin >= 1.7.0.
49719         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49720         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49721
49722 2008-05-15  Bruno Haible  <bruno@clisp.org>
49723
49724         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49725         implementation in glibc >= 2.9.
49726         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49727         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49728
49729 2008-05-15  Bruno Haible  <bruno@clisp.org>
49730
49731         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49732         (Unicode string functions): Add unilbrk/*.
49733         Reported by Karl Berry.
49734
49735 2008-05-15  Eric Blake  <ebb9@byu.net>
49736
49737         Fix violation of <stdbool.h> replacement in regex.
49738         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49739         * lib/regexec.c (re_search_internal): Likewise.
49740         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49741
49742 2008-05-15  Jim Meyering  <meyering@redhat.com>
49743
49744         avoid distracting test output when git or cvs is not found
49745         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49746         * tests/test-vc-list-files-git.sh: Likewise.
49747
49748 2008-05-15  Eric Blake  <ebb9@byu.net>
49749
49750         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49751         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49752         glibc version.
49753         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49754         * doc/posix-functions/strstr.texi (strstr): Likewise.
49755         * lib/str-two-way.h (MAX): Sychronize with glibc.
49756
49757 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49758
49759         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49760         opr.ctx_type.
49761         (calc_first): Initialize constraint field.
49762         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49763         Fix grammar.
49764         (duplicate_node): Merge constraint field for all node types.
49765         (calc_eclosure_iter): Look at constraint field for all node types.
49766         * lib/regex_internal.c (create_cd_newstate): Don't look at
49767         opr.ctx_type.
49768
49769 2008-05-14  Bruno Haible  <bruno@clisp.org>
49770
49771         Help GCC to do better code generation.
49772         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49773         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49774         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49775         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49776         Declare with attribute 'malloc' if supported.
49777
49778 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49779
49780         use "echo STR|wc -c" rather than unportable "expr length STR"
49781         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49782         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49783
49784 2008-05-14  Jim Meyering  <meyering@redhat.com>
49785
49786         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49787         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49788         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49789         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49790         via Collin Lasse.
49791
49792 2008-05-14  Eric Blake  <ebb9@byu.net>
49793
49794         Avoid quadratic growth in gl_LIBSOURCES.
49795         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49796         Suggested by Bruno Haible.
49797
49798         Test xmemdup0.
49799         * modules/xmemdup0-tests: New file.
49800         * tests/test-xmemdup0.c: Likewise.
49801
49802 2008-05-13  Eric Blake  <ebb9@byu.net>
49803
49804         Split xmemdup0 into its own module.
49805         * modules/xmemdup0: New file.
49806         * lib/xmemdup0.h: Likewise.
49807         * lib/xmemdup0.c: Likewise.
49808         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49809         * lib/xalloc.h (xmemdup0): Remove.
49810         * lib/xmalloc.c (xmemdup0): Likewise.
49811
49812 2008-05-13  Eric Blake  <ebb9@byu.net>
49813             Bruno Haible  <bruno@clisp.org>
49814
49815         Reduce number of forks required during autoconf.
49816         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49817         and gl_LIBSOURCES_DIR.
49818         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49819         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49820         m4_syscmd per file.
49821         <m4_foreach_w>: Move...
49822         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49823
49824 2008-05-13  Eric Blake  <ebb9@byu.net>
49825
49826         * gnulib-tool: Fix various comment typos.
49827
49828 2008-05-12  Bruno Haible  <bruno@clisp.org>
49829
49830         Tailor the linebreaking algorithm.
49831         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49832
49833 2008-05-12  Bruno Haible  <bruno@clisp.org>
49834
49835         Update to Unicode 5.0.0.
49836         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49837         LBP_JV, LBP_JT. Redistribute values.
49838         (unilbrk_table): Change size.
49839         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49840         Unicode TR#14 rev. 22.
49841         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49842         LBP_JV, LBP_JT. Redistribute values.
49843         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49844         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49845         Update.
49846         * lib/unilbrk/lbrkprop1.h: Regenerated.
49847         * lib/unilbrk/lbrkprop2.h: Regenerated.
49848         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49849         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49850         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49851         Likewise.
49852         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49853         Likewise.
49854         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49855         result.
49856         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49857         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49858         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49859         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49860         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49861         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49862
49863 2008-05-11  Bruno Haible  <bruno@clisp.org>
49864
49865         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49866
49867 2008-05-11  Bruno Haible  <bruno@clisp.org>
49868
49869         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49870         * modules/unilbrk/gen-lbrk: New file.
49871
49872 2008-05-11  Bruno Haible  <bruno@clisp.org>
49873
49874         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49875         * m4/sha512.m4 (gl_SHA512): Likewise.
49876
49877 2008-05-11  Jim Meyering  <meyering@redhat.com>
49878
49879         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49880         * modules/crypto/sha256: New file.
49881         * modules/crypto/sha512: Likewise.
49882         * lib/sha256.c: Likewise.
49883         * lib/sha256.h: Likewise.
49884         * lib/sha512.c: Likewise.
49885         * lib/sha512.h: Likewise.
49886         * lib/u64.h: Likewise.
49887         * m4/sha256.m4: Likewise.
49888         * m4/sha512.m4: Likewise.
49889         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49890
49891 2008-05-10  Bruno Haible  <bruno@clisp.org>
49892
49893         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49894         (Input/Output <stdio.h>): Add xprintf.
49895         (Signal handling <signal.h>): Add strsignal.
49896         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49897         (Core language properties): Add func.
49898         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49899         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49900         strings.
49901         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49902         (Input/output): New section.
49903         (File system functions): Add openat-die, stat-macros.
49904         (Networking functions): Add sockets.
49905         (Unicode string functions): Add unictype/*.
49906         (Support for building libraries and executables): Add gperf.
49907         (Support for building documentation): Add agpl-3.0.
49908         (Misc): Add nocrash.
49909
49910 2008-05-10  Bruno Haible  <bruno@clisp.org>
49911
49912         * modules/unictype/gen-ctype: New file.
49913
49914 2008-05-10  Jim Meyering  <meyering@redhat.com>
49915
49916         Make chdir-safer.c more efficient on a system with no symlinks.
49917         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49918         also if ELOOP is zero.  Suggested by Bruno Haible.
49919
49920         Make chdir-safer.c slightly safer.
49921         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49922         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49923
49924         Avoid compile failure on systems without ELOOP (like mingw).
49925         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49926         Reported by Bruno Haible.
49927
49928 2008-05-10  Bruno Haible  <bruno@clisp.org>
49929
49930         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49931         (is_utf8_encoding): Use a case-insensitive comparison.
49932         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49933         streq.
49934
49935 2008-05-10  Bruno Haible  <bruno@clisp.org>
49936
49937         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49938         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49939         * lib/unilbrk/ulc-common.h (iconv_string_length,
49940         iconv_string_keeping_offsets): Remove declarations.
49941         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49942         Don't include <iconv.h>, streq.h, xsize.h.
49943         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49944         conversion.
49945         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49946         <iconv.h>, streq.h, xsize.h.
49947         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49948         conversion.
49949         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49950         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49951         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49952         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49953
49954 2008-05-10  Bruno Haible  <bruno@clisp.org>
49955
49956         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49957         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49958
49959         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49960         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49961
49962         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49963         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49964
49965         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49966         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49967
49968         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49969         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49970
49971         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49972         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49973
49974         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49975         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49976
49977         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49978         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49979
49980 2008-05-10  Bruno Haible  <bruno@clisp.org>
49981
49982         Split up 'linebreak' module.
49983         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49984         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49985         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49986         modifications.
49987         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49988         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49989         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49990         lib/linebreak.c.
49991         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49992         lib/linebreak.c.
49993         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49994         lib/linebreak.c.
49995         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49996         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49997         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49998         lib/linebreak.c.
49999         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
50000         lib/linebreak.c.
50001         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
50002         lib/linebreak.c.
50003         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
50004         lib/linebreak.c.
50005         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
50006         lib/linebreak.c.
50007         * modules/unilbrk/base: New file.
50008         * modules/unilbrk/tables: New file.
50009         * modules/unilbrk/u8-possible-linebreaks: New file.
50010         * modules/unilbrk/u16-possible-linebreaks: New file.
50011         * modules/unilbrk/u32-possible-linebreaks: New file.
50012         * modules/unilbrk/ulc-common: New file.
50013         * modules/unilbrk/ulc-possible-linebreaks: New file.
50014         * modules/unilbrk/u8-width-linebreaks: New file.
50015         * modules/unilbrk/u16-width-linebreaks: New file.
50016         * modules/unilbrk/u32-width-linebreaks: New file.
50017         * modules/unilbrk/ulc-width-linebreaks: New file.
50018         * lib/linebreak.h: Remove file.
50019         * lib/linebreak.c: Remove file.
50020         * m4/linebreak.m4: Remove file.
50021         * modules/linebreak: Remove file.
50022         * NEWS: Mention the changes.
50023
50024 2008-05-09  Eric Blake  <ebb9@byu.net>
50025
50026         Add xmemdup0.
50027         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
50028         implementation.
50029         * lib/xmalloc.c (xmemdup0): New C implementation.
50030
50031 2008-05-08  Bruno Haible  <bruno@clisp.org>
50032
50033         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
50034
50035 2008-05-07  Eric Blake  <ebb9@byu.net>
50036
50037         Support cross-compilation of <wctype.h>.
50038         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
50039         AC_CACHE_CHECK.
50040
50041 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
50042
50043         * build-aux/vc-list-files: Add support for bzr.
50044
50045 2008-05-03  Jim Meyering  <meyering@redhat.com>
50046
50047         avoid failed assertion with tight malloc
50048         * tests/test-getndelim2.c: Correct an off-by-one assertion.
50049
50050 2008-05-03  Simon Josefsson  <simon@josefsson.org>
50051
50052         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
50053         are needed from arpa/inet.h.
50054         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
50055         Reported by Bruno Haible.
50056
50057 2008-05-02  Jim Meyering  <meyering@redhat.com>
50058
50059         avoid compilation error on FreeBSD 6
50060         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
50061
50062 2008-05-01  Jim Meyering  <meyering@redhat.com>
50063
50064         useless-if-before-free: correct --help's exit status description
50065         * build-aux/useless-if-before-free (usage): Like grep, exit 0
50066         for one or more matches, etc.  Reported by Bruno Haible.
50067
50068         vc-list-files: make the stand-alone gnulib test work
50069         * modules/vc-list-files-tests (configure.ac):
50070         Define and AC_SUBST abs_aux_dir.
50071         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
50072         $(abs_top_srcdir) to each script and having each of them
50073         duplicate the work of setting PATH, set PATH here, using
50074         the new variable, abs_aux_dir instead.
50075         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
50076         * tests/test-vc-list-files-git.sh: Likewise.
50077         Reported by Bruno Haible.
50078
50079 2008-05-01  Bruno Haible  <bruno@clisp.org>
50080
50081         * lib/getndelim2.c (getndelim2): Fix newsize computation during
50082         reallocation. Rename 'done' to 'found_delimiter'.
50083
50084 2008-05-01  Jim Meyering  <meyering@redhat.com>
50085
50086         vc-list-files: accommodate /bin/sh like the one from Solaris 10
50087         * build-aux/vc-list-files: Use `...`, not $(...).
50088
50089 2008-04-30  Jim Meyering  <meyering@redhat.com>
50090
50091         add tests for vc-list-files
50092         * modules/vc-list-files-tests: New module.
50093         * tests/test-vc-list-files-cvs.sh: New file.
50094         * tests/test-vc-list-files-git.sh: New file.
50095
50096         avoid a warning from gcc
50097         * lib/getndelim2.c (IF_LINT): Define.
50098         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
50099
50100         vc-list-files: work properly with build-aux/cvsu, too
50101         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
50102         to all cvs-based clauses.
50103
50104         vc-list-files: work properly in the CVS+awk case, too
50105         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
50106
50107         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
50108         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
50109         take more than one file argument, so .  Add quotes, just in case $dir
50110         ever contains a shell meta-character.  Prompted by Soren Hansen in
50111         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
50112
50113 2008-04-29  Eric Blake  <ebb9@byu.net>
50114
50115         Optimize getndelim2 to use block operations when possible.
50116         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
50117         freadseek, and memchr2.
50118         * lib/getndelim2.c (getndelim2): Use them for block reads.
50119
50120 2008-04-29  Bruno Haible  <bruno@clisp.org>
50121
50122         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
50123         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50124         * modules/inet_ntop (Depends-on): Add extensions.
50125         * modules/inet_pton (Depends-on): Likewise.
50126         Reported by Simon Josefsson.
50127
50128 2008-04-29  Jim Meyering  <meyering@redhat.com>
50129
50130         When the is more than one match in a block, match all of them.
50131         * build-aux/useless-if-before-free: Iterate through each block
50132         until there are no more matches.
50133
50134         Fix broken useless-if-before-free script.
50135         * build-aux/useless-if-before-free: Fix typo: missing "?" after
50136         the expression to match cast of argument to free-like function.
50137
50138 2008-04-29  Eric Blake  <ebb9@byu.net>
50139
50140         Use new header.
50141         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
50142
50143 2008-04-29  Jim Meyering  <meyering@redhat.com>
50144
50145         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
50146         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
50147         by gnulib to exist and to declare e.g., inet_ntop.
50148         Don't include "inet_ntop.h", now removed.
50149
50150         * m4/arpa_inet_h.m4: Remove trailing blanks.
50151
50152 2008-04-29  Eric Blake  <ebb9@byu.net>
50153
50154         Silence valgrind on safe reads beyond potential array bounds.
50155         * lib/rawmemchr.valgrind: New file.
50156         * lib/strchrnul.valgrind: Likewise.
50157         * modules/rawmemchr (Files): Distribute new file.
50158         * modules/strchrnul (Files): Likewise.
50159         Suggested by Bruno Haible.
50160
50161 2008-04-29  Bruno Haible  <bruno@clisp.org>
50162
50163         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
50164         (inet_ntop, inet_pton): Change portability warning's wording.
50165         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
50166         Invoke gl_CHECK_NEXT_HEADERS.
50167         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
50168         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
50169         set ARPA_INET_H.
50170         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50171         * modules/arpa_inet (Description): No longer only for systems that
50172         lack it.
50173         (Depends-on): Add include_next.
50174         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
50175         HAVE_ARPA_INET_H.
50176
50177 2008-04-29  Jim Meyering  <meyering@redhat.com>
50178
50179         * modules/mkdir (License): Re-license as LGPLv2+.
50180
50181 2008-04-29  Bruno Haible  <bruno@clisp.org>
50182
50183         * modules/rawmemchr (Maintainer): Set to Eric.
50184         * modules/strchrnul (Maintainer): Likewise.
50185
50186 2008-04-29  Simon Josefsson  <simon@josefsson.org>
50187
50188         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
50189         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
50190
50191         * modules/arpa_inet (arpa/inet.h): Use them.
50192
50193 2008-04-28  Eric Blake  <ebb9@byu.net>
50194
50195         Test getndelim2.
50196         * modules/getndelim2-tests: New file.
50197         * tests/test-getndelim2.c: Likewise.
50198         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
50199         stream.
50200         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
50201
50202         * MODULES.html.sh: Document new module.
50203
50204 2008-04-20  Bruno Haible  <bruno@clisp.org>
50205
50206         * lib/c-stack.c (die): Use raise.
50207         * modules/c-stack (Depends-on): Add raise.
50208
50209 2008-04-28  Bruno Haible  <bruno@clisp.org>
50210
50211         Expect rpmatch to be declared.
50212         * lib/yesno.c (rpmatch): Remove declaration.
50213
50214         Declare rpmatch.
50215         * lib/stdlib.in.h (rpmatch): New declaration.
50216         * lib/rpmatch.c: Include <stdlib.h> first.
50217         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
50218         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
50219         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
50220         HAVE_RPMATCH.
50221         * modules/rpmatch (Depends-on): Add stdlib, extensions.
50222         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50223         (Include): Set to <stdlib.h>.
50224         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
50225         HAVE_RPMATCH.
50226         * NEWS: Document the change.
50227
50228 2008-04-28  Bruno Haible  <bruno@clisp.org>
50229
50230         Change rpmatch to use nl_langinfo when appropriate.
50231         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
50232         (N_): New macro.
50233         (localized_pattern): New function/macro.
50234         (try): Remove match, nomatch arguments. Copy the pattern into safe
50235         memory before caching it.
50236         (rpmatch): Use localized_pattern. Add translator comments.
50237         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
50238         Suggested by Eric Blake.
50239         * modules/rpmatch (Depends-on): Add stdbool.
50240
50241 2008-04-28  Eric Blake  <ebb9@byu.net>
50242
50243         Add rawmemchr module, matching glibc.
50244         * modules/string (Makefile.am): New indicator.
50245         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
50246         * lib/string.in.h (rawmemchr): Declare when appropriate.
50247         * modules/rawmemchr: New file.
50248         * m4/rawmemchr.m4: Likewise.
50249         * lib/rawmemchr.c: Likewise.
50250         * modules/rawmemchr-tests: Likewise.
50251         * tests/test-rawmemchr.c: Likewise.
50252         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
50253         module.
50254         * modules/strchrnul (Depends-on): Add rawmemchr.
50255         * lib/strchrnul.c (strchrnul): Optimize a corner case.
50256
50257         Whitespace cleanup.
50258         * tests/test-strchrnul.c: Reindent.
50259         * lib/strchrnul.c: Likewise.
50260
50261         Optimize and test strchrnul.
50262         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
50263         * modules/strchrnul-tests: New file.
50264         * tests/test-strchrnul.c: Likewise.
50265
50266         Remove intprops dependency.
50267         * modules/memchr (Depends-on): Remove intprops.
50268         * modules/memrchr (Depends-on): Likewise.
50269         * modules/memchr2 (Depends-on): Likewise.
50270         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
50271         * lib/memrchr.c (__memrchr): Likewise.
50272         * lib/memrchr2.c (memchr2): Likewise.
50273         Reported by Simon Josefsson.
50274
50275 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50276
50277         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
50278         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50279
50280 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50281
50282         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
50283
50284         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
50285
50286         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
50287
50288         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
50289         declarations.
50290         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
50291
50292         * m4/inet_pton.m4: Don't check for header files.
50293
50294         * m4/inet_ntop.m4: Don't check for header files.
50295
50296 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50297
50298         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
50299         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
50300         trigger for cygwin).
50301         Reported by Bruno Haible  <bruno@clisp.org>.
50302
50303 2008-04-28  Bruno Haible  <bruno@clisp.org>
50304
50305         * doc/posix-functions/strdup.texi: Mention mingw problem.
50306
50307 2008-04-27  Bruno Haible  <bruno@clisp.org>
50308
50309         * modules/stat-time-tests (Depends-on): Add sleep.
50310         * tests/test-stat-time.c (force_unlink): New function.
50311         (cleanup): Use it.
50312         (test_mtime): Remove the ctime related tests.
50313         (test_ctime): New function, containing the ctime related tests.
50314         (main): Call test_ctime, except on native Windows platforms.
50315
50316 2008-04-27  Bruno Haible  <bruno@clisp.org>
50317
50318         * lib/rpmatch.c (rpmatch): Add some comments.
50319         Reported by James Youngman <jay@gnu.org>.
50320
50321 2008-04-27  Bruno Haible  <bruno@clisp.org>
50322
50323         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
50324         quiet NaNs.
50325
50326 2008-04-27  Bruno Haible  <bruno@clisp.org>
50327
50328         Make test-yesno.sh work on mingw.
50329         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
50330         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
50331         (main): Set stdin to binary mode.
50332         * modules/yesno-tests (Depends-on): Add binary-io.
50333
50334 2008-04-27  Bruno Haible  <bruno@clisp.org>
50335
50336         Fix 'isfinite' on x86, x86_64, ia64 platforms.
50337         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
50338         argument that lie outside the IEEE 854 domain.
50339         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
50340         (gl_ISFINITE): Use it.
50341         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
50342
50343 2008-04-27  Bruno Haible  <bruno@clisp.org>
50344
50345         Allow local renaming in config.h.
50346         * lib/memrchr.c (memrchr): Don't undefine outside libc.
50347
50348 2008-04-27  Bruno Haible  <bruno@clisp.org>
50349
50350         * lib/memchr.c (__memchr): Change type of 'i'.
50351         * lib/memchr2.c (memchr2): Likewise.
50352
50353 2008-04-26  Eric Blake  <ebb9@byu.net>
50354         and Bruno Haible  <bruno@clisp.org>
50355
50356         Optimize and test memrchr.
50357         * modules/memrchr (Depends-on): Add intprops.
50358         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50359         * modules/memrchr-tests: New file.
50360         * tests/test-memrchr.c: New file.
50361
50362 2008-04-26  Bruno Haible  <bruno@clisp.org>
50363
50364         Add tentative support for DragonFly BSD.
50365         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50366         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50367         fp.
50368         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50369         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50370         * lib/fpurge.c (fpurge): Likewise.
50371         * lib/freadable.c (freaadable): Likewise.
50372         * lib/freadahead.c (freadahead): Likewise.
50373         * lib/freading.c (freading): Likewise.
50374         * lib/freadptr.c (freadptr): Likewise.
50375         * lib/freadseek.c (freadptrinc): Likewise.
50376         * lib/fseeko.c (fseeko): Likewise.
50377         * lib/fseterr.c (fseterr): Likewise.
50378         * lib/fwritable.c (fwritable): Likewise.
50379         * lib/fwriting.c (fwriting): Likewise.
50380
50381 2008-04-26  Bruno Haible  <bruno@clisp.org>
50382
50383         * lib/stdio-impl.h: New file.
50384         * lib/fbufmode.c: Include stdio-impl.h.
50385         (fbufmode): Use fp_, remove redundant #defines.
50386         * lib/fflush.c: Include stdio-impl.h.
50387         (clear_ungetc_buffer): Remove redundant #defines.
50388         * lib/fpurge.c: Include stdio-impl.h.
50389         (fpurge): Remove redundant #defines.
50390         * lib/freadable.c: Include stdio-impl.h.
50391         (freadable): Remove redundant #defines.
50392         * lib/freadahead.c: Include stdio-impl.h.
50393         (freadahead): Remove redundant #defines.
50394         * lib/freading.c: Include stdio-impl.h.
50395         (freading): Remove redundant #defines.
50396         * lib/freadptr.c: Include stdio-impl.h.
50397         (freadptr): Remove redundant #defines.
50398         * lib/freadseek.c: Include stdio-impl.h.
50399         (freadptrinc): Remove redundant #defines.
50400         * lib/fseeko.c: Include stdio-impl.h.
50401         (rpl_fseeko): Remove redundant #defines.
50402         * lib/fseterr.c: Include stdio-impl.h.
50403         (fseterr): Remove redundant #defines.
50404         * lib/fwritable.c: Include stdio-impl.h.
50405         (fwritable: Remove redundant #defines.
50406         * lib/fwriting.c: Include stdio-impl.h.
50407         (fwriting): Remove redundant #defines.
50408         * modules/fbufmode (Files): Add lib/stdio-impl.h.
50409         * modules/fflush (Files): Likewise.
50410         * modules/fpurge (Files): Likewise.
50411         * modules/freadable (Files): Likewise.
50412         * modules/freadahead (Files): Likewise.
50413         * modules/freading (Files): Likewise.
50414         * modules/freadptr (Files): Likewise.
50415         * modules/freadseek (Files): Likewise.
50416         * modules/fseeko (Files): Likewise.
50417         * modules/fseterr (Files): Likewise.
50418         * modules/fwritable (Files): Likewise.
50419         * modules/fwriting (Files): Likewise.
50420
50421 2008-04-26  Bruno Haible  <bruno@clisp.org>
50422
50423         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50424         restore_seek_optimization, update_fpos_cache): New functions, extracted
50425         from rpl_fflush.
50426         (rpl_fflush): Use them.
50427         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
50428         (gl_REPLACE_FFLUSH): Use it.
50429
50430 2008-04-26  Bruno Haible  <bruno@clisp.org>
50431
50432         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
50433         on Solaris.
50434         * tests/test-xstrtoimax.sh: Likewise.
50435         * tests/test-xstrtoumax.sh: Likewise.
50436         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50437
50438 2008-04-26  Bruno Haible  <bruno@clisp.org>
50439
50440         * modules/memchr-tests: New file.
50441         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
50442
50443 2008-04-26  Eric Blake  <ebb9@byu.net>
50444             Bruno Haible  <bruno@clisp.org>
50445
50446         * lib/memchr.c: Include intprops.h.
50447         (__memchr): Optimize parallel detection of matching bytes. Rename local
50448         variables. Add explanatory comments.
50449
50450 2008-04-26  Bruno Haible  <bruno@clisp.org>
50451
50452         Fix module 'memchr', broken since 2000-10-28.
50453         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
50454
50455 2008-04-26  Bruno Haible  <bruno@clisp.org>
50456
50457         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
50458         comments.
50459
50460 2008-04-25  Eric Blake  <ebb9@byu.net>
50461
50462         Use native fstatat on cygwin 1.7.0.
50463         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
50464         first.
50465
50466 2008-04-23  Eric Blake  <ebb9@byu.net>
50467
50468         Improve memchr2 performance.
50469         * lib/memchr2.c (memchr2): Further optimize parallel detection of
50470         NUL bytes.
50471         * modules/memchr2 (Depends-on): Use intprops.h.
50472
50473 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50474
50475         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50476         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50477         <blp@cs.stanford.edu>.
50478
50479 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50480
50481         * lib/arpa_inet.in.h: New file.
50482
50483         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50484         (Makefile.am): Sed in substitute header file.
50485
50486         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50487         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50488
50489         * modules/inet_ntop (configure.ac): Use
50490         gl_ARPA_INET_MODULE_INDICATOR.
50491
50492         * modules/inet_pton (configure.ac): Use
50493         gl_ARPA_INET_MODULE_INDICATOR.
50494
50495 2008-04-22  Jim Meyering  <meyering@redhat.com>
50496
50497         * modules/verify (License): Re-license as LGPLv2+.
50498
50499 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50500
50501         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50502         parameter to void* as per POSIX standard (MinGW uses char*).
50503
50504 2008-04-21  Bruno Haible  <bruno@clisp.org>
50505
50506         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50507         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50508         Define to replacements if REPLACE_ISWCNTRL is 1.
50509         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50510         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50511         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50512         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50513         what it fixes.
50514         * doc/posix-functions/iswalpha.texi: Likewise.
50515         * doc/posix-functions/iswblank.texi: Likewise.
50516         * doc/posix-functions/iswcntrl.texi: Likewise.
50517         * doc/posix-functions/iswdigit.texi: Likewise.
50518         * doc/posix-functions/iswgraph.texi: Likewise.
50519         * doc/posix-functions/iswlower.texi: Likewise.
50520         * doc/posix-functions/iswprint.texi: Likewise.
50521         * doc/posix-functions/iswpunct.texi: Likewise.
50522         * doc/posix-functions/iswspace.texi: Likewise.
50523         * doc/posix-functions/iswupper.texi: Likewise.
50524         * doc/posix-functions/iswxdigit.texi: Likewise.
50525         Reported by Alain Guibert.
50526
50527 2008-04-21  Bruno Haible  <bruno@clisp.org>
50528
50529         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50530         Patch by Alain Guibert.
50531
50532 2008-04-21  Bruno Haible  <bruno@clisp.org>
50533
50534         Fix test failures on mingw.
50535         * tests/test-xstrtol.c (print_no_progname): New function.
50536         (main): Install it in error_print_progname hook.
50537         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50538         * tests/test-xstrtoimax.sh: Likewise.
50539         * tests/test-xstrtoumax.sh: Likewise.
50540
50541 2008-04-21  Bruno Haible  <bruno@clisp.org>
50542
50543         Fix test failure on mingw.
50544         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50545
50546 2008-04-21  Bruno Haible  <bruno@clisp.org>
50547
50548         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50549         Actually assign a value.
50550
50551 2008-04-20  Bruno Haible  <bruno@clisp.org>
50552
50553         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50554         take 2.
50555         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50556         'canonicalize-lgpl' module is also used.
50557         * lib/canonicalize-lgpl.c: Undo last change.
50558         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50559
50560 2008-04-20  Bruno Haible  <bruno@clisp.org>
50561
50562         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50563         config.h. Provide _mkdir based fallback for mingw.
50564         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50565         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50566         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50567         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50568         rather than defining mkdir in config.h.
50569         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50570         (gl_SYS_STAT_H_DEFAULTS): New macro.
50571         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50572         HAVE_IO_H any more.
50573         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50574         HAVE_DECL_MKDIR and HAVE_IO_H.
50575
50576 2008-04-20  Bruno Haible  <bruno@clisp.org>
50577
50578         * lib/isapipe.c: Port to native Windows platforms.
50579
50580 2008-04-20  Bruno Haible  <bruno@clisp.org>
50581
50582         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50583
50584 2008-04-21  Eric Blake  <ebb9@byu.net>
50585
50586         Work around preprocessors that don't handle UINTMAX_MAX.
50587         * lib/memchr2.c (memchr2): Avoid embedded #if.
50588         Reported by Alain Guibert, fix suggested by Bruno Haible.
50589
50590 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50591
50592         * doc/posix-functions/strftime.texi (strftime): Explain better
50593         Windows incompatibility.  Suggested by Micah Cowan
50594         <micah@cowan.name>.
50595
50596 2008-04-20  Bruno Haible  <bruno@clisp.org>
50597
50598         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50599         unistr/u8-mblen.
50600
50601 2008-04-20  Bruno Haible  <bruno@clisp.org>
50602
50603         Fix test failure on platforms with non-GNU iconv.
50604         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50605         (U_TO_U8): Use it, rather than u16_to_u8.
50606         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50607         units at the end of the input string.
50608         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50609
50610 2008-04-20  Bruno Haible  <bruno@clisp.org>
50611
50612         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50613         when the resulting length is 0.
50614         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50615
50616 2008-04-20  Bruno Haible  <bruno@clisp.org>
50617
50618         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50619         works.
50620         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50621
50622 2008-04-20  Bruno Haible  <bruno@clisp.org>
50623
50624         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50625         * modules/tsearch-tests (configure.ac): Test for initstate function.
50626
50627 2008-04-20  Bruno Haible  <bruno@clisp.org>
50628
50629         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50630         for nlink_t if missing.
50631         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50632
50633 2008-04-19  Bruno Haible  <bruno@clisp.org>
50634
50635         Work around snprintf bug on Linux libc5.
50636         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50637         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50638         gl_SNPRINTF_SIZE1.
50639         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50640         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50641         that test failed.
50642         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50643         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50644         * modules/snprintf (Files): Add m4/printf.m4.
50645         * modules/vsnprintf (Files): Likewise.
50646         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50647         * doc/posix-functions/vsnprintf.texi: Likewise.
50648
50649 2008-04-19  Bruno Haible  <bruno@clisp.org>
50650
50651         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50652         from 0.0058 to less than 10^-7.
50653
50654 2008-04-19  Bruno Haible  <bruno@clisp.org>
50655
50656         Fix rounding when a precision is given.
50657         * lib/vasnprintf.c (is_borderline): New function.
50658         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50659         9...9x.
50660         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50661         %e, %g.
50662         * tests/test-vasprintf-posix.c (test_function): Likewise.
50663         * tests/test-snprintf-posix.h (test_function): Likewise.
50664         * tests/test-sprintf-posix.h (test_function): Likewise.
50665         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50666         * tests/test-printf-posix.h (test_function): Likewise.
50667         * tests/test-printf-posix.output: Update.
50668         Reported by John Darrington <john@darrington.wattle.id.au> via
50669         Ben Pfaff <blp@cs.stanford.edu>.
50670
50671 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50672
50673         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50674         Suggested by Bruno Haible <bruno@clisp.org>.
50675
50676 2008-04-17  Bruno Haible  <bruno@clisp.org>
50677
50678         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50679         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50680         implementation.
50681         Patch by Bruce Merry <bmerry@gmail.com>.
50682
50683 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50684
50685         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50686         doesn't work under Windows.
50687
50688 2008-04-16  Bruno Haible  <bruno@clisp.org>
50689
50690         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50691         New macros.
50692         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50693         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50694         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50695         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50696         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50697         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50698         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50699         macros.
50700         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50701         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50702         Northern Sotho, Uighur.
50703
50704 2008-04-16  Bruno Haible  <bruno@clisp.org>
50705
50706         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50707         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50708         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50709         Reported by Daniel Bergström <daniel@octocode.com>.
50710
50711 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50712             Bruno Haible  <bruno@clisp.org>
50713
50714         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50715         function.
50716         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50717         New functions, mostly extracted from gl_locale_name_default.
50718         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50719
50720 2008-04-16  Eric Blake  <ebb9@byu.net>
50721
50722         Adjust strtod detection to catch glibc 2.7 bug.
50723         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50724         Reported by John Gatewood Ham.
50725
50726 2008-04-16  Bruno Haible  <bruno@clisp.org>
50727
50728         Add tentative support for Linux libc5.
50729         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50730         * lib/fpurge.c (fpurge): Likewise.
50731         * lib/freadable.c (freadable): Likewise.
50732         * lib/freadahead.c (freadahead): Likewise.
50733         * lib/freading.c (freading): Likewise.
50734         * lib/freadptr.c (freadptr): Likewise.
50735         * lib/freadseek.c (freadptrinc): Likewise.
50736         * lib/fseeko.c (rpl_fseeko): Likewise.
50737         * lib/fseterr.c (fseterr): Likewise.
50738         * lib/fwritable.c (fwritable): Likewise.
50739         * lib/fwriting.c (fwriting): Likewise.
50740         Reported by Alain Guibert <alguibert+bts@free.fr>.
50741
50742 2008-04-15  Bruno Haible  <bruno@clisp.org>
50743
50744         * modules/mathl (configure.ac): Define module indicator.
50745
50746 2008-04-15  Bruno Haible  <bruno@clisp.org>
50747
50748         * lib/logl.c (logl): Remove unused variables.
50749
50750 2008-04-15  Bruno Haible  <bruno@clisp.org>
50751
50752         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50753         fails.
50754
50755 2008-04-15  Bruno Haible  <bruno@clisp.org>
50756
50757         * lib/trim.c (trim2): Fix argument of isspace() macro.
50758
50759 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50760
50761         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50762         to 0.
50763         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50764
50765 2008-04-14  Bruno Haible  <bruno@clisp.org>
50766
50767         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50768         AC_LANG_PROGRAM argument.
50769         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50770         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50771         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50772         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50773         * m4/math_h.m4 (gl_MATH_H): Likewise.
50774         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50775         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50776         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50777         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50778         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50779         * m4/regex.m4 (gl_REGEX): Likewise.
50780         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50781         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50782         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50783         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50784         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50785         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50786         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50787         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50788
50789 2008-04-14  Jim Meyering  <meyering@redhat.com>
50790
50791         test-strtod: fix typos: s/abs/fabs/
50792         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50793
50794 2008-04-13  Bruno Haible  <bruno@clisp.org>
50795
50796         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50797         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50798         module is also used and while not building the reloc-wrapper.
50799
50800 2008-04-13  Bruno Haible  <bruno@clisp.org>
50801
50802         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50803
50804 2008-04-13  Bruno Haible  <bruno@clisp.org>
50805
50806         Fix AIX compilation failure introduced on 2008-04-02.
50807         * tests/test-frexp.c (exp): Undefine before redefining.
50808         * tests/test-frexpl.c (exp): Likewise.
50809
50810 2008-04-13  Bruno Haible  <bruno@clisp.org>
50811
50812         Work around a HP-UX stdio bug.
50813         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50814         * tests/test-ftello.c (main): Likewise.
50815         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50816         * doc/posix-functions/ftello.texi: Likewise.
50817
50818 2008-04-13  Bruno Haible  <bruno@clisp.org>
50819
50820         Make test-signbit pass on HP-UX/hppa.
50821         * tests/test-signbit.c (minus_zerol): New variable.
50822         (test_signbitl): Use it.
50823
50824 2008-04-13  Bruno Haible  <bruno@clisp.org>
50825
50826         Make truncl work on OSF/1 4.0.
50827         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50828         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50829         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50830         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50831         HAVE_DECL_TRUNCL.
50832         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50833         HAVE_DECL_TRUNCL.
50834         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50835
50836 2008-04-13  Bruno Haible  <bruno@clisp.org>
50837
50838         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50839
50840 2008-04-13  Bruno Haible  <bruno@clisp.org>
50841
50842         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50843         expression, so as to avoid HP-UX 11 cc compiler bug.
50844
50845 2008-04-13  Bruno Haible  <bruno@clisp.org>
50846
50847         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50848
50849 2008-04-13  Bruno Haible  <bruno@clisp.org>
50850
50851         * lib/git-merge-changelog.c: Remove empty declaration outside of
50852         functions.
50853
50854 2008-04-13  Bruno Haible  <bruno@clisp.org>
50855
50856         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50857
50858 2008-04-13  Bruno Haible  <bruno@clisp.org>
50859
50860         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50861         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50862         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50863         also if it exists but lacks definitions of the SHUT_* macros.
50864         * modules/sys_socket (Description): Update.
50865         Reported by Elbert Pol <e.pol@chello.nl>.
50866
50867 2008-04-13  Bruno Haible  <bruno@clisp.org>
50868
50869         * lib/localcharset.c (OS2): Don't redefine if already defined.
50870         Reported by Elbert Pol <e.pol@chello.nl>.
50871
50872 2008-04-13  Bruno Haible  <bruno@clisp.org>
50873
50874         * lib/binary-io.h [__EMX__]: Include <io.h>.
50875         Reported by Elbert Pol <e.pol@chello.nl>.
50876
50877 2008-04-12  Bruno Haible  <bruno@clisp.org>
50878
50879         * lib/fpucw.h: Enable the definitions also for x86_64.
50880         Needed for NetBSD/x86_64.
50881         Reported by Thomas Klausner <tk@giga.or.at>.
50882
50883 2008-04-12  Bruno Haible  <bruno@clisp.org>
50884
50885         * tests/test-strtod.c: Include isnand.h.
50886         (main): Use isnand instead of isnan.
50887         Reported by Jim Meyering.
50888
50889 2008-04-12  Bruno Haible  <bruno@clisp.org>
50890
50891         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50892         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50893
50894 2008-04-12  Jim Meyering  <meyering@redhat.com>
50895
50896         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50897
50898 2008-04-12  Bruno Haible  <bruno@clisp.org>
50899
50900         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50901         Reported by Elbert Pol <e.pol@chello.nl>.
50902
50903 2008-04-12  Eric Blake  <ebb9@byu.net>
50904
50905         Work around Solaris 10 math.h bug.
50906         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50907         (gl_MATH_H_DEFAULTS): Set up default.
50908         * modules/math (Makefile.am): Replace new indicators.
50909         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50910         * tests/test-math.c (main): Test this.
50911         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50912         * doc/posix-headers/math.texi (math.h): Mention bug.
50913         Reported by Nelson H. F. Beebe and Jim Meyering.
50914
50915 2008-04-11  Bruno Haible  <bruno@clisp.org>
50916
50917         Adapt to future versions of Apple GCC.
50918         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50919         Reported by Peter O'Gorman <peter@pogma.com>.
50920
50921 2008-04-11  Bruno Haible  <bruno@clisp.org>
50922
50923         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50924
50925 2008-04-11  Bruno Haible  <bruno@clisp.org>
50926
50927         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50928
50929         * modules/getaddrinfo-tests (Makefile.am): Define
50930         test_getaddrinfo_LDADD.
50931
50932 2008-04-11  Bruno Haible  <bruno@clisp.org>
50933
50934         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50935         (init): Fix syntax error.
50936         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50937         is declared.
50938
50939 2008-04-11  Bruno Haible  <bruno@clisp.org>
50940
50941         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50942         * modules/glob (Depends-on): Add stdbool.
50943
50944 2008-04-11  Bruno Haible  <bruno@clisp.org>
50945
50946         * lib/trim.c: Include <string.h>.
50947
50948 2008-04-11  Eric Blake  <ebb9@byu.net>
50949
50950         Avoid compile failure on OS/2.
50951         * lib/regex_internal.h (internal_function): Disable optimization
50952         on OS/2 (__EMX__), where it caused compiler error.
50953         Reported by Elbert Pol.
50954
50955 2008-04-11  Bruno Haible  <bruno@clisp.org>
50956
50957         Flush the standard error stream before aborting. Needed on mingw.
50958         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50959         * tests/test-array_list.c (ASSERT): Likewise.
50960         * tests/test-array_oset.c (ASSERT): Likewise.
50961         * tests/test-avltree_list.c (ASSERT): Likewise.
50962         * tests/test-avltree_oset.c (ASSERT): Likewise.
50963         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50964         * tests/test-binary-io.c (ASSERT): Likewise.
50965         * tests/test-byteswap.c (ASSERT): Likewise.
50966         * tests/test-c-ctype.c (ASSERT): Likewise.
50967         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50968         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50969         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50970         * tests/test-c-strstr.c (ASSERT): Likewise.
50971         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50972         * tests/test-canonicalize.c (ASSERT): Likewise.
50973         * tests/test-carray_list.c (ASSERT): Likewise.
50974         * tests/test-ceilf1.c (ASSERT): Likewise.
50975         * tests/test-ceilf2.c (ASSERT): Likewise.
50976         * tests/test-ceill.c (ASSERT): Likewise.
50977         * tests/test-count-one-bits.c (ASSERT): Likewise.
50978         * tests/test-fbufmode.c (ASSERT): Likewise.
50979         * tests/test-fflush2.c (ASSERT): Likewise.
50980         * tests/test-floorf1.c (ASSERT): Likewise.
50981         * tests/test-floorf2.c (ASSERT): Likewise.
50982         * tests/test-floorl.c (ASSERT): Likewise.
50983         * tests/test-fopen.c (ASSERT): Likewise.
50984         * tests/test-fpending.c (ASSERT): Likewise.
50985         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50986         * tests/test-fpurge.c (ASSERT): Likewise.
50987         * tests/test-freadable.c (ASSERT): Likewise.
50988         * tests/test-freadahead.c (ASSERT): Likewise.
50989         * tests/test-freading.c (ASSERT): Likewise.
50990         * tests/test-freadptr.c (ASSERT): Likewise.
50991         * tests/test-freadptr2.c (ASSERT): Likewise.
50992         * tests/test-freadseek.c (ASSERT): Likewise.
50993         * tests/test-freopen.c (ASSERT): Likewise.
50994         * tests/test-frexp.c (ASSERT): Likewise.
50995         * tests/test-frexpl.c (ASSERT): Likewise.
50996         * tests/test-fseek.c (ASSERT): Likewise.
50997         * tests/test-fseeko.c (ASSERT): Likewise.
50998         * tests/test-fstrcmp.c (ASSERT): Likewise.
50999         * tests/test-ftell.c (ASSERT): Likewise.
51000         * tests/test-ftello.c (ASSERT): Likewise.
51001         * tests/test-func.c (ASSERT): Likewise.
51002         * tests/test-fwritable.c (ASSERT): Likewise.
51003         * tests/test-fwriting.c (ASSERT): Likewise.
51004         * tests/test-getdelim.c (ASSERT): Likewise.
51005         * tests/test-getline.c (ASSERT): Likewise.
51006         * tests/test-i-ring.c (ASSERT): Likewise.
51007         * tests/test-iconv-utf.c (ASSERT): Likewise.
51008         * tests/test-iconv.c (ASSERT): Likewise.
51009         * tests/test-isfinite.c (ASSERT): Likewise.
51010         * tests/test-isnand.c (ASSERT): Likewise.
51011         * tests/test-isnanf.c (ASSERT): Likewise.
51012         * tests/test-isnanl.h (ASSERT): Likewise.
51013         * tests/test-ldexpl.c (ASSERT): Likewise.
51014         * tests/test-linked_list.c (ASSERT): Likewise.
51015         * tests/test-linkedhash_list.c (ASSERT): Likewise.
51016         * tests/test-localename.c (ASSERT): Likewise.
51017         * tests/test-lseek.c (ASSERT): Likewise.
51018         * tests/test-mbscasecmp.c (ASSERT): Likewise.
51019         * tests/test-mbscasestr1.c (ASSERT): Likewise.
51020         * tests/test-mbscasestr2.c (ASSERT): Likewise.
51021         * tests/test-mbscasestr3.c (ASSERT): Likewise.
51022         * tests/test-mbscasestr4.c (ASSERT): Likewise.
51023         * tests/test-mbschr.c (ASSERT): Likewise.
51024         * tests/test-mbscspn.c (ASSERT): Likewise.
51025         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
51026         * tests/test-mbspbrk.c (ASSERT): Likewise.
51027         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
51028         * tests/test-mbsrchr.c (ASSERT): Likewise.
51029         * tests/test-mbsspn.c (ASSERT): Likewise.
51030         * tests/test-mbsstr1.c (ASSERT): Likewise.
51031         * tests/test-mbsstr2.c (ASSERT): Likewise.
51032         * tests/test-mbsstr3.c (ASSERT): Likewise.
51033         * tests/test-memchr2.c (ASSERT): Likewise.
51034         * tests/test-memmem.c (ASSERT): Likewise.
51035         * tests/test-open.c (ASSERT): Likewise.
51036         * tests/test-printf-frexp.c (ASSERT): Likewise.
51037         * tests/test-printf-frexpl.c (ASSERT): Likewise.
51038         * tests/test-printf-posix.c (ASSERT): Likewise.
51039         * tests/test-quotearg.c (ASSERT): Likewise.
51040         * tests/test-rbtree_list.c (ASSERT): Likewise.
51041         * tests/test-rbtree_oset.c (ASSERT): Likewise.
51042         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
51043         * tests/test-round1.c (ASSERT): Likewise.
51044         * tests/test-roundf1.c (ASSERT): Likewise.
51045         * tests/test-roundl.c (ASSERT): Likewise.
51046         * tests/test-signbit.c (ASSERT): Likewise.
51047         * tests/test-sleep.c (ASSERT): Likewise.
51048         * tests/test-snprintf-posix.c (ASSERT): Likewise.
51049         * tests/test-snprintf.c (ASSERT): Likewise.
51050         * tests/test-sprintf-posix.c (ASSERT): Likewise.
51051         * tests/test-stat-time.c (ASSERT): Likewise.
51052         * tests/test-strcasestr.c (ASSERT): Likewise.
51053         * tests/test-strerror.c (ASSERT): Likewise.
51054         * tests/test-striconv.c (ASSERT): Likewise.
51055         * tests/test-striconveh.c (ASSERT): Likewise.
51056         * tests/test-striconveha.c (ASSERT): Likewise.
51057         * tests/test-strsignal.c (ASSERT): Likewise.
51058         * tests/test-strstr.c (ASSERT): Likewise.
51059         * tests/test-strtod.c (ASSERT): Likewise.
51060         * tests/test-trunc1.c (ASSERT): Likewise.
51061         * tests/test-trunc2.c (ASSERT): Likewise.
51062         * tests/test-truncf1.c (ASSERT): Likewise.
51063         * tests/test-truncf2.c (ASSERT): Likewise.
51064         * tests/test-truncl.c (ASSERT): Likewise.
51065         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
51066         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
51067         * tests/test-vasnprintf.c (ASSERT): Likewise.
51068         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
51069         * tests/test-vasprintf.c (ASSERT): Likewise.
51070         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
51071         * tests/test-vprintf-posix.c (ASSERT): Likewise.
51072         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
51073         * tests/test-vsnprintf.c (ASSERT): Likewise.
51074         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
51075         * tests/test-wcwidth.c (ASSERT): Likewise.
51076         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
51077         * tests/test-xprintf-posix.c (ASSERT): Likewise.
51078         * tests/test-xvasprintf.c (ASSERT): Likewise.
51079         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
51080         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
51081         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
51082         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
51083         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
51084         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
51085         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
51086         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
51087         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
51088         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
51089         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
51090         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
51091         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
51092         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
51093         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
51094         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
51095         * tests/unictype/test-block_list.c (ASSERT): Likewise.
51096         * tests/unictype/test-block_of.c (ASSERT): Likewise.
51097         * tests/unictype/test-block_test.c (ASSERT): Likewise.
51098         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
51099         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
51100         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
51101         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
51102         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
51103         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
51104         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
51105         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
51106         * tests/unictype/test-combining.c (ASSERT): Likewise.
51107         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
51108         * tests/unictype/test-digit.c (ASSERT): Likewise.
51109         * tests/unictype/test-mirror.c (ASSERT): Likewise.
51110         * tests/unictype/test-numeric.c (ASSERT): Likewise.
51111         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
51112         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
51113         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
51114         * tests/unictype/test-scripts.c (ASSERT): Likewise.
51115         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
51116         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
51117         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
51118         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
51119         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
51120         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
51121         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
51122         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
51123         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
51124         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
51125         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
51126         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
51127         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
51128         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
51129         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
51130         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
51131         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
51132         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
51133         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
51134         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
51135         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
51136         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
51137         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
51138         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
51139         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
51140         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
51141         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
51142         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
51143         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
51144         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
51145         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
51146         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
51147         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
51148         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
51149         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
51150         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
51151         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
51152         Reported by Eric Blake.
51153
51154 2008-04-11  Bruno Haible  <bruno@clisp.org>
51155
51156         * lib/wchar.in.h: Tweak comment.
51157
51158 2008-04-11  Bruno Haible  <bruno@clisp.org>
51159
51160         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
51161         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
51162         gl_COMMON.
51163         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
51164
51165 2008-04-11  Bruno Haible  <bruno@clisp.org>
51166
51167         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
51168
51169 2008-04-11  Simon Josefsson  <simon@josefsson.org>
51170
51171         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
51172         of attempting to use non-existing /dev/*random.  Based on patch
51173         from Adam Strzelecki <ono@java.pl> in
51174         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
51175
51176 2008-04-08  Bruno Haible  <bruno@clisp.org>
51177
51178         Add tentative support for emx+gcc.
51179         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
51180         * lib/fpurge.c (fpurge): Likewise.
51181         * lib/freadable.c (freadable): Likewise.
51182         * lib/freadahead.c (freadahead): Likewise.
51183         * lib/freading.c (freading): Likewise.
51184         * lib/freadptr.c (freadptr): Likewise.
51185         * lib/freadseek.c (freadptrinc): Likewise.
51186         * lib/fseeko.c (rpl_fseeko): Likewise.
51187         * lib/fseterr.c (fseterr): Likewise.
51188         * lib/fwritable.c (fwritable): Likewise.
51189         * lib/fwriting.c (fwriting): Likewise.
51190         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
51191
51192 2008-04-09  Eric Blake  <ebb9@byu.net>
51193
51194         Avoid some autoconf warnings.
51195         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
51196         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
51197         * m4/afs.m4 (gl_AFS): Likewise.
51198         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
51199         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
51200         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51201         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
51202         (gl_INTEGER_TYPE_SUFFIX): Likewise.
51203         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
51204         (AC_CHECK_DECLS_ONCE): Likewise.
51205         Rename file...
51206         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
51207         gnulib-tool requires autoconf 2.59 or better.
51208         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
51209
51210 2008-04-08  Eric Blake  <ebb9@byu.net>
51211
51212         Use 'git describe --match' if present (added in git 1.5.5).
51213         * build-aux/git-version-gen: Limit result to tags that match 'v*'
51214         if possible.
51215
51216 2008-04-08  Bruno Haible  <bruno@clisp.org>
51217
51218         Add tentative support for OpenServer.
51219         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
51220         _ptr, _cnt.
51221         * lib/fpurge.c (fpurge): Likewise.
51222         * lib/freadable.c (freadable): Likewise.
51223         * lib/freadahead.c (freadahead): Likewise.
51224         * lib/freading.c (freading): Likewise.
51225         * lib/freadptr.c (freadptr): Likewise.
51226         * lib/freadseek.c (freadptrinc): Likewise.
51227         * lib/fseeko.c (rpl_fseeko): Likewise.
51228         * lib/fseterr.c (fseterr): Likewise.
51229         * lib/fwritable.c (fwritable): Likewise.
51230         * lib/fwriting.c (fwriting): Likewise.
51231         Reported by Roger Cornelius <rac@tenzing.org> and
51232         Brian K. White <brian@aljex.com>.
51233
51234 2008-04-06  Jim Meyering  <meyering@redhat.com>
51235
51236         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
51237
51238 2008-04-06  Bruno Haible  <bruno@clisp.org>
51239
51240         Avoid possible error with non-ASCII bytes in UTF-8 locales.
51241         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
51242         * tests/test-printf-posix.sh: Likewise.
51243         * tests/test-vfprintf-posix.sh: Likewise.
51244         * tests/test-vprintf-posix.sh: Likewise.
51245         * tests/test-xprintf-posix.sh: Likewise.
51246
51247 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51248
51249         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
51250         hide error from 'ls', needed on OS/2.
51251         Report by Elbert Pol <elbert.pol@gmail.com>.
51252
51253 2008-04-04  Eric Blake  <ebb9@byu.net>
51254
51255         Make test-fseeko.c failures meaningful.
51256         * tests/test-fseeko.c: Print line number on failure.
51257         * tests/test-fseek.c: Likewise.
51258         Reported by Nelson H. F. Beebe.
51259
51260         Improve strtod bug detection check.
51261         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
51262         required for Solaris 10.
51263         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
51264
51265 2008-04-04  Bruno Haible  <bruno@clisp.org>
51266
51267         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
51268         by m4/setenv.m4.
51269
51270 2008-04-03  Eric Blake  <ebb9@byu.net>
51271
51272         Ensure sane .version contents.
51273         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
51274         version string.
51275         * build-aux/git-version-gen: Improve documentation.
51276
51277         Make GNU make output nicer.
51278         * top/GNUmakefile [!_have-Makefile]: Add dependency on
51279         MAKECMDGOALS to enforce message for all command line targets.  Set
51280         srcdir for use in maint.mk.
51281
51282         Another maintainer tweak.
51283         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
51284         a target that regenerates version.
51285
51286 2008-04-03  Jim Meyering  <meyering@redhat.com>
51287
51288         vc-list-files: don't cause coreutils "make po-check" failure
51289         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
51290
51291 2008-04-03  Eric Blake  <ebb9@byu.net>
51292
51293         Allow VPATH usage of vc-list-files.
51294         * build-aux/vc-list-files (scriptversion): Add timestamp.
51295         (options): Add --help, --version, -C.
51296         (CVS): Support installed cvsu.
51297
51298 2008-04-02  Bruno Haible  <bruno@clisp.org>
51299
51300         Avoid some "statement with no effect" warnings from gcc.
51301         * tests/test-wctype.c (main): Explicitly ignore unused values.
51302         Reported by Jim Meyering.
51303
51304 2008-04-02  Jim Meyering  <meyering@redhat.com>
51305
51306         Avoid some warnings from "gcc -Wshadow".
51307         * tests/test-frexp.c (exp): Define to a different identifier.
51308         * tests/test-frexpl.c (exp): Likewise.
51309
51310 2008-04-03  Jim Meyering  <meyering@redhat.com>
51311
51312         bootstrap: remove dangling *.[ch] symlinks from lib
51313         * build-aux/bootstrap [dangling symlink removal]: Move find's
51314         -depth option to precede all others, to avoid a warning.
51315         Remove *.[ch] files too, and from "$source_base" (usually lib/).
51316
51317 2008-04-02  Bruno Haible  <bruno@clisp.org>
51318
51319         Avoid some warnings from "gcc -Wshadow".
51320         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
51321         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
51322         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
51323         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
51324         Reported by Jim Meyering.
51325
51326 2008-04-01  Bruno Haible  <bruno@clisp.org>
51327
51328         Fix test to work on IRIX 6.5 with cc.
51329         * tests/test-math.c (numeric_equal): New function.
51330         (main): Use it.
51331
51332 2008-04-01  Bruno Haible  <bruno@clisp.org>
51333
51334         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
51335
51336 2008-04-01  Bruno Haible  <bruno@clisp.org>
51337
51338         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
51339         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51340         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
51341         (Depends-on): Remove math.
51342
51343         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
51344         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51345         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
51346         (Depends-on): Remove math.
51347
51348         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
51349         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51350         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
51351         (Depends-on): Remove math.
51352         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
51353         (Depends-on): Remove math.
51354
51355         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
51356         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51357         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51358         (Depends-on): Remove math.
51359         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51360         (Depends-on): Remove math.
51361
51362         * tests/test-round1.c: Include nan.h.
51363         (main): Use NaNd instead of NAN.
51364         * modules/round-tests (Files): Add tests/nan.h.
51365
51366         * tests/test-trunc1.c: Include nan.h.
51367         (main): Use NaNd instead of NAN.
51368         * modules/trunc-tests (Files): Add tests/nan.h.
51369
51370         * tests/test-roundf1.c: Include nan.h.
51371         (main): Use NaNf instead of NAN.
51372         * modules/roundf-tests (Files): Add tests/nan.h.
51373
51374         * tests/test-truncf1.c: Include nan.h.
51375         (main): Use NaNf instead of NAN.
51376         * modules/truncf-tests (Files): Add tests/nan.h.
51377
51378         * tests/test-ceilf1.c: Include nan.h.
51379         (main): Use NaNf instead of NAN.
51380         * modules/ceilf-tests (Files): Add tests/nan.h.
51381
51382         * tests/test-floorf1.c: Include nan.h.
51383         (main): Use NaNf instead of NAN.
51384         * modules/floorf-tests (Files): Add tests/nan.h.
51385
51386         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
51387         (main): Use NaNf instead of NAN.
51388         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51389
51390         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51391         (main): Use NaNd instead of NAN.
51392         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
51393
51394         * tests/test-frexp.c: Include nan.h.
51395         (main): Use NaNd instead of NAN.
51396         * modules/frexp-tests (Files): Add tests/nan.h.
51397
51398         * lib/isnan.c: Don't include <math.h>.
51399         (FUNC): Don't use NAN macro.
51400         * modules/isnand-nolibm (Depends-on): Remove math.
51401         * modules/isnanf-nolibm (Depends-on): Remove math.
51402         * modules/isnanl (Depends-on): Remove math.
51403         * modules/isnanl-nolibm (Depends-on): Remove math.
51404
51405         * tests/nan.h: New file.
51406
51407 2008-04-01  Eric Blake  <ebb9@byu.net>
51408
51409         Fix typos.
51410         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
51411         values to be the right type.
51412
51413         For now, cater to gnulib strtod inaccuracies.
51414         * tests/test-strtod.c (main): Allow 1-ulp error on expected
51415         fractional results.  While not as nice from a QoI perspective, it
51416         is a quicker patch than correctly implementing decimal to binary
51417         rounding.
51418
51419 2008-03-31  Eric Blake  <ebb9@byu.net>
51420
51421         Guarantee a definition of NAN.
51422         * lib/math.in.h (NAN): Define if missing.
51423         * tests/test-math.c (main): Test it.
51424         * doc/posix-headers/math.texi (math.h): Document this.
51425         * lib/isnan.c (rpl_isnand): Use it.
51426         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
51427         * tests/test-floorf1.c (NaN): Likewise.
51428         * tests/test-frexp.c (NaN): Likewise.
51429         * tests/test-isnand.c (NaN): Likewise.
51430         * tests/test-isnanf.c (NaN): Likewise.
51431         * tests/test-round1.c (NaN): Likewise.
51432         * tests/test-roundf1.c (NaN): Likewise.
51433         * tests/test-snprintf-posix.h (NaN): Likewise.
51434         * tests/test-sprintf-posix.h (NaN): Likewise.
51435         * tests/test-trunc1.c (NaN): Likewise.
51436         * tests/test-truncf1.c (NaN): Likewise.
51437         * tests/test-vasnprintf-posix.c (NaN): Likewise.
51438         * tests/test-vasprintf-posix.c (NaN): Likewise.
51439         * modules/isnand-nolibm (Depends-on): Add math.
51440         * modules/isnanf-nolibm (Depends-on): Likewise.
51441         * modules/isnanl (Depends-on): Likewise.
51442         * modules/isnanl-nolibm (Depends-on): Likewise.
51443         * modules/snprintf-posix-tests (Depends-on): Likewise.
51444         * modules/sprintf-posix-tests (Depends-on): Likewise.
51445         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
51446         * modules/vsprintf-posix-tests (Depends-on): Likewise.
51447         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
51448         * modules/vasprintf-posix-tests (Depends-on): Likewise.
51449
51450 2008-03-31  Bruno Haible  <bruno@clisp.org>
51451
51452         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
51453         * doc/posix-functions/strtod.texi: Likewise.
51454
51455 2008-03-31  Bruno Haible  <bruno@clisp.org>
51456
51457         * tests/test-strtod.c (main): Don't use C99 syntax.
51458
51459 2008-03-31  Bruno Haible  <bruno@clisp.org>
51460
51461         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
51462         Reported by Eric Blake.
51463
51464 2008-03-31  Jim Meyering  <meyering@redhat.com>
51465
51466         Don't compare actual signbit return values.
51467         * tests/test-strtod.c (main): Rather, compare only their
51468         zero/non-zero nature.
51469
51470 2008-03-31  Eric Blake  <ebb9@byu.net>
51471
51472         More strtod documentation.
51473         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51474         failures as distinct bugs.
51475
51476 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51477
51478         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51479         Problem reported by Erik Benada in
51480         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51481
51482 2008-03-30  Bruno Haible  <bruno@clisp.org>
51483
51484         * tests/test-strtod.c: Add comments about which assertion fails on which
51485         platform.
51486         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51487
51488 2008-03-30  Eric Blake  <ebb9@byu.net>
51489
51490         Test signbit behavior on zeros.
51491         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51492         (test_signbitd, test_signbitl): Likewise.
51493
51494         More strtod touchups.
51495         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51496         sign of negative underflow, for now.  Use .5, not .1.
51497         * doc/posix-functions/strtod.texi (strtod): Mention these
51498         limitations.
51499         Reported by Jim Meyering.
51500
51501 2008-03-30  Bruno Haible  <bruno@clisp.org>
51502
51503         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51504         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51505
51506 2008-03-30  Bruno Haible  <bruno@clisp.org>
51507
51508         Avoid failure when attempting to return empty iconv results on some
51509         platforms.
51510         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51511         allocation, don't report ENOMEM when the resulting string is empty.
51512
51513 2008-03-30  Bruno Haible  <bruno@clisp.org>
51514
51515         Fix buffer overrun.
51516         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51517         Don't consider the width for tmp_length. Check count against tmp_length
51518         before doing the padding. Ensure enough allocation during padding.
51519
51520 2008-03-30  Eric Blake  <ebb9@byu.net>
51521
51522         strtod touchups.
51523         * lib/strtod.c (strtod): Avoid compiler warnings.
51524         Reported by Jim Meyering.
51525
51526 2008-03-30  Bruno Haible  <bruno@clisp.org>
51527
51528         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51529         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51530         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51531         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51532         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51533         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51534         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51535         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51536
51537         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51538         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51539         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51540         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51541         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51542         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51543         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51544         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51545
51546         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51547         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51548         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51549         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51550         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51551         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51552         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51553         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51554
51555         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51556         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51557
51558         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51559         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51560
51561         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51562         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51563
51564         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51565         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51566         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51567
51568         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51569         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51570         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51571
51572         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51573         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51574         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51575
51576         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51577         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51578         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51579
51580         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51581         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51582         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51583         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51584         (Depends-on): Add EOVERFLOW.
51585         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51586         (Depends-on): Add EOVERFLOW.
51587         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51588         (Depends-on): Add EOVERFLOW.
51589         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51590         (Depends-on): Add EOVERFLOW.
51591         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51592         (Depends-on): Add EOVERFLOW.
51593         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51594         (Depends-on): Add EOVERFLOW.
51595         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51596         (Depends-on): Add EOVERFLOW.
51597         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51598         (Depends-on): Add EOVERFLOW.
51599
51600         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51601         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51602         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51603
51604         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51605         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51606         * modules/snprintf (Depends-on): Add EOVERFLOW.
51607
51608         * lib/poll.c (EOVERFLOW): Remove fallback.
51609         * modules/poll (Depends-on): Add EOVERFLOW.
51610
51611         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51612         * modules/getugroups (Depends-on): Add EOVERFLOW.
51613
51614         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51615         * modules/getdelim (Depends-on): Add EOVERFLOW.
51616
51617         * lib/ftell.c (EOVERFLOW): Remove fallback.
51618         * modules/ftell (Depends-on): Add EOVERFLOW.
51619
51620         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51621         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51622         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51623
51624         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51625
51626         * modules/EOVERFLOW-tests: New file.
51627         * tests/test-EOVERFLOW.c: New file.
51628
51629         * modules/EOVERFLOW: New file.
51630         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51631
51632 2008-03-30  Bruno Haible  <bruno@clisp.org>
51633
51634         Fix bug introduced on 2007-06-10.
51635         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51636         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51637
51638 2008-03-30  Bruno Haible  <bruno@clisp.org>
51639
51640         Improve freadseek's efficiency after ungetc.
51641         * lib/freadseek.c: Include freadahead.h.
51642         (freadptrinc): New function, extracted from freadseek.
51643         (freadseek): Use it in a loop. Use freadahead to determine the number
51644         of loop iterations.
51645         * modules/freadseek (Depends-on): Add freadahead.
51646         (configure.ac): Require AC_C_INLINE.
51647
51648 2008-03-30  Bruno Haible  <bruno@clisp.org>
51649
51650         * lib/freadseek.c (freadseek): Don't ignore the return value of
51651         freadptr.
51652
51653 2008-03-29  Eric Blake  <ebb9@byu.net>
51654
51655         Add hex float support.
51656         * modules/strtod (Depends-on): Add c-ctype.
51657         (Link): Mention POW_LIB.
51658         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51659         whitespace between 'e' and exponent.
51660         * tests/test-strtod.c (main): Enable hex float tests.
51661         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51662         now provides.
51663
51664         Document various strtod bugs, with some fixes.
51665         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51666         "-0x", "inf", "nan", and hex constants.
51667         * doc/posix-functions/atof.texi (atof): Likewise.
51668         * modules/stdlib (Makefile.am): Support strtod.
51669         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51670         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51671         detect additional strtod bugs.
51672         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51673         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51674         bool where appropriate.  Parse 'inf' and 'nan'.
51675         * tests/test-strtod.c: New file.
51676         * modules/strtod (Depends-on): Add stdbool, stdlib.
51677         (configure.ac): Turn on module indicator.
51678         * modules/strtod-tests: New module.
51679
51680 2008-03-29  Eric Blake  <ebb9@byu.net>
51681
51682         Fix ftell on mingw.
51683         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51684         * modules/ftell-tests (Depends-on): Add binary-io.
51685         * modules/ftello-tests (Depends-on): Likewise.
51686         * tests/test-ftell.c (main): Enhance test to cover behavior after
51687         ungetc.  Enforce binary mode.
51688         * tests/test-ftello.c (main): Likewise.
51689
51690         Pass test-freadseek on cygwin.
51691         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51692         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51693         ungetc buffer.
51694
51695         * tests/test-fflush2.c (main): Fix typo.
51696
51697 2008-03-29  Bruno Haible  <bruno@clisp.org>
51698
51699         * tests/test-fflush2.c (main): Temporarily disable the contents of
51700         this test.
51701         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51702         Reported by Eric Blake.
51703
51704 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51705
51706         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51707         (GC_SHA224_DIGEST_SIZE): Add.
51708
51709         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51710         (gc_hash_digest_length): Likewise.
51711         (gc_hash_buffer): Likewise.
51712
51713 2008-03-25  Bruno Haible  <bruno@clisp.org>
51714
51715         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51716         detail which gettext release to use.
51717         Reported by Simon Josefsson.
51718
51719 2008-03-26  Jim Meyering  <meyering@redhat.com>
51720
51721         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51722         * modules/gnumakefile (clean-GNUmakefile): Also, use
51723         test ... && ... || : syntax rather than if-then ... fi.
51724
51725         gnumakefile: Don't double-quote-expand $(VPATH) value.
51726         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51727
51728 2008-03-24  Eric Blake  <ebb9@byu.net>
51729
51730         Alter GNUmakefile to install into top directory.
51731         * modules/maintainer-makefile: Split, and add dependency...
51732         * modules/gnumakefile: to this new module.
51733         * build-aux/GNUmakefile: Move...
51734         * top/GNUmakefile: ...here.
51735         * build-aux/maint.mk: Move...
51736         * top/maint.mk: ...here.
51737         * MODULES.html.sh (Support for maintaining...): Document new
51738         module.
51739
51740 2008-03-23  Bruno Haible  <bruno@clisp.org>
51741
51742         * gnulib-tool: New options --vc-files, --no-vc-files.
51743         (func_usage): Document them.
51744         (vc_files): New variable.
51745         (func_import): Consider vc_files.
51746         (func_create_testdir): Set vc_files to empty.
51747         Suggested by Jim Meyering and Karl Berry.
51748
51749 2008-03-23  Bruno Haible  <bruno@clisp.org>
51750
51751         Fix regex compilation error on HP-UX 11.
51752         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51753         * modules/regex (Files): Add m4/mbstate_t.m4.
51754         Reported by Ton Voon <ton.voon@altinity.com>.
51755
51756 2008-03-23  Bruno Haible  <bruno@clisp.org>
51757
51758         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51759
51760 2008-03-23  Eric Blake  <ebb9@byu.net>
51761             Bruno Haible  <bruno@clisp.org>
51762
51763         Install files from top/ in the destination directory.
51764         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51765         augmentation also for the files from top/.
51766         (func_import, func_create_testdir): Rewrite file names:
51767         top/filename -> filename.
51768
51769 2008-03-23  Bruno Haible  <bruno@clisp.org>
51770
51771         Tweak "gnulib --version" output.
51772         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51773
51774 2008-03-23  Bruno Haible  <bruno@clisp.org>
51775
51776         Tweak "gnulib --version" output.
51777         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51778         rather than contents of ChangeLog, when possible.
51779
51780 2008-03-21  Eric Blake  <ebb9@byu.net>
51781
51782         More --version tweaks.
51783         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51784         date of last ChangeLog entry.
51785
51786 2008-03-21  Jim Meyering  <meyering@redhat.com>
51787
51788         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51789
51790 2008-03-20  Eric Blake  <ebb9@byu.net>
51791
51792         VPATH fix.
51793         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51794
51795 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51796
51797         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51798         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51799
51800 2008-03-20  Eric Blake  <ebb9@byu.net>
51801
51802         Sync GNUmakefile with coreutils.
51803         * build-aux/GNUmakefile (have-Makefile): Rename...
51804         (_have-Makefile): ...to this, for namespace consideration.
51805         (GNUmakefile.cfg): Include, if present.
51806         (_autoreconf): Define a default.
51807         (_is-dist-target): New rule for rebuilds to pick up intra-release
51808         version.
51809         (maint-cfg.mk): Rename...
51810         (cfg.mk): ...to this.
51811
51812 2008-03-18  Jim Meyering  <meyering@redhat.com>
51813
51814         New script and module: mktempd
51815         * MODULES.html.sh (maint+release support): Add mktempd.
51816         * build-aux/mktempd: New file.
51817         * modules/mktempd: New file.
51818
51819 2008-03-15  Jim Meyering  <meyering@redhat.com>
51820
51821         Undo last change.
51822         * lib/sha1.c, lib/md5.c: 63 != ~63.
51823         Reported by Andreas Schwab.
51824
51825         sha1.c, md5.c: Hoist a redundant expression.
51826         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51827         "ctx->buflen" only once, before calling *_process_block.
51828         * lib/md5.c (md5_process_bytes): Likewise.
51829
51830 2008-03-14  Eric Blake  <ebb9@byu.net>
51831
51832         Bump copyright year in files generated by gnulib-tool.
51833         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51834         gnulib-tool, rather than hard-coding it.
51835
51836         Fix 'gnulib-tool --version' output to work with git.
51837         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51838         (startup): ...here.
51839         (func_version): Use it to invoke git-version-gen, rather than
51840         relying on CVS keyword expansion.  Modernize wording.
51841         (cvsdatestamp, last_checkin_date, version): Kill unused
51842         variables.
51843
51844 2008-03-12  Jim Meyering  <meyering@redhat.com>
51845
51846         Recognize optional cast of the argument to free.
51847         * build-aux/useless-if-before-free: Update regexps.
51848
51849         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51850
51851 2008-03-11  Bruno Haible  <bruno@clisp.org>
51852
51853         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51854         by a single package.
51855         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51856         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51857         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51858         Reported by Sam Steingold <sds@gnu.org>.
51859
51860 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51861
51862         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51863         repositories.
51864
51865 2008-03-11  Bruno Haible  <bruno@clisp.org>
51866
51867         Avoid conflicts between local macro definitions.
51868         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51869         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51870
51871 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51872             Bruno Haible  <bruno@clisp.org>
51873
51874         Make va_copy work with some version of xlc on AIX 5.1.
51875         * lib/stdarg.in.h: New file.
51876         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51877         On AIX, use a <stdarg.h> file substitute.
51878         * modules/stdarg (Files): Add lib/stdarg.in.h.
51879         (Depends-on): Add include_next.
51880         (Makefile.am): Build a stdarg.h substitute if requested.
51881         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51882
51883 2008-03-10  Bruno Haible  <bruno@clisp.org>
51884
51885         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51886         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51887         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51888
51889 2008-03-10  Bruno Haible  <bruno@clisp.org>
51890
51891         * modules/stdlib (Depends-on): Add include_next, remove
51892         absolute-header.
51893
51894 2008-03-09  Bruno Haible  <bruno@clisp.org>
51895
51896         * lib/freadahead.h (freadahead): Document more precisely.
51897         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51898         the sum of both buffer sizes.
51899         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51900         * NEWS: Document the change.
51901
51902 2008-03-09  Bruno Haible  <bruno@clisp.org>
51903
51904         Extend freadptr to return also the buffer size.
51905         * lib/freadptr.h (freadptr): Add sizep argument.
51906         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51907         (freadptr): Add sizep argument. Determine buffer size like freadahead
51908         does.
51909         * tests/test-freadptr.c: Don't include freadahead.h.
51910         (main): Adapt for new calling convention of freadptr.
51911         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51912         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51913         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51914         tests/test-freadptr2.sh.
51915         (Depends): Remove freadahead.
51916         (TESTS): Add test-freadptr2.sh.
51917         (check_PROGRAMS): Add test-freadptr2.
51918
51919 2008-03-09  Bruno Haible  <bruno@clisp.org>
51920
51921         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51922         Report and solution by Simon Josefsson.
51923
51924 2008-03-06  Bruno Haible  <bruno@clisp.org>
51925
51926         Make fflush after ungetc work on BSD platforms.
51927         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51928         * tests/test-fflush2.c: New file.
51929         * tests/test-fflush2.sh: New file.
51930         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51931         tests/test-fflush2.c.
51932         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51933         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51934
51935 2008-03-06  Eric Blake  <ebb9@byu.net>
51936
51937         Likewise for ftello.
51938         * modules/ftello (Dependencies): Add extensions.
51939         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51940
51941 2008-03-06  Bruno Haible  <bruno@clisp.org>
51942
51943         * modules/fseeko (Dependencies): Add extensions.
51944         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51945         Needed on glibc systems.
51946
51947 2008-03-06  Bruno Haible  <bruno@clisp.org>
51948
51949         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51950         email address.
51951         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51952
51953 2008-03-06  Bruno Haible  <bruno@clisp.org>
51954
51955         * users.txt: Add libgnupdf.
51956
51957 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51958
51959         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51960         (Header File Substitutes, Function Substitutes,
51961         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51962         (Build robot for gnulib): Fix typo.
51963
51964 2008-03-06  Bruno Haible  <bruno@clisp.org>
51965
51966         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51967         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51968
51969 2008-03-06  Bruno Haible  <bruno@clisp.org>
51970
51971         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51972         * doc/gnulib.texi: Include it.
51973
51974 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51975
51976         * modules/func (License): Change license to unlimited; there was
51977         no LGPL parts in the module anyway.
51978
51979 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51980
51981         * modules/__func__: Renamed to modules/func.
51982         * modules/__func__-tests: Renamed to modules/func-tests.
51983         * tests/test-__func__.c: Renamed to tests/test-func.c.
51984         * m4/__func__.m4: Renamed to m4/func.m4.
51985         * doc/gnulib.texi (__func__): Section renamed to func.
51986         Suggested by Eric Blake <ebb9@byu.net>.
51987
51988 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51989
51990         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51991         about __func__.  Make example self-contained.  Suggested by Eric
51992         Blake <ebb9@byu.net>.
51993
51994         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51995         Suggested by Eric Blake <ebb9@byu.net>.
51996
51997 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51998
51999         * modules/__func__: New file.
52000         * modules/__func__-tests: New file.
52001         * tests/test-__func__.c: New file.
52002         * m4/__func__.m4: New file.
52003         * doc/gnulib.texi (__func__): Document __func__ module.
52004
52005 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52006
52007         * modules/byteswap (License): Re-license as LGPLv2+.
52008
52009 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52010
52011         * doc/Makefile: Add pdf target.
52012
52013 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52014
52015         * modules/inline (License): Use 'unlimited', since there are only
52016         *.m4 files in this module.
52017
52018 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52019             Bruno Haible  <bruno@clisp.org>
52020
52021         Add support for HP C 7.1 on OpenVMS 8.3.
52022         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
52023
52024 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52025
52026         Update VMS specifics.
52027         * lib/getopt.c [VMS]: Remove include of unixlib.h.
52028
52029 2008-03-02  Jim Meyering  <meyering@redhat.com>
52030
52031         Remove the last dependency on the "free" module.
52032         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
52033         Reported by Bob Proulx.
52034
52035         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
52036
52037         Remove useless "if" tests before free.  Deprecate "free" module.
52038         * doc/posix-functions/free.texi: Mention that this
52039         module is no longer useful.
52040         * modules/free (Notice): Say this module is obsolete.
52041         * modules/readutmp (Depends-on): Remove free.
52042         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
52043         * lib/putenv.c (putenv): Likewise.
52044         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
52045         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
52046         * tests/test-c-strcasestr.c (main): Likewise.
52047         * tests/test-c-strstr.c (main): Likewise.
52048         * tests/test-mbscasestr1.c (main): Likewise.
52049         * tests/test-mbscasestr2.c (main): Likewise.
52050         * tests/test-mbsstr1.c (main): Likewise.
52051         * tests/test-mbsstr2.c (main): Likewise.
52052         * tests/test-memmem.c (main): Likewise.
52053         * tests/test-strcasestr.c (main): Likewise.
52054         * tests/test-striconv.c (main): Likewise.
52055         * tests/test-striconveh.c (main): Likewise.
52056         * tests/test-striconveha.c (main): Likewise.
52057         * tests/test-strstr.c (main): Likewise.
52058
52059         * build-aux/git-version-gen: Adjust a comment and the Usage string.
52060
52061         bootstrap: sync from coreutils again
52062         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
52063
52064 2008-03-01  Jim Meyering  <meyering@redhat.com>
52065
52066         bootstrap: sync from coreutils
52067         * build-aux/bootstrap (update_po_files): Copy a .po file into place
52068         also when the target doesn't exist.
52069
52070 2008-03-01  Eric Blake  <ebb9@byu.net>
52071
52072         Fix bugs in last patch.
52073         * lib/memchr2.c (memchr2): Fix typo.
52074         * tests/test-memchr2.c: Test previous bug, and don't use GNU
52075         extension.
52076         Reported by Bruce Korb.
52077
52078         New module 'memchr2'.
52079         * modules/memchr2: New file.
52080         * modules/memchr2-tests: Likewise.
52081         * lib/memchr2.h: Likewise.
52082         * lib/memchr2.c: Likewise, based on memchr.c.
52083         * tests/test-memchr2.c: New test.
52084         * MODULES.html.sh (String handling): Add memchr2.
52085
52086 2008-02-29  Bruno Haible  <bruno@clisp.org>
52087
52088         * modules/freadseek-tests: New file.
52089         * tests/test-freadseek.sh: New file.
52090         * tests/test-freadseek.c: New file.
52091
52092         New module 'freadseek'.
52093         * modules/freadseek: New file.
52094         * lib/freadseek.h: New file.
52095         * lib/freadseek.c: New file.
52096         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
52097
52098 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52099
52100         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
52101         wydawca.
52102
52103         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
52104         program_invocation_name and program_invocation_short_name are
52105         present.
52106
52107 2008-02-28  Bruno Haible  <bruno@clisp.org>
52108
52109         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
52110         * tests/test-freadptr.sh: Also test non-seekable stdin.
52111
52112 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
52113
52114         * build-aux/bootstrap (source_base, m4_base)
52115         (doc_base, tests_base): New variables.
52116         (gnulib_tool_options): Do not hardcode base directories, use
52117         the above variables instead.
52118
52119 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
52120
52121         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
52122
52123 2008-02-28  Bruno Haible  <bruno@clisp.org>
52124
52125         * modules/freadptr-tests: New file.
52126         * tests/test-freadptr.sh: New file.
52127         * tests/test-freadptr.c: New file.
52128
52129         New module 'freadptr'.
52130         * modules/freadptr: New file.
52131         * lib/freadptr.h: New file.
52132         * lib/freadptr.c: New file.
52133         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
52134
52135 2008-02-26  Karl Berry  <karl@freefriends.org>
52136
52137         Sync from Libtool:
52138         * libltdl/argz.c (argz_add, argz_count): New functions.
52139         * libltdl/argz.in.h: Declare them.
52140         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
52141
52142 2008-02-22  Bruno Haible  <bruno@clisp.org>
52143
52144         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
52145         is a pointer type.  Needed for HP-UX 10.
52146         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
52147         * doc/posix-functions/gmtime_r.texi: Likewise.
52148         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52149
52150 2008-02-24  Bruno Haible  <bruno@clisp.org>
52151
52152         * modules/environ-tests: New file.
52153         * tests/test-environ.c: New file.
52154
52155         New module 'environ'.
52156         * modules/environ: New file.
52157         * lib/unistd.in.h (environ): New declaration.
52158         * m4/environ.m4: New file.
52159         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
52160         after use.
52161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
52162         HAVE_DECL_ENVIRON.
52163         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
52164         HAVE_DECL_ENVIRON.
52165         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
52166         wrong claim that 'environ' is missing on some systems.
52167         * modules/execute (Depends-on): Add environ.
52168         * lib/execute.c (environ): Remove fallback declaration.
52169         * modules/pipe (Depends-on): Add environ.
52170         * lib/pipe.c (environ): Remove fallback declaration.
52171         * modules/setenv (Depends-on): Add environ.
52172         * lib/setenv.c (environ): Remove fallback declaration.
52173         * modules/unsetenv (Depends-on): Add environ.
52174         * lib/unsetenv.c (environ): Remove fallback declaration.
52175         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
52176         m4/environ.m4.
52177         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
52178         (gl_PREREQ_UNSETENV): Likewise.
52179
52180 2008-02-24  Bruno Haible  <bruno@clisp.org>
52181
52182         * doc/posix-functions/environ.texi: Document the MacOS X problem.
52183
52184 2008-02-20  Bob Proulx  <bob@proulx.com>
52185
52186         Enable use of older two part flavor 'git describe'.
52187         * build-aux/git-version-gen: If using the older two part flavor of
52188         git version then recreate the third part now present in the
52189         newer three part flavor of git describe.
52190
52191 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
52192
52193         * lib/fts.c (fts_build): Typo correction to comment.
52194
52195 2008-02-17  Bruno Haible  <bruno@clisp.org>
52196
52197         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
52198         generating no-op conflicts.
52199
52200 2008-02-17  Bruno Haible  <bruno@clisp.org>
52201
52202         Speed up by 10%.
52203         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
52204         result_entries, rather than an index-based loop.
52205
52206 2008-02-17  Bruno Haible  <bruno@clisp.org>
52207
52208         Speed up by 25%.
52209         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
52210         'hashcode_cached'.
52211         (entry_create): New function.
52212         (entry_hashcode): Use the cached hashcode if possible.
52213         (read_changelog_file, try_split_merged_entry): Use entry_create.
52214
52215 2008-02-17  Bruno Haible  <bruno@clisp.org>
52216
52217         Speed up from O(n^2) to O(n) for long ChangeLog files.
52218         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
52219         (read_changelog_file): Change implementation of entries_reversed list
52220         to rbtreehash.
52221         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
52222
52223 2008-02-17  Bruno Haible  <bruno@clisp.org>
52224
52225         New option --split-merged-entry.
52226         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
52227         (find_paragraph_end, try_split_merged_entry): New functions.
52228         (long_options): Add option --split-merged-entry.
52229         (usage): Document option --split-merged-entry.
52230         (main): Implement option --split-merged-entry.
52231         Reported by Eric Blake.
52232
52233 2008-02-17  Bruno Haible  <bruno@clisp.org>
52234
52235         * lib/git-merge-changelog.c: Include c-strstr.h.
52236         (main): Support the "git pull --rebase" situation.
52237         * modules/git-merge-changelog (Depends-on): Add c-strstr.
52238         Reported by Eric Blake.
52239
52240 2008-02-16  Eric Blake  <ebb9@byu.net>
52241
52242         Avoid doubling \ in common case of "c-maybe" quoting style.
52243         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
52244         eliding outer quotes.
52245         * lib/quotearg.h: Document this.
52246         * tests/test-quotearg.c (result_strings, inputs, results_g)
52247         (flag_results, locale_results): Test it by adding a new string to
52248         each test group.
52249         (compare_strings): Test new string.
52250
52251 2008-02-13  Eric Blake  <ebb9@byu.net>
52252
52253         Avoid trigraph quoting in default output.
52254         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
52255         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
52256         unless explicitly requested.
52257         * tests/test-quotearg.c (flag_results, main): Add additional tests.
52258
52259 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
52260
52261         Don't rely on signed integer overflowing to negative value.
52262         * lib/getugroups.c (getugroups): Include <limits.h>.
52263         Instead, compare against INT_MAX, and increment only if the test passes.
52264
52265 2008-02-13  Jim Meyering  <meyering@redhat.com>
52266         and Eric Blake  <ebb9@byu.net>
52267
52268         Avoid shadowing warning and compile errors on Linux.
52269         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
52270         forwarding macros on Linux.
52271         (dcgettext): Define a stub, for Linux.
52272         (results_g, main): Avoid warnings.
52273
52274 2008-02-12  Eric Blake  <ebb9@byu.net>
52275
52276         Silence warning in last patch.
52277         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
52278
52279         Quotearg part 4: add tests, fix c-maybe colon quoting.
52280         * lib/quotearg.h: Improve documentation.
52281         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
52282         escapes when adding outer quotes.  When quoting trigraphs, use
52283         valid C notation.  When quoting NUL, omit extra characters if next
52284         character is not digit.  Alter prototype.
52285         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
52286         callers.
52287         * modules/quotearg-tests: New module.
52288         * tests/test-quotearg.c: New test.
52289
52290 2008-02-07  Eric Blake  <ebb9@byu.net>
52291
52292         Quotearg part 3: add flag to control outer quote elision.
52293         * lib/quotearg.h (c_maybe_quoting_style): New style.
52294         (enum quoting_flags): Better documentation of flags.
52295         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
52296         c-maybe style.
52297         (quotearg_buffer_restyled): Handle new flag to elide outer
52298         quotes.
52299
52300         Quotearg part 2: add flag that can control NUL elision.
52301         * lib/quotearg.h (set_quoting_flags): New prototype.
52302         * lib/quotearg.c (struct quoting_options): Add flag field.
52303         (set_quoting_flags): New function.
52304         (quotearg_buffer_restyled): Add flags parameter.
52305         (quotearg_alloc_mem): Set the flag if length cannot be returned.
52306         (quotearg_n_options): Set the flag, since length cannot be
52307         returned.
52308         (quoting_options_from_style): Default flags correctly.
52309
52310         Quotearg part 1: more wrappers, restore quotearg_char state.
52311         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
52312         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
52313         (quotearg_colon_mem): New wrappers.
52314         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
52315         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
52316         functions.
52317         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
52318         (quotearg_colon_mem): New functions.
52319
52320 2008-02-11  Bruno Haible  <bruno@clisp.org>
52321
52322         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
52323         library in the current directory: it does not work with parallel make.
52324         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52325
52326 2008-02-11  Bruno Haible  <bruno@clisp.org>
52327
52328         * .gitattributes: New file.
52329
52330 2008-02-11  Jim Meyering  <meyering@redhat.com>
52331
52332         useless-if-before-free: Fix reversed exit values.
52333         * build-aux/useless-if-before-free: Use correct values
52334         for EXIT_MATCH and EXIT_NO_MATCH.
52335
52336         * build-aux/useless-if-before-free: Close stdout carefully.
52337
52338 2008-02-10  Bruno Haible  <bruno@clisp.org>
52339
52340         New module 'git-merge-changelog'.
52341         * modules/git-merge-changelog: New file.
52342         * lib/git-merge-changelog.c: New file.
52343
52344 2008-02-10  Jim Meyering  <meyering@redhat.com>
52345
52346         useless-if-before-free: New option: --list (-l).
52347
52348         useless-if-before-free: Don't exit immediately upon open failure.
52349         * build-aux/useless-if-before-free: Exit 2 for errors.
52350         Upon failure to open a file, don't exit immediately.
52351         Rather, just warn and continue with any remaining files.
52352
52353 2008-02-10  Bruno Haible  <bruno@clisp.org>
52354
52355         New abstract list operation 'node_set_value'.
52356         * lib/gl_list.h (gl_list_node_set_value): New function.
52357         (struct gl_list_implementation): New field node_set_value.
52358         * lib/gl_list.c (gl_list_node_set_value): New function.
52359         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52360         (gl_array_list_implementation): Update.
52361         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52362         (gl_carray_list_implementation): Update.
52363         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52364         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52365         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52366         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52367         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52368         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52369         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52370         Update.
52371         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52372         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52373         (gl_sublist_list_implementation): Update.
52374
52375 2008-02-10  Bruno Haible  <bruno@clisp.org>
52376
52377         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52378         Needed when ELEMENT is #defined to 'some_type *'.
52379
52380 2008-02-10  Jim Meyering  <meyering@redhat.com>
52381
52382         New script and module: useless-if-before-free
52383         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52384         * build-aux/useless-if-before-free: New file.
52385         * modules/useless-if-before-free: New file.
52386
52387         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52388
52389         xstrtol_error: Fix typo.
52390         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52391         s/exit_failure/exit_status/.
52392
52393 2008-02-09  Jim Meyering  <meyering@redhat.com>
52394
52395         New script and module: gitlog-to-changelog
52396         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
52397         * modules/gitlog-to-changelog: New file.
52398         * build-aux/gitlog-to-changelog: New file.
52399
52400 2008-02-08  Jim Meyering  <meyering@redhat.com>
52401
52402         Avoid two "parameter unused" warnings.
52403         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
52404         Mark "st" as used.
52405
52406         Use "git COMMAND", not "git-COMMAND".
52407         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
52408         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
52409         * build-aux/git-version-gen: Use "git status", not "git-status".
52410
52411 2008-02-07  Bruno Haible  <bruno@clisp.org>
52412
52413         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
52414         Avoids a crash on Windows Vista.
52415         Reported by Adam Strzelecki <ono@java.pl> via
52416         Simon Josefsson <simon@josefsson.org>.
52417
52418 2008-02-06  Bruno Haible  <bruno@clisp.org>
52419
52420         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
52421         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
52422         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
52423         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
52424         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52425         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52426         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
52427         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
52428         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52429         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52430         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52431         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52432         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52433         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52434         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52435         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
52436         left-adjust flag.
52437         * tests/test-snprintf-posix.h (test_function): Likewise.
52438         * tests/test-sprintf-posix.h (test_function): Likewise.
52439         * tests/test-vasprintf-posix.c (test_function): Likewise.
52440         * doc/posix-functions/fprintf.texi: Update.
52441         * doc/posix-functions/printf.texi: Update.
52442         * doc/posix-functions/snprintf.texi: Update.
52443         * doc/posix-functions/sprintf.texi: Update.
52444         * doc/posix-functions/vfprintf.texi: Update.
52445         * doc/posix-functions/vprintf.texi: Update.
52446         * doc/posix-functions/vsnprintf.texi: Update.
52447         * doc/posix-functions/vsprintf.texi: Update.
52448         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52449
52450 2008-02-06  Bruno Haible  <bruno@clisp.org>
52451
52452         Fix bug introduced on 2008-01-26.
52453         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
52454
52455 2008-02-06  Bruno Haible  <bruno@clisp.org>
52456
52457         Fix bug introduced on 2007-06-10.
52458         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
52459         !NEED_PRINTF_FLAG_ZERO.
52460
52461 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
52462
52463         getloadavg: use libperfstat on AIX5
52464         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
52465
52466 2008-02-03  Bruno Haible  <bruno@clisp.org>
52467
52468         * lib/diffseq.h: Add comments about required #includes.
52469         Reported by Michael Biggs <gnulib@doubleplum.net>.
52470
52471 2008-02-01  Bruno Haible  <bruno@clisp.org>
52472
52473         * users.txt: Add gnuit.
52474
52475 2008-01-31  Bruno Haible  <bruno@clisp.org>
52476
52477         * lib/md4.c (set_uint32): Mark as inline.
52478         * lib/md5.c (set_uint32): Likewise.
52479         * lib/sha1.c (set_uint32): Likewise.
52480         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52481         * m4/md5.m4 (gl_MD5): Likewise.
52482         * m4/sha1.m4 (gl_SHA1): Likewise.
52483
52484 2008-01-31  Jim Meyering  <meyering@redhat.com>
52485
52486         Use "sizeof VAR", rather than a literal "4".
52487         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52488         * lib/md4.c (md4_read_ctx): Likewise.
52489         * lib/sha1.c (sha1_read_ctx): Likewise.
52490
52491 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52492
52493         * tests/test-sha1.c: New file, based on test-md5.c.
52494
52495         * modules/crypto/sha1-tests: New file.
52496
52497 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52498
52499         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52500
52501 2008-01-31  Jim Meyering  <meyering@redhat.com>
52502
52503         Prefer "sizeof v" over the equivalent "4".
52504         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52505         * lib/md5.c (set_uint32): Likewise.
52506         * lib/sha1.c (set_uint32): Likewise.
52507
52508 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52509
52510         * lib/sha1.c (set_uint32): Mark function as static.
52511
52512 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52513
52514         md2: clarify comments to say that alignment is not required.
52515         * lib/md2.h: Remove warning about alignment in comment.
52516         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52517         never been required.
52518
52519 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52520
52521         md4: adapt alignment constraint fix from sha1.
52522         * lib/md4.c (set_uint32): New function, from sha1.c
52523         (md4_read_ctx): Use it.
52524         (md4_finish_ctx): Doc fix.
52525         * lib/md4.h: Doc fix.
52526
52527 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52528
52529         md5: adapt alignment constraint fix from sha1.
52530         * lib/md5.c (set_uint32): New function, from sha1.c
52531         (md5_read_ctx): Use it.
52532         (md5_finish_ctx): Doc fix.
52533         * lib/md5.h: Doc fix.
52534
52535 2008-01-30  Peter Palfrader  <weasel@debian.org>
52536
52537         sha1: remove the result buffer alignment constraint
52538         * lib/sha1.c (set_uint32): New function.
52539         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52540         constraint.
52541         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52542         * lib/sha1.h: Likewise.
52543
52544 2008-01-30  Andreas Schwab  <schwab@suse.de>
52545             Bruno Haible  <bruno@clisp.org>
52546
52547         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52548         correct definition of LDBL_MIN_EXP.
52549
52550 2008-01-30  Karl Berry  <karl@gnu.org>
52551
52552         * config/srclist-update: try to preserve x bit on updates.
52553         * config/srclistvars.sh: update for karl.
52554
52555 2008-01-29  Jim Meyering  <meyering@redhat.com>
52556
52557         vasnprintf.c: Avoid warning about unused label
52558         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52559         "overflow" label definition and associated code with the
52560         same cpp condition that guards the sole use of that label.
52561
52562 2008-01-26  Bruno Haible  <bruno@clisp.org>
52563
52564         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52565         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52566         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52567         * lib/isnanl-nolibm.h (isnanl): Likewise.
52568         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52569
52570 2008-01-26  Bruno Haible  <bruno@clisp.org>
52571
52572         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52573         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52574
52575 2008-01-26  Bruno Haible  <bruno@clisp.org>
52576
52577         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52578         GCC >= 4.0 built-in.
52579         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52580
52581 2008-01-26  Bruno Haible  <bruno@clisp.org>
52582
52583         Rename isnan, applicable to 'double' only, to isnand.
52584         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52585         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52586         (configure.ac): Update.
52587         (Include): Replace "isnan.h" with "isnand.h".
52588         * m4/isnand.m4: Renamed from m4/isnan.m4.
52589         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52590         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52591         instead of isnan.c.
52592         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52593         instead of HAVE_ISNAN_IN_LIBC.
52594         (isnand): Renamed from isnan.
52595         * lib/isnand.c: New file.
52596         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52597         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52598         (Makefile.am): Update.
52599         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52600         Include isnand.h instead of isnan.h.
52601         (main): Test isnand instead of isnan.
52602         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52603         isnan-nolibm.
52604         * modules/frexp (Depends-on): Likewise.
52605         * modules/frexp-tests (Depends-on): Likewise.
52606         * modules/frexp-nolibm (Depends-on): Likewise.
52607         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52608         * modules/isfinite (Depends-on): Likewise.
52609         * modules/round-tests (Depends-on): Likewise.
52610         * modules/signbit (Depends-on): Likewise.
52611         * modules/signbit-tests (Depends-on): Likewise.
52612         * modules/snprintf-posix (Depends-on): Likewise.
52613         * modules/sprintf-posix (Depends-on): Likewise.
52614         * modules/trunc-tests (Depends-on): Likewise.
52615         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52616         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52617         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52618         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52619         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52620         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52621         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52622         * modules/vasnprintf-posix (Depends-on): Likewise.
52623         * modules/vasprintf-posix (Depends-on): Likewise.
52624         * modules/vfprintf-posix (Depends-on): Likewise.
52625         * modules/vsnprintf-posix (Depends-on): Likewise.
52626         * modules/vsprintf-posix (Depends-on): Likewise.
52627         * lib/frexp.c: Include isnand.h instead of isnan.h.
52628         (ISNAN): Set to isnand instead of isnan.
52629         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52630         (gl_isfinited): Use isnand instead of isnan.
52631         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52632         (gl_signbitd): Use isnand instead of isnan.
52633         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52634         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52635         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52636         (main): Use isnand instead of isnan.
52637         * tests/test-round1.c: Include isnand.h.
52638         (main): Use isnand instead of isnan.
52639         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52640         (ISNAN): Set to isnand instead of isnan.
52641         * tests/test-trunc1.c: Include isnand.h.
52642         (main): Use isnand instead of isnan.
52643         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52644         (equal): Use isnand instead of isnan.
52645         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52646         isnand-nolibm.
52647         * NEWS: Mention the change.
52648
52649 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52650             Bruno Haible  <bruno@clisp.org>
52651
52652         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52653         the GCC builtins for signbits are present and set
52654         REPLACE_SIGNBIT_USING_GCC if so.
52655         * lib/math.in.h (signbit): Define using GCC builtins if
52656         REPLACE_SIGNBIT_USING_GCC is set.
52657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52658         REPLACE_SIGNBIT_USING_GCC.
52659         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52660
52661 2008-01-25  Jim Meyering  <meyering@redhat.com>
52662
52663         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52664         * lib/poll.c: Include <config.h>, not "config.h".
52665         * tests/test-getaddrinfo.c: Likewise.
52666
52667 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52668
52669         * modules/sockets-tests: New file.
52670
52671 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52672
52673         * modules/sockets: New module, can be used to call WSA_Startup and
52674         WSA_Cleanup when needed.
52675
52676         * lib/sockets.h, lib/sockets.c: New files.
52677
52678         * m4/sockets.m4: New file.
52679
52680         * tests/test-sockets.c: New file.
52681
52682 2008-01-19  Bruno Haible  <bruno@clisp.org>
52683
52684         * doc/posix-headers: Renamed from doc/headers.
52685         * doc/posix-functions: Renamed from doc/functions.
52686         * doc/gnulib.texi: Update.
52687
52688 2008-01-19  Bruno Haible  <bruno@clisp.org>
52689
52690         * doc/glibc-functions/strcasestr.texi: Include contents of
52691         doc/functions/strcasestr.texi, fixing the list of platforms.
52692         * doc/functions/strcasestr.texi: Remove file.
52693
52694 2008-01-19  Bruno Haible  <bruno@clisp.org>
52695
52696         * doc/glibc-functions/memmem.texi: Include contents of
52697         doc/functions/memmem.texi.
52698         * doc/functions/memmem.texi: Remove file.
52699
52700 2008-01-18  Bruno Haible  <bruno@clisp.org>
52701
52702         * doc/glibc-functions/*.texi: New files.
52703         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52704         to use the new files.
52705
52706 2008-01-17  Bruno Haible  <bruno@clisp.org>
52707
52708         * tests/test-gethostname.c (main): Fix printf statement.
52709
52710 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52711
52712         * modules/gethostname-tests: New file.
52713
52714         * tests/test-gethostname.c: New file.
52715
52716 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52717
52718         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52719         used by the UNAME case.  Reported by Bruno Haible
52720         <bruno@clisp.org>.
52721
52722 2008-01-17  Eric Blake  <ebb9@byu.net>
52723
52724         Convert c-strcasestr to be more efficient.
52725         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52726         (Depends-on): Add c-strcase, remove malloca, strnlen.
52727         * tests/test-c-strcasestr.c (main): Enhance test.
52728         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52729
52730 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52731
52732         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52733         Use it in creating po/Makevars.
52734
52735 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52736
52737         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52738         Applications that requires it should initialize libgcrypt
52739         manually.
52740
52741 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52742
52743         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52744
52745 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52746
52747         Fix problem with getdate on mingw32 reported by Simon Josefsson
52748         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52749         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52750         tzname", when deciding whether to declare tzname.
52751         * lib/strftime.c (tzname): Likewise.
52752
52753 2008-01-15  Bruno Haible  <bruno@clisp.org>
52754
52755         Work around a MacOS X 10.5 bug in frexpl().
52756         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52757         * doc/functions/frexpl.texi: Document the bug.
52758         Reported by Elias Pipping <pipping@gentoo.org>.
52759
52760 2008-01-14  Eric Blake  <ebb9@byu.net>
52761
52762         Touch up previous patch.
52763         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52764         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52765
52766         Convert strcasestr module to use Two-Way algorithm.
52767         * modules/strcasestr-simple: New module, based on the old
52768         strcasestr, but with Two-Way rather than KMP.
52769         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52770         * lib/string.in.h (rpl_strcasestr): Declare.
52771         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52772         performance.
52773         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52774         * modules/string (Makefile.am): Support strcasestr.
52775         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52776         * modules/strcasestr-tests (Depends-on): Check for alarm.
52777         * tests/test-strcasestr.c: Augment test.
52778         * lib/str-two-way.h: Clean up stray macro.
52779         * NEWS: Document new module.
52780         * MODULES.html.sh (string handling): Likewise.
52781         * doc/functions/strcasestr.texi: New file.
52782         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52783         here, since it is not a POSIX function.
52784
52785 2008-01-14  Colin Watson  <cjwatson@debian.org>
52786             Bruno Haible  <bruno@clisp.org>
52787
52788         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52789         works fine; if not, set REPLACE_STRSIGNAL.
52790         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52791         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52792         REPLACE_STRSIGNAL.
52793         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52794         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52795         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52796
52797 2008-01-14  Bruno Haible  <bruno@clisp.org>
52798
52799         * modules/strsignal (Include): Change to <string.h>.
52800
52801 2008-01-14  Colin Watson  <cjwatson@debian.org>
52802
52803         * modules/argp (Notice): Add a notice recommending to change
52804         XGETTEXT_OPTIONS.
52805         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52806
52807 2008-01-13  Colin Watson  <cjwatson@debian.org>
52808
52809         * modules/strsignal-tests: New file.
52810         * tests/test-strsignal.c: New file.
52811
52812         * lib/strsignal.c: New file, from glibc with modifications.
52813         * lib/siglist.h: New file, from glibc with modifications.
52814         * lib/string.in.h (strsignal): New declaration.
52815         * m4/strsignal.m4: New file.
52816         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52817         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52818         * modules/strsignal: New file.
52819         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52820         HAVE_DECL_STRSIGNAL.
52821
52822 2008-01-13  Bruno Haible  <bruno@clisp.org>
52823
52824         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52825         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52826         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52827         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52828
52829 2008-01-13  Bruno Haible  <bruno@clisp.org>
52830
52831         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52832         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52833         * lib/argp.h (__attribute__): Likewise.
52834         * lib/c-stack.c (__attribute__): Likewise.
52835         * lib/error.h (__attribute__): Likewise.
52836         * lib/fts.c (__attribute__): Likewise.
52837         * lib/openat.h (__attribute__): Likewise.
52838         * lib/stdio.in.h (__attribute__): Likewise.
52839         * lib/string.in.h (__attribute__): Likewise.
52840         * lib/utimens.c (__attribute__): Likewise.
52841         * lib/vasnprintf.h (__attribute__): Likewise.
52842         * lib/xalloc.h (__attribute__): Likewise.
52843         * lib/xprintf.h (__attribute__): Likewise.
52844         * lib/xstrtol.h (__attribute__): Likewise.
52845         * lib/xvasprintf.h (__attribute__): Likewise.
52846
52847 2008-01-12  Bruno Haible  <bruno@clisp.org>
52848
52849         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52850         * doc/glibc-headers/a.out.texi: New file.
52851         * doc/glibc-headers/aliases.texi: New file.
52852         * doc/glibc-headers/alloca.texi: New file.
52853         * doc/glibc-headers/ar.texi: New file.
52854         * doc/glibc-headers/argp.texi: New file.
52855         * doc/glibc-headers/argz.texi: New file.
52856         * doc/glibc-headers/byteswap.texi: New file.
52857         * doc/glibc-headers/crypt.texi: New file.
52858         * doc/glibc-headers/endian.texi: New file.
52859         * doc/glibc-headers/envz.texi: New file.
52860         * doc/glibc-headers/err.texi: New file.
52861         * doc/glibc-headers/error.texi: New file.
52862         * doc/glibc-headers/execinfo.texi: New file.
52863         * doc/glibc-headers/fpu_control.texi: New file.
52864         * doc/glibc-headers/fstab.texi: New file.
52865         * doc/glibc-headers/fts.texi: New file.
52866         * doc/glibc-headers/getopt.texi: New file.
52867         * doc/glibc-headers/ieee754.texi: New file.
52868         * doc/glibc-headers/ifaddrs.texi: New file.
52869         * doc/glibc-headers/libintl.texi: New file.
52870         * doc/glibc-headers/mcheck.texi: New file.
52871         * doc/glibc-headers/mntent.texi: New file.
52872         * doc/glibc-headers/obstack.texi: New file.
52873         * doc/glibc-headers/paths.texi: New file.
52874         * doc/glibc-headers/printf.texi: New file.
52875         * doc/glibc-headers/pty.texi: New file.
52876         * doc/glibc-headers/resolv.texi: New file.
52877         * doc/glibc-headers/shadow.texi: New file.
52878         * doc/glibc-headers/sysexits.texi: New file.
52879         * doc/glibc-headers/ttyent.texi: New file.
52880
52881 2008-01-12  Jim Meyering  <meyering@redhat.com>
52882
52883         announce-gen: emit Gnulib's git-based version string.
52884         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52885         New option --gnulib-version=V, where V is expected to be
52886         the output of running git describe in the gnulib directory.
52887         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52888         not useful, and plan to stop publishing an xdelta file with each
52889         coreutils release.
52890
52891         * build-aux/announce-gen: Also check for lzma-compressed files.
52892
52893 2008-01-11  Bruno Haible  <bruno@clisp.org>
52894
52895         * tests/test-memmem.c (main): Increase maximum allowed time.
52896         * tests/test-strstr.c (main): Likewise.
52897
52898 2008-01-11  Bruno Haible  <bruno@clisp.org>
52899
52900         * doc/functions/memmem.texi: Add more precisions about platforms.
52901         * doc/functions/strstr.texi: Likewise.
52902
52903 2008-01-10  Eric Blake  <ebb9@byu.net>
52904
52905         * m4/strstr.m4: Delete cruft from copy-n-paste.
52906         Reported by Bruno Haible.
52907
52908 2008-01-10  Bruno Haible  <bruno@clisp.org>
52909
52910         Make c-strstr rely on strstr.
52911         * lib/c-strstr.c: Don't include str-kmp.h.
52912         (c_strstr): Define in terms of strstr.
52913         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52914         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52915
52916 2008-01-10  Bruno Haible  <bruno@clisp.org>
52917
52918         * doc/gnulib.texi (String Functions in C Locale): New section.
52919         * doc/c-ctype.texi: New file.
52920         * doc/c-strcase.texi: New file.
52921         * doc/c-strcaseeq.texi: New file.
52922         * doc/c-strcasestr.texi: New file.
52923         * doc/c-strstr.texi: New file.
52924         * doc/c-strtod.texi: New file.
52925         * doc/c-strtold.texi: New file.
52926
52927 2008-01-10  Eric Blake  <ebb9@byu.net>
52928
52929         * lib/relocatable.h: Fix a comment.
52930
52931 2008-01-10  Eric Blake  <ebb9@byu.net>
52932
52933         Share two-way algorithm.
52934         * lib/str-two-way.h: New file, merged from...
52935         * lib/memmem.c: ...here...
52936         * lib/strstr.c: ...and here.
52937         * modules/memmem (Files): Use it.
52938         * modules/strstr (Files): Likewise.
52939
52940         Avoid quadratic strstr implementations.
52941         * lib/strstr.c: New file.
52942         * m4/strstr.m4: Likewise.
52943         * modules/strstr: Likewise.
52944         * modules/strstr-tests: Likewise.
52945         * tests/test-strstr.c: Likewise.
52946         * lib/string.in.h (rpl_strstr): Declare.
52947         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52948         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52949         * modules/string (Makefile.am): Likewise.
52950         * MODULES.html.sh (string handling): Mention new module.
52951         * doc/functions/strstr.texi (strstr): Document the bug.
52952
52953 2008-01-10  Bruno Haible  <bruno@clisp.org>
52954
52955         * lib/relocatable.h (relocate): State whether result is freshly
52956         allocated or not.
52957         * lib/relocatable.c (relocate): Return a freshly allocated string
52958         instead of a pointer to a privately held string.
52959         Reported by Sylvain Beucler <beuc@gnu.org>.
52960
52961 2008-01-10  Colin Watson  <cjwatson@debian.org>
52962
52963         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52964         s/S_ISNLK/S_ISLNK/.
52965
52966 2008-01-09  Bruno Haible  <bruno@clisp.org>
52967
52968         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52969         and other files.
52970         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52971         if it's only a guess.
52972         * modules/memmem: Simplify by depending on memmem-simple.
52973
52974 2008-01-09  Bruno Haible  <bruno@clisp.org>
52975
52976         Work around OpenBSD 4.0 tdelete() bug.
52977         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52978         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52979         macros and don't redefine the enum values.
52980         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52981         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52982         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52983
52984 2008-01-09  Bruno Haible  <bruno@clisp.org>
52985
52986         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52987         (main): Don't perform the tests if setlocale did not install a UTF-8
52988         locale. Needed on OpenBSD 4.0.
52989         * modules/wcwidth-tests (Depends-on): Add localcharset.
52990
52991 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52992
52993         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52994         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52995         * NEWS: announce this.
52996         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52997
52998 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52999         and Eric Blake  <ebb9@byu.net>
53000
53001         Add memmem-simple module.
53002         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
53003         (gl_FUNC_MEMMEM): Separate performance from presence checks.
53004         * modules/memmem-simple: New file.
53005         * modules/memmem (Description): Tweak.
53006         * MODULES.html.sh (string handling): Mention new module.
53007         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
53008         addressed by memmem-simple.
53009         * NEWS: Document the difference.
53010
53011 2008-01-09  Eric Blake  <ebb9@byu.net>
53012
53013         Give gcc some memmem optimization hints.
53014         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
53015         (strcasestr): Declare as pure.
53016         * modules/memmem (Maintainer): Claim my implementation.
53017
53018 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53019
53020         Support AIX 6.1 and higher.
53021         * build-aux/config.libpath: Likewise.
53022         * build-aux/config.rpath: Likewise.
53023
53024 2008-01-08  Jim Meyering  <meyering@redhat.com>
53025             Bruno Haible  <bruno@clisp.org>
53026
53027         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
53028         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
53029         Reported by Peter Fales in
53030         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
53031
53032 2008-01-08  Bruno Haible  <bruno@clisp.org>
53033
53034         * modules/unictype/category-of (Depends-on): Add
53035         unictype/category-none.
53036         * modules/unictype/category-and-tests (Depends-on): Add
53037         unictype/category-{L,N,Lu,Nd}.
53038         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
53039         * modules/unictype/category-or-tests (Depends-on): Add
53040         unictype/category-{L,N}.
53041         * modules/unictype/category-name-tests (Depends-on): Add
53042         unictype/category-{Z,Nl}.
53043         Reported by Simon Josefsson.
53044
53045 2008-01-08  Bruno Haible  <bruno@clisp.org>
53046
53047         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
53048         convention better.
53049         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
53050         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
53051         Reported by Peter Miller <millerp@canb.auug.org.au>.
53052
53053 2008-01-08  Eric Blake  <ebb9@byu.net>
53054
53055         Rewrite memmem to guarantee linear complexity without malloc.
53056         * lib/memmem.c (memmem): Use Two-Way rather than
53057         Knuth-Morris-Pratt, to allow O(1) space usage.
53058         (critical_factorization, two_way_short_needle)
53059         (two_way_long_needle): New functions.
53060         (knuth_morris_pratt): Delete.
53061         * modules/memmem (Depends-on): No longer need malloca or stdbool.
53062         Add stdint.
53063         * tests/test-memmem.c (main): Add tests for periodic needle and
53064         sublinear performance.
53065         * doc/functions/memmem.texi (memmem): Document other deficiencies
53066         in cygwin and older glibc.
53067
53068 2008-01-08  Bruno Haible  <bruno@clisp.org>
53069
53070         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
53071         augmentation.
53072
53073 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
53074
53075         Add a configure time option: --disable-acl.
53076         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
53077         AC_ARG_ENABLE(acl).
53078
53079 2008-01-06  Simon Josefsson  <simon@josefsson.org>
53080
53081         * tests/test-localename.c: Don't include obsolete "setenv.h".
53082
53083         * modules/localename-tests (Depends-on): Need unsetenv.
53084
53085 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53086
53087         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
53088
53089 2008-01-06  Colin Watson  <cjwatson@debian.org>
53090
53091         * users.txt: Add man-db.
53092
53093 2008-01-07  Bruno Haible  <bruno@clisp.org>
53094
53095         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
53096         previous section name.
53097
53098 2008-01-07  Bruno Haible  <bruno@clisp.org>
53099
53100         * lib/progname.c (set_program_name): Don't strip off a leading
53101         "lt-" prefix outside a .libs directory.
53102         Suggested by Paul Eggert.
53103
53104 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
53105             Bruno Haible  <bruno@clisp.org>
53106
53107         Improve memory cleanup in 'relocatable' module.
53108         * lib/relocatable.h (compute_curr_prefix): Change return type to
53109         'char *'.
53110         * lib/relocatable.c (compute_curr_prefix): Change return type to
53111         'char *'. Free curr_installdir after use.
53112         (relocate): Free curr_prefix_better after use.
53113         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
53114
53115 2008-01-01  Bruno Haible  <bruno@clisp.org>
53116
53117         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
53118         failure on older glibc systems.
53119         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53120
53121 2008-01-05  Eric Blake  <ebb9@byu.net>
53122
53123         Avoid quadratic system memmem.
53124         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
53125         Reported by Ralf Wildenhues.
53126
53127         Fix memmem test for mingw.
53128         * modules/memmem-tests (configure.ac): Check for alarm.
53129         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
53130         it.
53131         * doc/functions/memmem.texi: New file.
53132         * doc/gnulib.texi (Function Substitutes): Add memmem.
53133         Reported by Bruno Haible.
53134
53135 2008-01-04  Bruno Haible  <bruno@clisp.org>
53136
53137         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
53138         Require gl_HEADER_STRINGS_H_DEFAULTS, not
53139         gl_HEADER_STRING_H_DEFAULTS.
53140
53141 2008-01-04  Eric Blake  <ebb9@byu.net>
53142
53143         Shorten duration of memmem test.
53144         * tests/test-memmem.c (main): Use alarm to declare failure if test
53145         is taking too long.
53146         Reported by Ralf Wildenhues.
53147
53148 2007-12-21  Simon Josefsson  <simon@josefsson.org>
53149
53150         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
53151         string, needed by strerror.
53152
53153 2008-01-03  Colin Watson  <cjwatson@debian.org>
53154             Bruno Haible  <bruno@clisp.org>
53155
53156         * doc/gnulib-tool.texi (Localization): New section.
53157
53158 2008-01-02  Bruno Haible  <bruno@clisp.org>
53159
53160         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
53161         variables to 'unsigned char *' type.
53162         Reported by Paul Eggert.
53163
53164 2008-01-02  Jim Meyering  <jim@meyering.net>
53165
53166         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
53167
53168 2007-12-31  Jim Meyering  <jim@meyering.net>
53169
53170         Avoid use of private FTS type name.
53171         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
53172
53173 2007-12-30  Karl Berry  <karl@gnu.org>
53174
53175         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
53176         work around defect in Texinfo and/or the standalone Info browser.
53177
53178 2007-12-30  Bruno Haible  <bruno@clisp.org>
53179
53180         Unify 5 copies of the KMP code.
53181         * lib/str-kmp.h: New file.
53182         * lib/c-strcasestr.c: Include str-kmp.h.
53183         (knuth_morris_pratt): Remove function.
53184         (c_strcasestr): Update.
53185         * lib/c-strstr.c: Include str-kmp.h.
53186         (knuth_morris_pratt): Remove function.
53187         (c_strcasestr): Update.
53188         * lib/mbscasestr.c: Include str-kmp.h.
53189         (knuth_morris_pratt_unibyte): Remove function.
53190         * lib/mbsstr.c: Include str-kmp.h.
53191         (knuth_morris_pratt_unibyte): Remove function.
53192         * lib/strcasestr.c: Include str-kmp.h.
53193         (knuth_morris_pratt): Remove function.
53194         (strcasestr): Update.
53195         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
53196         * modules/c-strstr (Files): Likewise.
53197         * modules/mbscasestr (Files): Likewise.
53198         * modules/mbsstr (Files): Likewise.
53199         * modules/strcasestr (Files): Likewise.
53200         Suggested by Paul Eggert.
53201
53202 2007-12-30  Bruno Haible  <bruno@clisp.org>
53203
53204         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
53205         defined.
53206
53207 2007-12-30  Bruno Haible  <bruno@clisp.org>
53208
53209         * lib/xmalloca.h: Include xalloc.h.
53210         (xnmalloca): New macro.
53211
53212 2007-12-30  Bruno Haible  <bruno@clisp.org>
53213
53214         * lib/malloca.h (nmalloca): New macro.
53215         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
53216         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
53217         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
53218         knuth_morris_pratt_multibyte): Likewise.
53219         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
53220         knuth_morris_pratt_multibyte): Likewise.
53221         * lib/memmem.c (knuth_morris_pratt): Likewise.
53222         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
53223
53224 2007-12-25  Bruno Haible  <bruno@clisp.org>
53225
53226         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
53227         * lib/glob.c: Don't include openat.h.
53228         (link_exists2_p): Add back the code that deals with the
53229         !GLOB_ALTDIRFUNC case.
53230         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
53231         let it do the filename concatenation.
53232         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
53233         * modules/glob (Depends-on): Remove openat.
53234
53235 2007-12-31  Bruno Haible  <bruno@clisp.org>
53236
53237         * modules/dirfd (License): Change to LGPLv2+.
53238         Approved by Jim Meyering.
53239
53240 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53241
53242         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
53243         when multiplying M by sizeof (size_t).
53244
53245 2007-12-10  Martin Lambers  <marlam@marlam.de>
53246
53247         Override getpagesize on mingw.
53248         * lib/getpagesize.c: New file.
53249         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
53250         * modules/getpagesize (Files): Add lib/getpagesize.c.
53251         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
53252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53253         REPLACE_GETPAGESIZE.
53254         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
53255
53256 2007-12-25  Bruno Haible  <bruno@clisp.org>
53257
53258         * modules/localcharset (Notice): New field.
53259         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
53260         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53261
53262 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53263             Bruno Haible  <bruno@clisp.org>
53264
53265         Avoid using the syntax symbol() in formatted documentation.
53266         * MODULES.html.sh (func_module): When replacing symbol() with a
53267         hyperlink, remove the parentheses. Show an error if some remain.
53268         Recognize and render the '...' syntax.
53269         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
53270         Rework. Add paragraph about GCC's inlining.
53271         * doc/alloca.texi: Likewise.
53272         * doc/error.texi: Remove parentheses from symbol reference.
53273         * doc/gnulib-intro.texi: Likewise.
53274         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
53275         * modules/fnmatch (Description): Reword to say "the ... function".
53276         * modules/full-read (Description): Likewise.
53277         * modules/full-write (Description): Likewise.
53278         * modules/safe-read (Description): Likewise.
53279         * modules/safe-write (Description): Likewise.
53280         * modules/strchrnul (Description): Likewise.
53281         * modules/trim (Description): Likewise.
53282         * modules/error (Description): Remove parentheses from symbol
53283         references.
53284         * modules/verror (Description): Likewise.
53285         Reported by Karl Berry.
53286
53287 2007-12-25  Bruno Haible  <bruno@clisp.org>
53288
53289         Fixup after 2007-10-16 commit.
53290         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
53291
53292 2007-12-24  Bruno Haible  <bruno@clisp.org>
53293
53294         Make --enable-relocatable work with DESTDIR.
53295         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
53296         to compute installdir from destprog.
53297         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
53298         also set the RELOC_DESTDIR variable.
53299         Reported by Левашев Иван <octagram@bluebottle.com>.
53300
53301 2007-12-24  Bruno Haible  <bruno@clisp.org>
53302
53303         Fix link error due to xalloc_die().
53304         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
53305         of xreadlink.
53306         * lib/relocwrapper.c: Update comments.
53307         * build-aux/install-reloc: Remove xreadlink.c from file list.
53308         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
53309         xreadlink.c.
53310         Reported by Левашев Иван <octagram@bluebottle.com>.
53311
53312 2007-12-24  Bruno Haible  <bruno@clisp.org>
53313
53314         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
53315         * lib/setenv.h: Remove file.
53316         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
53317         lib/setenv.h.
53318         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
53319         (Depends-on): Add stdlib.
53320         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
53321         gl_FUNC_UNSETENV.
53322         (Include): Replace setenv.h with <stdlib.h>.
53323         * modules/unsetenv: New file.
53324         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
53325         * lib/unsetenv.c: Include <stdlib.h> first.
53326         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
53327         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
53328         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
53329         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
53330         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
53331         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53332         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
53333         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53334         * doc/functions/unsetenv.texi: Update.
53335         * modules/xsetenv (Depends-on): Add unsetenv.
53336         * modules/getdate (Depends-on): Likewise.
53337         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
53338         * lib/xsetenv.c: Don't include setenv.h.
53339         * lib/getdate.y: Likewise.
53340         * lib/relocwrapper.c: Likewise.
53341         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
53342         (Depends-on): Add stdlib.
53343         * NEWS: Mention the changes.
53344         Reported by Левашев Иван <octagram@bluebottle.com>.
53345
53346 2007-12-23  Bruno Haible  <bruno@clisp.org>
53347
53348         * lib/memmem.c (memmem): Use lowercase variable names. Tab
53349         indentation.
53350
53351 2007-12-23  Bruno Haible  <bruno@clisp.org>
53352
53353         * lib/c-strcasestr.c: Add more comments.
53354         * lib/c-strstr.c: Likewise.
53355         * lib/mbscasestr.c: Likewise.
53356         * lib/mbsstr.c: Likewise.
53357         * lib/strcasestr.c: Likewise.
53358         * lib/memmem.c: Likewise.
53359
53360 2007-12-23  Bruno Haible  <bruno@clisp.org>
53361
53362         * tests/test-memmem.c: Include <string.h> first.
53363
53364 2007-12-22  Bruno Haible  <bruno@clisp.org>
53365
53366         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53367         the contents of $testsbase.
53368         Reported by Ralf Wildenhues.
53369
53370 2007-12-22  Bruno Haible  <bruno@clisp.org>
53371
53372         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53373         two variables local_ldadd_before, local_ldadd_last.
53374
53375 2007-12-20  Eric Blake  <ebb9@byu.net>
53376
53377         Work around circular library issue when cross-compiling.
53378         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53379         that progname.o does not need to pull in rpl_memcmp.
53380
53381 2007-12-19  Eric Blake  <ebb9@byu.net>
53382
53383         Fix memmem to avoid O(n^2) worst-case complexity.
53384         * lib/memmem.c (knuth_morris_pratt): New function.
53385         (memmem): Use it if first few naive iterations fail.
53386         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
53387         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53388         * modules/memchr (License): Likewise.
53389         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53390         malloca.
53391         * tests/test-memmem.c: Rewrite, borrowing ideas from
53392         test-mbsstr1.c; the old version wouldn't even compile!
53393         * modules/memmem-tests: New file.
53394         * lib/string.in.h (rpl_memmem): Add declaration.
53395         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
53396         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
53397         REPLACE_MEMMEM.
53398
53399 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53400
53401         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
53402         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
53403         before any system include files, and undef after them all.  This
53404         should fix a problem on VMS reported by John E. Malmberg in
53405         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
53406
53407 2007-12-17  Eric Blake  <ebb9@byu.net>
53408
53409         Revert addition of verify, for BSD/OS.
53410         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
53411         can't handle large files, for the sake of obsolete platforms.
53412         * modules/fseeko (Depends-on): Remove verify.
53413         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
53414         * doc/functions/ftello.texi (ftello): Likewise.
53415         * doc/functions/fgetpos.texi (fgetpos): Likewise.
53416         Reported by Larry Jones.
53417
53418 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
53419
53420         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
53421         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
53422
53423 2007-12-17  Jim Meyering  <meyering@redhat.com>
53424
53425         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
53426         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
53427         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
53428         * modules/getcwd (Depends-on): Add openat.
53429         Reported by Petr Salinger.
53430
53431 2007-12-17  Bruno Haible  <bruno@clisp.org>
53432
53433         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
53434         avoid a segmentation fault of the configure test on x86_64 systems.
53435
53436 2007-12-15  Jim Meyering  <meyering@redhat.com>
53437
53438         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
53439
53440 2007-12-13  Eric Blake  <ebb9@byu.net>
53441
53442         Another fseek test.
53443         * tests/test-fseek.c (main): Also test ungetc handling.
53444         * tests/test-fseeko.c (main): Likewise.
53445         * modules/fseeko (Depends-on): Add verify.
53446         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
53447         large.
53448         Reported by Larry Jones.
53449
53450         Fix fseeko on mingw.
53451         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
53452         seek.
53453
53454         Beef up fseek tests.
53455         * tests/test-fseek.c (main): Also test eof handling.
53456         * tests/test-fseeko.c (main): Likewise.
53457         Reported by Larry Jones.
53458
53459 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
53460
53461         Fix fseeko on BSD-based platforms.
53462         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
53463         successful seek.
53464
53465 2007-12-12  Eric Blake  <ebb9@byu.net>
53466
53467         Allow circular dependency of separate libtests.a
53468         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
53469         when use_libtests.
53470
53471 2007-12-11  Eric Blake  <ebb9@byu.net>
53472
53473         Fix bug with -0.0L in previous patch.
53474         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53475         * tests/test-isnan.c (main): Also test on zeroes.
53476         * tests/test-isnanf.c (main): Likewise.
53477         * tests/test-isnanl.h (main): Likewise.
53478
53479         Detect pseudo-denormals on x86 even when cross-compiling.
53480         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53481         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53482         invalid bit patterns that happen to satisfy ==.
53483
53484         Avoid link failures with separate libtests.a.
53485         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53486         last, to satisfy circular dependencies.
53487
53488 2007-12-11  Eric Blake  <ebb9@byu.net>
53489         and Bruno Haible  <bruno@clisp.org>
53490
53491         Fix OpenBSD 4.0 <float.h> handling of long double.
53492         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53493         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53494         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53495
53496 2007-12-11  Jim Meyering  <meyering@redhat.com>
53497
53498         * users.txt: Add libvirt.
53499
53500         Support versions of autoconf prior to 2.59c.
53501         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53502         if it is not already defined.
53503
53504 2007-12-09  Bruno Haible  <bruno@clisp.org>
53505
53506         Let 'gnulib-tool --import' collect sources needed for the tests in
53507         tests/ rather than in lib/.
53508         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53509         argument. If true, add rules to generate libtests.a, and put libtests.a
53510         into $(LDADD). Consider source files in subdirectories and set
53511         uses_subdirs.
53512         (func_emit_initmacro_start, func_emit_initmacro_end,
53513         func_emit_initmacro_done): Pass all arguments explicitly.
53514         (func_import): Determine two module lists main_modules,
53515         testsrelated_modules. Determine use_libtests. Determine two variables
53516         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53517         instead of just sed_transform_lib_file. Determine two variables
53518         main_files and testsrelated_files. Compute 'files' as the union of
53519         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53520         func_add_or_update. In the generated gnulib-comp.m4, collect the
53521         object files for tests/ in different variables than those for lib/.
53522         Substitute LIBTESTS_LIBDEPS.
53523         (func_create_testdir): Combine the uses_subdirs results from
53524         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53525
53526 2007-12-09  Bruno Haible  <bruno@clisp.org>
53527
53528         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53529         the build-aux directory.
53530
53531 2007-12-09  Bruno Haible  <bruno@clisp.org>
53532
53533         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53534         introduced on 2006-09-09.
53535
53536 2007-12-07  Jim Meyering  <meyering@redhat.com>
53537
53538         Let these macros work also with autoconf-2.59.
53539         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53540         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53541         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53542
53543 2007-12-06  Jim Meyering  <meyering@redhat.com>
53544
53545         Avoid a configure-time syntax error in gl_FUNC_ACL.
53546         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53547         function in each branch, before testing the cache variable.
53548
53549 2007-12-04  Eric Blake  <ebb9@byu.net>
53550
53551         Make scripts executable.
53552         * build-aux/config.guess: Add execute permissions.
53553         * build-aux/config.sub: Likewise.
53554         * build-aux/gendocs.sh: Likewise.
53555
53556         Fix frexp on mingw.
53557         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53558         cross-compiling.
53559         * doc/functions/frexp.texi (frexp): Document the bug.
53560
53561         Make cygwin fseeko check more reliable.
53562         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53563         version numbers, rather than unrelated feature check.
53564         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53565         * doc/functions/ftello.texi (ftello): Likewise.
53566         Reported by Bruno Haible.
53567
53568         * m4/strerror.m4: Bump version number.
53569
53570 2007-12-03  Bruno Haible  <bruno@clisp.org>
53571
53572         * doc/functions/mprotect.texi: Mention the mingw problem.
53573
53574 2007-12-03  Eric Blake  <ebb9@byu.net>
53575
53576         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53577         REPLACE_STRERROR is initialized before this macro.
53578
53579 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53580
53581         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53582         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53583         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53584         put -lsec in even for programs other than 'ls'.  This fixes a problem
53585         for gettext reported by Bruno Haible in
53586         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53587         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53588         Add support for Solaris 10.  This isn't efficient, but should get the
53589         job done for now.
53590
53591 2007-12-03  James Youngman  <jay@gnu.org>
53592
53593         * doc/regexprops-generic.texi: change "an close-group" to "a
53594         close-group" and "illegal" to "not allowed".
53595
53596 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53597
53598         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53599         pr_byname.h. Needed for the rare case when the maintainer has done
53600         "make maintainer-clean" in the source directory and then attempts a
53601         build outside the source directory.
53602         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53603         scripts_byname.h.
53604
53605 2007-12-02  Martin Lambers <marlam@marlam.de>
53606             Bruno Haible  <bruno@clisp.org>
53607
53608         * lib/getpagesize.h: Remove file.
53609         * lib/unistd.in.h: Include declaration of getpagesize here.
53610         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53611         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53612         HAVE_SYS_PARAM_H.
53613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53614         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53615         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53616         (Depends-on): Add unistd.
53617         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53618         (Include): Use <unistd.h> instead of getpagesize.h.
53619         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53620         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53621         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53622         gl_GETPAGESIZE invocation, already handled by module dependency.
53623         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53624
53625 2007-12-02  Bruno Haible  <bruno@clisp.org>
53626
53627         * modules/strings-tests: New file.
53628         * tests/test-strings.c: New file.
53629
53630         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53631         * lib/strings.in.h: New file.
53632         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53633         * m4/strings_h.m4: New file.
53634         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53635         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53636         * modules/strings: New file.
53637         * modules/string (Makefile.am): Update.
53638         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53639         Reported by Karl Berry.
53640
53641 2007-12-01  Eric Blake  <ebb9@byu.net>
53642
53643         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53644         accomodate fix in cygwin 1.5.25.
53645
53646 2007-12-01  Jim Meyering  <meyering@redhat.com>
53647
53648         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53649         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53650         that would inhibit utf8-optimization of a regexp containing line-
53651         or buffer-anchors, e.g., `^', `$'.
53652
53653 2007-11-30  Bruno Haible  <bruno@clisp.org>
53654
53655         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53656         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53657         glthread_recursive_lock_init.
53658         * lib/lock.c (glthread_recursive_lock_init)
53659         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53660         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53661
53662 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53663
53664         New function qset_acl, like set_acl but with syscall semantics.
53665         * lib/acl.h (qset_acl): New decl.
53666         * lib/acl.c (qset_acl): New function.
53667         (set_acl): Use new function.  Use more-consistent diagnostics.
53668
53669 2007-11-28  Jim Meyering  <meyering@redhat.com>
53670
53671         * modules/physmem (License): Change from GPL to LGPLv2+.
53672
53673 2007-11-26  Bruno Haible  <bruno@clisp.org>
53674
53675         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53676         'long double' type has excess precision.
53677         Reported by Jim Meyering in
53678         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53679
53680 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53681
53682         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53683         Sync from <http://gnu.org/licenses>.
53684         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53685         with license text from same location.
53686         * doc/maintain.texi, doc/standards.texi:  Sync from
53687         <http://savannah.gnu.org/projects/gnustandards>.
53688
53689 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
53690         and Jim Meyering  <meyering@redhat.com>
53691
53692         Adjust getdate' grammar to accept a slightly more regular language.
53693         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53694         Before, the former was rejected.
53695         * lib/getdate.y (digits_to_date_time): New function, factored
53696         out of ...
53697         (number): ...here.  Just call digits_to_date_time.
53698         (hybrid): New non-terminal to handle an <unsigned number,
53699         signed relative offset> sequence consistently.
53700
53701 2007-11-18  Jim Meyering  <meyering@redhat.com>
53702
53703         Pull my changes from coreutils:
53704         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53705         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53706         use of $gnulib_tool_option_extras, so that it's separated from the
53707         preceding argument.
53708
53709         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53710         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53711         parent destination directories before copying a file into place.
53712
53713 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53714
53715         bootstrap: work also with 4-argument variant of AC_INIT
53716         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53717
53718 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53719
53720         Port test-getaddrinfo to Solaris.
53721         Problem reported by Bruno Haible in
53722         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53723         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53724         explanation of setting 'hints'.
53725         Don't reject an implementation merely because it returns EAI_SERVICE.
53726         (EAI_SERVICE): Define to 0 if not defined.
53727
53728 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53729
53730         The license of gnu-make and posix-shell is now "GPLed build tool".
53731         * modules/gnu-make (License): Likewise.
53732         * modules/posix-shell (License): Likewise.
53733
53734         New module posix-shell, for determining a POSIX shell
53735         or perhaps something that is close enough to a POSIX shell.
53736         * m4/posix-shell.m4: New file.
53737         * modules/posix-shell: New file.
53738
53739         * MODULES.html.sh: Mention new module.
53740
53741         New module gnu-make, for determining whether we're using GNU Make.
53742         * m4/gnu-make.m4: New file.
53743         * modules/gnu-make: New file.
53744         * MODULES.html.sh: Mention new module.
53745
53746 2007-11-14  Jim Meyering  <meyering@redhat.com>
53747
53748         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53749         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53750         use this macro to create a function _definition_.
53751         Remove useless "#undef ARGMATCH_DIE".
53752
53753 2007-11-14  Bruno Haible  <bruno@clisp.org>
53754
53755         * lib/config.charset: Update for OpenBSD 4.1.
53756         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53757
53758 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53759
53760         Document 64-bit #if problems in stdint.texi.
53761         * doc/headers/stdint.texi (stdint.h): Mention problems with
53762         64-bit-#if, and how to work around them.
53763
53764         Don't insist on 'long long int' support in the preprocessor.  It
53765         breaks too many things.  For example, PRIdMAX still uses a 'long
53766         long int' format with the latest Sun compiler, even though
53767         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53768         preprocessor problem.  This causes the latest coreutils to dump
53769         core on Solaris 10 sparc with the Sun C compiler.
53770         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53771         the troublesome expressions at configure-time, not at #if-time.
53772         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53773         preprocessor.
53774         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53775         compile-time C checks, done at 'configure'-time.
53776         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53777         * modules/inttypes (Makefile): Substitute the new symbols that
53778         gl_INTTYPES_H now generates.
53779         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53780
53781 2007-11-12  Bruno Haible  <bruno@clisp.org>
53782
53783         Tests for Unicode character classification functions.
53784
53785         * modules/unictype/bidicategory-byname-tests: New file.
53786         * modules/unictype/bidicategory-name-tests: New file.
53787         * modules/unictype/bidicategory-of-tests: New file.
53788         * modules/unictype/bidicategory-test-tests: New file.
53789         * modules/unictype/block-list-tests: New file.
53790         * modules/unictype/block-of-tests: New file.
53791         * modules/unictype/block-test-tests: New file.
53792         * modules/unictype/category-C-tests: New file.
53793         * modules/unictype/category-Cc-tests: New file.
53794         * modules/unictype/category-Cf-tests: New file.
53795         * modules/unictype/category-Cn-tests: New file.
53796         * modules/unictype/category-Co-tests: New file.
53797         * modules/unictype/category-Cs-tests: New file.
53798         * modules/unictype/category-L-tests: New file.
53799         * modules/unictype/category-Ll-tests: New file.
53800         * modules/unictype/category-Lm-tests: New file.
53801         * modules/unictype/category-Lo-tests: New file.
53802         * modules/unictype/category-Lt-tests: New file.
53803         * modules/unictype/category-Lu-tests: New file.
53804         * modules/unictype/category-M-tests: New file.
53805         * modules/unictype/category-Mc-tests: New file.
53806         * modules/unictype/category-Me-tests: New file.
53807         * modules/unictype/category-Mn-tests: New file.
53808         * modules/unictype/category-N-tests: New file.
53809         * modules/unictype/category-Nd-tests: New file.
53810         * modules/unictype/category-Nl-tests: New file.
53811         * modules/unictype/category-No-tests: New file.
53812         * modules/unictype/category-P-tests: New file.
53813         * modules/unictype/category-Pc-tests: New file.
53814         * modules/unictype/category-Pd-tests: New file.
53815         * modules/unictype/category-Pe-tests: New file.
53816         * modules/unictype/category-Pf-tests: New file.
53817         * modules/unictype/category-Pi-tests: New file.
53818         * modules/unictype/category-Po-tests: New file.
53819         * modules/unictype/category-Ps-tests: New file.
53820         * modules/unictype/category-S-tests: New file.
53821         * modules/unictype/category-Sc-tests: New file.
53822         * modules/unictype/category-Sk-tests: New file.
53823         * modules/unictype/category-Sm-tests: New file.
53824         * modules/unictype/category-So-tests: New file.
53825         * modules/unictype/category-Z-tests: New file.
53826         * modules/unictype/category-Zl-tests: New file.
53827         * modules/unictype/category-Zp-tests: New file.
53828         * modules/unictype/category-Zs-tests: New file.
53829         * modules/unictype/category-and-not-tests: New file.
53830         * modules/unictype/category-and-tests: New file.
53831         * modules/unictype/category-byname-tests: New file.
53832         * modules/unictype/category-name-tests: New file.
53833         * modules/unictype/category-none-tests: New file.
53834         * modules/unictype/category-of-tests: New file.
53835         * modules/unictype/category-or-tests: New file.
53836         * modules/unictype/category-test-withtable-tests: New file.
53837         * modules/unictype/combining-class-tests: New file.
53838         * modules/unictype/ctype-alnum-tests: New file.
53839         * modules/unictype/ctype-alpha-tests: New file.
53840         * modules/unictype/ctype-blank-tests: New file.
53841         * modules/unictype/ctype-cntrl-tests: New file.
53842         * modules/unictype/ctype-digit-tests: New file.
53843         * modules/unictype/ctype-graph-tests: New file.
53844         * modules/unictype/ctype-lower-tests: New file.
53845         * modules/unictype/ctype-print-tests: New file.
53846         * modules/unictype/ctype-punct-tests: New file.
53847         * modules/unictype/ctype-space-tests: New file.
53848         * modules/unictype/ctype-upper-tests: New file.
53849         * modules/unictype/ctype-xdigit-tests: New file.
53850         * modules/unictype/decimal-digit-tests: New file.
53851         * modules/unictype/digit-tests: New file.
53852         * modules/unictype/mirror-tests: New file.
53853         * modules/unictype/numeric-tests: New file.
53854         * modules/unictype/property-alphabetic-tests: New file.
53855         * modules/unictype/property-ascii-hex-digit-tests: New file.
53856         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53857         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53858         * modules/unictype/property-bidi-block-separator-tests: New file.
53859         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53860         * modules/unictype/property-bidi-common-separator-tests: New file.
53861         * modules/unictype/property-bidi-control-tests: New file.
53862         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53863         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53864         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53865         * modules/unictype/property-bidi-european-digit-tests: New file.
53866         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53867         * modules/unictype/property-bidi-left-to-right-tests: New file.
53868         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53869         * modules/unictype/property-bidi-other-neutral-tests: New file.
53870         * modules/unictype/property-bidi-pdf-tests: New file.
53871         * modules/unictype/property-bidi-segment-separator-tests: New file.
53872         * modules/unictype/property-bidi-whitespace-tests: New file.
53873         * modules/unictype/property-byname-tests: New file.
53874         * modules/unictype/property-combining-tests: New file.
53875         * modules/unictype/property-composite-tests: New file.
53876         * modules/unictype/property-currency-symbol-tests: New file.
53877         * modules/unictype/property-dash-tests: New file.
53878         * modules/unictype/property-decimal-digit-tests: New file.
53879         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53880         * modules/unictype/property-deprecated-tests: New file.
53881         * modules/unictype/property-diacritic-tests: New file.
53882         * modules/unictype/property-extender-tests: New file.
53883         * modules/unictype/property-format-control-tests: New file.
53884         * modules/unictype/property-grapheme-base-tests: New file.
53885         * modules/unictype/property-grapheme-extend-tests: New file.
53886         * modules/unictype/property-grapheme-link-tests: New file.
53887         * modules/unictype/property-hex-digit-tests: New file.
53888         * modules/unictype/property-hyphen-tests: New file.
53889         * modules/unictype/property-id-continue-tests: New file.
53890         * modules/unictype/property-id-start-tests: New file.
53891         * modules/unictype/property-ideographic-tests: New file.
53892         * modules/unictype/property-ids-binary-operator-tests: New file.
53893         * modules/unictype/property-ids-trinary-operator-tests: New file.
53894         * modules/unictype/property-ignorable-control-tests: New file.
53895         * modules/unictype/property-iso-control-tests: New file.
53896         * modules/unictype/property-join-control-tests: New file.
53897         * modules/unictype/property-left-of-pair-tests: New file.
53898         * modules/unictype/property-line-separator-tests: New file.
53899         * modules/unictype/property-logical-order-exception-tests: New file.
53900         * modules/unictype/property-lowercase-tests: New file.
53901         * modules/unictype/property-math-tests: New file.
53902         * modules/unictype/property-non-break-tests: New file.
53903         * modules/unictype/property-not-a-character-tests: New file.
53904         * modules/unictype/property-numeric-tests: New file.
53905         * modules/unictype/property-other-alphabetic-tests: New file.
53906         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53907         * modules/unictype/property-other-grapheme-extend-tests: New file.
53908         * modules/unictype/property-other-id-continue-tests: New file.
53909         * modules/unictype/property-other-id-start-tests: New file.
53910         * modules/unictype/property-other-lowercase-tests: New file.
53911         * modules/unictype/property-other-math-tests: New file.
53912         * modules/unictype/property-other-uppercase-tests: New file.
53913         * modules/unictype/property-paired-punctuation-tests: New file.
53914         * modules/unictype/property-paragraph-separator-tests: New file.
53915         * modules/unictype/property-pattern-syntax-tests: New file.
53916         * modules/unictype/property-pattern-white-space-tests: New file.
53917         * modules/unictype/property-private-use-tests: New file.
53918         * modules/unictype/property-punctuation-tests: New file.
53919         * modules/unictype/property-quotation-mark-tests: New file.
53920         * modules/unictype/property-radical-tests: New file.
53921         * modules/unictype/property-sentence-terminal-tests: New file.
53922         * modules/unictype/property-soft-dotted-tests: New file.
53923         * modules/unictype/property-space-tests: New file.
53924         * modules/unictype/property-terminal-punctuation-tests: New file.
53925         * modules/unictype/property-test-tests: New file.
53926         * modules/unictype/property-titlecase-tests: New file.
53927         * modules/unictype/property-unassigned-code-value-tests: New file.
53928         * modules/unictype/property-unified-ideograph-tests: New file.
53929         * modules/unictype/property-uppercase-tests: New file.
53930         * modules/unictype/property-variation-selector-tests: New file.
53931         * modules/unictype/property-white-space-tests: New file.
53932         * modules/unictype/property-xid-continue-tests: New file.
53933         * modules/unictype/property-xid-start-tests: New file.
53934         * modules/unictype/property-zero-width-tests: New file.
53935         * modules/unictype/scripts-tests: New file.
53936         * modules/unictype/syntax-c-ident-tests: New file.
53937         * modules/unictype/syntax-c-whitespace-tests: New file.
53938         * modules/unictype/syntax-java-ident-tests: New file.
53939         * modules/unictype/syntax-java-whitespace-tests: New file.
53940         * tests/unictype/test-bidi_byname.c: New file.
53941         * tests/unictype/test-bidi_name.c: New file.
53942         * tests/unictype/test-bidi_of.c: New file.
53943         * tests/unictype/test-bidi_test.c: New file.
53944         * tests/unictype/test-block_list.c: New file.
53945         * tests/unictype/test-block_of.c: New file.
53946         * tests/unictype/test-block_test.c: New file.
53947         * tests/unictype/test-categ_and.c: New file.
53948         * tests/unictype/test-categ_and_not.c: New file.
53949         * tests/unictype/test-categ_byname.c: New file.
53950         * tests/unictype/test-categ_name.c: New file.
53951         * tests/unictype/test-categ_none.c: New file.
53952         * tests/unictype/test-categ_of.c: New file.
53953         * tests/unictype/test-categ_or.c: New file.
53954         * tests/unictype/test-categ_test_withtable.c: New file.
53955         * tests/unictype/test-combining.c: New file.
53956         * tests/unictype/test-decdigit.c: New file.
53957         * tests/unictype/test-digit.c: New file.
53958         * tests/unictype/test-mirror.c: New file.
53959         * tests/unictype/test-numeric.c: New file.
53960         * tests/unictype/test-pr_byname.c: New file.
53961         * tests/unictype/test-pr_test.c: New file.
53962         * tests/unictype/test-predicate-part1.h: New file.
53963         * tests/unictype/test-predicate-part2.h: New file.
53964         * tests/unictype/test-scripts.c: New file.
53965         * tests/unictype/test-sy_c_ident.c: New file.
53966         * tests/unictype/test-sy_java_ident.c: New file.
53967
53968         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53969         for Unicode 5.0.0.
53970         * tests/unictype/test-categ_Cc.c: Likewise.
53971         * tests/unictype/test-categ_Cf.c: Likewise.
53972         * tests/unictype/test-categ_Cn.c: Likewise.
53973         * tests/unictype/test-categ_Co.c: Likewise.
53974         * tests/unictype/test-categ_Cs.c: Likewise.
53975         * tests/unictype/test-categ_L.c: Likewise.
53976         * tests/unictype/test-categ_Ll.c: Likewise.
53977         * tests/unictype/test-categ_Lm.c: Likewise.
53978         * tests/unictype/test-categ_Lo.c: Likewise.
53979         * tests/unictype/test-categ_Lt.c: Likewise.
53980         * tests/unictype/test-categ_Lu.c: Likewise.
53981         * tests/unictype/test-categ_M.c: Likewise.
53982         * tests/unictype/test-categ_Mc.c: Likewise.
53983         * tests/unictype/test-categ_Me.c: Likewise.
53984         * tests/unictype/test-categ_Mn.c: Likewise.
53985         * tests/unictype/test-categ_N.c: Likewise.
53986         * tests/unictype/test-categ_Nd.c: Likewise.
53987         * tests/unictype/test-categ_Nl.c: Likewise.
53988         * tests/unictype/test-categ_No.c: Likewise.
53989         * tests/unictype/test-categ_P.c: Likewise.
53990         * tests/unictype/test-categ_Pc.c: Likewise.
53991         * tests/unictype/test-categ_Pd.c: Likewise.
53992         * tests/unictype/test-categ_Pe.c: Likewise.
53993         * tests/unictype/test-categ_Pf.c: Likewise.
53994         * tests/unictype/test-categ_Pi.c: Likewise.
53995         * tests/unictype/test-categ_Po.c: Likewise.
53996         * tests/unictype/test-categ_Ps.c: Likewise.
53997         * tests/unictype/test-categ_S.c: Likewise.
53998         * tests/unictype/test-categ_Sc.c: Likewise.
53999         * tests/unictype/test-categ_Sk.c: Likewise.
54000         * tests/unictype/test-categ_Sm.c: Likewise.
54001         * tests/unictype/test-categ_So.c: Likewise.
54002         * tests/unictype/test-categ_Z.c: Likewise.
54003         * tests/unictype/test-categ_Zl.c: Likewise.
54004         * tests/unictype/test-categ_Zp.c: Likewise.
54005         * tests/unictype/test-categ_Zs.c: Likewise.
54006         * tests/unictype/test-ctype_alnum.c: Likewise.
54007         * tests/unictype/test-ctype_alpha.c: Likewise.
54008         * tests/unictype/test-ctype_blank.c: Likewise.
54009         * tests/unictype/test-ctype_cntrl.c: Likewise.
54010         * tests/unictype/test-ctype_digit.c: Likewise.
54011         * tests/unictype/test-ctype_graph.c: Likewise.
54012         * tests/unictype/test-ctype_lower.c: Likewise.
54013         * tests/unictype/test-ctype_print.c: Likewise.
54014         * tests/unictype/test-ctype_punct.c: Likewise.
54015         * tests/unictype/test-ctype_space.c: Likewise.
54016         * tests/unictype/test-ctype_upper.c: Likewise.
54017         * tests/unictype/test-ctype_xdigit.c: Likewise.
54018         * tests/unictype/test-decdigit.h: Likewise.
54019         * tests/unictype/test-digit.h: Likewise.
54020         * tests/unictype/test-numeric.h: Likewise.
54021         * tests/unictype/test-pr_alphabetic.c: Likewise.
54022         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
54023         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
54024         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
54025         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
54026         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
54027         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
54028         * tests/unictype/test-pr_bidi_control.c: Likewise.
54029         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
54030         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
54031         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
54032         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
54033         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
54034         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
54035         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
54036         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
54037         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
54038         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
54039         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
54040         * tests/unictype/test-pr_combining.c: Likewise.
54041         * tests/unictype/test-pr_composite.c: Likewise.
54042         * tests/unictype/test-pr_currency_symbol.c: Likewise.
54043         * tests/unictype/test-pr_dash.c: Likewise.
54044         * tests/unictype/test-pr_decimal_digit.c: Likewise.
54045         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
54046         * tests/unictype/test-pr_deprecated.c: Likewise.
54047         * tests/unictype/test-pr_diacritic.c: Likewise.
54048         * tests/unictype/test-pr_extender.c: Likewise.
54049         * tests/unictype/test-pr_format_control.c: Likewise.
54050         * tests/unictype/test-pr_grapheme_base.c: Likewise.
54051         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
54052         * tests/unictype/test-pr_grapheme_link.c: Likewise.
54053         * tests/unictype/test-pr_hex_digit.c: Likewise.
54054         * tests/unictype/test-pr_hyphen.c: Likewise.
54055         * tests/unictype/test-pr_id_continue.c: Likewise.
54056         * tests/unictype/test-pr_id_start.c: Likewise.
54057         * tests/unictype/test-pr_ideographic.c: Likewise.
54058         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
54059         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
54060         * tests/unictype/test-pr_ignorable_control.c: Likewise.
54061         * tests/unictype/test-pr_iso_control.c: Likewise.
54062         * tests/unictype/test-pr_join_control.c: Likewise.
54063         * tests/unictype/test-pr_left_of_pair.c: Likewise.
54064         * tests/unictype/test-pr_line_separator.c: Likewise.
54065         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
54066         * tests/unictype/test-pr_lowercase.c: Likewise.
54067         * tests/unictype/test-pr_math.c: Likewise.
54068         * tests/unictype/test-pr_non_break.c: Likewise.
54069         * tests/unictype/test-pr_not_a_character.c: Likewise.
54070         * tests/unictype/test-pr_numeric.c: Likewise.
54071         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
54072         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
54073         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
54074         * tests/unictype/test-pr_other_id_continue.c: Likewise.
54075         * tests/unictype/test-pr_other_id_start.c: Likewise.
54076         * tests/unictype/test-pr_other_lowercase.c: Likewise.
54077         * tests/unictype/test-pr_other_math.c: Likewise.
54078         * tests/unictype/test-pr_other_uppercase.c: Likewise.
54079         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
54080         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
54081         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
54082         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
54083         * tests/unictype/test-pr_private_use.c: Likewise.
54084         * tests/unictype/test-pr_punctuation.c: Likewise.
54085         * tests/unictype/test-pr_quotation_mark.c: Likewise.
54086         * tests/unictype/test-pr_radical.c: Likewise.
54087         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
54088         * tests/unictype/test-pr_soft_dotted.c: Likewise.
54089         * tests/unictype/test-pr_space.c: Likewise.
54090         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
54091         * tests/unictype/test-pr_titlecase.c: Likewise.
54092         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
54093         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
54094         * tests/unictype/test-pr_uppercase.c: Likewise.
54095         * tests/unictype/test-pr_variation_selector.c: Likewise.
54096         * tests/unictype/test-pr_white_space.c: Likewise.
54097         * tests/unictype/test-pr_xid_continue.c: Likewise.
54098         * tests/unictype/test-pr_xid_start.c: Likewise.
54099         * tests/unictype/test-pr_zero_width.c: Likewise.
54100         * tests/unictype/test-sy_c_whitespace.c: Likewise.
54101         * tests/unictype/test-sy_java_whitespace.c: Likewise.
54102
54103 2007-11-12  Bruno Haible  <bruno@clisp.org>
54104
54105         Unicode character classification functions.
54106         * lib/unictype.h: New file.
54107         * modules/unictype/base: New file.
54108         * modules/unictype/category-L: New file.
54109         * modules/unictype/category-Lu: New file.
54110         * modules/unictype/category-Ll: New file.
54111         * modules/unictype/category-Lt: New file.
54112         * modules/unictype/category-Lm: New file.
54113         * modules/unictype/category-Lo: New file.
54114         * modules/unictype/category-M: New file.
54115         * modules/unictype/category-Mn: New file.
54116         * modules/unictype/category-Mc: New file.
54117         * modules/unictype/category-Me: New file.
54118         * modules/unictype/category-N: New file.
54119         * modules/unictype/category-Nd: New file.
54120         * modules/unictype/category-Nl: New file.
54121         * modules/unictype/category-No: New file.
54122         * modules/unictype/category-P: New file.
54123         * modules/unictype/category-Pc: New file.
54124         * modules/unictype/category-Pd: New file.
54125         * modules/unictype/category-Ps: New file.
54126         * modules/unictype/category-Pe: New file.
54127         * modules/unictype/category-Pi: New file.
54128         * modules/unictype/category-Pf: New file.
54129         * modules/unictype/category-Po: New file.
54130         * modules/unictype/category-S: New file.
54131         * modules/unictype/category-Sm: New file.
54132         * modules/unictype/category-Sc: New file.
54133         * modules/unictype/category-Sk: New file.
54134         * modules/unictype/category-So: New file.
54135         * modules/unictype/category-Z: New file.
54136         * modules/unictype/category-Zs: New file.
54137         * modules/unictype/category-Zl: New file.
54138         * modules/unictype/category-Zp: New file.
54139         * modules/unictype/category-C: New file.
54140         * modules/unictype/category-Cc: New file.
54141         * modules/unictype/category-Cf: New file.
54142         * modules/unictype/category-Cs: New file.
54143         * modules/unictype/category-Co: New file.
54144         * modules/unictype/category-Cn: New file.
54145         * modules/unictype/category-or: New file.
54146         * modules/unictype/category-of: New file.
54147         * modules/unictype/category-test: New file.
54148         * modules/unictype/category-test-withtable: New file.
54149         * modules/unictype/category-byname: New file.
54150         * modules/unictype/category-none: New file.
54151         * modules/unictype/category-and: New file.
54152         * modules/unictype/category-and-not: New file.
54153         * modules/unictype/category-name: New file.
54154         * modules/unictype/combining-class: New file.
54155         * modules/unictype/category-all: New file.
54156         * modules/unictype/bidicategory-all: New file.
54157         * modules/unictype/bidicategory-byname: New file.
54158         * modules/unictype/bidicategory-name: New file.
54159         * modules/unictype/bidicategory-of: New file.
54160         * modules/unictype/bidicategory-test: New file.
54161         * modules/unictype/decimal-digit: New file.
54162         * modules/unictype/digit: New file.
54163         * modules/unictype/numeric: New file.
54164         * modules/unictype/mirror: New file.
54165         * modules/unictype/property-white-space: New file.
54166         * modules/unictype/property-alphabetic: New file.
54167         * modules/unictype/property-other-alphabetic: New file.
54168         * modules/unictype/property-not-a-character: New file.
54169         * modules/unictype/property-default-ignorable-code-point: New file.
54170         * modules/unictype/property-other-default-ignorable-code-point: New
54171         file.
54172         * modules/unictype/property-deprecated: New file.
54173         * modules/unictype/property-logical-order-exception: New file.
54174         * modules/unictype/property-variation-selector: New file.
54175         * modules/unictype/property-private-use: New file.
54176         * modules/unictype/property-unassigned-code-value: New file.
54177         * modules/unictype/property-uppercase: New file.
54178         * modules/unictype/property-other-uppercase: New file.
54179         * modules/unictype/property-lowercase: New file.
54180         * modules/unictype/property-other-lowercase: New file.
54181         * modules/unictype/property-titlecase: New file.
54182         * modules/unictype/property-soft-dotted: New file.
54183         * modules/unictype/property-id-start: New file.
54184         * modules/unictype/property-other-id-start: New file.
54185         * modules/unictype/property-id-continue: New file.
54186         * modules/unictype/property-other-id-continue: New file.
54187         * modules/unictype/property-xid-start: New file.
54188         * modules/unictype/property-xid-continue: New file.
54189         * modules/unictype/property-pattern-white-space: New file.
54190         * modules/unictype/property-pattern-syntax: New file.
54191         * modules/unictype/property-join-control: New file.
54192         * modules/unictype/property-grapheme-base: New file.
54193         * modules/unictype/property-grapheme-extend: New file.
54194         * modules/unictype/property-other-grapheme-extend: New file.
54195         * modules/unictype/property-grapheme-link: New file.
54196         * modules/unictype/property-bidi-control: New file.
54197         * modules/unictype/property-bidi-left-to-right: New file.
54198         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
54199         * modules/unictype/property-bidi-arabic-right-to-left: New file.
54200         * modules/unictype/property-bidi-european-digit: New file.
54201         * modules/unictype/property-bidi-eur-num-separator: New file.
54202         * modules/unictype/property-bidi-eur-num-terminator: New file.
54203         * modules/unictype/property-bidi-arabic-digit: New file.
54204         * modules/unictype/property-bidi-common-separator: New file.
54205         * modules/unictype/property-bidi-block-separator: New file.
54206         * modules/unictype/property-bidi-segment-separator: New file.
54207         * modules/unictype/property-bidi-whitespace: New file.
54208         * modules/unictype/property-bidi-non-spacing-mark: New file.
54209         * modules/unictype/property-bidi-boundary-neutral: New file.
54210         * modules/unictype/property-bidi-pdf: New file.
54211         * modules/unictype/property-bidi-embedding-or-override: New file.
54212         * modules/unictype/property-bidi-other-neutral: New file.
54213         * modules/unictype/property-hex-digit: New file.
54214         * modules/unictype/property-ascii-hex-digit: New file.
54215         * modules/unictype/property-ideographic: New file.
54216         * modules/unictype/property-unified-ideograph: New file.
54217         * modules/unictype/property-radical: New file.
54218         * modules/unictype/property-ids-binary-operator: New file.
54219         * modules/unictype/property-ids-trinary-operator: New file.
54220         * modules/unictype/property-zero-width: New file.
54221         * modules/unictype/property-space: New file.
54222         * modules/unictype/property-non-break: New file.
54223         * modules/unictype/property-iso-control: New file.
54224         * modules/unictype/property-format-control: New file.
54225         * modules/unictype/property-dash: New file.
54226         * modules/unictype/property-hyphen: New file.
54227         * modules/unictype/property-punctuation: New file.
54228         * modules/unictype/property-line-separator: New file.
54229         * modules/unictype/property-paragraph-separator: New file.
54230         * modules/unictype/property-quotation-mark: New file.
54231         * modules/unictype/property-sentence-terminal: New file.
54232         * modules/unictype/property-terminal-punctuation: New file.
54233         * modules/unictype/property-currency-symbol: New file.
54234         * modules/unictype/property-math: New file.
54235         * modules/unictype/property-other-math: New file.
54236         * modules/unictype/property-paired-punctuation: New file.
54237         * modules/unictype/property-left-of-pair: New file.
54238         * modules/unictype/property-combining: New file.
54239         * modules/unictype/property-composite: New file.
54240         * modules/unictype/property-decimal-digit: New file.
54241         * modules/unictype/property-numeric: New file.
54242         * modules/unictype/property-diacritic: New file.
54243         * modules/unictype/property-extender: New file.
54244         * modules/unictype/property-ignorable-control: New file.
54245         * modules/unictype/property-test: New file.
54246         * modules/unictype/property-byname: New file.
54247         * modules/unictype/property-all: New file.
54248         * modules/unictype/scripts: New file.
54249         * modules/unictype/scripts-all: New file.
54250         * modules/unictype/block-of: New file.
54251         * modules/unictype/block-test: New file.
54252         * modules/unictype/block-list: New file.
54253         * modules/unictype/block-all: New file.
54254         * modules/unictype/syntax-c-whitespace: New file.
54255         * modules/unictype/syntax-java-whitespace: New file.
54256         * modules/unictype/syntax-c-ident: New file.
54257         * modules/unictype/syntax-java-ident: New file.
54258         * modules/unictype/ctype-alnum: New file.
54259         * modules/unictype/ctype-alpha: New file.
54260         * modules/unictype/ctype-cntrl: New file.
54261         * modules/unictype/ctype-digit: New file.
54262         * modules/unictype/ctype-graph: New file.
54263         * modules/unictype/ctype-lower: New file.
54264         * modules/unictype/ctype-print: New file.
54265         * modules/unictype/ctype-punct: New file.
54266         * modules/unictype/ctype-space: New file.
54267         * modules/unictype/ctype-upper: New file.
54268         * modules/unictype/ctype-xdigit: New file.
54269         * modules/unictype/ctype-blank: New file.
54270         * lib/unictype/bidi_byname.c: New file.
54271         * lib/unictype/bidi_name.c: New file.
54272         * lib/unictype/bidi_of.c: New file.
54273         * lib/unictype/bidi_test.c: New file.
54274         * lib/unictype/bitmap.h: New file.
54275         * lib/unictype/block_test.c: New file.
54276         * lib/unictype/blocks.c: New file.
54277         * lib/unictype/categ_C.c: New file.
54278         * lib/unictype/categ_Cc.c: New file.
54279         * lib/unictype/categ_Cf.c: New file.
54280         * lib/unictype/categ_Cn.c: New file.
54281         * lib/unictype/categ_Co.c: New file.
54282         * lib/unictype/categ_Cs.c: New file.
54283         * lib/unictype/categ_L.c: New file.
54284         * lib/unictype/categ_Ll.c: New file.
54285         * lib/unictype/categ_Lm.c: New file.
54286         * lib/unictype/categ_Lo.c: New file.
54287         * lib/unictype/categ_Lt.c: New file.
54288         * lib/unictype/categ_Lu.c: New file.
54289         * lib/unictype/categ_M.c: New file.
54290         * lib/unictype/categ_Mc.c: New file.
54291         * lib/unictype/categ_Me.c: New file.
54292         * lib/unictype/categ_Mn.c: New file.
54293         * lib/unictype/categ_N.c: New file.
54294         * lib/unictype/categ_Nd.c: New file.
54295         * lib/unictype/categ_Nl.c: New file.
54296         * lib/unictype/categ_No.c: New file.
54297         * lib/unictype/categ_P.c: New file.
54298         * lib/unictype/categ_Pc.c: New file.
54299         * lib/unictype/categ_Pd.c: New file.
54300         * lib/unictype/categ_Pe.c: New file.
54301         * lib/unictype/categ_Pf.c: New file.
54302         * lib/unictype/categ_Pi.c: New file.
54303         * lib/unictype/categ_Po.c: New file.
54304         * lib/unictype/categ_Ps.c: New file.
54305         * lib/unictype/categ_S.c: New file.
54306         * lib/unictype/categ_Sc.c: New file.
54307         * lib/unictype/categ_Sk.c: New file.
54308         * lib/unictype/categ_Sm.c: New file.
54309         * lib/unictype/categ_So.c: New file.
54310         * lib/unictype/categ_Z.c: New file.
54311         * lib/unictype/categ_Zl.c: New file.
54312         * lib/unictype/categ_Zp.c: New file.
54313         * lib/unictype/categ_Zs.c: New file.
54314         * lib/unictype/categ_and.c: New file.
54315         * lib/unictype/categ_and_not.c: New file.
54316         * lib/unictype/categ_byname.c: New file.
54317         * lib/unictype/categ_name.c: New file.
54318         * lib/unictype/categ_none.c: New file.
54319         * lib/unictype/categ_of.c: New file.
54320         * lib/unictype/categ_or.c: New file.
54321         * lib/unictype/categ_test.c: New file.
54322         * lib/unictype/combining.c: New file.
54323         * lib/unictype/ctype_alnum.c: New file.
54324         * lib/unictype/ctype_alpha.c: New file.
54325         * lib/unictype/ctype_blank.c: New file.
54326         * lib/unictype/ctype_cntrl.c: New file.
54327         * lib/unictype/ctype_digit.c: New file.
54328         * lib/unictype/ctype_graph.c: New file.
54329         * lib/unictype/ctype_lower.c: New file.
54330         * lib/unictype/ctype_print.c: New file.
54331         * lib/unictype/ctype_punct.c: New file.
54332         * lib/unictype/ctype_space.c: New file.
54333         * lib/unictype/ctype_upper.c: New file.
54334         * lib/unictype/ctype_xdigit.c: New file.
54335         * lib/unictype/decdigit.c: New file.
54336         * lib/unictype/digit.c: New file.
54337         * lib/unictype/identsyntaxmap.h: New file.
54338         * lib/unictype/mirror.c: New file.
54339         * lib/unictype/numeric.c: New file.
54340         * lib/unictype/pr_alphabetic.c: New file.
54341         * lib/unictype/pr_ascii_hex_digit.c: New file.
54342         * lib/unictype/pr_bidi_arabic_digit.c: New file.
54343         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
54344         * lib/unictype/pr_bidi_block_separator.c: New file.
54345         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
54346         * lib/unictype/pr_bidi_common_separator.c: New file.
54347         * lib/unictype/pr_bidi_control.c: New file.
54348         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
54349         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
54350         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
54351         * lib/unictype/pr_bidi_european_digit.c: New file.
54352         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
54353         * lib/unictype/pr_bidi_left_to_right.c: New file.
54354         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
54355         * lib/unictype/pr_bidi_other_neutral.c: New file.
54356         * lib/unictype/pr_bidi_pdf.c: New file.
54357         * lib/unictype/pr_bidi_segment_separator.c: New file.
54358         * lib/unictype/pr_bidi_whitespace.c: New file.
54359         * lib/unictype/pr_byname.c: New file.
54360         * lib/unictype/pr_byname.gperf: New file.
54361         * lib/unictype/pr_combining.c: New file.
54362         * lib/unictype/pr_composite.c: New file.
54363         * lib/unictype/pr_currency_symbol.c: New file.
54364         * lib/unictype/pr_dash.c: New file.
54365         * lib/unictype/pr_decimal_digit.c: New file.
54366         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54367         * lib/unictype/pr_deprecated.c: New file.
54368         * lib/unictype/pr_diacritic.c: New file.
54369         * lib/unictype/pr_extender.c: New file.
54370         * lib/unictype/pr_format_control.c: New file.
54371         * lib/unictype/pr_grapheme_base.c: New file.
54372         * lib/unictype/pr_grapheme_extend.c: New file.
54373         * lib/unictype/pr_grapheme_link.c: New file.
54374         * lib/unictype/pr_hex_digit.c: New file.
54375         * lib/unictype/pr_hyphen.c: New file.
54376         * lib/unictype/pr_id_continue.c: New file.
54377         * lib/unictype/pr_id_start.c: New file.
54378         * lib/unictype/pr_ideographic.c: New file.
54379         * lib/unictype/pr_ids_binary_operator.c: New file.
54380         * lib/unictype/pr_ids_trinary_operator.c: New file.
54381         * lib/unictype/pr_ignorable_control.c: New file.
54382         * lib/unictype/pr_iso_control.c: New file.
54383         * lib/unictype/pr_join_control.c: New file.
54384         * lib/unictype/pr_left_of_pair.c: New file.
54385         * lib/unictype/pr_line_separator.c: New file.
54386         * lib/unictype/pr_logical_order_exception.c: New file.
54387         * lib/unictype/pr_lowercase.c: New file.
54388         * lib/unictype/pr_math.c: New file.
54389         * lib/unictype/pr_non_break.c: New file.
54390         * lib/unictype/pr_not_a_character.c: New file.
54391         * lib/unictype/pr_numeric.c: New file.
54392         * lib/unictype/pr_other_alphabetic.c: New file.
54393         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
54394         * lib/unictype/pr_other_grapheme_extend.c: New file.
54395         * lib/unictype/pr_other_id_continue.c: New file.
54396         * lib/unictype/pr_other_id_start.c: New file.
54397         * lib/unictype/pr_other_lowercase.c: New file.
54398         * lib/unictype/pr_other_math.c: New file.
54399         * lib/unictype/pr_other_uppercase.c: New file.
54400         * lib/unictype/pr_paired_punctuation.c: New file.
54401         * lib/unictype/pr_paragraph_separator.c: New file.
54402         * lib/unictype/pr_pattern_syntax.c: New file.
54403         * lib/unictype/pr_pattern_white_space.c: New file.
54404         * lib/unictype/pr_private_use.c: New file.
54405         * lib/unictype/pr_punctuation.c: New file.
54406         * lib/unictype/pr_quotation_mark.c: New file.
54407         * lib/unictype/pr_radical.c: New file.
54408         * lib/unictype/pr_sentence_terminal.c: New file.
54409         * lib/unictype/pr_soft_dotted.c: New file.
54410         * lib/unictype/pr_space.c: New file.
54411         * lib/unictype/pr_terminal_punctuation.c: New file.
54412         * lib/unictype/pr_test.c: New file.
54413         * lib/unictype/pr_titlecase.c: New file.
54414         * lib/unictype/pr_unassigned_code_value.c: New file.
54415         * lib/unictype/pr_unified_ideograph.c: New file.
54416         * lib/unictype/pr_uppercase.c: New file.
54417         * lib/unictype/pr_variation_selector.c: New file.
54418         * lib/unictype/pr_white_space.c: New file.
54419         * lib/unictype/pr_xid_continue.c: New file.
54420         * lib/unictype/pr_xid_start.c: New file.
54421         * lib/unictype/pr_zero_width.c: New file.
54422         * lib/unictype/scripts.c: New file.
54423         * lib/unictype/sy_c_ident.c: New file.
54424         * lib/unictype/sy_c_whitespace.c: New file.
54425         * lib/unictype/sy_java_ident.c: New file.
54426         * lib/unictype/sy_java_whitespace.c: New file.
54427
54428         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
54429         Unicode 5.0.0.
54430         * lib/unictype/blocks.h: Likewise.
54431         * lib/unictype/categ_C.h: Likewise.
54432         * lib/unictype/categ_Cc.h: Likewise.
54433         * lib/unictype/categ_Cf.h: Likewise.
54434         * lib/unictype/categ_Cn.h: Likewise.
54435         * lib/unictype/categ_Co.h: Likewise.
54436         * lib/unictype/categ_Cs.h: Likewise.
54437         * lib/unictype/categ_L.h: Likewise.
54438         * lib/unictype/categ_Ll.h: Likewise.
54439         * lib/unictype/categ_Lm.h: Likewise.
54440         * lib/unictype/categ_Lo.h: Likewise.
54441         * lib/unictype/categ_Lt.h: Likewise.
54442         * lib/unictype/categ_Lu.h: Likewise.
54443         * lib/unictype/categ_M.h: Likewise.
54444         * lib/unictype/categ_Mc.h: Likewise.
54445         * lib/unictype/categ_Me.h: Likewise.
54446         * lib/unictype/categ_Mn.h: Likewise.
54447         * lib/unictype/categ_N.h: Likewise.
54448         * lib/unictype/categ_Nd.h: Likewise.
54449         * lib/unictype/categ_Nl.h: Likewise.
54450         * lib/unictype/categ_No.h: Likewise.
54451         * lib/unictype/categ_P.h: Likewise.
54452         * lib/unictype/categ_Pc.h: Likewise.
54453         * lib/unictype/categ_Pd.h: Likewise.
54454         * lib/unictype/categ_Pe.h: Likewise.
54455         * lib/unictype/categ_Pf.h: Likewise.
54456         * lib/unictype/categ_Pi.h: Likewise.
54457         * lib/unictype/categ_Po.h: Likewise.
54458         * lib/unictype/categ_Ps.h: Likewise.
54459         * lib/unictype/categ_S.h: Likewise.
54460         * lib/unictype/categ_Sc.h: Likewise.
54461         * lib/unictype/categ_Sk.h: Likewise.
54462         * lib/unictype/categ_Sm.h: Likewise.
54463         * lib/unictype/categ_So.h: Likewise.
54464         * lib/unictype/categ_Z.h: Likewise.
54465         * lib/unictype/categ_Zl.h: Likewise.
54466         * lib/unictype/categ_Zp.h: Likewise.
54467         * lib/unictype/categ_Zs.h: Likewise.
54468         * lib/unictype/categ_of.h: Likewise.
54469         * lib/unictype/combining.h: Likewise.
54470         * lib/unictype/ctype_alnum.h: Likewise.
54471         * lib/unictype/ctype_alpha.h: Likewise.
54472         * lib/unictype/ctype_blank.h: Likewise.
54473         * lib/unictype/ctype_cntrl.h: Likewise.
54474         * lib/unictype/ctype_digit.h: Likewise.
54475         * lib/unictype/ctype_graph.h: Likewise.
54476         * lib/unictype/ctype_lower.h: Likewise.
54477         * lib/unictype/ctype_print.h: Likewise.
54478         * lib/unictype/ctype_punct.h: Likewise.
54479         * lib/unictype/ctype_space.h: Likewise.
54480         * lib/unictype/ctype_upper.h: Likewise.
54481         * lib/unictype/ctype_xdigit.h: Likewise.
54482         * lib/unictype/decdigit.h: Likewise.
54483         * lib/unictype/digit.h: Likewise.
54484         * lib/unictype/mirror.h: Likewise.
54485         * lib/unictype/numeric.h: Likewise.
54486         * lib/unictype/pr_alphabetic.h: Likewise.
54487         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54488         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54489         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54490         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54491         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54492         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54493         * lib/unictype/pr_bidi_control.h: Likewise.
54494         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54495         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54496         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54497         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54498         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54499         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54500         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54501         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54502         * lib/unictype/pr_bidi_pdf.h: Likewise.
54503         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54504         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54505         * lib/unictype/pr_combining.h: Likewise.
54506         * lib/unictype/pr_composite.h: Likewise.
54507         * lib/unictype/pr_currency_symbol.h: Likewise.
54508         * lib/unictype/pr_dash.h: Likewise.
54509         * lib/unictype/pr_decimal_digit.h: Likewise.
54510         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54511         * lib/unictype/pr_deprecated.h: Likewise.
54512         * lib/unictype/pr_diacritic.h: Likewise.
54513         * lib/unictype/pr_extender.h: Likewise.
54514         * lib/unictype/pr_format_control.h: Likewise.
54515         * lib/unictype/pr_grapheme_base.h: Likewise.
54516         * lib/unictype/pr_grapheme_extend.h: Likewise.
54517         * lib/unictype/pr_grapheme_link.h: Likewise.
54518         * lib/unictype/pr_hex_digit.h: Likewise.
54519         * lib/unictype/pr_hyphen.h: Likewise.
54520         * lib/unictype/pr_id_continue.h: Likewise.
54521         * lib/unictype/pr_id_start.h: Likewise.
54522         * lib/unictype/pr_ideographic.h: Likewise.
54523         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54524         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54525         * lib/unictype/pr_ignorable_control.h: Likewise.
54526         * lib/unictype/pr_iso_control.h: Likewise.
54527         * lib/unictype/pr_join_control.h: Likewise.
54528         * lib/unictype/pr_left_of_pair.h: Likewise.
54529         * lib/unictype/pr_line_separator.h: Likewise.
54530         * lib/unictype/pr_logical_order_exception.h: Likewise.
54531         * lib/unictype/pr_lowercase.h: Likewise.
54532         * lib/unictype/pr_math.h: Likewise.
54533         * lib/unictype/pr_non_break.h: Likewise.
54534         * lib/unictype/pr_not_a_character.h: Likewise.
54535         * lib/unictype/pr_numeric.h: Likewise.
54536         * lib/unictype/pr_other_alphabetic.h: Likewise.
54537         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54538         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54539         * lib/unictype/pr_other_id_continue.h: Likewise.
54540         * lib/unictype/pr_other_id_start.h: Likewise.
54541         * lib/unictype/pr_other_lowercase.h: Likewise.
54542         * lib/unictype/pr_other_math.h: Likewise.
54543         * lib/unictype/pr_other_uppercase.h: Likewise.
54544         * lib/unictype/pr_paired_punctuation.h: Likewise.
54545         * lib/unictype/pr_paragraph_separator.h: Likewise.
54546         * lib/unictype/pr_pattern_syntax.h: Likewise.
54547         * lib/unictype/pr_pattern_white_space.h: Likewise.
54548         * lib/unictype/pr_private_use.h: Likewise.
54549         * lib/unictype/pr_punctuation.h: Likewise.
54550         * lib/unictype/pr_quotation_mark.h: Likewise.
54551         * lib/unictype/pr_radical.h: Likewise.
54552         * lib/unictype/pr_sentence_terminal.h: Likewise.
54553         * lib/unictype/pr_soft_dotted.h: Likewise.
54554         * lib/unictype/pr_space.h: Likewise.
54555         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54556         * lib/unictype/pr_titlecase.h: Likewise.
54557         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54558         * lib/unictype/pr_unified_ideograph.h: Likewise.
54559         * lib/unictype/pr_uppercase.h: Likewise.
54560         * lib/unictype/pr_variation_selector.h: Likewise.
54561         * lib/unictype/pr_white_space.h: Likewise.
54562         * lib/unictype/pr_xid_continue.h: Likewise.
54563         * lib/unictype/pr_xid_start.h: Likewise.
54564         * lib/unictype/pr_zero_width.h: Likewise.
54565         * lib/unictype/scripts.h: Likewise.
54566         * lib/unictype/scripts_byname.gperf: Likewise.
54567         * lib/unictype/sy_c_ident.h: Likewise.
54568         * lib/unictype/sy_c_whitespace.h: Likewise.
54569         * lib/unictype/sy_java_ident.h: Likewise.
54570         * lib/unictype/sy_java_whitespace.h: Likewise.
54571
54572         * lib/unictype/Makefile: New file.
54573         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54574         glibc.
54575         * lib/unictype/3level.h: New file, copied from glibc.
54576         * lib/unictype/3levelbit.h: New file.
54577
54578 2007-11-11  Bruno Haible  <bruno@clisp.org>
54579
54580         * modules/gperf: New file.
54581         * modules/iconv_open (Depends-on): Add it.
54582         (Makefile.am): Remove the GPERF definition.
54583
54584 2007-11-11  Bruno Haible  <bruno@clisp.org>
54585
54586         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54587         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54588
54589 2007-11-11  Bruno Haible  <bruno@clisp.org>
54590
54591         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54592         (usage): Remove function.
54593
54594 2007-11-11  Bruno Haible  <bruno@clisp.org>
54595
54596         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54597         gl_FUNC_CEILF_LIBS.
54598         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54599         gl_FUNC_CEIL_LIBS.
54600         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54601         gl_FUNC_CEILL_LIBS.
54602         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54603         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54604         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54605
54606 2007-11-11  Bruno Haible  <bruno@clisp.org>
54607
54608         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54609         roundf were declared but do not exist on functions.
54610         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54611         roundl were declared but do not exist on functions.
54612         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54613         HAVE_FLOORL_AND_CEILL, respectively.
54614         Needed for Sun C on Solaris 10.
54615
54616 2007-11-11  Bruno Haible  <bruno@clisp.org>
54617
54618         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54619         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54620         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54621         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54622         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54623         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54624         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54625         HAVE_DECL_ROUNDF.
54626         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54627         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54629         of HAVE_DECL_ROUND*.
54630         * modules/math (Makefile.am): Update.
54631
54632 2007-11-10  Bruno Haible  <bruno@clisp.org>
54633
54634         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54635         ptrdiff_t as m4/intl.m4.
54636
54637 2007-11-10  Jim Meyering  <meyering@redhat.com>
54638
54639         Avoid link failure for the argmatch test.
54640         * tests/test-argmatch.c (usage): Define function to avoid a link
54641         failure: argmatch_die requires a usage function.
54642
54643 2007-11-09  Bruno Haible  <bruno@clisp.org>
54644
54645         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54646         * doc/functions/vsnprintf.texi: Likewise.
54647         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54648         with a size argument < 2.
54649
54650 2007-11-09  Bruno Haible  <bruno@clisp.org>
54651
54652         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54653         buffer. Fixes an inefficiency introduced on 2007-11-03.
54654
54655 2007-11-09  Bruno Haible  <bruno@clisp.org>
54656
54657         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54658         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54659
54660 2007-11-08  Jim Meyering  <meyering@redhat.com>
54661
54662         Change cache variable name prefix "jm_" to "gl_" everywhere.
54663         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54664         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54665         * m4/uptime.m4: s/gl_/jm_/
54666
54667 2007-11-07  Bruno Haible  <bruno@clisp.org>
54668
54669         Update to GNU gettext 0.17.
54670         * m4/intl.m4: Update to GNU gettext 0.17.
54671         * m4/po.m4: Likewise.
54672         * modules/gettext (Files): Remove m4/ulonglong.m4.
54673         (configure.ac): Require gettext infrastructure from version 0.17.
54674
54675 2007-11-06  Bruno Haible  <bruno@clisp.org>
54676
54677         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54678         symbolic values are not defined in a public header.
54679         * lib/freadable.c (freadable) [QNX]: Likewise.
54680         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54681         * lib/freading.c (freading) [QNX]: Likewise.
54682         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54683         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54684         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54685         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54686         Reported by Alain Magloire.
54687
54688         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54689
54690 2007-11-05  Bruno Haible  <bruno@clisp.org>
54691
54692         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54693         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54694         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54695         Reported by Eric Blake.
54696
54697 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54698             Bruno Haible  <bruno@clisp.org>
54699
54700         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54701         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54702         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54703         (malloc): Undefine also before including <stdlib.h>.
54704         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54705         Needed on OSF/1 4.0.
54706
54707 2007-11-05  Jim Meyering  <meyering@redhat.com>
54708
54709         git-version-gen: sync from coreutils.
54710         * build-aux/git-version-gen: Add comments.
54711         Change the first '-' to '.' in the snapshot version string,
54712         e.g., 6.9-377-08144 -> 6.9.377-08144
54713         Remove first parameter.
54714         Don't declare a version "-dirty" merely because a time
54715         stamp has changed.
54716
54717 2007-11-04  Bruno Haible  <bruno@clisp.org>
54718
54719         * lib/lock.h: Protect all macro definitions containing an 'if'
54720         statement through a "do { ... } while (0)".
54721         * lib/tls.h: Likewise.
54722
54723 2007-11-04  Bruno Haible  <bruno@clisp.org>
54724
54725         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54726
54727 2007-11-04  Bruno Haible  <bruno@clisp.org>
54728
54729         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54730         * modules/fprintf-posix (Depends-on): Add nocrash.
54731         * modules/snprintf-posix (Depends-on): Likewise.
54732         * modules/sprintf-posix (Depends-on): Likewise.
54733         * modules/vasnprintf-posix (Depends-on): Likewise.
54734         * modules/vasprintf-posix (Depends-on): Likewise.
54735         * modules/vfprintf-posix (Depends-on): Likewise.
54736         * modules/vsnprintf-posix (Depends-on): Likewise.
54737         * modules/vsprintf-posix (Depends-on): Likewise.
54738         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54739         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54740         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54741         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54742         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54743         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54744         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54745
54746 2007-11-04  Bruno Haible  <bruno@clisp.org>
54747
54748         * modules/nocrash: New file.
54749         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54750         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54751
54752 2007-11-04  Bruno Haible  <bruno@clisp.org>
54753
54754         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54755         precision handling.
54756         * tests/test-vasprintf-posix.c (test_function): Likewise.
54757         * tests/test-snprintf-posix.h (test_function): Likewise.
54758         * tests/test-sprintf-posix.h (test_function): Likewise.
54759
54760         Fix *printf behaviour for large precisions on mingw and BeOS.
54761         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54762         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54763         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54764         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54765         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54766         gl_PRINTF_PRECISION and test its result. Invoke
54767         gl_PREREQ_VASNPRINTF_PRECISION.
54768         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54769         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54770         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54771         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54772         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54773         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54774         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54775         * doc/functions/fprintf.texi: Update.
54776         * doc/functions/printf.texi: Update.
54777         * doc/functions/snprintf.texi: Update.
54778         * doc/functions/sprintf.texi: Update.
54779         * doc/functions/vfprintf.texi: Update.
54780         * doc/functions/vprintf.texi: Update.
54781         * doc/functions/vsnprintf.texi: Update.
54782         * doc/functions/vsprintf.texi: Update.
54783
54784 2007-11-04  Bruno Haible  <bruno@clisp.org>
54785
54786         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54787
54788 2007-11-04  Bruno Haible  <bruno@clisp.org>
54789
54790         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54791         Reported by Sylvain Beucler <beuc@gnu.org>.
54792
54793 2007-11-03  Bruno Haible  <bruno@clisp.org>
54794
54795         * tests/test-fprintf-posix2.sh: New file.
54796         * tests/test-fprintf-posix2.c: New file.
54797         * modules/fprintf-posix-tests (Files): Add them.
54798         (TESTS): Add test-fprintf-posix2.sh.
54799         (configure.ac): Check for getrlimit and setrlimit.
54800         (check_PROGRAMS): Add test-fprintf-posix2.
54801
54802         * tests/test-printf-posix2.sh: New file.
54803         * tests/test-printf-posix2.c: New file.
54804         * modules/printf-posix-tests (Files): Add them.
54805         (TESTS): Add test-printf-posix2.sh.
54806         (configure.ac): Check for getrlimit and setrlimit.
54807         (check_PROGRAMS): Add test-printf-posix2.
54808
54809         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54810         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54811         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54812         (decode_double): New function, copied from decode_long_double.
54813         (scale10_round_decimal_decoded): New function, extracted from
54814         scale10_round_decimal_long_double.
54815         (scale10_round_decimal_long_double): Use it.
54816         (scale10_round_decimal_double): New function.
54817         (floorlog10): New function.
54818         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54819         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54820         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54821         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54822         gl_PRINTF_ENOMEM and test its result. Invoke
54823         gl_PREREQ_VASNPRINTF_ENOMEM.
54824         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54825         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54826         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54827         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54828         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54829         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54830         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54831         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54832         * modules/snprintf-posix (Depends-on): Likewise.
54833         * modules/sprintf-posix (Depends-on): Likewise.
54834         * modules/vasnprintf-posix (Depends-on): Likewise.
54835         * modules/vasprintf-posix (Depends-on): Likewise.
54836         * modules/vfprintf-posix (Depends-on): Likewise.
54837         * modules/vsnprintf-posix (Depends-on): Likewise.
54838         * modules/vsprintf-posix (Depends-on): Likewise.
54839         * doc/functions/fprintf.texi: Update.
54840         * doc/functions/printf.texi: Update.
54841         * doc/functions/snprintf.texi: Update.
54842         * doc/functions/sprintf.texi: Update.
54843         * doc/functions/vfprintf.texi: Update.
54844         * doc/functions/vprintf.texi: Update.
54845         * doc/functions/vsnprintf.texi: Update.
54846         * doc/functions/vsprintf.texi: Update.
54847
54848 2007-11-03  Bruno Haible  <bruno@clisp.org>
54849
54850         * modules/frexp-nolibm-tests: New file.
54851
54852         * modules/frexp-nolibm: New file.
54853         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54854
54855 2007-11-03  Bruno Haible  <bruno@clisp.org>
54856
54857         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54858         value is C99 compliant.
54859         Needed for OSF/1 5.1.
54860
54861 2007-11-03  Bruno Haible  <bruno@clisp.org>
54862
54863         Fix out-of-memory handling of vasnprintf.
54864         * lib/printf-parse.c: Include <errno.h>.
54865         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54866         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54867         is already set.
54868
54869 2007-11-02  Eric Blake  <ebb9@byu.net>
54870
54871         Fix tests on cygwin.
54872         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54873
54874 2007-11-01  Bruno Haible  <bruno@clisp.org>
54875
54876         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54877         warning.
54878         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54879         needed for POSIX compatibility.
54880
54881 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54882
54883         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54884         for compatibility with GNU.
54885
54886 2007-11-01  Bruno Haible  <bruno@clisp.org>
54887
54888         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54889         (putenv): Renamed from rpl_putenv. Change argument type from
54890         'const char *' to 'char *'.
54891         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54892         of defining putenv in config.h, just set REPLACE_PUTENV.
54893         * modules/putenv (Depends-on): Add stdlib.
54894         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54895         (Include): Use <stdlib.h>.
54896         * lib/stdlib.in.h (putenv): New declaration.
54897         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54898         REPLACE_PUTENV.
54899         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54900         REPLACE_PUTENV.
54901         Needed for MacOS X 10.5.0.
54902         Reported by Peter O'Gorman <peter@pogma.com>.
54903
54904 2007-11-01  Jim Meyering  <meyering@redhat.com>
54905
54906         Treat an empty date string exactly like "0".
54907         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54908         if the remaining date string (to be parsed) is empty, use "0".
54909         Reported by Mischa Molhoek and discussed in this thread:
54910         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54911
54912 2007-10-31  Bruno Haible  <bruno@clisp.org>
54913
54914         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54915         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54916         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54917         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54918         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54919         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54920
54921 2007-10-31  Bruno Haible  <bruno@clisp.org>
54922
54923         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54924         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54925         (AC_TYPE_LONG_LONG_INT): Use it.
54926         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54927         it as well.
54928         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54929         to m4/longlong.m4.
54930         * modules/stdint (Files): Remove m4/ulonglong.m4.
54931         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54932         m4/ulonglong.m4.
54933         * modules/strtoumax (Files): Likewise.
54934
54935 2007-10-30  Bruno Haible  <bruno@clisp.org>
54936
54937         * modules/xvasprintf-posix: New file.
54938         Suggested by Eric Blake.
54939
54940 2007-10-30  Bruno Haible  <bruno@clisp.org>
54941
54942         * modules/xprintf-posix-tests: New file.
54943         * tests/test-xprintf-posix.sh: New file.
54944         * tests/test-xprintf-posix.c: New file.
54945         * tests/test-xfprintf-posix.c: New file.
54946
54947         * modules/xprintf-posix: New file.
54948
54949 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54950
54951         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54952         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54953         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54954
54955 2007-10-29  Bruno Haible  <bruno@clisp.org>
54956
54957         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54958         contain the special marker '_cv_'.
54959         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54960         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54961         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54962         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54963         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54964         Reported by Ralf Wildenhues.
54965
54966 2007-10-29  Bruno Haible  <bruno@clisp.org>
54967
54968         * gnulib-tool (func_import): When --lgpl is not specified, set
54969         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54970         GPLv3.
54971         Reported by Simon Josefsson.
54972
54973 2007-10-28  Bruno Haible  <bruno@clisp.org>
54974
54975         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54976         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54977         HAVE_DECL_ISFINITE.
54978         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54979         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54980         HAVE_DECL_ISFINITE.
54981
54982 2007-10-28  Bruno Haible  <bruno@clisp.org>
54983
54984         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54985         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54986
54987 2007-10-28  Bruno Haible  <bruno@clisp.org>
54988
54989         Fix link errors with Sun C 5.0 on Solaris 10.
54990         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54991         function is declared but not present in the compiler's libm.
54992         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54993         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54994         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54995         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54996         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54997         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54998         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54999         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55000         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
55001         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
55002         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
55003         HAVE_DECL_FLOORL.
55004
55005 2007-10-28  Bruno Haible  <bruno@clisp.org>
55006
55007         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
55008         gl_FUNC_FLOORL. Cache the result.
55009         (gl_FUNC_FLOORL): Use it.
55010         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
55011         gl_FUNC_CEILL. Cache the result.
55012         (gl_FUNC_CEILL): Use it.
55013
55014         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
55015         gl_FUNC_FLOOR. Cache the result.
55016         (gl_FUNC_FLOOR): Use it.
55017         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
55018         gl_FUNC_CEIL. Cache the result.
55019         (gl_FUNC_CEIL): Use it.
55020
55021         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
55022         gl_FUNC_FLOORF. Cache the result.
55023         (gl_FUNC_FLOORF): Use it.
55024         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
55025         gl_FUNC_CEILF. Cache the result.
55026         (gl_FUNC_CEILF): Use it.
55027
55028 2007-10-28  Bruno Haible  <bruno@clisp.org>
55029
55030         * gnulib-tool: Allow specifying the LGPL version number through
55031         --lgpl=2 or --lgpl=3.
55032         (func_usage): Document --lgpl with argument.
55033         Handle --lgpl=... arguments.
55034         (func_import): Recognize also gl_LGPL calls with an argument. When
55035         --lgpl=2 is used and the module's license is just LGPL, report an
55036         error. Set sed_transform_lib_file according to the lgpl variable. In
55037         the generated files, use --lgpl or gl_LGPL invocations with argument,
55038         if necessary.
55039         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
55040         an LGPv2+ license.
55041         * doc/gnulib-tool.texi (Modified imports): Update explanation of
55042         gl_LGPL macro.
55043
55044 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55045             Bruno Haible  <bruno@clisp.org>
55046
55047         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
55048         (u16_uctomb_aux): Likewise.
55049         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
55050         !HAVE_INLINE.
55051         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
55052
55053 2007-10-28  Bruno Haible  <bruno@clisp.org>
55054
55055         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
55056         Invoke AM_GETTEXT_OPTION if it exists.
55057         * modules/vasprintf: Likewise.
55058         * modules/verror: Likewise.
55059         * modules/xprintf: Likewise.
55060         * modules/xvasprintf: Likewise.
55061
55062 2007-10-27  Ben Pfaff  <blp@gnu.org>
55063
55064         * lib/math.in.h: Define isfinite macro and prototypes for
55065         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
55066         implementations.
55067         * m4/math_h.m4: New substitutions for isfinite module.
55068         * lib/isfinite.c: New file.
55069         * m4/isfinite.m4: New file.
55070         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
55071         * modules/isfinite: New file.
55072         * modules/isfinite-tests: New file.
55073         * tests/tests-isfinite.c: New file.
55074         * doc/functions/isfinite.texi: Mention isfinite module.
55075         * MODULES.html.sh: Mention new module.
55076
55077 2007-10-27  Ben Pfaff  <blp@gnu.org>
55078
55079         Ralf Wildenhues reported that Tru64 4.0D declares the round
55080         functions but does not have definitions.
55081         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
55082         cannot be found in any library, set the output variable to
55083         "missing" instead of "".
55084         * m4/round.m4: Also use our substitute if we cannot find round in
55085         any library, even if it is declared.
55086         * m4/roundf.m4: Likewise for roundf.
55087         * m4/roundl.m4: Likewise for roundl.
55088         * lib/math.in.h: Undefine roundf, round, roundl before defining
55089         their replacements, to allow for hypothetical systems where these
55090         may be defined as macros but not available in libraries.
55091
55092 2007-10-27  Bruno Haible  <bruno@clisp.org>
55093
55094         * doc/gnulib.texi: Invoke @firstparagraphindent.
55095         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
55096         changes in gnulib.
55097         (Source changes): New section.
55098
55099 2007-10-26  Bruno Haible  <bruno@clisp.org>
55100
55101         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
55102         borrowed from autoconf.
55103
55104 2007-10-26  Bruno Haible  <bruno@clisp.org>
55105
55106         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
55107         strerror returned the empty string. Needed on HP-UX 11.00.
55108
55109 2007-10-24  Micah Cowan  <micah@cowan.name>
55110
55111         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
55112         * build-aux/bootstrap: Remove support for now-unnecessary option,
55113         --cvs-user, and envvars CVS_USER, CVS_RSH.
55114
55115 2007-10-24  Jim Meyering  <meyering@redhat.com>
55116
55117         Avoid diagnostics from sha1sum when there is no cached checksum.
55118         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
55119         if the po.s1 file hasn't been created yet.
55120
55121         * build-aux/bootstrap: Sync from coreutils:
55122         2007-10-24  Jim Meyering  <meyering@redhat.com>
55123         Get gnulib from the git repository, not from an obsolete cvs one.
55124         * build-aux/bootstrap: Suggestion from Micah Cowan.
55125         2007-10-04  Jim Meyering  <jim@meyering.net>
55126         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
55127         (update_po_files): Work also when there are no .po files in po/.
55128
55129 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55130
55131         * README: Append ".git" to git and cg examples.
55132         Problem reported by Benoit Sigoure.
55133
55134 2007-10-23  Micah Cowan  <micah@cowan.name>
55135
55136         * users.txt: Add wget.
55137
55138 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55139
55140         Fix linking of some unistdio tests on FreeBSD.
55141         * modules/unistdio/u16-vsnprintf-tests
55142         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
55143         * modules/unistdio/u16-vsprintf-tests
55144         (test_u16_vsnprintf1_LDADD): Likewise.
55145         * modules/unistdio/u32-vsnprintf-tests
55146         (test_u32_vsnprintf1_LDADD): Likewise.
55147         * modules/unistdio/u32-vsprintf-tests
55148         (test_u32_vsprintf1_LDADD): Likewise.
55149         * modules/unistdio/u8-vsnprintf-tests
55150         (test_u8_vsnprintf1_LDADD): Likewise.
55151         * modules/unistdio/u8-vsprintf-tests
55152         (test_u8_vsprintf1_LDADD): Likewise.
55153         * modules/unistdio/ulc-vsnprintf-tests
55154         (test_ulc_vsnprintf1_LDADD): Likewise.
55155         * modules/unistdio/ulc-vsprintf-tests
55156         (test_ulc_vsprintf1_LDADD): Likewise.
55157
55158         Fix linking of some uniconv tests on FreeBSD.
55159         * modules/uniconv/u16-conv-from-enc-tests
55160         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
55161         * modules/uniconv/u16-conv-to-enc-tests
55162         (test_u16_conv_to_enc_LDADD): Likewise.
55163         * modules/uniconv/u16-strconv-from-enc-tests
55164         (test_u16_strconv_from_enc_LDADD): Likewise.
55165         * modules/uniconv/u16-strconv-to-enc-tests
55166         (test_u16_strconv_to_enc_LDADD): Likewise.
55167         * modules/uniconv/u32-conv-from-enc-tests
55168         (test_u32_conv_from_enc_LDADD): Likewise.
55169         * modules/uniconv/u32-conv-to-enc-tests
55170         (test_u32_conv_to_enc_LDADD): Likewise.
55171         * modules/uniconv/u32-strconv-from-enc-tests
55172         (test_u32_strconv_from_enc_LDADD): Likewise.
55173         * modules/uniconv/u32-strconv-to-enc-tests
55174         (test_u32_strconv_to_enc_LDADD): Likewise.
55175         * modules/uniconv/u8-conv-from-enc-tests
55176         (test_u8_conv_from_enc_LDADD): Likewise.
55177         * modules/uniconv/u8-conv-to-enc-tests
55178         (test_u8_conv_to_enc_LDADD): Likewise.
55179         * modules/uniconv/u8-strconv-from-enc-tests
55180         (test_u8_strconv_from_enc_LDADD): Likewise.
55181         * modules/uniconv/u8-strconv-to-enc-tests
55182         (test_u8_strconv_to_enc_LDADD): Likewise.
55183
55184 2007-10-22  Bruno Haible  <bruno@clisp.org>
55185
55186         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
55187         size.
55188
55189 2007-10-22  Eric Blake  <ebb9@byu.net>
55190
55191         Tweak x*printf documentation.
55192         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
55193         variable name and comments.
55194         Suggested by Bruno Haible.
55195
55196 2007-10-22  Bruno Haible  <bruno@clisp.org>
55197
55198         * lib/acl.c (copy_acl): Fix file name in comment.
55199
55200 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55201
55202         Fix Tru64 problem with stdbool.h.
55203         * lib/stdbool.in.h (false, true):
55204         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
55205         Don't declare as an enum in this situation; it runs afoul of Tru64.
55206         Problem reported by Steven M. Schweda in
55207         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
55208
55209 2007-10-22  Eric Blake  <ebb9@byu.net>
55210
55211         Also wrap vf?printf.
55212         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
55213         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
55214         (xvprintf, xvfprintf): New functions.
55215
55216 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55217
55218         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
55219         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
55220
55221         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
55222         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
55223
55224 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55225
55226         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
55227         by Bruno Haible.
55228
55229 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55230
55231         * lib/getloadavg.c
55232         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
55233         Undef `sys' after including sys/table.h, for Tru64 4.0D.
55234
55235         * tests/test-i-ring.c: Work for C89.
55236
55237 2007-10-22  Bruno Haible  <bruno@clisp.org>
55238
55239         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
55240         -1u, in preprocessor expression, so that we don't test for the bug
55241         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
55242         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
55243
55244 2007-10-22  Eric Blake  <ebb9@byu.net>
55245
55246         * tests/test-yesno.sh: Silence stderr during test.
55247
55248 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55249
55250         * modules/crypto/gc-camellia: New file.
55251
55252         * m4/gc-camellia.m4: New file.
55253
55254         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
55255
55256         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
55257
55258 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55259
55260         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
55261         --help to stdout.  Reported by sms@antinode.org (Steven
55262         M. Schweda).
55263
55264 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55265
55266         * users.txt: Fix link to libksba.
55267
55268 2007-10-21  Ben Pfaff  <blp@gnu.org>
55269
55270         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
55271         round.c roundf implementation that depends on floorf and ceilf to
55272         be tested unconditionally.
55273
55274 2007-10-21  Ben Pfaff  <blp@gnu.org>
55275
55276         * m4/check-libm-func.m4: Removed.
55277         * m4/check-math-lib.m4: New file.
55278         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
55279         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
55280         definition and lack of AC_LIBOBJ([roundf]).
55281         * m4/roundl.m4: Ditto, and similarly for roundl.
55282         * modules/round: Reference new m4 file.
55283         * modules/roundf: Ditto.
55284         * modules/roundl: Ditto.
55285         * tests/test-round2.c (main): Use ROUND instead of round.
55286         Bug report from Bruno Haible.
55287
55288 2007-10-21  Bruno Haible  <bruno@clisp.org>
55289
55290         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
55291         context.
55292
55293 2007-10-21  Bruno Haible  <bruno@clisp.org>
55294
55295         * tests/test-wcwidth.c (main): Allow negative result for some control
55296         characters.
55297
55298         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
55299         Needed on OSF/1 5.1.
55300
55301 2007-10-21  Bruno Haible  <bruno@clisp.org>
55302
55303         * tests/test-floorf1.c: Include isnanf.h.
55304         (main): Use isnanf() instead of isnan().
55305         * tests/test-ceilf1.c: Include isnanf.h.
55306         (main): Use isnanf() instead of isnan().
55307         * tests/test-truncf1.c: Include isnanf.h.
55308         (main): Use isnanf() instead of isnan().
55309         * tests/test-roundf1.c: Include isnanf.h.
55310         (main): Use isnanf() instead of isnan().
55311
55312 2007-10-21  Eric Blake  <ebb9@byu.net>
55313
55314         * users.txt: Update URL for m4.
55315
55316 2007-10-21  Bruno Haible  <bruno@clisp.org>
55317
55318         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
55319
55320 2007-10-21  Bruno Haible  <bruno@clisp.org>
55321
55322         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
55323         Git's management files if the CVS files are not present.
55324
55325 2007-10-20  Bruno Haible  <bruno@clisp.org>
55326
55327         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
55328         gcc-3.4.x.
55329
55330 2007-10-20  Ben Pfaff  <blp@gnu.org>
55331
55332         * lib/math.in.h: Declare round, roundf, roundl if we are providing
55333         implementations.
55334         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
55335         * lib/round.c: New file.
55336         * lib/roundf.c: New file.
55337         * lib/roundl.c: New file.
55338         * m4/round.m4: New file.
55339         * m4/roundf.m4: New file.
55340         * m4/roundl.m4: New file.
55341         * m4/check-libm-func-m4: New file.
55342         * modules/math: Replace round, roundf, roundl related @VARS@ in
55343         math.in.h.
55344         * modules/round: New file.
55345         * modules/round-tests: New file.
55346         * modules/roundf: New file.
55347         * modules/roundf-tests: New file.
55348         * modules/roundl: New file.
55349         * modules/roundl-tests: New file.
55350         * tests/test-round1.c: New file.
55351         * tests/test-round2.c: New file.
55352         * tests/test-roundf1.c: New file.
55353         * tests/test-roundf2.c: New file.
55354         * tests/test-roundl.c: New file.
55355         * doc/functions/round.texi: Mention round module.
55356         * doc/functions/roundf.texi: Mention roundf module.
55357         * doc/functions/roundl.texi: Mention roundl module.
55358         * MODULES.html.sh: Mention new modules.
55359         Thanks to Bruno Haible for suggestions.
55360
55361 2007-10-20  Jim Meyering  <meyering@redhat.com>
55362
55363         * lib/xprintf.c: Include <config.h> unconditionally.
55364
55365         Change xprintf's license to GPL.
55366         * modules/xprintf (License): s/LGPL/GPL/, since this module
55367         depends on modules (exit and exitfail) which are GPL.
55368         Suggestion from Bruno Haible.
55369
55370         xprintf fixes.
55371         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55372         Use a clearer diagnostic.
55373         Patch from Bruno Haible.
55374
55375 2007-10-20  Bruno Haible  <bruno@clisp.org>
55376
55377         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55378         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55379         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55380
55381 2007-10-20  Bruno Haible  <bruno@clisp.org>
55382
55383         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55384         precision in the comparison result > x - 1 or similar.
55385         * tests/test-ceilf2.c (correct_result_p): Likewise.
55386         * tests/test-truncf2.c (correct_result_p): Likewise.
55387         * tests/test-trunc2.c (correct_result_p): Likewise.
55388         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55389
55390 2007-10-20  Bruno Haible  <bruno@clisp.org>
55391
55392         * modules/ceil: New file.
55393         * m4/ceil.m4: New file.
55394         * doc/functions/ceil.texi: Mention the 'ceil' module.
55395
55396 2007-10-20  Bruno Haible  <bruno@clisp.org>
55397
55398         * modules/floor: New file.
55399         * m4/floor.m4: New file.
55400         * doc/functions/floor.texi: Mention the 'floor' module.
55401
55402 2007-10-20  Bruno Haible  <bruno@clisp.org>
55403
55404         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
55405         of %a.
55406         * modules/floorf-tests (Depends-on): Likewise.
55407         * modules/truncf-tests (Depends-on): Likewise.
55408         * modules/trunc-tests (Depends-on): Likewise.
55409         Reported by Ben Pfaff.
55410
55411 2007-10-19  Jim Meyering  <meyering@redhat.com>
55412
55413         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
55414         Don't bother testing specific errno values.  Just test ferror.
55415
55416         New module: xprintf
55417         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
55418
55419 2007-10-19  Bruno Haible  <bruno@clisp.org>
55420
55421         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
55422         syntax.
55423         * modules/javaexec (Makefile.am): Likewise.
55424         * modules/relocatable-prog (Makefile.am): Likewise.
55425         Suggested by Jim Meyering.
55426
55427 2007-10-18  Bruno Haible  <bruno@clisp.org>
55428
55429         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
55430         Reported by Jim Meyering.
55431
55432 2007-10-18  Eric Blake  <ebb9@byu.net>
55433
55434         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
55435
55436 2007-10-18  Bruno Haible  <bruno@clisp.org>
55437
55438         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
55439         the format string into writable memory. Needed in Fortify conditions.
55440
55441 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
55442             Bruno Haible  <bruno@clisp.org>
55443
55444         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
55445         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
55446         * modules/trim (Depends-on): Add mbchar.
55447         (configure.ac): Add gl_FUNC_MBRTOWC.
55448         (Makefile.am): Augment lib_SOURCES.
55449
55450 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55451
55452         Modify glob.c to use fstatat and dirfd, to simplify it.
55453         Suggested by Eric Blake.
55454         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
55455         Don't include <stdbool.h>; not used.
55456         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
55457         (link_exists_p): Simplify implementation, since we can now assume
55458         dirfd and fstatat.
55459         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
55460
55461 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55462
55463         * gnulib-tool (func_get_dependencies): Fix sed script to
55464         match only tests.
55465
55466 2007-10-17  Bruno Haible  <bruno@clisp.org>
55467
55468         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
55469         allow locale names without encoding suffix.
55470         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55471         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55472
55473 2007-10-16  Bruno Haible  <bruno@clisp.org>
55474
55475         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55476         * lib/getgroups.c (getgroups): Likewise.
55477         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55478
55479 2007-10-16  Bruno Haible  <bruno@clisp.org>
55480
55481         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55482         * modules/malloc-posix (License): Likewise.
55483         * modules/realloc-posix (License): Likewise.
55484         * modules/calloc-posix (License): Likewise.
55485         * modules/intprops (License): Change from GPL to LGPL, with
55486         Paul Eggert's approval.
55487
55488 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55489
55490         Merge glibc changes into lib/glob.c.
55491
55492         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55493         2007-10-15 04:59:03 UTC.  Here are the changes:
55494
55495         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55496
55497         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55498
55499         * lib/glob.c: Add some branch prediction throughout.
55500
55501         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55502
55503         [BZ #5103]
55504         * lib/glob.c (glob): Recognize patterns starting \/.
55505
55506         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55507
55508         [BZ #3996]
55509         * lib/glob.c (attribute_hidden): Define if not defined.
55510         (glob): Unescape dirname, filename or username when needed and not
55511         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55512         is NULL.  Handle unescaped [ in pattern without closing ].
55513         Don't pass GLOB_CHECK down to recursive glob for directories.
55514         (__glob_pattern_type): New function.
55515         (__glob_pattern_p): Implement using __glob_pattern_type.
55516         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55517         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55518         Remove unreachable code.
55519
55520         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55521
55522         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55523         explain why there are no leaks.
55524
55525         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55526
55527         [BZ #3253]
55528         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55529         time, rather allocate increasingly bigger arrays of pointers, if
55530         possible with alloca, if too large with malloc.
55531
55532 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55533
55534         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55535         Problem reported by H.Merijn Brand in
55536         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55537         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55538         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55539
55540 2007-10-15  Bruno Haible  <bruno@clisp.org>
55541
55542         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55543         with explicit rpl_ prefix.
55544         * lib/fopen.c (fopen): Likewise.
55545         * lib/freopen.c (freopen): Likewise.
55546         * lib/iconv.c (iconv): Likewise.
55547         * lib/iconv_close.c (iconv_close): Likewise.
55548
55549 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55550
55551         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55552
55553 2007-10-15  Bruno Haible  <bruno@clisp.org>
55554
55555         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55556         <stddef.h> instead of <stdlib.h> since we only need NULL.
55557         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55558
55559 2007-10-15  Bruno Haible  <bruno@clisp.org>
55560
55561         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55562         Replace paragraph talking about LIBOBJS.
55563         Reported by Colin Watson <cjwatson@debian.org>.
55564
55565 2007-10-15  Bruno Haible  <bruno@clisp.org>
55566
55567         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55568         <stdlib.h> before using NULL.
55569
55570 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55571
55572         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55573         Reported by Albert Chin <china@thewrittenword.com>.
55574
55575 2007-10-14  Bruno Haible  <bruno@clisp.org>
55576
55577         * modules/iconv_open-utf-tests: New file.
55578         * tests/test-iconv-utf.c: New file.
55579
55580         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55581         * modules/iconv_open-utf: New file.
55582         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55583         (iconv, iconv_close): New declarations.
55584         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55585         be defined.
55586         (iconv_open): Add special handling of conversion between UTF-8 and
55587         UTF-{16,32}{BE,LE}.
55588         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55589         * lib/iconv_close.c: New file.
55590         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55591         gl_FUNC_ICONV_OPEN.
55592         (gl_FUNC_ICONV_OPEN): Use it.
55593         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55594         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55595         and REPLACE_ICONV_UTF.
55596         * modules/iconv_open (Depends-on): Add c-strcase.
55597         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55598         ICONV_CONST.
55599         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55600
55601 2007-10-13  Albert Chin  <china@thewrittenword.com>
55602             Bruno Haible  <bruno@clisp.org>
55603
55604         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55605         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55606
55607 2007-10-13  Bruno Haible  <bruno@clisp.org>
55608
55609         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55610         defined, use the ISO C99 inline semantics.
55611         * lib/argp.h (ARGP_EI): Likewise.
55612
55613 2007-10-13  Bruno Haible  <bruno@clisp.org>
55614
55615         Handle 'inline' change in gcc 4.3.0.
55616         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55617         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55618         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55619         argp_fmtstream_point): Disable 'extern' declaration if the function
55620         definition is going to be provided inline.
55621         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55622         semantics, not the ISO C99 inline semantics.
55623         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55624         'extern' declaration if the function definition is going to be provided
55625         inline.
55626         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55627         the GNU C inline semantics, not the ISO C99 inline semantics. With
55628         GCC 4.2, avoid a warning.
55629
55630 2007-10-13  Bruno Haible  <bruno@clisp.org>
55631
55632         * lib/freading.h (freading): Enable the use of __freading for
55633         glibc >= 2.7.
55634         * lib/freading.c (freading): Likewise.
55635
55636 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55637
55638         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55639         "warning: C99 inline functions are not supported; using GNU89".
55640
55641 2007-10-12  Bruno Haible  <bruno@clisp.org>
55642
55643         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55644         of 2.
55645         * tests/test-ceilf2.c: New file.
55646         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55647
55648         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55649         * modules/ceilf-tests: Update.
55650
55651 2007-10-12  Bruno Haible  <bruno@clisp.org>
55652
55653         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55654         of 2.
55655         * tests/test-floorf2.c: New file.
55656         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55657
55658         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55659         * modules/floorf-tests: Update.
55660
55661 2007-10-12  Bruno Haible  <bruno@clisp.org>
55662
55663         * tests/test-trunc2.c: New file.
55664         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55665
55666         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55667         * modules/trunc-tests: Update.
55668
55669 2007-10-12  Bruno Haible  <bruno@clisp.org>
55670
55671         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55672         of 2.
55673         * tests/test-truncf2.c: New file.
55674         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55675
55676         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55677         * modules/truncf-tests: Update.
55678
55679 2007-10-11  Eric Blake  <ebb9@byu.net>
55680
55681         Don't claim strerror is broken on Interix.
55682         * doc/functions/strerror.texi (strerror): Known broken systems are
55683         now Solaris 8, and not Interix.
55684         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55685         Interix on cross-compile.
55686         Reported by Martin Koeppe in
55687         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55688
55689 2007-10-11  Bruno Haible  <bruno@clisp.org>
55690
55691         * modules/i-ring-tests: New file.
55692         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55693         instead of assert.
55694
55695 2007-10-11  Bruno Haible  <bruno@clisp.org>
55696
55697         * modules/filenamecat-tests: New file.
55698         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55699         * lib/filenamecat.c: Remove test code.
55700
55701 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55702
55703         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55704
55705         * lib/strerror.c: Include <string.h> always, to test interface,
55706         and to remove the need for the dummy.
55707         Include intprops.h to compute width instead of doing it ourselves
55708         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55709         (strerror): Define it to return NULL if there's no system strerror.
55710         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55711         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55712         ancient pre-strerror Unix systems well any more.  Saying "unknown
55713         system error" is enough.
55714         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55715         simpler strerror.c implementation.
55716         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55717         Simplify the tests to reflect the simpler strerror implementation.
55718         * modules/strerror (Depends-on): Add intprops.
55719
55720 2007-10-09  Eric Blake  <ebb9@byu.net>
55721
55722         Silence test-fpending.
55723         * modules/fpending-tests (Files): Add wrapper script.
55724         * tests/test-fpending.sh: New file.
55725
55726 2007-10-09  Bruno Haible  <bruno@clisp.org>
55727
55728         * MODULES.html.sh (func_module): Don't create a hyperlink for
55729         function names like 'printf_frexp'.
55730         (Misc): Add crc, memxor.
55731         (Characteristics of floating types): New section.
55732         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55733         isnanf-nolibm, signbit, trunc, truncf, truncl.
55734         (Enhancements for ISO C 99 functions): New subsection Input/output.
55735         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55736         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55737         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55738         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55739         (Enhancements for POSIX:2001 functions): Add chdir-long.
55740         (File system functions): Add areadlink, chdir-safer, read-file.
55741         Remove cycle-check.
55742         (File system as inode set): New section.
55743         (Date and time): Add gethrxtime.
55744         (Multithreading): Add openmp.
55745         (Internationalization functions): Add localename.
55746         (Unicode string functions): Add unistr/u*-mbsnlen.
55747         (Support for maintaining and releasing projects): Add git-version-gen.
55748         (Lone files): Remove directories.
55749
55750 2007-10-08  Ben Pfaff  <blp@gnu.org>
55751
55752         * lib/xmalloca.h: Fix typo in comment.
55753
55754 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55755
55756         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55757         when avoiding problems with integer overflow.  Use a portable test
55758         instead.
55759
55760 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55761
55762         * modules/dummy (License): Change to LGPLv2+.
55763         * modules/float (License): Likewise
55764         * modules/realloc (License): Likewise
55765         * modules/stdlib (License): Likewise
55766
55767 2007-10-07  Bruno Haible  <bruno@clisp.org>
55768
55769         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55770         * floor.c (TWO_MANT_DIG): Likewise.
55771         * ceil.c (TWO_MANT_DIG): Likewise.
55772         Reported by Ben Pfaff.
55773
55774 2007-10-07  Bruno Haible  <bruno@clisp.org>
55775
55776         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55777         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55778         * lib/frexp.c (FUNC): Likewise.
55779         * lib/printf-frexp.h (printf_frexp): Likewise.
55780         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55781         * lib/printf-frexp.c (FUNC): Likewise.
55782         Suggested by Jim Meyering.
55783
55784 2007-10-07  Jim Meyering  <meyering@redhat.com>
55785
55786         Make xnanosleep's integer overflow test more robust.
55787         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55788         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55789
55790 2007-10-07  Bruno Haible  <bruno@clisp.org>
55791
55792         * NEWS: Mention the license change.
55793
55794         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55795         abbreviations in the modules files.
55796
55797         Change copyright notice from GPLv2+ to GPLv3+.
55798         * README: Change copyright notice.
55799         * MODULES.html.sh: Likewise.
55800         * build-aux/bootstrap.conf: Likewise.
55801         * build-aux/config.libpath: Likewise.
55802         * build-aux/csharpcomp.sh.in: Likewise.
55803         * build-aux/csharpexec.sh.in: Likewise.
55804         * build-aux/install-reloc: Likewise.
55805         * build-aux/javacomp.sh.in: Likewise.
55806         * build-aux/javaexec.sh.in: Likewise.
55807         * build-aux/ldd.sh.in: Likewise.
55808         * build-aux/reloc-ldflags: Likewise.
55809         * build-aux/relocatable.sh.in: Likewise.
55810         * build-aux/x-to-1.in: Likewise.
55811         * check-module: Likewise.
55812         * config/srclistvars.sh: Likewise.
55813         * gnulib-tool: Likewise.
55814         * lib/acl-internal.h: Likewise.
55815         * lib/acl.c: Likewise.
55816         * lib/acl.h: Likewise.
55817         * lib/acl_entries.c: Likewise.
55818         * lib/areadlink-with-size.c: Likewise.
55819         * lib/areadlink.c: Likewise.
55820         * lib/areadlink.h: Likewise.
55821         * lib/argmatch.c: Likewise.
55822         * lib/argmatch.h: Likewise.
55823         * lib/argp-ba.c: Likewise.
55824         * lib/argp-eexst.c: Likewise.
55825         * lib/argp-fmtstream.c: Likewise.
55826         * lib/argp-fmtstream.h: Likewise.
55827         * lib/argp-fs-xinl.c: Likewise.
55828         * lib/argp-help.c: Likewise.
55829         * lib/argp-namefrob.h: Likewise.
55830         * lib/argp-parse.c: Likewise.
55831         * lib/argp-pin.c: Likewise.
55832         * lib/argp-pv.c: Likewise.
55833         * lib/argp-pvh.c: Likewise.
55834         * lib/argp-xinl.c: Likewise.
55835         * lib/argp.h: Likewise.
55836         * lib/at-func.c: Likewise.
55837         * lib/atanl.c: Likewise.
55838         * lib/backupfile.c: Likewise.
55839         * lib/backupfile.h: Likewise.
55840         * lib/basename.c: Likewise.
55841         * lib/binary-io.h: Likewise.
55842         * lib/byteswap.in.h: Likewise.
55843         * lib/c-stack.c: Likewise.
55844         * lib/c-stack.h: Likewise.
55845         * lib/c-strcasestr.c: Likewise.
55846         * lib/c-strcasestr.h: Likewise.
55847         * lib/c-strstr.c: Likewise.
55848         * lib/c-strstr.h: Likewise.
55849         * lib/c-strtod.c: Likewise.
55850         * lib/calloc.c: Likewise.
55851         * lib/canon-host.c: Likewise.
55852         * lib/canon-host.h: Likewise.
55853         * lib/canonicalize-lgpl.c: Likewise.
55854         * lib/canonicalize.c: Likewise.
55855         * lib/canonicalize.h: Likewise.
55856         * lib/ceil.c: Likewise.
55857         * lib/ceilf.c: Likewise.
55858         * lib/ceill.c: Likewise.
55859         * lib/chdir-long.c: Likewise.
55860         * lib/chdir-long.h: Likewise.
55861         * lib/chdir-safer.c: Likewise.
55862         * lib/chdir-safer.h: Likewise.
55863         * lib/chown.c: Likewise.
55864         * lib/classpath.c: Likewise.
55865         * lib/classpath.h: Likewise.
55866         * lib/clean-temp.c: Likewise.
55867         * lib/clean-temp.h: Likewise.
55868         * lib/cloexec.c: Likewise.
55869         * lib/close-stream.c: Likewise.
55870         * lib/closein.c: Likewise.
55871         * lib/closein.h: Likewise.
55872         * lib/closeout.c: Likewise.
55873         * lib/closeout.h: Likewise.
55874         * lib/concat-filename.c: Likewise.
55875         * lib/copy-file.c: Likewise.
55876         * lib/copy-file.h: Likewise.
55877         * lib/count-one-bits.h: Likewise.
55878         * lib/crc.c: Likewise.
55879         * lib/crc.h: Likewise.
55880         * lib/creat-safer.c: Likewise.
55881         * lib/csharpcomp.c: Likewise.
55882         * lib/csharpcomp.h: Likewise.
55883         * lib/csharpexec.c: Likewise.
55884         * lib/csharpexec.h: Likewise.
55885         * lib/cycle-check.c: Likewise.
55886         * lib/cycle-check.h: Likewise.
55887         * lib/diacrit.c: Likewise.
55888         * lib/diacrit.h: Likewise.
55889         * lib/diffseq.h: Likewise.
55890         * lib/dirchownmod.c: Likewise.
55891         * lib/dirent.in.h: Likewise.
55892         * lib/dirfd.c: Likewise.
55893         * lib/dirfd.h: Likewise.
55894         * lib/dirname.c: Likewise.
55895         * lib/dirname.h: Likewise.
55896         * lib/dummy.c: Likewise.
55897         * lib/dup-safer.c: Likewise.
55898         * lib/dup2.c: Likewise.
55899         * lib/eealloc.h: Likewise.
55900         * lib/error.c: Likewise.
55901         * lib/error.h: Likewise.
55902         * lib/euidaccess.c: Likewise.
55903         * lib/exclude.c: Likewise.
55904         * lib/exclude.h: Likewise.
55905         * lib/execute.c: Likewise.
55906         * lib/execute.h: Likewise.
55907         * lib/exitfail.c: Likewise.
55908         * lib/exitfail.h: Likewise.
55909         * lib/expl.c: Likewise.
55910         * lib/fatal-signal.c: Likewise.
55911         * lib/fatal-signal.h: Likewise.
55912         * lib/fbufmode.c: Likewise.
55913         * lib/fbufmode.h: Likewise.
55914         * lib/fchdir.c: Likewise.
55915         * lib/fchmodat.c: Likewise.
55916         * lib/fchownat.c: Likewise.
55917         * lib/fcntl--.h: Likewise.
55918         * lib/fcntl-safer.h: Likewise.
55919         * lib/fcntl.in.h: Likewise.
55920         * lib/fd-safer.c: Likewise.
55921         * lib/fflush.c: Likewise.
55922         * lib/file-has-acl.c: Likewise.
55923         * lib/file-set.c: Likewise.
55924         * lib/file-type.c: Likewise.
55925         * lib/file-type.h: Likewise.
55926         * lib/fileblocks.c: Likewise.
55927         * lib/filemode.c: Likewise.
55928         * lib/filemode.h: Likewise.
55929         * lib/filename.h: Likewise.
55930         * lib/filenamecat.c: Likewise.
55931         * lib/filenamecat.h: Likewise.
55932         * lib/findprog.c: Likewise.
55933         * lib/findprog.h: Likewise.
55934         * lib/float.in.h: Likewise.
55935         * lib/floor.c: Likewise.
55936         * lib/floorf.c: Likewise.
55937         * lib/floorl.c: Likewise.
55938         * lib/fopen-safer.c: Likewise.
55939         * lib/fopen.c: Likewise.
55940         * lib/fpending.c: Likewise.
55941         * lib/fpending.h: Likewise.
55942         * lib/fprintf.c: Likewise.
55943         * lib/fprintftime.h: Likewise.
55944         * lib/fpucw.h: Likewise.
55945         * lib/fpurge.c: Likewise.
55946         * lib/fpurge.h: Likewise.
55947         * lib/freadable.c: Likewise.
55948         * lib/freadable.h: Likewise.
55949         * lib/freadahead.c: Likewise.
55950         * lib/freadahead.h: Likewise.
55951         * lib/freading.c: Likewise.
55952         * lib/freading.h: Likewise.
55953         * lib/free.c: Likewise.
55954         * lib/freopen.c: Likewise.
55955         * lib/frexp.c: Likewise.
55956         * lib/frexpl.c: Likewise.
55957         * lib/fseek.c: Likewise.
55958         * lib/fseterr.c: Likewise.
55959         * lib/fseterr.h: Likewise.
55960         * lib/fstatat.c: Likewise.
55961         * lib/fstrcmp.c: Likewise.
55962         * lib/fstrcmp.h: Likewise.
55963         * lib/fsusage.c: Likewise.
55964         * lib/fsusage.h: Likewise.
55965         * lib/ftell.c: Likewise.
55966         * lib/ftello.c: Likewise.
55967         * lib/fts-cycle.c: Likewise.
55968         * lib/fts.c: Likewise.
55969         * lib/fts_.h: Likewise.
55970         * lib/full-read.c: Likewise.
55971         * lib/full-read.h: Likewise.
55972         * lib/full-write.c: Likewise.
55973         * lib/full-write.h: Likewise.
55974         * lib/fwritable.c: Likewise.
55975         * lib/fwritable.h: Likewise.
55976         * lib/fwriteerror.c: Likewise.
55977         * lib/fwriteerror.h: Likewise.
55978         * lib/fwriting.c: Likewise.
55979         * lib/fwriting.h: Likewise.
55980         * lib/gcd.c: Likewise.
55981         * lib/gcd.h: Likewise.
55982         * lib/getcwd.c: Likewise.
55983         * lib/getdate.h: Likewise.
55984         * lib/getdate.y: Likewise.
55985         * lib/getdomainname.c: Likewise.
55986         * lib/getdomainname.h: Likewise.
55987         * lib/getgroups.c: Likewise.
55988         * lib/gethostname.c: Likewise.
55989         * lib/gethrxtime.c: Likewise.
55990         * lib/gethrxtime.h: Likewise.
55991         * lib/getloadavg.c: Likewise.
55992         * lib/getndelim2.c: Likewise.
55993         * lib/getndelim2.h: Likewise.
55994         * lib/getnline.c: Likewise.
55995         * lib/getnline.h: Likewise.
55996         * lib/getopt.c: Likewise.
55997         * lib/getopt.in.h: Likewise.
55998         * lib/getopt1.c: Likewise.
55999         * lib/getopt_int.h: Likewise.
56000         * lib/getpagesize.h: Likewise.
56001         * lib/getsubopt.c: Likewise.
56002         * lib/gettime.c: Likewise.
56003         * lib/getugroups.c: Likewise.
56004         * lib/getugroups.h: Likewise.
56005         * lib/getusershell.c: Likewise.
56006         * lib/gl_anyavltree_list1.h: Likewise.
56007         * lib/gl_anyavltree_list2.h: Likewise.
56008         * lib/gl_anyhash_list1.h: Likewise.
56009         * lib/gl_anyhash_list2.h: Likewise.
56010         * lib/gl_anylinked_list1.h: Likewise.
56011         * lib/gl_anylinked_list2.h: Likewise.
56012         * lib/gl_anyrbtree_list1.h: Likewise.
56013         * lib/gl_anyrbtree_list2.h: Likewise.
56014         * lib/gl_anytree_list1.h: Likewise.
56015         * lib/gl_anytree_list2.h: Likewise.
56016         * lib/gl_anytree_oset.h: Likewise.
56017         * lib/gl_anytreehash_list1.h: Likewise.
56018         * lib/gl_anytreehash_list2.h: Likewise.
56019         * lib/gl_array_list.c: Likewise.
56020         * lib/gl_array_list.h: Likewise.
56021         * lib/gl_array_oset.c: Likewise.
56022         * lib/gl_array_oset.h: Likewise.
56023         * lib/gl_avltree_list.c: Likewise.
56024         * lib/gl_avltree_list.h: Likewise.
56025         * lib/gl_avltree_oset.c: Likewise.
56026         * lib/gl_avltree_oset.h: Likewise.
56027         * lib/gl_avltreehash_list.c: Likewise.
56028         * lib/gl_avltreehash_list.h: Likewise.
56029         * lib/gl_carray_list.c: Likewise.
56030         * lib/gl_carray_list.h: Likewise.
56031         * lib/gl_linked_list.c: Likewise.
56032         * lib/gl_linked_list.h: Likewise.
56033         * lib/gl_linkedhash_list.c: Likewise.
56034         * lib/gl_linkedhash_list.h: Likewise.
56035         * lib/gl_list.c: Likewise.
56036         * lib/gl_list.h: Likewise.
56037         * lib/gl_oset.c: Likewise.
56038         * lib/gl_oset.h: Likewise.
56039         * lib/gl_rbtree_list.c: Likewise.
56040         * lib/gl_rbtree_list.h: Likewise.
56041         * lib/gl_rbtree_oset.c: Likewise.
56042         * lib/gl_rbtree_oset.h: Likewise.
56043         * lib/gl_rbtreehash_list.c: Likewise.
56044         * lib/gl_rbtreehash_list.h: Likewise.
56045         * lib/gl_sublist.c: Likewise.
56046         * lib/gl_sublist.h: Likewise.
56047         * lib/group-member.c: Likewise.
56048         * lib/group-member.h: Likewise.
56049         * lib/hard-locale.c: Likewise.
56050         * lib/hard-locale.h: Likewise.
56051         * lib/hash-pjw.c: Likewise.
56052         * lib/hash-pjw.h: Likewise.
56053         * lib/hash-triple.c: Likewise.
56054         * lib/hash.c: Likewise.
56055         * lib/hash.h: Likewise.
56056         * lib/human.c: Likewise.
56057         * lib/human.h: Likewise.
56058         * lib/i-ring.c: Likewise.
56059         * lib/i-ring.h: Likewise.
56060         * lib/idcache.c: Likewise.
56061         * lib/imaxabs.c: Likewise.
56062         * lib/imaxdiv.c: Likewise.
56063         * lib/inet_pton.c: Likewise.
56064         * lib/inet_pton.h: Likewise.
56065         * lib/intprops.h: Likewise.
56066         * lib/inttostr.c: Likewise.
56067         * lib/inttostr.h: Likewise.
56068         * lib/inttypes.in.h: Likewise.
56069         * lib/isapipe.c: Likewise.
56070         * lib/isdir.c: Likewise.
56071         * lib/isnan.c: Likewise.
56072         * lib/isnan.h: Likewise.
56073         * lib/isnanf.c: Likewise.
56074         * lib/isnanf.h: Likewise.
56075         * lib/isnanl-nolibm.h: Likewise.
56076         * lib/isnanl.c: Likewise.
56077         * lib/isnanl.h: Likewise.
56078         * lib/javacomp.c: Likewise.
56079         * lib/javacomp.h: Likewise.
56080         * lib/javaexec.c: Likewise.
56081         * lib/javaexec.h: Likewise.
56082         * lib/javaversion.c: Likewise.
56083         * lib/javaversion.h: Likewise.
56084         * lib/javaversion.java: Likewise.
56085         * lib/lbrkprop.h: Likewise.
56086         * lib/lchmod.h: Likewise.
56087         * lib/lchown.c: Likewise.
56088         * lib/ldexpl.c: Likewise.
56089         * lib/linebreak.c: Likewise.
56090         * lib/linebreak.h: Likewise.
56091         * lib/linebuffer.c: Likewise.
56092         * lib/linebuffer.h: Likewise.
56093         * lib/locale.in.h: Likewise.
56094         * lib/logl.c: Likewise.
56095         * lib/long-options.c: Likewise.
56096         * lib/long-options.h: Likewise.
56097         * lib/lstat.c: Likewise.
56098         * lib/lstat.h: Likewise.
56099         * lib/math.in.h: Likewise.
56100         * lib/mbchar.c: Likewise.
56101         * lib/mbchar.h: Likewise.
56102         * lib/mbfile.h: Likewise.
56103         * lib/mbiter.h: Likewise.
56104         * lib/mbscasecmp.c: Likewise.
56105         * lib/mbscasestr.c: Likewise.
56106         * lib/mbschr.c: Likewise.
56107         * lib/mbscspn.c: Likewise.
56108         * lib/mbslen.c: Likewise.
56109         * lib/mbsncasecmp.c: Likewise.
56110         * lib/mbsnlen.c: Likewise.
56111         * lib/mbspbrk.c: Likewise.
56112         * lib/mbspcasecmp.c: Likewise.
56113         * lib/mbsrchr.c: Likewise.
56114         * lib/mbssep.c: Likewise.
56115         * lib/mbsspn.c: Likewise.
56116         * lib/mbsstr.c: Likewise.
56117         * lib/mbstok_r.c: Likewise.
56118         * lib/mbswidth.c: Likewise.
56119         * lib/mbswidth.h: Likewise.
56120         * lib/mbuiter.h: Likewise.
56121         * lib/memcasecmp.c: Likewise.
56122         * lib/memcasecmp.h: Likewise.
56123         * lib/memchr.c: Likewise.
56124         * lib/memcmp.c: Likewise.
56125         * lib/memcoll.c: Likewise.
56126         * lib/memcoll.h: Likewise.
56127         * lib/memcpy.c: Likewise.
56128         * lib/memrchr.c: Likewise.
56129         * lib/mkancesdirs.c: Likewise.
56130         * lib/mkdir-p.c: Likewise.
56131         * lib/mkdir-p.h: Likewise.
56132         * lib/mkdir.c: Likewise.
56133         * lib/mkdirat.c: Likewise.
56134         * lib/mkdtemp.c: Likewise.
56135         * lib/mkstemp-safer.c: Likewise.
56136         * lib/mkstemp.c: Likewise.
56137         * lib/modechange.c: Likewise.
56138         * lib/modechange.h: Likewise.
56139         * lib/mountlist.c: Likewise.
56140         * lib/mountlist.h: Likewise.
56141         * lib/mpsort.c: Likewise.
56142         * lib/nanosleep.c: Likewise.
56143         * lib/obstack.c: Likewise.
56144         * lib/obstack.h: Likewise.
56145         * lib/open-safer.c: Likewise.
56146         * lib/open.c: Likewise.
56147         * lib/openat-die.c: Likewise.
56148         * lib/openat-priv.h: Likewise.
56149         * lib/openat-proc.c: Likewise.
56150         * lib/openat.c: Likewise.
56151         * lib/openat.h: Likewise.
56152         * lib/pagealign_alloc.c: Likewise.
56153         * lib/pagealign_alloc.h: Likewise.
56154         * lib/physmem.c: Likewise.
56155         * lib/physmem.h: Likewise.
56156         * lib/pipe-safer.c: Likewise.
56157         * lib/pipe.c: Likewise.
56158         * lib/pipe.h: Likewise.
56159         * lib/posixtm.c: Likewise.
56160         * lib/posixtm.h: Likewise.
56161         * lib/posixver.c: Likewise.
56162         * lib/printf-frexp.c: Likewise.
56163         * lib/printf-frexp.h: Likewise.
56164         * lib/printf-frexpl.c: Likewise.
56165         * lib/printf-frexpl.h: Likewise.
56166         * lib/printf.c: Likewise.
56167         * lib/progname.c: Likewise.
56168         * lib/progname.h: Likewise.
56169         * lib/progreloc.c: Likewise.
56170         * lib/putenv.c: Likewise.
56171         * lib/quote.c: Likewise.
56172         * lib/quote.h: Likewise.
56173         * lib/quotearg.c: Likewise.
56174         * lib/quotearg.h: Likewise.
56175         * lib/raise.c: Likewise.
56176         * lib/readline.c: Likewise.
56177         * lib/readline.h: Likewise.
56178         * lib/readlink.c: Likewise.
56179         * lib/readtokens.c: Likewise.
56180         * lib/readtokens.h: Likewise.
56181         * lib/readtokens0.c: Likewise.
56182         * lib/readtokens0.h: Likewise.
56183         * lib/readutmp.c: Likewise.
56184         * lib/readutmp.h: Likewise.
56185         * lib/realloc.c: Likewise.
56186         * lib/relocwrapper.c: Likewise.
56187         * lib/rename-dest-slash.c: Likewise.
56188         * lib/rename.c: Likewise.
56189         * lib/rmdir.c: Likewise.
56190         * lib/rpmatch.c: Likewise.
56191         * lib/safe-read.c: Likewise.
56192         * lib/safe-read.h: Likewise.
56193         * lib/safe-write.c: Likewise.
56194         * lib/safe-write.h: Likewise.
56195         * lib/same-inode.h: Likewise.
56196         * lib/same.c: Likewise.
56197         * lib/same.h: Likewise.
56198         * lib/save-cwd.c: Likewise.
56199         * lib/save-cwd.h: Likewise.
56200         * lib/savedir.c: Likewise.
56201         * lib/savedir.h: Likewise.
56202         * lib/savewd.c: Likewise.
56203         * lib/savewd.h: Likewise.
56204         * lib/search.in.h: Likewise.
56205         * lib/setenv.c: Likewise.
56206         * lib/setenv.h: Likewise.
56207         * lib/settime.c: Likewise.
56208         * lib/sh-quote.c: Likewise.
56209         * lib/sh-quote.h: Likewise.
56210         * lib/sig2str.c: Likewise.
56211         * lib/sig2str.h: Likewise.
56212         * lib/signal.in.h: Likewise.
56213         * lib/signbitd.c: Likewise.
56214         * lib/signbitf.c: Likewise.
56215         * lib/signbitl.c: Likewise.
56216         * lib/sigprocmask.c: Likewise.
56217         * lib/sincosl.c: Likewise.
56218         * lib/sleep.c: Likewise.
56219         * lib/sprintf.c: Likewise.
56220         * lib/sqrtl.c: Likewise.
56221         * lib/stat-time.h: Likewise.
56222         * lib/stdio--.h: Likewise.
56223         * lib/stdio-safer.h: Likewise.
56224         * lib/stdlib--.h: Likewise.
56225         * lib/stdlib-safer.h: Likewise.
56226         * lib/stdlib.in.h: Likewise.
56227         * lib/stpcpy.c: Likewise.
56228         * lib/stpncpy.c: Likewise.
56229         * lib/strchrnul.c: Likewise.
56230         * lib/strcspn.c: Likewise.
56231         * lib/strerror.c: Likewise.
56232         * lib/strftime.c: Likewise.
56233         * lib/strftime.h: Likewise.
56234         * lib/striconveh.c: Likewise.
56235         * lib/striconveh.h: Likewise.
56236         * lib/striconveha.c: Likewise.
56237         * lib/striconveha.h: Likewise.
56238         * lib/stripslash.c: Likewise.
56239         * lib/strnlen1.c: Likewise.
56240         * lib/strnlen1.h: Likewise.
56241         * lib/strtod.c: Likewise.
56242         * lib/strtoimax.c: Likewise.
56243         * lib/strtok_r.c: Likewise.
56244         * lib/strtol.c: Likewise.
56245         * lib/strtoll.c: Likewise.
56246         * lib/strtoul.c: Likewise.
56247         * lib/strtoull.c: Likewise.
56248         * lib/sysexits.in.h: Likewise.
56249         * lib/tempname.c: Likewise.
56250         * lib/tempname.h: Likewise.
56251         * lib/timespec.h: Likewise.
56252         * lib/tls.c: Likewise.
56253         * lib/tls.h: Likewise.
56254         * lib/tmpdir.c: Likewise.
56255         * lib/tmpdir.h: Likewise.
56256         * lib/tmpfile-safer.c: Likewise.
56257         * lib/tmpfile.c: Likewise.
56258         * lib/trigl.c: Likewise.
56259         * lib/trigl.h: Likewise.
56260         * lib/trim.c: Likewise.
56261         * lib/trim.h: Likewise.
56262         * lib/trunc.c: Likewise.
56263         * lib/truncf.c: Likewise.
56264         * lib/truncl.c: Likewise.
56265         * lib/tsearch.c: Likewise.
56266         * lib/unicodeio.c: Likewise.
56267         * lib/unicodeio.h: Likewise.
56268         * lib/unistd--.h: Likewise.
56269         * lib/unistd-safer.h: Likewise.
56270         * lib/unistdio/ulc-fprintf.c: Likewise.
56271         * lib/unistdio/ulc-vfprintf.c: Likewise.
56272         * lib/unlinkdir.c: Likewise.
56273         * lib/unlinkdir.h: Likewise.
56274         * lib/unlocked-io.h: Likewise.
56275         * lib/unsetenv.c: Likewise.
56276         * lib/userspec.c: Likewise.
56277         * lib/utime.c: Likewise.
56278         * lib/utimecmp.c: Likewise.
56279         * lib/utimecmp.h: Likewise.
56280         * lib/utimens.c: Likewise.
56281         * lib/verify.h: Likewise.
56282         * lib/verror.c: Likewise.
56283         * lib/verror.h: Likewise.
56284         * lib/version-etc-fsf.c: Likewise.
56285         * lib/version-etc.c: Likewise.
56286         * lib/version-etc.h: Likewise.
56287         * lib/vfprintf.c: Likewise.
56288         * lib/vprintf.c: Likewise.
56289         * lib/vsprintf.c: Likewise.
56290         * lib/w32spawn.h: Likewise.
56291         * lib/wait-process.c: Likewise.
56292         * lib/wait-process.h: Likewise.
56293         * lib/wcwidth.c: Likewise.
56294         * lib/write-any-file.c: Likewise.
56295         * lib/xalloc-die.c: Likewise.
56296         * lib/xalloc.h: Likewise.
56297         * lib/xasprintf.c: Likewise.
56298         * lib/xgetcwd.c: Likewise.
56299         * lib/xgetcwd.h: Likewise.
56300         * lib/xgetdomainname.c: Likewise.
56301         * lib/xgetdomainname.h: Likewise.
56302         * lib/xgethostname.c: Likewise.
56303         * lib/xmalloc.c: Likewise.
56304         * lib/xmalloca.c: Likewise.
56305         * lib/xmalloca.h: Likewise.
56306         * lib/xmemcoll.c: Likewise.
56307         * lib/xnanosleep.c: Likewise.
56308         * lib/xreadlink.c: Likewise.
56309         * lib/xreadlink.h: Likewise.
56310         * lib/xsetenv.c: Likewise.
56311         * lib/xsetenv.h: Likewise.
56312         * lib/xstriconv.c: Likewise.
56313         * lib/xstriconv.h: Likewise.
56314         * lib/xstrndup.c: Likewise.
56315         * lib/xstrndup.h: Likewise.
56316         * lib/xstrtod.c: Likewise.
56317         * lib/xstrtod.h: Likewise.
56318         * lib/xstrtol-error.c: Likewise.
56319         * lib/xstrtol.c: Likewise.
56320         * lib/xstrtol.h: Likewise.
56321         * lib/xtime.h: Likewise.
56322         * lib/xvasprintf.c: Likewise.
56323         * lib/xvasprintf.h: Likewise.
56324         * lib/yesno.c: Likewise.
56325         * lib/yesno.h: Likewise.
56326         * posix-modules: Likewise.
56327         * tests/test-alloca-opt.c: Likewise.
56328         * tests/test-arcfour.c: Likewise.
56329         * tests/test-arctwo.c: Likewise.
56330         * tests/test-argmatch.c: Likewise.
56331         * tests/test-argp-2.sh: Likewise.
56332         * tests/test-argp.c: Likewise.
56333         * tests/test-arpa_inet.c: Likewise.
56334         * tests/test-array_list.c: Likewise.
56335         * tests/test-array_oset.c: Likewise.
56336         * tests/test-atexit.c: Likewise.
56337         * tests/test-avltree_list.c: Likewise.
56338         * tests/test-avltree_oset.c: Likewise.
56339         * tests/test-avltreehash_list.c: Likewise.
56340         * tests/test-base64.c: Likewise.
56341         * tests/test-binary-io.c: Likewise.
56342         * tests/test-byteswap.c: Likewise.
56343         * tests/test-c-ctype.c: Likewise.
56344         * tests/test-c-strcasecmp.c: Likewise.
56345         * tests/test-c-strcasestr.c: Likewise.
56346         * tests/test-c-strncasecmp.c: Likewise.
56347         * tests/test-c-strstr.c: Likewise.
56348         * tests/test-canonicalize-lgpl.c: Likewise.
56349         * tests/test-canonicalize.c: Likewise.
56350         * tests/test-carray_list.c: Likewise.
56351         * tests/test-ceilf.c: Likewise.
56352         * tests/test-ceill.c: Likewise.
56353         * tests/test-count-one-bits.c: Likewise.
56354         * tests/test-crc.c: Likewise.
56355         * tests/test-dirname.c: Likewise.
56356         * tests/test-fbufmode.c: Likewise.
56357         * tests/test-fcntl.c: Likewise.
56358         * tests/test-fflush.c: Likewise.
56359         * tests/test-floorf.c: Likewise.
56360         * tests/test-floorl.c: Likewise.
56361         * tests/test-fopen.c: Likewise.
56362         * tests/test-fprintf-posix.c: Likewise.
56363         * tests/test-fprintf-posix.h: Likewise.
56364         * tests/test-fpurge.c: Likewise.
56365         * tests/test-freadable.c: Likewise.
56366         * tests/test-freadahead.c: Likewise.
56367         * tests/test-freading.c: Likewise.
56368         * tests/test-freopen.c: Likewise.
56369         * tests/test-frexp.c: Likewise.
56370         * tests/test-frexpl.c: Likewise.
56371         * tests/test-fseek.c: Likewise.
56372         * tests/test-fseeko.c: Likewise.
56373         * tests/test-fseterr.c: Likewise.
56374         * tests/test-fstrcmp.c: Likewise.
56375         * tests/test-ftell.c: Likewise.
56376         * tests/test-ftello.c: Likewise.
56377         * tests/test-fwritable.c: Likewise.
56378         * tests/test-fwriting.c: Likewise.
56379         * tests/test-getaddrinfo.c: Likewise.
56380         * tests/test-getpass.c: Likewise.
56381         * tests/test-gettimeofday.c: Likewise.
56382         * tests/test-hmac-md5.c: Likewise.
56383         * tests/test-hmac-sha1.c: Likewise.
56384         * tests/test-iconv.c: Likewise.
56385         * tests/test-iconvme.c: Likewise.
56386         * tests/test-inttypes.c: Likewise.
56387         * tests/test-isnan.c: Likewise.
56388         * tests/test-isnanf.c: Likewise.
56389         * tests/test-isnanl-nolibm.c: Likewise.
56390         * tests/test-isnanl.c: Likewise.
56391         * tests/test-isnanl.h: Likewise.
56392         * tests/test-ldexpl.c: Likewise.
56393         * tests/test-linked_list.c: Likewise.
56394         * tests/test-linkedhash_list.c: Likewise.
56395         * tests/test-locale.c: Likewise.
56396         * tests/test-localename.c: Likewise.
56397         * tests/test-lock.c: Likewise.
56398         * tests/test-lseek.c: Likewise.
56399         * tests/test-malloca.c: Likewise.
56400         * tests/test-math.c: Likewise.
56401         * tests/test-mbscasecmp.c: Likewise.
56402         * tests/test-mbscasestr1.c: Likewise.
56403         * tests/test-mbscasestr2.c: Likewise.
56404         * tests/test-mbscasestr3.c: Likewise.
56405         * tests/test-mbscasestr4.c: Likewise.
56406         * tests/test-mbschr.c: Likewise.
56407         * tests/test-mbscspn.c: Likewise.
56408         * tests/test-mbsncasecmp.c: Likewise.
56409         * tests/test-mbspbrk.c: Likewise.
56410         * tests/test-mbspcasecmp.c: Likewise.
56411         * tests/test-mbsrchr.c: Likewise.
56412         * tests/test-mbsspn.c: Likewise.
56413         * tests/test-mbsstr1.c: Likewise.
56414         * tests/test-mbsstr2.c: Likewise.
56415         * tests/test-mbsstr3.c: Likewise.
56416         * tests/test-md5.c: Likewise.
56417         * tests/test-memmem.c: Likewise.
56418         * tests/test-netinet_in.c: Likewise.
56419         * tests/test-open.c: Likewise.
56420         * tests/test-printf-frexp.c: Likewise.
56421         * tests/test-printf-frexpl.c: Likewise.
56422         * tests/test-printf-posix.c: Likewise.
56423         * tests/test-printf-posix.h: Likewise.
56424         * tests/test-rbtree_list.c: Likewise.
56425         * tests/test-rbtree_oset.c: Likewise.
56426         * tests/test-rbtreehash_list.c: Likewise.
56427         * tests/test-read-file.c: Likewise.
56428         * tests/test-rijndael.c: Likewise.
56429         * tests/test-search.c: Likewise.
56430         * tests/test-signbit.c: Likewise.
56431         * tests/test-sleep.c: Likewise.
56432         * tests/test-snprintf-posix.c: Likewise.
56433         * tests/test-snprintf-posix.h: Likewise.
56434         * tests/test-snprintf.c: Likewise.
56435         * tests/test-sprintf-posix.c: Likewise.
56436         * tests/test-sprintf-posix.h: Likewise.
56437         * tests/test-stat-time.c: Likewise.
56438         * tests/test-stdbool.c: Likewise.
56439         * tests/test-stdint.c: Likewise.
56440         * tests/test-stdio.c: Likewise.
56441         * tests/test-stdlib.c: Likewise.
56442         * tests/test-stpncpy.c: Likewise.
56443         * tests/test-strcasestr.c: Likewise.
56444         * tests/test-striconv.c: Likewise.
56445         * tests/test-striconveh.c: Likewise.
56446         * tests/test-striconveha.c: Likewise.
56447         * tests/test-string.c: Likewise.
56448         * tests/test-sys_select.c: Likewise.
56449         * tests/test-sys_socket.c: Likewise.
56450         * tests/test-sys_stat.c: Likewise.
56451         * tests/test-sys_time.c: Likewise.
56452         * tests/test-sysexits.c: Likewise.
56453         * tests/test-time.c: Likewise.
56454         * tests/test-tls.c: Likewise.
56455         * tests/test-trunc.c: Likewise.
56456         * tests/test-truncf.c: Likewise.
56457         * tests/test-truncl.c: Likewise.
56458         * tests/test-unistd.c: Likewise.
56459         * tests/test-vasnprintf-posix.c: Likewise.
56460         * tests/test-vasnprintf-posix2.c: Likewise.
56461         * tests/test-vasnprintf.c: Likewise.
56462         * tests/test-vasprintf-posix.c: Likewise.
56463         * tests/test-vasprintf.c: Likewise.
56464         * tests/test-verify.c: Likewise.
56465         * tests/test-vfprintf-posix.c: Likewise.
56466         * tests/test-vprintf-posix.c: Likewise.
56467         * tests/test-vsnprintf-posix.c: Likewise.
56468         * tests/test-vsnprintf.c: Likewise.
56469         * tests/test-vsprintf-posix.c: Likewise.
56470         * tests/test-wchar.c: Likewise.
56471         * tests/test-wctype.c: Likewise.
56472         * tests/test-wcwidth.c: Likewise.
56473         * tests/test-xstrtol.c: Likewise.
56474         * tests/test-xvasprintf.c: Likewise.
56475         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56476         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56477         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56478         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56479         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56480         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56481         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56482         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56483         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56484         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56485         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56486         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56487         * tests/uniname/test-uninames.c: Likewise.
56488         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56489         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56490         * tests/unistdio/test-u16-printf1.h: Likewise.
56491         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56492         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56493         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56494         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56495         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56496         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56497         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56498         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56499         * tests/unistdio/test-u32-printf1.h: Likewise.
56500         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56501         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56502         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56503         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56504         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56505         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56506         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56507         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56508         * tests/unistdio/test-u8-printf1.h: Likewise.
56509         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56510         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56511         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56512         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56513         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56514         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56515         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56516         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56517         * tests/unistdio/test-ulc-printf1.h: Likewise.
56518         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56519         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56520         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56521         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56522         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56523         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56524         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56525         * tests/uniwidth/test-u16-width.c: Likewise.
56526         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56527         * tests/uniwidth/test-u32-width.c: Likewise.
56528         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56529         * tests/uniwidth/test-u8-width.c: Likewise.
56530         * tests/uniwidth/test-uc_width.c: Likewise.
56531         * config/srclist-update: Likewise.
56532         (fixlicense): Update to GPLv3+.
56533
56534         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56535         * tests/test-tsearch.c: Change copyright notice.
56536
56537         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56538         * lib/c-strcaseeq.h: Change copyright notice.
56539         * lib/streq.h: Likewise.
56540         * lib/uniconv.h: Likewise.
56541         * lib/uniconv/u-conv-from-enc.h: Likewise.
56542         * lib/uniconv/u-conv-to-enc.h: Likewise.
56543         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56544         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56545         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56546         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56547         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56548         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56549         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56550         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56551         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56552         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56553         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56554         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56555         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56556         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56557         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56558         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56559         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56560         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56561         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56562         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56563         * lib/uniname.h: Likewise.
56564         * lib/uniname/uniname.c: Likewise.
56565         * lib/unistdio.h: Likewise.
56566         * lib/unistdio/u-asnprintf.h: Likewise.
56567         * lib/unistdio/u-asprintf.h: Likewise.
56568         * lib/unistdio/u-printf-args.c: Likewise.
56569         * lib/unistdio/u-printf-args.h: Likewise.
56570         * lib/unistdio/u-printf-parse.h: Likewise.
56571         * lib/unistdio/u-snprintf.h: Likewise.
56572         * lib/unistdio/u-sprintf.h: Likewise.
56573         * lib/unistdio/u-vasprintf.h: Likewise.
56574         * lib/unistdio/u-vsnprintf.h: Likewise.
56575         * lib/unistdio/u-vsprintf.h: Likewise.
56576         * lib/unistdio/u16-asnprintf.c: Likewise.
56577         * lib/unistdio/u16-asprintf.c: Likewise.
56578         * lib/unistdio/u16-printf-parse.c: Likewise.
56579         * lib/unistdio/u16-snprintf.c: Likewise.
56580         * lib/unistdio/u16-sprintf.c: Likewise.
56581         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56582         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56583         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56584         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56585         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56586         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56587         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56588         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56589         * lib/unistdio/u16-vasnprintf.c: Likewise.
56590         * lib/unistdio/u16-vasprintf.c: Likewise.
56591         * lib/unistdio/u16-vsnprintf.c: Likewise.
56592         * lib/unistdio/u16-vsprintf.c: Likewise.
56593         * lib/unistdio/u32-asnprintf.c: Likewise.
56594         * lib/unistdio/u32-asprintf.c: Likewise.
56595         * lib/unistdio/u32-printf-parse.c: Likewise.
56596         * lib/unistdio/u32-snprintf.c: Likewise.
56597         * lib/unistdio/u32-sprintf.c: Likewise.
56598         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56599         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56600         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56601         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56602         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56603         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56604         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56605         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56606         * lib/unistdio/u32-vasnprintf.c: Likewise.
56607         * lib/unistdio/u32-vasprintf.c: Likewise.
56608         * lib/unistdio/u32-vsnprintf.c: Likewise.
56609         * lib/unistdio/u32-vsprintf.c: Likewise.
56610         * lib/unistdio/u8-asnprintf.c: Likewise.
56611         * lib/unistdio/u8-asprintf.c: Likewise.
56612         * lib/unistdio/u8-printf-parse.c: Likewise.
56613         * lib/unistdio/u8-snprintf.c: Likewise.
56614         * lib/unistdio/u8-sprintf.c: Likewise.
56615         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56616         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56617         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56618         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56619         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56620         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56621         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56622         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56623         * lib/unistdio/u8-vasnprintf.c: Likewise.
56624         * lib/unistdio/u8-vasprintf.c: Likewise.
56625         * lib/unistdio/u8-vsnprintf.c: Likewise.
56626         * lib/unistdio/u8-vsprintf.c: Likewise.
56627         * lib/unistdio/ulc-asnprintf.c: Likewise.
56628         * lib/unistdio/ulc-asprintf.c: Likewise.
56629         * lib/unistdio/ulc-printf-parse.c: Likewise.
56630         * lib/unistdio/ulc-snprintf.c: Likewise.
56631         * lib/unistdio/ulc-sprintf.c: Likewise.
56632         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56633         * lib/unistdio/ulc-vasprintf.c: Likewise.
56634         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56635         * lib/unistdio/ulc-vsprintf.c: Likewise.
56636         * lib/unistr.h: Likewise.
56637         * lib/unistr/u-cpy-alloc.h: Likewise.
56638         * lib/unistr/u-cpy.h: Likewise.
56639         * lib/unistr/u-endswith.h: Likewise.
56640         * lib/unistr/u-move.h: Likewise.
56641         * lib/unistr/u-set.h: Likewise.
56642         * lib/unistr/u-startswith.h: Likewise.
56643         * lib/unistr/u-stpcpy.h: Likewise.
56644         * lib/unistr/u-stpncpy.h: Likewise.
56645         * lib/unistr/u-strcat.h: Likewise.
56646         * lib/unistr/u-strcpy.h: Likewise.
56647         * lib/unistr/u-strcspn.h: Likewise.
56648         * lib/unistr/u-strdup.h: Likewise.
56649         * lib/unistr/u-strlen.h: Likewise.
56650         * lib/unistr/u-strncat.h: Likewise.
56651         * lib/unistr/u-strncpy.h: Likewise.
56652         * lib/unistr/u-strnlen.h: Likewise.
56653         * lib/unistr/u-strpbrk.h: Likewise.
56654         * lib/unistr/u-strspn.h: Likewise.
56655         * lib/unistr/u-strstr.h: Likewise.
56656         * lib/unistr/u-strtok.h: Likewise.
56657         * lib/unistr/u16-check.c: Likewise.
56658         * lib/unistr/u16-chr.c: Likewise.
56659         * lib/unistr/u16-cmp.c: Likewise.
56660         * lib/unistr/u16-cpy-alloc.c: Likewise.
56661         * lib/unistr/u16-cpy.c: Likewise.
56662         * lib/unistr/u16-endswith.c: Likewise.
56663         * lib/unistr/u16-mblen.c: Likewise.
56664         * lib/unistr/u16-mbsnlen.c: Likewise.
56665         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56666         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56667         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56668         * lib/unistr/u16-mbtouc.c: Likewise.
56669         * lib/unistr/u16-mbtoucr.c: Likewise.
56670         * lib/unistr/u16-move.c: Likewise.
56671         * lib/unistr/u16-next.c: Likewise.
56672         * lib/unistr/u16-prev.c: Likewise.
56673         * lib/unistr/u16-set.c: Likewise.
56674         * lib/unistr/u16-startswith.c: Likewise.
56675         * lib/unistr/u16-stpcpy.c: Likewise.
56676         * lib/unistr/u16-stpncpy.c: Likewise.
56677         * lib/unistr/u16-strcat.c: Likewise.
56678         * lib/unistr/u16-strchr.c: Likewise.
56679         * lib/unistr/u16-strcmp.c: Likewise.
56680         * lib/unistr/u16-strcpy.c: Likewise.
56681         * lib/unistr/u16-strcspn.c: Likewise.
56682         * lib/unistr/u16-strdup.c: Likewise.
56683         * lib/unistr/u16-strlen.c: Likewise.
56684         * lib/unistr/u16-strmblen.c: Likewise.
56685         * lib/unistr/u16-strmbtouc.c: Likewise.
56686         * lib/unistr/u16-strncat.c: Likewise.
56687         * lib/unistr/u16-strncmp.c: Likewise.
56688         * lib/unistr/u16-strncpy.c: Likewise.
56689         * lib/unistr/u16-strnlen.c: Likewise.
56690         * lib/unistr/u16-strpbrk.c: Likewise.
56691         * lib/unistr/u16-strrchr.c: Likewise.
56692         * lib/unistr/u16-strspn.c: Likewise.
56693         * lib/unistr/u16-strstr.c: Likewise.
56694         * lib/unistr/u16-strtok.c: Likewise.
56695         * lib/unistr/u16-to-u32.c: Likewise.
56696         * lib/unistr/u16-to-u8.c: Likewise.
56697         * lib/unistr/u16-uctomb-aux.c: Likewise.
56698         * lib/unistr/u16-uctomb.c: Likewise.
56699         * lib/unistr/u32-check.c: Likewise.
56700         * lib/unistr/u32-chr.c: Likewise.
56701         * lib/unistr/u32-cmp.c: Likewise.
56702         * lib/unistr/u32-cpy-alloc.c: Likewise.
56703         * lib/unistr/u32-cpy.c: Likewise.
56704         * lib/unistr/u32-endswith.c: Likewise.
56705         * lib/unistr/u32-mblen.c: Likewise.
56706         * lib/unistr/u32-mbsnlen.c: Likewise.
56707         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56708         * lib/unistr/u32-mbtouc.c: Likewise.
56709         * lib/unistr/u32-mbtoucr.c: Likewise.
56710         * lib/unistr/u32-move.c: Likewise.
56711         * lib/unistr/u32-next.c: Likewise.
56712         * lib/unistr/u32-prev.c: Likewise.
56713         * lib/unistr/u32-set.c: Likewise.
56714         * lib/unistr/u32-startswith.c: Likewise.
56715         * lib/unistr/u32-stpcpy.c: Likewise.
56716         * lib/unistr/u32-stpncpy.c: Likewise.
56717         * lib/unistr/u32-strcat.c: Likewise.
56718         * lib/unistr/u32-strchr.c: Likewise.
56719         * lib/unistr/u32-strcmp.c: Likewise.
56720         * lib/unistr/u32-strcpy.c: Likewise.
56721         * lib/unistr/u32-strcspn.c: Likewise.
56722         * lib/unistr/u32-strdup.c: Likewise.
56723         * lib/unistr/u32-strlen.c: Likewise.
56724         * lib/unistr/u32-strmblen.c: Likewise.
56725         * lib/unistr/u32-strmbtouc.c: Likewise.
56726         * lib/unistr/u32-strncat.c: Likewise.
56727         * lib/unistr/u32-strncmp.c: Likewise.
56728         * lib/unistr/u32-strncpy.c: Likewise.
56729         * lib/unistr/u32-strnlen.c: Likewise.
56730         * lib/unistr/u32-strpbrk.c: Likewise.
56731         * lib/unistr/u32-strrchr.c: Likewise.
56732         * lib/unistr/u32-strspn.c: Likewise.
56733         * lib/unistr/u32-strstr.c: Likewise.
56734         * lib/unistr/u32-strtok.c: Likewise.
56735         * lib/unistr/u32-to-u16.c: Likewise.
56736         * lib/unistr/u32-to-u8.c: Likewise.
56737         * lib/unistr/u32-uctomb.c: Likewise.
56738         * lib/unistr/u8-check.c: Likewise.
56739         * lib/unistr/u8-chr.c: Likewise.
56740         * lib/unistr/u8-cmp.c: Likewise.
56741         * lib/unistr/u8-cpy-alloc.c: Likewise.
56742         * lib/unistr/u8-cpy.c: Likewise.
56743         * lib/unistr/u8-endswith.c: Likewise.
56744         * lib/unistr/u8-mblen.c: Likewise.
56745         * lib/unistr/u8-mbsnlen.c: Likewise.
56746         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56747         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56748         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56749         * lib/unistr/u8-mbtouc.c: Likewise.
56750         * lib/unistr/u8-mbtoucr.c: Likewise.
56751         * lib/unistr/u8-move.c: Likewise.
56752         * lib/unistr/u8-next.c: Likewise.
56753         * lib/unistr/u8-prev.c: Likewise.
56754         * lib/unistr/u8-set.c: Likewise.
56755         * lib/unistr/u8-startswith.c: Likewise.
56756         * lib/unistr/u8-stpcpy.c: Likewise.
56757         * lib/unistr/u8-stpncpy.c: Likewise.
56758         * lib/unistr/u8-strcat.c: Likewise.
56759         * lib/unistr/u8-strchr.c: Likewise.
56760         * lib/unistr/u8-strcmp.c: Likewise.
56761         * lib/unistr/u8-strcpy.c: Likewise.
56762         * lib/unistr/u8-strcspn.c: Likewise.
56763         * lib/unistr/u8-strdup.c: Likewise.
56764         * lib/unistr/u8-strlen.c: Likewise.
56765         * lib/unistr/u8-strmblen.c: Likewise.
56766         * lib/unistr/u8-strmbtouc.c: Likewise.
56767         * lib/unistr/u8-strncat.c: Likewise.
56768         * lib/unistr/u8-strncmp.c: Likewise.
56769         * lib/unistr/u8-strncpy.c: Likewise.
56770         * lib/unistr/u8-strnlen.c: Likewise.
56771         * lib/unistr/u8-strpbrk.c: Likewise.
56772         * lib/unistr/u8-strrchr.c: Likewise.
56773         * lib/unistr/u8-strspn.c: Likewise.
56774         * lib/unistr/u8-strstr.c: Likewise.
56775         * lib/unistr/u8-strtok.c: Likewise.
56776         * lib/unistr/u8-to-u16.c: Likewise.
56777         * lib/unistr/u8-to-u32.c: Likewise.
56778         * lib/unistr/u8-uctomb-aux.c: Likewise.
56779         * lib/unistr/u8-uctomb.c: Likewise.
56780         * lib/unitypes.h: Likewise.
56781         * lib/uniwidth.h: Likewise.
56782         * lib/uniwidth/cjk.h: Likewise.
56783         * lib/uniwidth/u16-strwidth.c: Likewise.
56784         * lib/uniwidth/u16-width.c: Likewise.
56785         * lib/uniwidth/u32-strwidth.c: Likewise.
56786         * lib/uniwidth/u32-width.c: Likewise.
56787         * lib/uniwidth/u8-strwidth.c: Likewise.
56788         * lib/uniwidth/u8-width.c: Likewise.
56789         * lib/uniwidth/width.c: Likewise.
56790
56791 2007-10-07  Bruno Haible  <bruno@clisp.org>
56792
56793         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56794         The file is still under LGPL (see modules/inttypes).
56795
56796 2007-10-06  Bruno Haible  <bruno@clisp.org>
56797
56798         * modules/trunc (Dependencies): Add 'extensions'.
56799         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56800         Reported by Ben Pfaff <blp@gnu.org>.
56801
56802 2007-10-06  Bruno Haible  <bruno@clisp.org>
56803
56804         * modules/freopen-tests: New file.
56805         * tests/test-freopen.c: New file.
56806
56807         * modules/fopen-tests: New file.
56808         * tests/test-fopen.c: New file.
56809
56810         * modules/fopen: New file.
56811         * lib/fopen.c: New file.
56812         * m4/fopen.m4: New file.
56813         * modules/freopen: New file.
56814         * lib/freopen.c: New file.
56815         * m4/freopen.m4: New file.
56816         * lib/stdio.in.h (fopen, freopen): New declarations.
56817         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56818         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56819         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56820         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56821         * doc/functions/fopen.texi: Mention the 'fopen' module.
56822         * doc/functions/freopen.texi: Mention the 'freopen' module.
56823
56824 2007-10-06  Bruno Haible  <bruno@clisp.org>
56825
56826         * modules/open-tests: New file.
56827         * tests/test-open.c: New file.
56828
56829         * modules/open: New file.
56830         * lib/open.c: New file.
56831         * m4/open.m4: New file.
56832         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56833         lib/open.c does.
56834         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56835         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56836         macros.
56837         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56838         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56839         REPLACE_OPEN.
56840         * doc/functions/open.texi: Mention the 'open' module.
56841
56842 2007-10-04  Bruno Haible  <bruno@clisp.org>
56843
56844         * modules/ceill-tests: New file.
56845         * tests/test-ceill.c: New file.
56846
56847         * modules/ceill: New file.
56848         * lib/ceill.c: Replace entire file.
56849         * m4/ceill.m4: New file.
56850         * lib/math.in.h (ceill): Replace declaration.
56851         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56852         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56853         * doc/functions/ceill.texi: Mention the 'ceill' module.
56854         * modules/mathl (Files): Remove lib/ceill.c.
56855         (Depends-on): Add ceill.
56856
56857 2007-10-04  Bruno Haible  <bruno@clisp.org>
56858
56859         * modules/ceilf-tests: New file.
56860         * tests/test-ceilf.c: New file.
56861
56862         * modules/ceilf: New file.
56863         * lib/ceil.c: New file.
56864         * lib/ceilf.c: New file.
56865         * m4/ceilf.m4: New file.
56866         * lib/math.in.h (ceilf): New declaration.
56867         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56868         HAVE_DECL_CEILF.
56869         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56870         HAVE_DECL_CEILF.
56871         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56872
56873 2007-10-04  Bruno Haible  <bruno@clisp.org>
56874
56875         * modules/floorl-tests: New file.
56876         * tests/test-floorl.c: New file.
56877
56878         * modules/floorl: New file.
56879         * lib/floorl.c: Replace entire file.
56880         * m4/floorl.m4: New file.
56881         * lib/math.in.h (floorl): Replace declaration.
56882         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56883         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56884         * doc/functions/floorl.texi: Mention the 'floorl' module.
56885         * modules/mathl (Files): Remove lib/floorl.c.
56886         (Depends-on): Add floorl.
56887
56888 2007-10-04  Bruno Haible  <bruno@clisp.org>
56889
56890         * modules/floorf-tests: New file.
56891         * tests/test-floorf.c: New file.
56892
56893         * modules/floorf: New file.
56894         * lib/floor.c: New file.
56895         * lib/floorf.c: New file.
56896         * m4/floorf.m4: New file.
56897         * lib/math.in.h (floorf): New declaration.
56898         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56899         HAVE_DECL_FLOORF.
56900         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56901         HAVE_DECL_FLOORF.
56902         * doc/functions/floorf.texi: Mention the 'floorf' module.
56903
56904 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56905             Bruno Haible  <bruno@clisp.org>
56906
56907         Advertise for the Git server instead of the CVS server.
56908         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56909         repository instead of the CVS one.
56910         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56911         about all VCS systems generically.
56912         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56913
56914 2007-10-04  Bruno Haible  <bruno@clisp.org>
56915
56916         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56917         means.
56918         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56919
56920 2007-10-04  Bruno Haible  <bruno@clisp.org>
56921
56922         * modules/truncl-tests: New file.
56923         * tests/test-truncl.c: New file.
56924
56925         * modules/truncl: New file.
56926         * lib/truncl.c: New file.
56927         * m4/truncl.m4: New file.
56928         * lib/math.in.h (truncl): New declaration.
56929         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56930         HAVE_DECL_TRUNCL.
56931         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56932         HAVE_DECL_TRUNCL.
56933         * doc/functions/truncl.texi: Mention the 'truncl' module.
56934
56935 2007-10-04  Bruno Haible  <bruno@clisp.org>
56936
56937         * modules/truncf-tests: New file.
56938         * tests/test-truncf.c: New file.
56939
56940         * modules/truncf: New file.
56941         * lib/trunc.c: Make paramerizable through USE_* macros.
56942         * lib/truncf.c: New file.
56943         * m4/truncf.m4: New file.
56944         * lib/math.in.h (truncf): New declaration.
56945         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56946         HAVE_DECL_TRUNCF.
56947         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56948         HAVE_DECL_TRUNCF.
56949         * doc/functions/truncf.texi: Mention the 'truncf' module.
56950
56951 2007-10-03  Bruno Haible  <bruno@clisp.org>
56952
56953         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56954         augmentation also for tests modules.
56955         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56956         * modules/atexit-tests (Makefile.am): Likewise.
56957         * modules/binary-io-tests (Makefile.am): Likewise.
56958         * modules/c-strcase-tests (Makefile.am): Likewise.
56959         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56960         * modules/canonicalize-tests (Makefile.am): Likewise.
56961         * modules/closein-tests (Makefile.am): Likewise.
56962         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56963         * modules/freadahead-tests (Makefile.am): Likewise.
56964         * modules/fseek-tests (Makefile.am): Likewise.
56965         * modules/fseeko-tests (Makefile.am): Likewise.
56966         * modules/ftell-tests (Makefile.am): Likewise.
56967         * modules/ftello-tests (Makefile.am): Likewise.
56968         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56969         * modules/isnanl-tests (Makefile.am): Likewise.
56970         * modules/lseek-tests (Makefile.am): Likewise.
56971         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56972         * modules/mbscasestr-tests (Makefile.am): Likewise.
56973         * modules/mbschr-tests (Makefile.am): Likewise.
56974         * modules/mbscspn-tests (Makefile.am): Likewise.
56975         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56976         * modules/mbspbrk-tests (Makefile.am): Likewise.
56977         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56978         * modules/mbsrchr-tests (Makefile.am): Likewise.
56979         * modules/mbsspn-tests (Makefile.am): Likewise.
56980         * modules/mbsstr-tests (Makefile.am): Likewise.
56981         * modules/printf-posix-tests (Makefile.am): Likewise.
56982         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56983         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56984         * modules/tsearch-tests (Makefile.am): Likewise.
56985         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56986         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56987         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56988         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56989         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56990         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56991         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56992         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56993         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56994         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56995         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56996         * modules/xstrtol-tests (Makefile.am): Likewise.
56997         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56998         * modules/yesno-tests (Makefile.am): Likewise.
56999
57000 2007-10-03  Bruno Haible  <bruno@clisp.org>
57001
57002         * modules/trunc-tests: New file.
57003         * tests/test-trunc.c: New file.
57004
57005         * modules/trunc: New file.
57006         * lib/trunc.c: New file.
57007         * m4/trunc.m4: New file.
57008         * lib/math.in.h (trunc): New declaration.
57009         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
57010         HAVE_DECL_TRUNC.
57011         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
57012         HAVE_DECL_TRUNC.
57013         * doc/functions/trunc.texi: Mention the 'trunc' module.
57014
57015 2007-10-03  Bruno Haible  <bruno@clisp.org>
57016
57017         * tests/test-fpending.c: New file, mostly copied
57018         from coreutils/lib/t-fpending.c.
57019         * modules/fpending-tests: New file.
57020
57021 2007-10-03  Bruno Haible  <bruno@clisp.org>
57022
57023         Port the stdio extensions to QNX (untested).
57024         * lib/fseterr.c (fseterr): Add support for QNX.
57025         * lib/fbufmode.c (fbufmode): Likewise.
57026         * lib/freadable.c (freadable): Likewise.
57027         * lib/fwritable.c (fwritable): Likewise.
57028         * lib/freading.c (freading): Likewise.
57029         * lib/fwriting.c (fwriting): Likewise.
57030         * lib/freadahead.c (freadahed): Likewise.
57031         * lib/fpurge.c (fpurge): Likewise.
57032         * lib/fseeko.c (rpl_fseeko): Likewise.
57033
57034 2007-10-03  Bruno Haible  <bruno@clisp.org>
57035             Jim Meyering  <jim@meyering.net>
57036             Eric Blake  <ebb9@byu.net>
57037
57038         * doc/relocatable.texi: Use @command instead of @program.
57039
57040 2007-10-02  Jim Meyering  <jim@meyering.net>
57041
57042         Perform one more "_.h" -> ".in.h" substitution.
57043         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
57044         instead of unistd_.h here, too.
57045
57046 2007-10-01  Bruno Haible  <bruno@clisp.org>
57047
57048         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
57049         Needed for the alloca-opt module.
57050
57051 2007-09-30  Bruno Haible  <bruno@clisp.org>
57052
57053         * lib/alloca.in.h: Renamed from lib/alloca_.h.
57054         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
57055         alloca_.h.
57056         * lib/argz.in.h: Renamed from lib/argz_.h.
57057         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
57058         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
57059         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
57060         byteswap_.h.
57061         * lib/dirent.in.h: Renamed from lib/dirent_.h.
57062         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
57063         dirent_.h.
57064         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
57065         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
57066         fcntl_.h.
57067         * lib/float.in.h: Renamed from lib/float_.h.
57068         * modules/float (Files, Makefile.am): Use float.in.h instead of
57069         float_.h.
57070         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
57071         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
57072         fnmatch_.h.
57073         * lib/getopt.in.h: Renamed from lib/getopt_.h.
57074         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
57075         getopt_.h.
57076         * lib/glob.in.h: Renamed from lib/glob_.h.
57077         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
57078         * lib/iconv.in.h: Renamed from lib/iconv_.h.
57079         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
57080         iconv_.h.
57081         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
57082         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
57083         inttypes_.h.
57084         * lib/locale.in.h: Renamed from lib/locale_.h.
57085         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
57086         locale_.h.
57087         * lib/math.in.h: Renamed from lib/math_.h.
57088         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
57089         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
57090         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
57091         of netinet_in_.h. Add dependency.
57092         * lib/poll.in.h: Renamed from lib/poll_.h.
57093         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
57094         * lib/search.in.h: Renamed from lib/search_.h.
57095         * modules/search (Files, Makefile.am): Use search.in.h instead of
57096         search_.h.
57097         * lib/signal.in.h: Renamed from lib/signal_.h.
57098         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
57099         _signal.h.
57100         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
57101         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
57102         stdbool_.h.
57103         * lib/stdint.in.h: Renamed from lib/stdint_.h.
57104         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
57105         stdint_.h.
57106         * lib/stdio.in.h: Renamed from lib/stdio_.h.
57107         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
57108         stdio_.h.
57109         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
57110         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
57111         stdlib_.h.
57112         * lib/string.in.h: Renamed from lib/string_.h.
57113         * modules/string (Files, Makefile.am): Use string.in.h instead of
57114         string_.h.
57115         * doc/gnulib-tool.texi (Initial import): Update.
57116         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
57117         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
57118         of sys_select_.h. Add dependency.
57119         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
57120         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
57121         of sys_socket_.h.
57122         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
57123         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
57124         sys_stat_.h.
57125         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
57126         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
57127         sys_time_.h.
57128         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
57129         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
57130         sysexits_.h.
57131         * lib/time.in.h: Renamed from lib/time_.h.
57132         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
57133         * lib/unistd.in.h: Renamed from lib/unistd_.h.
57134         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
57135         unistd_.h.
57136         * lib/wchar.in.h: Renamed from lib/wchar_.h.
57137         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
57138         wchar_.h.
57139         * lib/wctype.in.h: Renamed from lib/wctype_.h.
57140         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
57141         wctype_.h.
57142         * build-aux/bootstrap (slurp): Update.
57143         * lib/.cppi-disable: Update.
57144
57145 2007-09-30  Bruno Haible  <bruno@clisp.org>
57146
57147         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
57148         Needed on BeOS.
57149
57150 2007-09-30  Bruno Haible  <bruno@clisp.org>
57151
57152         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
57153
57154 2007-09-29  Bruno Haible  <bruno@clisp.org>
57155
57156         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
57157
57158 2007-09-29  Bruno Haible  <bruno@clisp.org>
57159
57160         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
57161         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
57162         * build-aux/install-reloc: Compile also areadlink.c.
57163         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
57164
57165 2007-09-29  Bruno Haible  <bruno@clisp.org>
57166
57167         * gnulib-tool (func_emit_initmacro_done): Indentation.
57168
57169 2007-09-29  Bruno Haible  <bruno@clisp.org>
57170
57171         * README: Add CVS checkout update instructions.
57172         Info from Bob Proulx <bob@proulx.com>.
57173
57174 2007-09-28  Eric Blake  <ebb9@byu.net>
57175
57176         Provide move-if-change.
57177         * build-aux/move-if-change: New file, based on best practice
57178         rather than any canonical upstream location.
57179
57180 2007-09-28  Jim Meyering  <jim@meyering.net>
57181
57182         Fix canonicalize loop-detection corner case.
57183         Do not attempt to stat the symlink values stored via seen_triple.
57184         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
57185         on linux-2.6.18, (but not 2.6.22).
57186         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
57187         triple_compare.  The former compares dev,ino,filename, while the latter
57188         would actually stat dirname(filename) when dev and ino were equal.
57189         * lib/hash-triple.c: Install <string.h>.
57190         (STREQ): Define.
57191         (triple_compare_ino_str): New function.
57192         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
57193
57194 2007-09-28  Eric Blake  <ebb9@byu.net>
57195
57196         Enforce that AC_REPLACE_FUNCS files exist.
57197         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
57198         override check for typos.
57199
57200         Fix test-closein on Solaris 10.
57201         * tests/test-closein.c (main): Don't assume stdin can be inherited
57202         closed on all systems.
57203         * tests/test-closein.sh: Likewise.
57204         Reported by Piotr Tarnowski.
57205
57206 2007-09-28  Jim Meyering  <jim@meyering.net>
57207
57208         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
57209
57210 2007-09-27  Jim Meyering  <jim@meyering.net>
57211
57212         canonicalize: Avoid a false-positive cycle failure.
57213         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
57214         Sort.  Remove cycle-check.
57215         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
57216         not cycle-check.h.
57217         (seen_triple): New function.
57218         (canonicalize_filename_mode): Use it instead of cycle-check.
57219         * tests/test-canonicalize.c: Add a test for this bug.
57220         * tests/test-canonicalize.sh: Set up and run the test.
57221
57222         New module, file-set, from coreutils.
57223         * modules/file-set: Define it.
57224         * lib/file-set.c, lib/file-set.h: Implement.
57225
57226         New module, hash-triple, from coreutils.
57227         * modules/hash-triple: Define it.
57228         * lib/hash-triple.c, lib/hash-triple.h: Implement.
57229
57230 2007-09-25  Eric Blake  <ebb9@byu.net>
57231
57232         Fix strerror on Interix.
57233         * lib/string_.h (strerror): Declare replacement.
57234         * doc/functions/strerror.texi (strerror): Document the Interix
57235         shortcoming.
57236         * modules/string (Makefile.am): Support new hooks.
57237         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
57238         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
57239         gl_FUNC_STRERROR_SEPARATE.
57240         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
57241         * lib/strerror.c (rpl_strerror): Provide replacement.
57242         * modules/strerror (Depends-on): Add string.
57243         (configure.ac): Detect use of module.
57244         * tests/test-strerror.c: New file.
57245         * modules/strerror-tests: New test module.
57246         * modules/argp (Depends-on): Add strerror.
57247         * modules/error (Depends-on): Likewise.
57248         Reported by Martin Koeppe.
57249
57250 2007-09-24  Bruno Haible  <bruno@clisp.org>
57251
57252         * README: Update git instructions.
57253
57254 2007-09-24  Eric Blake  <ebb9@byu.net>
57255
57256         Revert fpending breakage from 2007-09-08.
57257         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
57258         __fpending.c.
57259
57260 2007-09-24  Jim Meyering  <jim@meyering.net>
57261
57262         filenamecat.c: Add a test.
57263         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
57264         showing how the function works when DIR is the empty string.
57265
57266 2007-09-21  Simon Josefsson  <simon@josefsson.org>
57267
57268         * tests/test-canonicalize.sh: Turn on executable bit.
57269
57270 2007-09-19  Eric Blake  <ebb9@byu.net>
57271
57272         * README: Update CVS instructions.
57273
57274 2007-09-18  Bruno Haible  <bruno@clisp.org>
57275
57276         * modules/areadlink: New file.
57277         * lib/areadlink.h (areadlink): New declaration.
57278         * lib/areadlink.c: New file, based on lib/xreadlink.c.
57279
57280 2007-09-17  Jim Meyering  <jim@meyering.net>
57281
57282         * lib/savewd.c (ESTALE) [!defined]: Define.
57283         Reported to be required on Interix by Martin Koeppe.
57284
57285 2007-09-17  Bruno Haible  <bruno@clisp.org>
57286
57287         * gnulib-tool (func_version): Use $version.
57288
57289 2007-09-16  Bruno Haible  <bruno@clisp.org>
57290
57291         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
57292         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
57293         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
57294         Reported by Greg Schafer <gschafer@zip.com.au>.
57295
57296 2007-09-15  Bruno Haible  <bruno@clisp.org>
57297
57298         * gnulib-tool (sed): Try a little harder to make bash understand the
57299         alias.
57300         Reported by Bruce Korb <bruce.korb@gmail.com>.
57301
57302 2007-09-13  Eric Blake  <ebb9@byu.net>
57303
57304         * ChangeLog: Remove conflict markers.
57305
57306 2007-09-13  Simon Josefsson  <simon@josefsson.org>
57307
57308         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
57309         Reported by Bruno Haible <bruno@clisp.org>.
57310
57311 2007-09-12  Bruno Haible  <bruno@clisp.org>
57312
57313         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
57314         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
57315         is not defined.
57316
57317 2007-09-12  Eric Blake  <ebb9@byu.net>
57318
57319         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
57320         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
57321         Autoconf definition.
57322         * modules/euidaccess (Depends-on): Add extensions, for
57323         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
57324         * modules/fnmatch (Depends-on): Likewise.
57325         * modules/getaddrinfo (Depends-on): Likewise.
57326         * modules/getdelim (Depends-on): Likewise.
57327         * modules/getline (Depends-on): Likewise.
57328         * modules/getsubopt (Depends-on): Likewise.
57329         * modules/gettext (Depends-on): Likewise.
57330         * modules/group-member (Depends-on): Likewise.
57331         * modules/mbchar (Depends-on): Likewise.
57332         * modules/memmem (Depends-on): Likewise.
57333         * modules/mempcpy (Depends-on): Likewise.
57334         * modules/memrchr (Depends-on): Likewise.
57335         * modules/pagealign_alloc (Depends-on): Likewise.
57336         * modules/readutmp (Depends-on): Likewise.
57337         * modules/stpcpy (Depends-on): Likewise.
57338         * modules/stpncpy (Depends-on): Likewise.
57339         * modules/strchrnul (Depends-on): Likewise.
57340         * modules/strndup (Depends-on): Likewise.
57341         * modules/strsep (Depends-on): Likewise.
57342         * modules/strverscmp (Depends-on): Likewise.
57343         * modules/vasprintf (Depends-on): Likewise.
57344         * modules/wcwidth (Depends-on): Likewise.
57345         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
57346         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
57347         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
57348         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
57349         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57350         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57351         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
57352         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57353         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
57354         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57355         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57356         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57357         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57358         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57359         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57360         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57361         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57362         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57363         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57364         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57365         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57366         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57367         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57368         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57369         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57370         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57371         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57372         so that lock.m4 can be used in gettext without extensions module.
57373
57374 2007-09-11  Bruno Haible  <bruno@clisp.org>
57375
57376         * m4/isc-posix.m4: Remove file.
57377         Suggested by Eric Blake.
57378
57379 2007-09-11  Eric Blake  <ebb9@byu.net>
57380
57381         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57382
57383 2007-09-10  Bruno Haible  <bruno@clisp.org>
57384
57385         * posix-modules: Fix typo in error message.
57386         Reported by Matt <mkraai@beckman.com>.
57387
57388 2007-09-09  Bruno Haible  <bruno@clisp.org>
57389
57390         * doc/functions/getdelim.texi: Update list of platforms lacking the
57391         function.
57392         * doc/functions/getline.texi: Likewise.
57393
57394 2007-09-09  Jim Meyering  <jim@meyering.net>
57395
57396         * lib/hash.c (hash_initialize): Detect calloc failure.
57397         Reported by Bruno Haible.
57398
57399 2007-09-09  Bruno Haible  <bruno@clisp.org>
57400
57401         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
57402         malloc or realloc fails.
57403
57404 2007-09-09  Bruno Haible  <bruno@clisp.org>
57405
57406         * modules/getcwd (Depends-on): Add malloc-posix.
57407         * modules/glob (Depends-on): Likewise.
57408         * modules/putenv (Depends-on): Likewise.
57409         * modules/strdup (Depends-on): Likewise.
57410         * modules/getdelim (Depends-on): Add realloc-posix.
57411         * modules/read-file (Depends-on): Likewise.
57412
57413 2007-09-09  Bruno Haible  <bruno@clisp.org>
57414
57415         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
57416         (gl_FUNC_MALLOC_POSIX): Require it.
57417         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
57418         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
57419         * modules/realloc (Files): Add m4/malloc.m4.
57420         * modules/calloc (Files): Likewise.
57421
57422 2007-09-09  Bruno Haible  <bruno@clisp.org>
57423
57424         * modules/malloc-posix: New file.
57425         * modules/malloc (Depends-on): Add malloc-posix.
57426         * lib/malloc.c: Include errno.h.
57427         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
57428         and a POSIX-compatible malloc into a single function. Set ENOMEM
57429         when returning NULL.
57430         * m4/malloc.m4: New file.
57431         * doc/functions/malloc.texi: Mention the malloc-posix module.
57432         * lib/stdlib_.h (malloc): New declaration.
57433         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57434         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
57435         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
57436         and HAVE_MALLOC_POSIX.
57437
57438 2007-09-09  Bruno Haible  <bruno@clisp.org>
57439
57440         * modules/realloc-posix: New file.
57441         * modules/realloc (Depends-on): Add realloc-posix.
57442         * lib/realloc.c: Include errno.h.
57443         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
57444         and a POSIX-compatible realloc into a single function. Set ENOMEM
57445         when returning NULL.
57446         * m4/realloc.m4: New file.
57447         * doc/functions/realloc.texi: Mention the realloc-posix module.
57448         * lib/stdlib_.h (realloc): New declaration.
57449         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57450         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
57451         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
57452         and HAVE_REALLOC_POSIX.
57453
57454 2007-09-09  Bruno Haible  <bruno@clisp.org>
57455
57456         * modules/calloc-posix: New file.
57457         * modules/calloc (Depends-on): Add calloc-posix.
57458         * lib/calloc.c: Include errno.h.
57459         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
57460         and a POSIX-compatible calloc into a single function. Set ENOMEM
57461         when returning NULL.
57462         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
57463         * doc/functions/calloc.texi: Mention the calloc-posix module.
57464         * lib/stdlib_.h (calloc): New declaration.
57465         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57466         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
57467         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
57468         and HAVE_CALLOC_POSIX.
57469
57470 2007-09-09  Bruno Haible  <bruno@clisp.org>
57471
57472         Allow for modules to show an arbitrary notice.
57473         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57474         * gnulib-tool: New option --extract-notice.
57475         (func_usage): Document it.
57476         (sed_extract_prog): Update.
57477         (func_get_notice): New function.
57478         (func_modules_notice): New function.
57479         (func_import, func_create_testdir): Invoke it.
57480         Suggested by Jim Meyering.
57481
57482 2007-09-09  Bruno Haible  <bruno@clisp.org>
57483
57484         * gnulib-tool: New options --verbose, --quiet.
57485         (func_usage): Document them.
57486         (verbose): New variable.
57487         (func_execute_command): New function.
57488         (func_import): Don't show the module list and the file list if
57489         $verbose < 0.
57490         (func_create_testdir): Likewise. Use func_execute_command.
57491         (func_create_megatestdir): Use func_execute_command.
57492
57493 2007-09-08  Bruno Haible  <bruno@clisp.org>
57494
57495         * gnulib-tool (func_import): Prefer rsync over wget when available,
57496         for fetching the PO files.
57497
57498 2007-09-08  Bruno Haible  <bruno@clisp.org>
57499
57500         * posix-modules: New file. Portions copied from gnulib-tool.
57501         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57502
57503 2007-09-08  Jim Meyering  <jim@meyering.net>
57504
57505         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57506         * lib/fpending.h: Rename from __fpending.h.
57507         * lib/fpending.c: Rename from __fpending.c.
57508         Include "fpending.h", not "__fpending.h".
57509         * lib/__fpending.h, lib/__fpending.c: Remove files.
57510         * modules/fpending (Files): Reflect new file names.
57511         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57512
57513 2007-09-08  Bruno Haible  <bruno@clisp.org>
57514
57515         * m4/inttypes-h.m4: Remove stub file.
57516
57517 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57518
57519         * doc/headers/stdint.texi: Discuss #include_next issue.
57520
57521 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57522
57523         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57524
57525 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57526
57527         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57528         in variable name.
57529
57530 2007-09-03  Jim Meyering  <jim@meyering.net>
57531
57532         New module: git-version-gen.
57533         * modules/git-version-gen: New file.
57534
57535         Import changes from coreutils for bootstrap script.
57536
57537         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57538
57539         bootstrap: uses rsync to download the .po files
57540         * build-aux/bootstrap (po_download_command_format): New global.
57541         (download_po_files): Use rsync.
57542         (update_po_files): Don't remove .po files after download,
57543         so future rsync runs can take advantage of the copies.
57544
57545         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57546
57547         Solve the unnecessary-.po-file-regeneration problem once and for all.
57548         * build-aux/bootstrap (download_po_files): New function, renamed from
57549         get_translations.  Now, downloads, but doesn't update LINGUAS.
57550         (update_po_files): New function.
57551
57552         bootstrap: Ignore more.
57553         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57554         uniwidth to e.g., lib/.gitignore.
57555         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57556
57557         * build-aux/bootstrap: New setting: vc_ignore.
57558         (insert_sorted_if_absent): Create $file if absent.
57559         Adapt to new, possibly empty, list: $vc_ignore.
57560
57561         bootstrap: generate more ignorable names
57562         * build-aux/bootstrap (slurp): When generating ignorable names,
57563         also map .sin to .sed, .gperf to .c, and .y to .c.
57564
57565 2007-09-03  Jim Meyering  <jim@meyering.net>
57566
57567         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57568         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57569
57570 2007-09-02  Bruno Haible  <bruno@clisp.org>
57571
57572         Fix mis-recognition of 'mcs' on QNX 6.
57573         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57574         output contains the string "Mono".
57575         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57576         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57577
57578 2007-09-01  Bruno Haible  <bruno@clisp.org>
57579
57580         Fix collision between uniwidth/* and linebreak modules.
57581         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57582         u32_width): Remove declarations.
57583         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57584         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57585         streq3, streq2, streq1, streq0): Remove functions.
57586         (STREQ): Remove macro.
57587         (is_cjk_encoding): Remove function.
57588         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57589         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57590         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57591         * NEWS: Document the change.
57592
57593 2007-09-01  Bruno Haible  <bruno@clisp.org>
57594
57595         * lib/streq.h: Add double-inclusion guard.
57596
57597 2007-09-01  Karl Berry  <karl@gnu.org>
57598
57599         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57600
57601 2007-08-28  Jim Meyering  <jim@meyering.net>
57602
57603         Rename mreadlink_with_size to areadlink_with_size.
57604         * NEWS: Document the change.
57605         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57606         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57607         * lib/mreadlink.h: Rename this to...
57608         * lib/areadlink.h: ...this.
57609         * modules/mreadlink-with-size: Rename this to...
57610         * modules/areadlink-with-size: ...this.
57611         * lib/canonicalize.c: Reflect the renaming.
57612         * modules/canonicalize: Likewise.
57613
57614 2007-08-26  Bruno Haible  <bruno@clisp.org>
57615
57616         * gnulib-tool (func_import): When deciding which files to remove,
57617         consider also dangling symbolic links.
57618         Reported by Eric Blake.
57619
57620 2007-08-26  Bruno Haible  <bruno@clisp.org>
57621
57622         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57623
57624 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57625
57626         * lib/readline.c: Don't include getline.h, the prototype is now
57627         found in stdio.h.
57628
57629 2007-08-23  Jim Meyering  <jim@meyering.net>
57630
57631         Getdelim touchup.
57632         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57633         around the funlockfile call, since funlockfile never sets errno.
57634         Don't set errno upon failed realloc.
57635
57636 2007-08-22  Eric Blake  <ebb9@byu.net>
57637
57638         Getline touchups.
57639         * lib/getdelim.c (getdelim): Revert regression that required *n to
57640         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57641         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57642         getdelim, rather than whether implementation is missing.
57643         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57644         * lib/stdio_.h (getline): Also declare if replacement is
57645         required.
57646         * doc/functions/getdelim.texi: New file.
57647         * doc/functions/getline.texi: Likewise.
57648         * doc/gnulib.texi (Function Substitutes): Add new files.
57649         Reported by Bruno Haible.
57650
57651 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57652
57653         * users.txt: Add Guile.
57654
57655 2007-08-22  Eric Blake  <ebb9@byu.net>
57656
57657         * tests/test-getdelim.c (main): Use remove, not unlink.
57658         * tests/test-getline.c (main): Likewise.
57659
57660         Move getline and getdelim into stdio.h, per POSIX 200x.
57661         * modules/getline (Files): Remove getline.h.
57662         (Depends-on): Add stdio.
57663         (configure.ac): Add module indicator.
57664         * modules/getdelim (Files): Remove getdelim.h.
57665         (Depends-on): Add stdio.
57666         (configure.ac): Add module indicator.
57667         * modules/stdio (Makefile.am): Work with new indicators.
57668         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57669         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57670         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57671         * lib/getdelim.h: Delete.
57672         * lib/getline.h: Delete.
57673         * lib/stdio_.h (getdelim, getline): Declare.
57674         * modules/getdelim-tests: New module.
57675         * modules/getline-tests: Likewise.
57676         * tests/test-getdelim.c: New file.
57677         * tests/test-getline.c: Likewise.
57678         * NEWS: Document the change.
57679         * lib/getline.c: Update choice of header.
57680         * lib/csharpcomp.c: Likewise.
57681         * lib/getpass.c: Likewise.
57682         * lib/javacomp.c: Likewise.
57683         * lib/javaversion.c: Likewise.
57684         * lib/yesno.c: Likewise.
57685         * lib/getdelim.c: Likewise.
57686         (getdelim): Set errno on failure, and avoid memory leak.
57687
57688 2007-08-19  Bruno Haible  <bruno@clisp.org>
57689
57690         * modules/closein (Depends-on): Add freadahead.
57691         * lib/closein.c: Include freadahead.h.
57692         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57693         is zero.
57694
57695 2007-08-19  Bruno Haible  <bruno@clisp.org>
57696
57697         * modules/freadahead-tests: New file.
57698         * tests/test-freadahead.sh: New file.
57699         * tests/test-freadahead.c: New file.
57700
57701         * modules/freadahead: New file.
57702         * lib/freadahead.h: New file.
57703         * lib/freadahead.c: New file.
57704         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57705         fbufmode, fpurge, freadable, fwritable.
57706
57707 2007-08-19  Eric Blake  <ebb9@byu.net>
57708
57709         Test yesno in combination with closein.
57710         * lib/yesno.c (yesno): Document use of stdin.
57711         * modules/yesno-tests (Files): New module.
57712         * tests/test-yesno.c (main): New file.
57713         * tests/test-yesno.sh: Likewise.
57714
57715 2007-08-19  Bruno Haible  <bruno@clisp.org>
57716
57717         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57718         * lib/fseeko.c (rpl_fseeko): Likewise.
57719         * lib/fseterr.c (fseterr): Likewise.
57720
57721 2007-08-19  Bruno Haible  <bruno@clisp.org>
57722
57723         * tests/test-lseek.c (main): Disable a test for BeOS.
57724         * doc/functions/lseek.texi: Document the BeOS bug.
57725
57726 2007-08-19  Bruno Haible  <bruno@clisp.org>
57727             Eric Blake  <ebb9@byu.net>
57728
57729         * lib/lseek.c: Include <sys/stat.h>.
57730         (rpl_lseek): Add workaround code also for Unix platforms.
57731         Needed for BeOS.
57732         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57733         * doc/functions/lseek.texi: Document BeOS definiency.
57734
57735 2007-08-18  Bruno Haible  <bruno@clisp.org>
57736
57737         * modules/fstrcmp-tests: New file.
57738         * tests/test-fstrcmp.c: New file.
57739
57740 2007-08-18  Bruno Haible  <bruno@clisp.org>
57741
57742         * modules/fstrcmp: New file, from GNU gettext with modifications.
57743         * lib/fstrcmp.h: New file, from GNU gettext.
57744         * lib/fstrcmp.c: New file, from GNU gettext.
57745         * MODULES.html.sh (String handling): Add fstrcmp.
57746
57747 2007-08-18  Bruno Haible  <bruno@clisp.org>
57748
57749         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57750         'bool'.
57751         (diag, compareseq): Remove const from the ctxt argument.
57752         (USE_HEURISTIC): Undefine at the end.
57753
57754 2007-08-18  Jim Meyering  <jim@meyering.net>
57755
57756         New file: lib/idcache.h
57757         * NEWS: Mention the addition.
57758         * modules/idcache (Files): Add lib/idcache.h
57759         * lib/idcache.c: Include "idcache.h".
57760         Don't include <sys/types.h>.
57761         Add a FIXME comment.
57762         Move file-scoped "static" declarations to the top.
57763         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57764
57765 2007-08-17  Bruno Haible  <bruno@clisp.org>
57766         and Paul Eggert  <eggert@cs.ucla.edu>
57767
57768         * MODULES.html.sh: Add diffseq.
57769         * modules/diffseq: New file.
57770         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57771         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57772
57773 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57774
57775         Import changes from coreutils for bootstrap script.
57776
57777         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57778
57779         * build-aux/bootstrap (slurp): Work even in environments where
57780         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57781         current code does not slurp files whose names start with ".", and
57782         this looks like it might be a troublesome area.
57783
57784         2007-07-11  Jim Meyering  <jim@meyering.net>
57785
57786         If there's a GPL vN copyright comment, require that N == 3.
57787
57788         2007-07-08  Jim Meyering  <jim@meyering.net>
57789
57790         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57791         * build-aux/bootstrap (mam_template): Move definition out of loop.
57792
57793         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57794
57795         * build-aux/bootstrap (symlink_to_dir): Rename function from
57796         symlink_to_gnulib.  Add a directory parameter.  Update all
57797         callers.
57798         (cp_mark_as_generated): Also check for -- and link to -- files in
57799         gl/.
57800
57801         2007-07-08  Jim Meyering  <jim@meyering.net>
57802
57803         Adapt to deeper hierarchy in gnulib.
57804         * build-aux/bootstrap (symlink_to_dir): If the destination
57805         directory doesn't exist, create it. This is required at least for
57806         "lib/uniwidth/cjk.h".
57807
57808         2007-05-15  Jim Meyering  <jim@meyering.net>
57809
57810         * build-aux/bootstrap: Now that generated Makefile.am files
57811         are no longer under version control, they must be created at
57812         bootstrap time.
57813
57814 2007-08-14  Ben Pfaff  <blp@gnu.org>
57815
57816         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57817
57818 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57819
57820         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57821         given the changes below.
57822         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57823         even on hosts that have padding bits beyond the supported 64.
57824
57825 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57826
57827         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57828         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57829         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57830         depends on it.
57831         (xstrtol_error): Remove.
57832         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57833         but with a different signature.
57834         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57835         * lib/xstrtol-error.c: Include exitfail.h.
57836         (xstrtol_fatal): New function, with a different signature from the
57837         old xstrtol_error, so that the caller need not worry about passing
57838         in an exit status, or about storage management of the option argument.
57839         (xstrtol_error): Now a static function.  Redo signature to
57840         implement xstrtol_fatal.  Output the correct number of hyphens in
57841         front of the option so that the caller need not worry about
57842         storage management.
57843         (N_): New macro.
57844         (_): Remove; not used now.
57845         * modules/xstrtol: Depend on getopt.
57846         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57847         of old STRTOL_FATAL_ERROR macro.
57848         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57849         of test program.
57850         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57851         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57852
57853 2007-08-08  Eric Blake  <ebb9@byu.net>
57854
57855         * lib/xstrtol-error.c: Add missing include.
57856
57857         Move xstrtol messages into gnulib domain, when --pobase is used.
57858         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57859         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57860         * modules/xstrtol (Files): Distribute new file.
57861         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57862         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57863         * tests/test-xstrtol.c: ...into new file.
57864         * tests/test-xstrtoul.c: Also test xstrtoul.
57865         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57866         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57867         * tests/test-xstrtol.sh: Drive the tests.
57868         * tests/test-xstrtoimax.sh: Likewise.
57869         * tests/test-xstrtoumax.sh: Likewise.
57870         * modules/xstrtol-tests: New module.
57871         * modules/xstrtoimax-tests: Likewise.
57872         * modules/xstrtoumax-tests: Likewise.
57873
57874 2007-08-08  Jim Meyering  <jim@meyering.net>
57875
57876         New function: mfile_name_concat.
57877         * lib/filenamecat.c (mfile_name_concat): New function, just like
57878         file_name_concat, but return NULL upon failure rather than exiting
57879         with a diagnostic.
57880         * lib/filenamecat.h: Declare it.
57881
57882 2007-08-07  Bruno Haible  <bruno@clisp.org>
57883
57884         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57885         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57886         warning from gcc.
57887         Reported by Eric Blake.
57888
57889 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57890
57891         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57892         * modules/crypto/arcfour (License): Likewise.
57893         * modules/crypto/des-tests (License): Likewise.
57894         * modules/crypto/gc-arctwo-tests (License): Likewise.
57895         * modules/crypto/gc-des-tests (License): Likewise.
57896         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57897         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57898         * modules/crypto/gc-md2-tests (License): Likewise.
57899         * modules/crypto/gc-md4-tests (License): Likewise.
57900         * modules/crypto/gc-md5-tests (License): Likewise.
57901         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57902         * modules/crypto/gc-rijndael-tests (License): Likewise.
57903         * modules/crypto/gc-sha1-tests (License): Likewise.
57904         * modules/crypto/gc-tests (License): Likewise.
57905         * modules/crypto/hmac-md5 (License): Likewise.
57906         * modules/crypto/hmac-sha1 (License): Likewise.
57907         * modules/crypto/md2-tests (License): Likewise.
57908         * modules/crypto/md4-tests (License): Likewise.
57909         * modules/crypto/md5 (License): Likewise.
57910         * modules/crypto/rijndael (License): Likewise.
57911         * modules/crypto/sha1 (License): Likewise.
57912         * modules/memxor (License): Likewise.
57913
57914 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57915         and Bruno Haible  <bruno@clisp.org>
57916
57917         * NEWS: Describe interface changes to human, xstrtol.
57918         * lib/human.h: Include <xstrtol.h>.
57919         (human_options): Return enum strtol_error, not int.  Remove
57920         bool arg; take int * instead.
57921         * lib/human.c: Don't include "gettext.h".
57922         (_): Remove; no longer used.
57923         Don't include <xstrtol.h>, since human.h does it.
57924         (human_options): Adjust to abovementioned interface changes.
57925         Do not report error to stderr; that's now the caller's
57926         responsibility.
57927         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57928         interface change.
57929         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57930         Str, Argument_type_string.  All uses changed.  Put " argument"
57931         in diagnostics to make them clearer.  Change wording of suffix
57932         message for clarity.
57933         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57934         Argument_type_string.
57935         (STRTOL_FATAL_WARN): Remove; no longer used.
57936         * modules/human (Depends-on): Remove gettext-h.
57937
57938 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57939
57940         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57941
57942 2007-07-31  Bruno Haible  <bruno@clisp.org>
57943
57944         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57945         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57946         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57947
57948 2007-07-31  Bruno Haible  <bruno@clisp.org>
57949
57950         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57951         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57952
57953 2007-07-30  Bruno Haible  <bruno@clisp.org>
57954
57955         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57956         * modules/c-ctype (License): Likewise.
57957         * modules/c-strcase (License): Likewise.
57958         * modules/check-version (License): Likewise.
57959         * modules/iconv (License): Likewise.
57960         * modules/iconv_open (License): Likewise.
57961         * modules/read-file (License): Likewise.
57962         * modules/striconv (License): Likewise.
57963         * modules/strverscmp (License): Likewise.
57964         * modules/vasprintf (License): Likewise.
57965         * modules/crypto/des (License): Likewise.
57966         * modules/crypto/gc (License): Likewise.
57967         * modules/crypto/gc-arcfour (License): Likewise.
57968         * modules/crypto/gc-arctwo (License): Likewise.
57969         * modules/crypto/gc-des (License): Likewise.
57970         * modules/crypto/gc-hmac-md5 (License): Likewise.
57971         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57972         * modules/crypto/gc-md2 (License): Likewise.
57973         * modules/crypto/gc-md4 (License): Likewise.
57974         * modules/crypto/gc-md5 (License): Likewise.
57975         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57976         * modules/crypto/gc-random (License): Likewise.
57977         * modules/crypto/gc-rijndael (License): Likewise.
57978         * modules/crypto/gc-sha1 (License): Likewise.
57979         * modules/crypto/md2 (License): Likewise.
57980         * modules/crypto/md4 (License): Likewise.
57981
57982 2007-07-30  Jim Meyering  <jim@meyering.net>
57983
57984         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57985         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57986         it has valid stat data.  This bug would cause du not to count the
57987         sizes of inaccessible directories.
57988         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57989         in <http://bugzilla.redhat.com/250077>.
57990
57991 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57992             Bruno Haible  <bruno@clisp.org>
57993
57994         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57995         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57996         #include_next, gives a diagnostic about it, but reports no error in
57997         the exit code.
57998         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57999
58000 2007-07-24  Ben Pfaff  <blp@gnu.org>
58001
58002         Improve name: "count-one-bits" is better than "popcount".
58003         * MODULES.html.sh: Update name.
58004         * lib/popcount.h: Renamed lib/count-one-bits.h.
58005         (popcount): Renamed count_one_bits.
58006         (popcountl): Renamed count_one_bits_l.
58007         (popcountll): Renamed count_one_bits_ll.
58008         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
58009         * modules/popcount: Renamed module/count-one-bits.
58010         * modules/popcount-tests: Renamed module/count-one-bits-tests.
58011         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
58012
58013 2007-07-23  Ben Pfaff  <blp@gnu.org>
58014
58015         * lib/popcount.h (popcount32): Reduce size of constants, to allow
58016         better code generation, and add U to large constants to avoid
58017         warnings, in non-GCC case.
58018         Suggested by Bruno Haible.
58019
58020 2007-07-23  Ben Pfaff  <blp@gnu.org>
58021
58022         * lib/popcount.h: Use verify_true instead of if...abort.
58023         * modules/popcount: Depend on verify module.
58024         Suggested by Jim Meyering.
58025
58026 2007-07-23  Bruno Haible  <bruno@clisp.org>
58027
58028         * gnulib-tool (func_import): Create a .cvsignore file also when the
58029         directory is not yet in CVS but the toplevel directory is. When
58030         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
58031         Reported by Karl Berry.
58032
58033 2007-07-22  Ben Pfaff  <blp@gnu.org>
58034
58035         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
58036         case.
58037         Suggested by Eric Blake.
58038
58039 2007-07-22  Ben Pfaff  <blp@gnu.org>
58040
58041         New module: popcount.
58042         * MODULES.html.sh: Add popcount.
58043         * modules/popcount: New file.
58044         * modules/popcount-tests: New file.
58045         * tests/test-popcount.c: New file.
58046         * lib/popcount.h: New file.
58047         * m4/popcount.m4: New file.
58048
58049 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58050
58051         * build-aux/announce-gen: Update to GPLv3.
58052
58053         * build-aux/config.guess: Update from config.
58054
58055 2007-07-21  Bruno Haible  <bruno@clisp.org>
58056
58057         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
58058         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
58059
58060 2007-07-20  Jim Meyering  <jim@meyering.net>
58061
58062         * check-module: Diagnose a self-dependency.
58063
58064 2007-07-19  Bruno Haible  <bruno@clisp.org>
58065
58066         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
58067         empty.
58068         Reported by Eric Blake.
58069
58070 2007-07-18  Bruno Haible  <bruno@clisp.org>
58071
58072         * gnulib-tool: New options --po-base, --po-domain.
58073         (func_usage): Document them.
58074         (pobase, po_domain): New variables.
58075         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
58076         DEFAULT_TEXT_DOMAIN.
58077         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
58078         (func_import): Consider pobase and po_domain. Create a po/ directory.
58079         (func_create_testdir): Set pobase and po_domain to empty.
58080         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
58081         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
58082
58083 2007-07-18  Bruno Haible  <bruno@clisp.org>
58084
58085         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58086         EXTRA_DIST augmentation for files in build-aux/.
58087
58088 2007-07-16  Bruno Haible  <bruno@clisp.org>
58089
58090         * modules/lseek (License): Use the synonymous term "LGPLv2+".
58091         * modules/getdelim (License): Likewise.
58092
58093 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58094
58095         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
58096         * modules/d-type (License): Likewise.
58097         * modules/extensions (License): Likewise.
58098         * modules/fnmatch (License): Likewise.
58099         * modules/fseeko (License): Likewise.
58100         * modules/getaddrinfo (License): Likewise.
58101         * modules/getline (License): Likewise.
58102         * modules/getlogin_r (License): Likewise.
58103         * modules/getpass (License): Likewise.
58104         * modules/gettimeofday (License): Likewise.
58105         * modules/glob (License): Likewise.
58106         * modules/inet_ntop (License): Likewise.
58107         * modules/malloc (License): Likewise.
58108         * modules/malloca (License): Likewise.
58109         * modules/memmem (License): Likewise.
58110         * modules/mempcpy (License): Likewise.
58111         * modules/memset (License): Likewise.
58112         * modules/minmax (License): Likewise.
58113         * modules/mktime (License): Likewise.
58114         * modules/netinet_in (License): Likewise.
58115         * modules/pathmax (License): Likewise.
58116         * modules/poll (License): Likewise.
58117         * modules/regex (License): Likewise.
58118         * modules/snprintf (License): Likewise.
58119         * modules/stdbool (License): Likewise.
58120         * modules/stdint (License): Likewise.
58121         * modules/stdio (License): Likewise.
58122         * modules/strcase (License): Likewise.
58123         * modules/strcasestr (License): Likewise.
58124         * modules/strdup (License): Likewise.
58125         * modules/string (License): Likewise.
58126         * modules/strndup (License): Likewise.
58127         * modules/strnlen (License): Likewise.
58128         * modules/strpbrk (License): Likewise.
58129         * modules/strptime (License): Likewise.
58130         * modules/strsep (License): Likewise.
58131         * modules/sys_select (License): Likewise.
58132         * modules/sys_socket (License): Likewise.
58133         * modules/sys_stat (License): Likewise.
58134         * modules/sys_time (License): Likewise.
58135         * modules/time (License): Likewise.
58136         * modules/time_r (License): Likewise.
58137         * modules/timegm (License): Likewise.
58138         * modules/unistd (License): Likewise.
58139         * modules/vsnprintf (License): Likewise.
58140         * modules/wctype (License): Likewise.
58141
58142 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58143
58144         * modules/argz (License): LGPLv2+.
58145
58146 2007-07-15  Karl Berry  <karl@gnu.org>
58147
58148         * doc/gnulib.texi: revise node structure per new fdl.texi.
58149
58150 2007-07-14  Bruno Haible  <bruno@clisp.org>
58151
58152         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
58153         the output file.
58154         * lib/uniname/uninames.h: Regenerated.
58155
58156 2007-07-14  Karl Berry  <karl@gnu.org>
58157
58158         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
58159         omitting sectioning and index commands.
58160
58161 2007-07-13  Bruno Haible  <bruno@clisp.org>
58162
58163         New gnulib-tool option --more-symlinks.
58164         * gnulib-tool (func_usage): Document --more-symlinks.
58165         (do_copyrights): New variable.
58166         Recognize option --more-symlinks.
58167         (func_import): Don't add a copyright notice transform to
58168         sed_transform_lib_file if do_copyrights is empty.
58169
58170 2007-07-13  Bruno Haible  <bruno@clisp.org>
58171
58172         * lib/vasnprintf.c (decimal_point_char): Define also if
58173         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
58174         && !NEED_PRINTF_DIRECTIVE_A.
58175         Reported by Clemens Koller <clemens.koller@anagramm.de> via
58176         Gary V. Vaughan <gary@gnu.org>.
58177
58178 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
58179
58180         * lib/inttypes_.h: Undo previous change, since it was fixed
58181         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
58182
58183 2007-07-13  Bruno Haible  <bruno@clisp.org>
58184
58185         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
58186         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
58187
58188 2007-07-13  Jim Meyering  <jim@meyering.net>
58189
58190         df: Don't fail for Tru64's "file-on-file mount".
58191         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
58192         so we fall through and use statfs instead.  Details here:
58193         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
58194         Reported by Albert Chin.
58195
58196 2007-07-13  Bruno Haible  <bruno@clisp.org>
58197
58198         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
58199         * modules/configmake (License): Likewise.
58200         * modules/gettext (License): Likewise.
58201         * modules/gettext-h (License): Likewise.
58202         * modules/include_next (License): Likewise.
58203         * modules/link-warning (License): Likewise.
58204         * modules/localcharset (License): Likewise.
58205         * modules/localename (License): Likewise.
58206         * modules/lock (License): Likewise.
58207         * modules/relocatable-lib-lgpl (License): Likewise.
58208         * modules/size_max (License): Likewise.
58209         * modules/vasnprintf (License): Likewise.
58210         * modules/wchar (License): Likewise.
58211         * modules/xsize (License): Likewise.
58212
58213 2007-07-13  Bruno Haible  <bruno@clisp.org>
58214
58215         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
58216         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
58217
58218 2007-07-12  Bruno Haible  <bruno@clisp.org>
58219
58220         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
58221         in the modules files.
58222
58223 2007-07-11  Karl Berry  <karl@gnu.org>
58224
58225         * MODULES.html.sh (func_module): use
58226          sed -e '\|^'"${includefile}"'$|d'
58227          instead of /.../d, to avoid errors on $includefile's containing /.
58228
58229 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58230
58231         * gnulib-tool (func_import): Avoid duplication of --avoid
58232         statements
58233         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
58234         names to `_' in variable names.
58235
58236 2007-07-10  Eric Blake  <ebb9@byu.net>
58237
58238         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
58239         * NEWS: Document this change.
58240
58241 2007-07-08  Bruno Haible  <bruno@clisp.org>
58242
58243         Update to Unicode 5.0.
58244         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
58245         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
58246         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
58247         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
58248         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
58249         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
58250         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
58251         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
58252         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
58253         U+10A3F, U+1D242..U+1D244.
58254         (nonspacing_table_ind): Update.
58255         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
58256         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
58257
58258 2007-07-08  Bruno Haible  <bruno@clisp.org>
58259
58260         Update to Unicode 5.0.
58261         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
58262         code transform. Extend the name index field of unicode_name_to_code and
58263         unicode_code_to_name from 16 to 24 bits.
58264         * lib/uniname/uniname.c (unicode_character_name,
58265         unicode_name_character): Add the range 0x12xxx to the code transform.
58266         * lib/uniname/uninames.h: Regenerated.
58267         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
58268
58269 2007-07-07  Bruno Haible  <bruno@clisp.org>
58270
58271         * modules/wcwidth-tests: New file.
58272         * tests/test-wcwidth.c: New file.
58273
58274         Work around MacOS X wcwidth() bug.
58275         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
58276         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
58277         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
58278         original wcwidth in non-UTF-8 locales.
58279         * modules/wcwidth (Depends-on): Add localcharset, streq,
58280         uniwidth/width.
58281         * doc/functions/wcwidth.texi: Update.
58282
58283 2007-07-07  Bruno Haible  <bruno@clisp.org>
58284
58285         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
58286         (wcwidth): New declaration.
58287         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
58288         macros.
58289         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
58290         here. Prepare for creating <wchar.h> unconditionally.
58291         * modules/wchar (Depends-on): Add link-warning.
58292         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
58293         REPLACE_WCWIDTH, and GL_LINK_WARNING.
58294         * lib/wcwidth.h: Remove file.
58295         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
58296         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
58297         * modules/wcwidth (Files): Remove lib/wcwidth.h.
58298         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
58299         (Include): Replace wcwidth.h with <wchar.h>.
58300         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
58301         * lib/mbchar.h: Don't include wcwidth.h.
58302         * lib/mbswidth.c: Likewise.
58303         * NEWS: Mention the change.
58304
58305 2007-07-07  Bruno Haible  <bruno@clisp.org>
58306
58307         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
58308         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
58309         definition with an external declaration.
58310         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
58311         defined as a function. Remove AC_C_INLINE requirement.
58312         * modules/wcwidth (Files): Add lib/wcwidth.c.
58313         (Makefile.am): Remove redundant statement.
58314
58315 2007-07-07  Bruno Haible  <bruno@clisp.org>
58316
58317         * MODULES.html.sh (Unicode string functions): Add the new modules.
58318
58319         * tests/uniwidth/test-u32-strwidth.c: New file.
58320         * modules/uniwidth/u32-strwidth-tests: New file.
58321
58322         * lib/uniwidth/u32-strwidth.c: New file.
58323         * modules/uniwidth/u32-strwidth: New file.
58324
58325         * tests/uniwidth/test-u16-strwidth.c: New file.
58326         * modules/uniwidth/u16-strwidth-tests: New file.
58327
58328         * lib/uniwidth/u16-strwidth.c: New file.
58329         * modules/uniwidth/u16-strwidth: New file.
58330
58331         * tests/uniwidth/test-u8-strwidth.c: New file.
58332         * modules/uniwidth/u8-strwidth-tests: New file.
58333
58334         * lib/uniwidth/u8-strwidth.c: New file.
58335         * modules/uniwidth/u8-strwidth: New file.
58336
58337         * tests/uniwidth/test-u32-width.c: New file.
58338         * modules/uniwidth/u32-width-tests: New file.
58339
58340         * lib/uniwidth/u32-width.c: New file.
58341         * modules/uniwidth/u32-width: New file.
58342
58343         * tests/uniwidth/test-u16-width.c: New file.
58344         * modules/uniwidth/u16-width-tests: New file.
58345
58346         * lib/uniwidth/u16-width.c: New file.
58347         * modules/uniwidth/u16-width: New file.
58348
58349         * tests/uniwidth/test-u8-width.c: New file.
58350         * modules/uniwidth/u8-width-tests: New file.
58351
58352         * lib/uniwidth/u8-width.c: New file.
58353         * modules/uniwidth/u8-width: New file.
58354
58355         * tests/uniwidth/test-uc_width.c: New file.
58356         * modules/uniwidth/width-tests: New file.
58357
58358         * lib/uniwidth/width.c: New file, from GNU libiconv.
58359         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58360         * modules/uniwidth/width: New file.
58361
58362         * lib/uniwidth.h: New file, from GNU libiconv.
58363         * modules/uniwidth/base: New file.
58364
58365 2007-07-07  Bruno Haible  <bruno@clisp.org>
58366
58367         * lib/uniname.h: New file, from GNU gettext.
58368         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58369         * lib/uniname/uninames.h: New file, from GNU gettext.
58370         * lib/uniname/uniname.c: New file, from GNU gettext.
58371         * tests/uniname/test-uninames.sh: New file.
58372         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58373         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58374         * modules/uniname/base: New file.
58375         * modules/uniname/uniname: New file.
58376         * modules/uniname/uniname-tests: New file.
58377         * MODULES.html.sh (Unicode string functions): Add the new modules.
58378
58379 2007-07-06  Bruno Haible  <bruno@clisp.org>
58380
58381         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58382
58383 2007-07-06  Bruno Haible  <bruno@clisp.org>
58384
58385         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58386         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
58387         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58388         include <sys/time.h>.
58389         Reported by Eric Blake.
58390
58391 2007-07-06  Eric Blake  <ebb9@byu.net>
58392
58393         Fix testing canonicalize on cygwin.
58394         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58395         Revert patch from 2007-06-19.
58396         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
58397         canonicalize module is also in use.
58398         * tests/test-canonicalize.c: New file.
58399         * tests/test-canonicalize.sh: Likewise.
58400         * modules/canonicalize-tests: Likewise.
58401
58402 2007-07-06  Jim Meyering  <jim@meyering.net>
58403
58404         * lib/getugroups.c (getugroups): Detect getgrent failure.
58405         Adjust comment to reflect reality: this function may return -1.
58406
58407 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
58408
58409         * build-aux/bootstrap (TP_URL,get_translations): Update to use
58410         the new TP address.
58411         (usage): Fix typo
58412         (gnulib_mk): New variable.
58413
58414 2007-07-05  Jim Meyering  <jim@meyering.net>
58415
58416         Don't let endgrent clobber errno, no matter how improbable.
58417         * lib/getugroups.c (getugroups): Save and restore errno around
58418         endgrent call.
58419
58420         Close the group DB even when failing with 2^31 or more members.
58421         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58422
58423 2007-07-04  Jim Meyering  <jim@meyering.net>
58424
58425         * lib/getugroups.h: New file.
58426         * lib/getugroups.c: Include "getugroups.h".
58427         Remove uses of "register" keyword.
58428         Move local variable, "cp", down into scope where used.
58429         Give "username" parameter the "const" attribute.
58430         * modules/getugroups (Files): Add lib/getugroups.h
58431
58432 2007-07-04  Karl Berry  <karl@gnu.org>
58433
58434         * MODULES.html.sh (func_all_modules): Complete rename of
58435         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
58436
58437 2007-07-02  Bruno Haible  <bruno@clisp.org>
58438
58439         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
58440         mode, when inttypes.h comes from gnulib.
58441         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58442
58443 2007-07-02  Simon Josefsson  <simon@josefsson.org>
58444
58445         * NEWS: Mention lgpl module name change.
58446
58447         * modules/lgpl-2.1: Renamed from lgpl.
58448
58449         * NEWS: Mention gpl module name change.
58450
58451         * modules/gpl-3.0: New file, based on gpl-2.0.
58452
58453         * modules/gpl-2.0: Renamed from gpl.
58454
58455         * modules/gpl: Fix filename, doc/gpl.texi is now found at
58456         doc/gpl-2.0.texi.
58457
58458 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58459
58460         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
58461         #define __STDC_LIMIT_MACROS temporarily while including
58462         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
58463         Problem reported by Joel E. Denny in
58464         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
58465
58466 2007-07-01  Bruno Haible  <bruno@clisp.org>
58467
58468         * lib/unistdio.h: New file.
58469         * lib/unistdio/u-asnprintf.h: New file.
58470         * lib/unistdio/u-asprintf.h: New file.
58471         * lib/unistdio/u-printf-args.c: New file.
58472         * lib/unistdio/u-printf-args.h: New file.
58473         * lib/unistdio/u-printf-parse.h: New file.
58474         * lib/unistdio/u-snprintf.h: New file.
58475         * lib/unistdio/u-sprintf.h: New file.
58476         * lib/unistdio/u-vasprintf.h: New file.
58477         * lib/unistdio/u-vsnprintf.h: New file.
58478         * lib/unistdio/u-vsprintf.h: New file.
58479         * lib/unistdio/ulc-asnprintf.c: New file.
58480         * lib/unistdio/ulc-asprintf.c: New file.
58481         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58482         * lib/unistdio/ulc-printf-parse.c: New file.
58483         * lib/unistdio/ulc-snprintf.c: New file.
58484         * lib/unistdio/ulc-sprintf.c: New file.
58485         * lib/unistdio/ulc-vasnprintf.c: New file.
58486         * lib/unistdio/ulc-vasprintf.c: New file.
58487         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58488         * lib/unistdio/ulc-vsnprintf.c: New file.
58489         * lib/unistdio/ulc-vsprintf.c: New file.
58490         * lib/unistdio/u8-asnprintf.c: New file.
58491         * lib/unistdio/u8-asprintf.c: New file.
58492         * lib/unistdio/u8-printf-parse.c: New file.
58493         * lib/unistdio/u8-snprintf.c: New file.
58494         * lib/unistdio/u8-sprintf.c: New file.
58495         * lib/unistdio/u8-vasnprintf.c: New file.
58496         * lib/unistdio/u8-vasprintf.c: New file.
58497         * lib/unistdio/u8-vsnprintf.c: New file.
58498         * lib/unistdio/u8-vsprintf.c: New file.
58499         * lib/unistdio/u8-u8-asnprintf.c: New file.
58500         * lib/unistdio/u8-u8-asprintf.c: New file.
58501         * lib/unistdio/u8-u8-snprintf.c: New file.
58502         * lib/unistdio/u8-u8-sprintf.c: New file.
58503         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58504         * lib/unistdio/u8-u8-vasprintf.c: New file.
58505         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58506         * lib/unistdio/u8-u8-vsprintf.c: New file.
58507         * lib/unistdio/u16-asnprintf.c: New file.
58508         * lib/unistdio/u16-asprintf.c: New file.
58509         * lib/unistdio/u16-printf-parse.c: New file.
58510         * lib/unistdio/u16-snprintf.c: New file.
58511         * lib/unistdio/u16-sprintf.c: New file.
58512         * lib/unistdio/u16-vasnprintf.c: New file.
58513         * lib/unistdio/u16-vasprintf.c: New file.
58514         * lib/unistdio/u16-vsnprintf.c: New file.
58515         * lib/unistdio/u16-vsprintf.c: New file.
58516         * lib/unistdio/u16-u16-asnprintf.c: New file.
58517         * lib/unistdio/u16-u16-asprintf.c: New file.
58518         * lib/unistdio/u16-u16-snprintf.c: New file.
58519         * lib/unistdio/u16-u16-sprintf.c: New file.
58520         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58521         * lib/unistdio/u16-u16-vasprintf.c: New file.
58522         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58523         * lib/unistdio/u16-u16-vsprintf.c: New file.
58524         * lib/unistdio/u32-asnprintf.c: New file.
58525         * lib/unistdio/u32-asprintf.c: New file.
58526         * lib/unistdio/u32-printf-parse.c: New file.
58527         * lib/unistdio/u32-snprintf.c: New file.
58528         * lib/unistdio/u32-sprintf.c: New file.
58529         * lib/unistdio/u32-vasnprintf.c: New file.
58530         * lib/unistdio/u32-vasprintf.c: New file.
58531         * lib/unistdio/u32-vsnprintf.c: New file.
58532         * lib/unistdio/u32-vsprintf.c: New file.
58533         * lib/unistdio/u32-u32-asnprintf.c: New file.
58534         * lib/unistdio/u32-u32-asprintf.c: New file.
58535         * lib/unistdio/u32-u32-snprintf.c: New file.
58536         * lib/unistdio/u32-u32-sprintf.c: New file.
58537         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58538         * lib/unistdio/u32-u32-vasprintf.c: New file.
58539         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58540         * lib/unistdio/u32-u32-vsprintf.c: New file.
58541         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58542         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58543         * tests/unistdio/test-ulc-printf1.h: New file.
58544         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58545         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58546         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58547         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58548         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58549         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58550         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58551         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58552         * tests/unistdio/test-u8-asnprintf1.c: New file.
58553         * tests/unistdio/test-u8-asnprintf1.h: New file.
58554         * tests/unistdio/test-u8-printf1.h: New file.
58555         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58556         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58557         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58558         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58559         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58560         * tests/unistdio/test-u8-vasprintf1.c: New file.
58561         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58562         * tests/unistdio/test-u8-vsprintf1.c: New file.
58563         * tests/unistdio/test-u16-asnprintf1.c: New file.
58564         * tests/unistdio/test-u16-asnprintf1.h: New file.
58565         * tests/unistdio/test-u16-printf1.h: New file.
58566         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58567         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58568         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58569         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58570         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58571         * tests/unistdio/test-u16-vasprintf1.c: New file.
58572         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58573         * tests/unistdio/test-u16-vsprintf1.c: New file.
58574         * tests/unistdio/test-u32-asnprintf1.c: New file.
58575         * tests/unistdio/test-u32-asnprintf1.h: New file.
58576         * tests/unistdio/test-u32-printf1.h: New file.
58577         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58578         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58579         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58580         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58581         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58582         * tests/unistdio/test-u32-vasprintf1.c: New file.
58583         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58584         * tests/unistdio/test-u32-vsprintf1.c: New file.
58585         * modules/unistdio/base: New file.
58586         * modules/unistdio/u-printf-args: New file.
58587         * modules/unistdio/ulc-asnprintf: New file.
58588         * modules/unistdio/ulc-asprintf: New file.
58589         * modules/unistdio/ulc-fprintf: New file.
58590         * modules/unistdio/ulc-printf-parse: New file.
58591         * modules/unistdio/ulc-snprintf: New file.
58592         * modules/unistdio/ulc-sprintf: New file.
58593         * modules/unistdio/ulc-vasnprintf: New file.
58594         * modules/unistdio/ulc-vasprintf: New file.
58595         * modules/unistdio/ulc-vfprintf: New file.
58596         * modules/unistdio/ulc-vsnprintf: New file.
58597         * modules/unistdio/ulc-vsprintf: New file.
58598         * modules/unistdio/u8-asnprintf: New file.
58599         * modules/unistdio/u8-asprintf: New file.
58600         * modules/unistdio/u8-printf-parse: New file.
58601         * modules/unistdio/u8-snprintf: New file.
58602         * modules/unistdio/u8-sprintf: New file.
58603         * modules/unistdio/u8-vasnprintf: New file.
58604         * modules/unistdio/u8-vasprintf: New file.
58605         * modules/unistdio/u8-vsnprintf: New file.
58606         * modules/unistdio/u8-vsprintf: New file.
58607         * modules/unistdio/u8-u8-asnprintf: New file.
58608         * modules/unistdio/u8-u8-asprintf: New file.
58609         * modules/unistdio/u8-u8-snprintf: New file.
58610         * modules/unistdio/u8-u8-sprintf: New file.
58611         * modules/unistdio/u8-u8-vasnprintf: New file.
58612         * modules/unistdio/u8-u8-vasprintf: New file.
58613         * modules/unistdio/u8-u8-vsnprintf: New file.
58614         * modules/unistdio/u8-u8-vsprintf: New file.
58615         * modules/unistdio/u16-asnprintf: New file.
58616         * modules/unistdio/u16-asprintf: New file.
58617         * modules/unistdio/u16-printf-parse: New file.
58618         * modules/unistdio/u16-snprintf: New file.
58619         * modules/unistdio/u16-sprintf: New file.
58620         * modules/unistdio/u16-vasnprintf: New file.
58621         * modules/unistdio/u16-vasprintf: New file.
58622         * modules/unistdio/u16-vsnprintf: New file.
58623         * modules/unistdio/u16-vsprintf: New file.
58624         * modules/unistdio/u16-u16-asnprintf: New file.
58625         * modules/unistdio/u16-u16-asprintf: New file.
58626         * modules/unistdio/u16-u16-snprintf: New file.
58627         * modules/unistdio/u16-u16-sprintf: New file.
58628         * modules/unistdio/u16-u16-vasnprintf: New file.
58629         * modules/unistdio/u16-u16-vasprintf: New file.
58630         * modules/unistdio/u16-u16-vsnprintf: New file.
58631         * modules/unistdio/u16-u16-vsprintf: New file.
58632         * modules/unistdio/u32-asnprintf: New file.
58633         * modules/unistdio/u32-asprintf: New file.
58634         * modules/unistdio/u32-printf-parse: New file.
58635         * modules/unistdio/u32-snprintf: New file.
58636         * modules/unistdio/u32-sprintf: New file.
58637         * modules/unistdio/u32-vasnprintf: New file.
58638         * modules/unistdio/u32-vasprintf: New file.
58639         * modules/unistdio/u32-vsnprintf: New file.
58640         * modules/unistdio/u32-vsprintf: New file.
58641         * modules/unistdio/u32-u32-asnprintf: New file.
58642         * modules/unistdio/u32-u32-asprintf: New file.
58643         * modules/unistdio/u32-u32-snprintf: New file.
58644         * modules/unistdio/u32-u32-sprintf: New file.
58645         * modules/unistdio/u32-u32-vasnprintf: New file.
58646         * modules/unistdio/u32-u32-vasprintf: New file.
58647         * modules/unistdio/u32-u32-vsnprintf: New file.
58648         * modules/unistdio/u32-u32-vsprintf: New file.
58649         * modules/unistdio/ulc-asnprintf-tests: New file.
58650         * modules/unistdio/ulc-vasnprintf-tests: New file.
58651         * modules/unistdio/ulc-vasprintf-tests: New file.
58652         * modules/unistdio/ulc-vsnprintf-tests: New file.
58653         * modules/unistdio/ulc-vsprintf-tests: New file.
58654         * modules/unistdio/u8-asnprintf-tests: New file.
58655         * modules/unistdio/u8-vasnprintf-tests: New file.
58656         * modules/unistdio/u8-vasprintf-tests: New file.
58657         * modules/unistdio/u8-vsnprintf-tests: New file.
58658         * modules/unistdio/u8-vsprintf-tests: New file.
58659         * modules/unistdio/u16-asnprintf-tests: New file.
58660         * modules/unistdio/u16-vasnprintf-tests: New file.
58661         * modules/unistdio/u16-vasprintf-tests: New file.
58662         * modules/unistdio/u16-vsnprintf-tests: New file.
58663         * modules/unistdio/u16-vsprintf-tests: New file.
58664         * modules/unistdio/u32-asnprintf-tests: New file.
58665         * modules/unistdio/u32-vasnprintf-tests: New file.
58666         * modules/unistdio/u32-vasprintf-tests: New file.
58667         * modules/unistdio/u32-vsnprintf-tests: New file.
58668         * modules/unistdio/u32-vsprintf-tests: New file.
58669         * MODULES.html.sh (Unicode string functions): Add the new modules.
58670
58671 2007-07-01  Bruno Haible  <bruno@clisp.org>
58672
58673         * lib/sprintf.c (sprintf): Limit the available length estimation,
58674         to avoid address wraparound.
58675         * lib/vsprintf.c (vsprintf): Likewise.
58676         * modules/sprintf-posix (Dependencies): Add stdint.
58677         * modules/vsprintf-posix (Dependencies): Likewise.
58678
58679 2007-07-01  Bruno Haible  <bruno@clisp.org>
58680
58681         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58682         Windows PATH as well. Conservative double-quoting. Comments.
58683
58684 2007-07-01  Bruno Haible  <bruno@clisp.org>
58685             Eric Blake  <ebb9@byu.net>
58686             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58687
58688         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58689         empty components in $PATH, denoting '.'.
58690
58691 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58692
58693         * gnulib-tool: Fix indentation.
58694         (func_create_megatestdir): Likewise.
58695         Report by Bruno Haible.
58696
58697 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58698
58699         Sync from Automake.
58700         * build-aux/gnupload: Fix shell portability issues with for loops.
58701         Report by Karl Berry.
58702
58703 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58704
58705         * build-aux/maint.mk (POURL): Use translationproject.org.
58706
58707 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58708             Bruno Haible  <bruno@clisp.org>
58709
58710         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58711         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58712         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58713         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58714         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58715
58716 2007-06-27  Bruno Haible  <bruno@clisp.org>
58717
58718         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58719         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58720
58721 2007-06-26  Karl Berry  <karl@gnu.org>
58722
58723         * MODULES.html.sh: remove xreadlink-with-size.
58724
58725 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58726
58727         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58728         method that I hope also handles the double-include problem noted
58729         by Bruno Haible in
58730         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58731
58732 2007-06-23  Bruno Haible  <bruno@clisp.org>
58733
58734         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58735         Don't let the 'mostlyclean' target fail if the last subdirectory could
58736         not be removed.
58737         Reported by Karl Berry.
58738
58739 2007-06-23  Bruno Haible  <bruno@clisp.org>
58740
58741         * gnulib-tool (echo): Add a speedier workaround for ksh.
58742         * tests/test-echo.sh: Likewise.
58743
58744 2007-06-23  Bruno Haible  <bruno@clisp.org>
58745
58746         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58747         * tests/test-echo.sh: Likewise.
58748
58749 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58750
58751         * gnulib-tool (IFS): Initialize early, so we don't set it to
58752         empty later.
58753         (self_abspathname): Rewrite algorithm to set it, reindent.
58754         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58755         (func_create_megatestdir): Merge some sed scripts.
58756
58757 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58758
58759         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58760         exposed by Sun Studio 11 cc on Solaris 8.
58761
58762 2007-06-22  Bruno Haible  <bruno@clisp.org>
58763
58764         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58765         backslashes.
58766         * tests/test-echo.sh: New file.
58767
58768 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58769
58770         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58771         simplify `sed_replace_build_aux' scripts, they are portable but
58772         echoing them with `echo' is not.
58773         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58774
58775 2007-06-21  Karl Berry  <karl@gnu.org>
58776
58777         * config/srclist.txt: guess we can't handle the licenses via
58778         srclist at the moment.
58779
58780 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58781
58782         * MODULES.html.sh: Add include_next.
58783         * modules/include_next: New file.
58784
58785 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58786
58787         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58788         INCLUDE_NEXT.
58789         (gl_CHECK_NEXT_HEADERS): New macro.
58790         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58791         the obsolescent gl_ABSOLUTE_HEADER.
58792         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58793         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58794         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58795         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58796         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58797         * m4/math_h.m4 (gl_MATH_H): Likewise.
58798         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58799         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58800         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58801         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58802         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58803         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58804         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58805         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58806         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58807         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58808         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58809         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58810         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58811         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58812         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58813         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58814         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58815         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58816         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58817         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58818         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58819         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58820         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58821         * lib/float_.h: Likewise.
58822         * lib/inttypes_.h: Likewise.
58823         * lib/math_.h: Likewise.
58824         * lib/search_.h: Likewise.
58825         * lib/signal_.h: Likewise.
58826         * lib/stdint_.h: Likewise.
58827         * lib/stdio_.h: Likewise.
58828         * lib/stdlib_.h: Likewise.
58829         * lib/string_.h: Likewise.
58830         * lib/sys_stat_.h: Likewise.
58831         * lib/sys_time_.h: Likewise.
58832         * lib/time_.h: Likewise.
58833         * lib/unistd_.h: Likewise.
58834         * lib/wchar_.h: Likewise.
58835         * lib/wctype_.h: Likewise.
58836         * lib/dirent_.h: Likewise.
58837         * lib/iconv_.h: Likewise.
58838         * lib/locale_.h: Likewise.
58839         * lib/netinet_in_.h: Likewise.
58840         * lib/sys_select_.h: Likewise.
58841         * lib/sys_socket_.h: Likewise.
58842         * lib/sysexits_.h: Likewise.
58843         * modules/fcntl (Depends-on): Depend on include_next, not
58844         absolute_header.
58845         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58846         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58847         * modules/fchdir: Likewise.
58848         * modules/float: Likewise.
58849         * modules/iconv_open: Likewise.
58850         * modules/inttypes: Likewise.
58851         * modules/locale: Likewise.
58852         * modules/math: Likewise.
58853         * modules/netinet_in: Likewise.
58854         * modules/search: Likewise.
58855         * modules/signal: Likewise.
58856         * modules/stdint: Likewise.
58857         * modules/stdio: Likewise.
58858         * modules/stdlib: Likewise.
58859         * modules/string: Likewise.
58860         * modules/sys_select: Likewise.
58861         * modules/sys_socket: Likewise.
58862         * modules/sys_stat: Likewise.
58863         * modules/sys_time: Likewise.
58864         * modules/sysexits: Likewise.
58865         * modules/time: Likewise.
58866         * modules/unistd: Likewise.
58867         * modules/wchar: Likewise.
58868         * modules/wctype: Likewise.
58869         * modules/sys_stat: Change maintainer to "all".
58870         * modules/unistd: Likewise.
58871
58872 2007-06-20  Karl Berry  <karl@gnu.org>
58873
58874         * config/srclist.txt: track www changes in license files.
58875
58876 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58877
58878         * build-aux/bootstrap: Remove stray dot.
58879         Make sure build_aux settings are honored when linking
58880         gnulib_extra_files.
58881
58882 2007-06-19  Eric Blake  <ebb9@byu.net>
58883
58884         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58885         Allow compilation on cygwin.
58886
58887 2007-06-19  Jim Meyering  <jim@meyering.net>
58888
58889         xreadlink-with-size: Remove module.  No longer used.
58890         Ex-callers now use xreadlink or mreadlink-with-size.
58891         * modules/xreadlink-with-size: Remove module.
58892         * lib/xreadlink-with-size.c: Remove file.
58893         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58894         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58895         just before the function definition *is* accurate.
58896
58897         Eliminate one way canonicalize_filename_mode could exit.
58898         * lib/canonicalize.c (canonicalize_filename_mode):
58899         Use mreadlink_with_size, not xreadlink_with_size.
58900
58901 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58902
58903         Detect porting problems to FreeBSD/arm, which has time_t wider than
58904         long int.  Original problem reported for GNU diff by Xin Li in
58905         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58906         * modules/getdate (Depends-on): Add intprops, verify.
58907         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58908         is an integer type no wider than long int.
58909
58910 2007-06-18  Jim Meyering  <jim@meyering.net>
58911
58912         New module: mreadlink-with-size.
58913         * MODULES.html.sh: Add mreadlink-with-size.
58914         * modules/mreadlink-with-size: New module
58915         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58916         not xreadlink-with-size.
58917         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58918
58919 2007-06-16  Bruno Haible  <bruno@clisp.org>
58920
58921         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58922         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58923         Reported by Gary V. Vaughan <gary@gnu.org>.
58924
58925 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58926
58927         Revamp lchown so that it lives in unistd.h where it belongs.
58928         * lib/lchown.h: Remove.
58929         * lib/dirchownmod.c: Don't include lib/lchown.h.
58930         * lib/fchownat.c: Likewise.
58931         * lib/openat.c: Likewise.
58932         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58933         does not follow symlinks.
58934         (EOPNOTSUPP): Define if not defined.
58935         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58936         is defined to 0.
58937         (lchown): New decl.
58938         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58939         Do not check for lchown decl.
58940         Set REPLACE_LCHOWN.
58941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58942         REPLACE_LCHOWN.
58943         * modules/chown: Make it clear it follows symlinks.
58944         * modules/lchown: Make it clear it doesn't follow symlinks.
58945         (Files): Remove lib/lchown.h
58946         (Depends-on): Add unistd.
58947         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58948         (Include): Include <unistd.h>, not "lchown.h".
58949         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58950         REPLACE_LCHOWN.
58951
58952 2007-06-15  Jim Meyering  <jim@meyering.net>
58953
58954         Change license (GPL to LGPL) of fsusage and dependents.
58955         * modules/fsusage (License): Change to LGPL.
58956         * modules/full-read (License): Likewise.
58957         * modules/full-write (License): Likewise.
58958         * modules/safe-read (License): Likewise.
58959         * modules/safe-write (License): Likewise.
58960
58961 2007-06-14  Ben Pfaff  <blp@gnu.org>
58962
58963         Missing part of allocsa -> malloca transition.
58964         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58965         gl_MALLOCA.
58966
58967 2007-06-12  Bruno Haible  <bruno@clisp.org>
58968
58969         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58970         to ia64, x86_64, i386.
58971         Reported by Eric Blake.
58972
58973 2007-06-12  Bruno Haible  <bruno@clisp.org>
58974
58975         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58976         cross-compiling to x86_64.
58977
58978 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58979
58980         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58981         glitch reported by Ralf Wildenhues in
58982         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58983
58984         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58985         Vin Shelton.
58986
58987 2007-06-11  Bruno Haible  <bruno@clisp.org>
58988
58989         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58990         replacement string.
58991         Reported by Eric Blake.
58992
58993 2007-06-10  Bruno Haible  <bruno@clisp.org>
58994
58995         Prepare vasnprintf code for use with Unicode strings.
58996         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58997         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58998         TYPE_U32_STRING.
58999         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
59000         a_u32_string variants.
59001         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59002         * lib/printf-args.c: Don't include config.h and the specification
59003         header if PRINTF_FETCHARGS is already defined.
59004         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59005         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
59006         TYPE_U16_STRING, TYPE_U32_STRING.
59007         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
59008         u16_directive, u16_directives, u32_directive, u32_directives): New
59009         types.
59010         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
59011         New declarations.
59012         * lib/printf-parse.c: Don't include config.h and the specification
59013         header if PRINTF_PARSE is already defined. Eliminate the set of
59014         parameters for WIDE_CHAR_VERSION; the user of this file must provide
59015         them now. Include c-ctype.h.
59016         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
59017         directive and CHAR_T_ONLY_ASCII.
59018         * lib/vasnprintf.c: Don't include config.h and the specification header
59019         if VASNPRINTF is already defined.
59020         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
59021         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
59022         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
59023         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
59024         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
59025         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
59026         code accordingly.
59027         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
59028         pad_ourselves also in this case, with the 'c' and 's' directives, and
59029         with a different notion of "width".
59030         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
59031
59032 2007-06-10  Bruno Haible  <bruno@clisp.org>
59033
59034         * modules/unistr/u32-mbsnlen: New file.
59035         * lib/unistr/u32-mbsnlen.c: New file.
59036
59037         * modules/unistr/u16-mbsnlen: New file.
59038         * lib/unistr/u16-mbsnlen.c: New file.
59039
59040         * modules/unistr/u8-mbsnlen: New file.
59041         * lib/unistr/u8-mbsnlen.c: New file.
59042
59043         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
59044         declarations.
59045
59046 2007-06-10  Bruno Haible  <bruno@clisp.org>
59047
59048         * lib/string_.h (mbsnlen): New declaration.
59049         * lib/mbsnlen.c: New file.
59050         * m4/mbsnlen.m4: New file.
59051         * modules/mbsnlen: New file.
59052         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
59053         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
59054         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
59055
59056 2007-06-10  Bruno Haible  <bruno@clisp.org>
59057
59058         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
59059
59060 2007-06-10  Bruno Haible  <bruno@clisp.org>
59061
59062         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
59063         * lib/mbuiter.h: Likewise.
59064
59065 2007-06-10  Bruno Haible  <bruno@clisp.org>
59066
59067         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
59068         declaration.
59069
59070 2007-06-10  Karl Berry  <karl@gnu.org>
59071
59072         * config/srclist.txt: remove gettext entries, Bruno prefers
59073         to update individually.
59074
59075 2007-06-10  Bruno Haible  <bruno@clisp.org>
59076
59077         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
59078         'maxlen'. Ensure only length + width bytes are allocated, not
59079         length + 1 + width.
59080
59081 2007-06-09  Bruno Haible  <bruno@clisp.org>
59082
59083         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
59084         (CHAR_T): Remove macro.
59085         (VASNPRINTF): Update.
59086
59087 2007-06-09  Bruno Haible  <bruno@clisp.org>
59088
59089         * MODULES.html.sh (Unicode string functions): Add the new modules.
59090
59091         * modules/uniconv/u32-conv-to-enc: New file.
59092         * lib/uniconv/u32-conv-to-enc.c: New file.
59093         * modules/uniconv/u32-conv-to-enc-tests: New file.
59094         * tests/uniconv/test-u32-conv-to-enc.c: New file.
59095
59096         * modules/uniconv/u16-conv-to-enc: New file.
59097         * lib/uniconv/u16-conv-to-enc.c: New file.
59098         * lib/uniconv/u-conv-to-enc.h: New file.
59099         * modules/uniconv/u16-conv-to-enc-tests: New file.
59100         * tests/uniconv/test-u16-conv-to-enc.c: New file.
59101
59102         * modules/uniconv/u8-conv-to-enc: New file.
59103         * lib/uniconv/u8-conv-to-enc.c: New file.
59104         * modules/uniconv/u8-conv-to-enc-tests: New file.
59105         * tests/uniconv/test-u8-conv-to-enc.c: New file.
59106
59107         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
59108         u32_conv_to_encoding): New declarations.
59109
59110 2007-06-09  Bruno Haible  <bruno@clisp.org>
59111
59112         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
59113
59114 2007-06-09  Bruno Haible  <bruno@clisp.org>
59115
59116         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
59117         * modules/malloca: Renamed from modules/allocsa, updated.
59118         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
59119         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
59120         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
59121         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
59122         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
59123         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
59124         * modules/xmalloca: Renamed from modules/xallocsa, updated.
59125         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
59126         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
59127         * modules/c-strcasestr (Depends-on): Update.
59128         * lib/c-strcasestr.c: Update.
59129         * modules/c-strstr (Depends-on): Update.
59130         * lib/c-strstr.c: Update.
59131         * modules/canonicalize-lgpl (Depends-on): Update.
59132         * lib/canonicalize-lgpl.c: Update.
59133         * modules/clean-temp (Depends-on): Update.
59134         * lib/clean-temp.c: Update.
59135         * modules/csharpcomp (Depends-on): Update.
59136         * lib/csharpcomp.c: Update.
59137         * modules/csharpexec (Depends-on): Update.
59138         * lib/csharpexec.c: Update.
59139         * modules/javacomp (Depends-on): Update.
59140         * lib/javacomp.c: Update.
59141         * modules/javaexec (Depends-on): Update.
59142         * lib/javaexec.c: Update.
59143         * modules/mbscasestr (Depends-on): Update.
59144         * lib/mbscasestr.c: Update.
59145         * modules/mbsstr (Depends-on): Update.
59146         * lib/mbsstr.c: Update.
59147         * modules/setenv (Depends-on): Update.
59148         * lib/setenv.c: Update.
59149         * modules/strcasestr (Depends-on): Update.
59150         * lib/strcasestr.c: Update.
59151         * modules/striconveha (Depends-on): Update.
59152         * lib/striconveha.c: Update.
59153         * modules/relocatable-prog-wrapper (Files): Update.
59154         * lib/relocwrapper.c: Update.
59155         * build-aux/install-reloc: Update.
59156         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
59157
59158 2007-06-08  Bruno Haible  <bruno@clisp.org>
59159
59160         Port to uClibc.
59161         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
59162         * lib/fpurge.c (fpurge): Likewise.
59163         * lib/freading.c (freading): Likewise.
59164         * lib/fseeko.c (rpl_fseeko): Likewise.
59165         * lib/fseterr.c (fseterr): Likewise.
59166         * lib/fwriting.c (fwriting): Likewise.
59167         * tests/test-fflush.c (main): Avoid a failure on uClibc.
59168
59169 2007-06-08  Bruno Haible  <bruno@clisp.org>
59170
59171         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
59172         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
59173         * modules/gettext (Files): Add m4/intlmacosx.m4.
59174
59175 2007-06-07  Bruno Haible  <bruno@clisp.org>
59176
59177         * modules/localename-tests: New file.
59178         * tests/test-localename.c: New file.
59179
59180         New module 'localename'.
59181         * lib/localename.h: New file.
59182         * lib/localename.c: New file, from GNU gettext.
59183         * m4/localename.m4: New file.
59184         * modules/localename: New file.
59185
59186 2007-06-07  Bruno Haible  <bruno@clisp.org>
59187
59188         Work around the lack of <wchar.h> on some builds of uClibc.
59189         * doc/headers/wchar.texi: Update.
59190         * lib/wchar_.h: Include <wchar.h> only if it exists.
59191         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
59192         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
59193         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
59194         doesn't exist.
59195         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
59196         * modules/mbfile (Depends-on): Add wchar.
59197         * modules/mbiter (Depends-on): Likewise.
59198         * modules/mbuiter (Depends-on): Likewise.
59199         Reported by Simon Josefsson.
59200
59201 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59202
59203         Work around problem reported by Steven M. Schweda in
59204         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
59205         Tru64 5.1B with the Compaq compiler environment installed declares
59206         an 'isblank' function but does not define it in the C library.
59207         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
59208         * lib/regex_internal.h (isblank): Likewise.
59209         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
59210         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59211
59212 2007-06-05  Bruno Haible  <bruno@clisp.org>
59213
59214         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
59215         ia64.
59216         * modules/printf-safe: New file.
59217         * modules/fprintf-posix (Depends-on): Add printf-safe.
59218         * modules/printf-posix (Depends-on): Likewise.
59219         * modules/snprintf-posix (Depends-on): Likewise.
59220         * modules/sprintf-posix (Depends-on): Likewise.
59221         * modules/vasnprintf-posix (Depends-on): Likewise.
59222         * modules/vasprintf-posix (Depends-on): Likewise.
59223         * modules/vfprintf-posix (Depends-on): Likewise.
59224         * modules/vprintf-posix (Depends-on): Likewise.
59225         * modules/vsnprintf-posix (Depends-on): Likewise.
59226         * modules/vsprintf-posix (Depends-on): Likewise.
59227         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
59228         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
59229         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
59230         "no" on i386, x86_64, ia64.
59231         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
59232         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59233         on i386, x86_64, ia64.
59234         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
59235         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59236         on i386, x86_64, ia64.
59237         * tests/test-vasnprintf-posix.c: Include float.h.
59238         (LDBL80_WORDS): New macro.
59239         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59240         on i386, x86_64, ia64.
59241         * tests/test-vasprintf-posix.c: Include float.h.
59242         (LDBL80_WORDS): New macro.
59243         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59244         on i386, x86_64, ia64.
59245         * tests/test-snprintf-posix.c: Include float.h.
59246         * tests/test-sprintf-posix.c: Likewise.
59247         * tests/test-vsnprintf-posix.c: Likewise.
59248         * tests/test-vsprintf-posix.c: Likewise.
59249
59250 2007-06-05  Bruno Haible  <bruno@clisp.org>
59251
59252         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
59253         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
59254         non-IEEE numbers on i386, x86_64, ia64.
59255         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
59256         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
59257         * tests/test-isnanl.h: Include float.h.
59258         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
59259
59260 2007-06-05  Bruno Haible  <bruno@clisp.org>
59261
59262         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
59263         also the %a / %A. Handle the %a / %A code before this extra handling.
59264
59265 2007-06-05  Bruno Haible  <bruno@clisp.org>
59266
59267         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
59268         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
59269
59270 2007-06-05  Bruno Haible  <bruno@clisp.org>
59271
59272         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
59273         typo in variable name.
59274
59275 2007-06-05  Eric Blake  <ebb9@byu.net>
59276
59277         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
59278         Reported by Simon Josefsson.
59279
59280 2007-06-04  Bruno Haible  <bruno@clisp.org>
59281
59282         Avoid test failures on some PowerPC platforms.
59283         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
59284         Define differently for PowerPC.
59285         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
59286         Reported by Gary V. Vaughan <gary@gnu.org>.
59287
59288 2007-06-02  Bruno Haible  <bruno@clisp.org>
59289
59290         Fix test-stdint failure on FreeBSD/ia64.
59291         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
59292         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
59293         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
59294         * doc/headers/stdint.texi: Update.
59295
59296 2007-06-01  Bruno Haible  <bruno@clisp.org>
59297
59298         * tests/test-binary-io.c (main): Pass a third argument to open().
59299         Reported by Gary V. Vaughan <gary@gnu.org>.
59300
59301 2007-06-01  Bruno Haible  <bruno@clisp.org>
59302
59303         * doc/functions/frexpl.texi: Update for mingw.
59304
59305 2007-06-01  Bruno Haible  <bruno@clisp.org>
59306
59307         * tests/test-lseek.c (main): Disable test of errno for invalid third
59308         argument.
59309         * doc/functions/lseek.texi: Update.
59310         Reported by Gary V. Vaughan <gary@gnu.org>.
59311
59312 2007-05-28  Bruno Haible  <bruno@clisp.org>
59313
59314         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
59315
59316 2007-05-31  Eric Blake  <ebb9@byu.net>
59317
59318         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
59319         cross compiling.
59320
59321 2007-05-30  Eric Blake  <ebb9@byu.net>
59322         and Bruno Haible  <bruno@clisp.org>
59323
59324         Work around mingw test failures exposed by m4-1.4.9b.
59325         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
59326         * tests/test-unistd.c: Disable uid_t and git_t tests for the
59327         moment.
59328
59329 2007-05-30  Bruno Haible  <bruno@clisp.org>
59330
59331         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
59332         assuming that they are closed. Needed on HP-UX 11.
59333
59334 2007-05-29  Bruno Haible  <bruno@clisp.org>
59335
59336         Fix a problem with #include_next.
59337         * lib/dirent_.h: Split the double-inclusion guard.
59338         * lib/fcntl_.h: Likewise.
59339         * lib/float_.h: Likewise.
59340         * lib/iconv_.h: Likewise.
59341         * lib/inttypes_.h: Likewise.
59342         * lib/locale_.h: Likewise.
59343         * lib/math_.h: Likewise.
59344         * lib/netinet_in_.h: Likewise.
59345         * lib/search_.h: Likewise.
59346         * lib/signal_.h: Likewise.
59347         * lib/stdint_.h: Likewise.
59348         * lib/stdio_.h: Likewise.
59349         * lib/stdlib_.h: Likewise.
59350         * lib/string_.h: Likewise.
59351         * lib/sys_select_.h: Likewise.
59352         * lib/sys_socket_.h: Likewise.
59353         * lib/sys_stat_.h: Likewise.
59354         * lib/sys_time_.h: Likewise.
59355         * lib/sysexits_.h: Likewise.
59356         * lib/time_.h: Likewise.
59357         * lib/unistd_.h: Likewise.
59358         * lib/wchar_.h: Likewise.
59359         * lib/wctype_.h: Likewise.
59360
59361 2007-05-29  Bruno Haible  <bruno@clisp.org>
59362
59363         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59364         for the moment.
59365
59366 2007-05-29  Bruno Haible  <bruno@clisp.org>
59367
59368         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59369         invocation.
59370         Reported by Eric Blake.
59371
59372 2007-05-29  Bruno Haible  <bruno@clisp.org>
59373
59374         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59375         compiling case.
59376
59377 2007-05-29  Eric Blake  <ebb9@byu.net>
59378             Bruno Haible  <bruno@clisp.org>
59379
59380         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59381         cross compiles.
59382
59383 2007-05-28  Eric Blake  <ebb9@byu.net>
59384
59385         * modules/closein-tests (test_closein_LDADD): Support test on
59386         cygwin with libtool.
59387
59388 2007-05-28  Bruno Haible  <bruno@clisp.org>
59389
59390         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59391         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59392         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59393         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59394         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59395         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59396         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59397         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59398         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59399
59400 2007-05-28  Eric Blake  <ebb9@byu.net>
59401
59402         Unconditionally include <config.h> in unit tests.
59403         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
59404         * tests/test-allocsa.c, tests/test-arcfour.c,
59405         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
59406         tests/test-array_list.c, tests/test-array_oset.c,
59407         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
59408         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
59409         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
59410         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
59411         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
59412         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
59413         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
59414         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
59415         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
59416         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
59417         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
59418         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
59419         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
59420         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
59421         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
59422         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
59423         test-md5.c, test-memmem.c, test-printf-posix.c,
59424         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
59425         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
59426         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
59427         test-strcasestr.c, test-striconv.c, test-striconveh.c,
59428         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
59429         test-vasnprintf-posix2.c, test-vasnprintf.c,
59430         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
59431         test-vfprintf-posix.c, test-vprintf-posix.c,
59432         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
59433         test-xvasprintf.c: Likewise.
59434
59435 2007-05-28  Bruno Haible  <bruno@clisp.org>
59436
59437         * gnulib-tool (func_import): Remember the --with-tests command-line
59438         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
59439         Reported by Eric Blake.
59440
59441 2007-05-28  Bruno Haible  <bruno@clisp.org>
59442
59443         * modules/ftell-tests: New file.
59444         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
59445         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
59446
59447         * lib/ftell.c: New file.
59448         * modules/ftell: New file.
59449         * m4/ftell.m4: New file.
59450         * doc/functions/ftell.texi: Update.
59451         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
59452         REPLACE_FTELL.
59453         * lib/stdio_.h (rpl_ftell): New declaration.
59454         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
59455         REPLACE_FTELL.
59456
59457 2007-05-28  Eric Blake  <ebb9@byu.net>
59458
59459         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
59460
59461 2007-05-28  Bruno Haible  <bruno@clisp.org>
59462
59463         * modules/fseek-tests: New file.
59464         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
59465         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
59466
59467         * lib/fseek.c: New file.
59468         * modules/fseek: New file.
59469         * m4/fseek.m4: New file.
59470         * doc/functions/fseek.texi: Update.
59471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59472         REPLACE_FSEEK.
59473         * lib/stdio_.h (rpl_fseek): New declaration.
59474         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59475         REPLACE_FSEEK.
59476
59477 2007-05-28  Bruno Haible  <bruno@clisp.org>
59478
59479         * lib/stdio_.h (fflush): More comments.
59480
59481 2007-05-28  Bruno Haible  <bruno@clisp.org>
59482
59483         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59484         runtime test.
59485
59486 2007-05-28  Eric Blake  <ebb9@byu.net>
59487
59488         Improve lseek module.
59489         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59490         * lib/unistd_.h (lseek): Scale back link warning message.
59491         * tests/test-lseek.c: Beef up test.
59492         * tests/test-lseek.sh: Exercise more facets of lseek.
59493         Reported by Bruno Haible.
59494
59495 2007-05-28  Bruno Haible  <bruno@clisp.org>
59496
59497         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59498         to define.
59499
59500 2007-05-27  Bruno Haible  <bruno@clisp.org>
59501
59502         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59503
59504 2007-05-27  Bruno Haible  <bruno@clisp.org>
59505
59506         * modules/openmp: New file.
59507         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59508         Noah Misch.
59509
59510 2007-05-26  Bruno Haible  <bruno@clisp.org>
59511
59512         * modules/chdir-long (Depends-on): Add fchdir.
59513         * modules/chdir-safer (Depends-on): Likewise.
59514         * modules/fts (Depends-on): Likewise.
59515         * modules/fts-lgpl (Depends-on): Likewise.
59516         * modules/openat (Depends-on): Likewise.
59517         * modules/savewd (Depends-on): Likewise.
59518
59519 2007-05-24  Eric Blake  <ebb9@byu.net>
59520
59521         Fix lseek on mingw.
59522         * modules/lseek: New module.
59523         * m4/lseek.m4: New file.
59524         * lib/lseek.c: New file.
59525         * modules/lseek-tests: New file.
59526         * tests/test-lseek.c: New file.
59527         * tests/test-lseek.sh: New file.
59528         * MODULES.html.sh: Document lseek module.
59529         * modules/fflush (Depends-on): Add lseek, fseeko.
59530         * modules/fseeko (Depends-on): Likewise.
59531         * modules/ftello (Depends-on): Likewise.
59532         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59533         broken.
59534         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59535         broken.
59536         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59537         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59538         * lib/ftello.c (rpl_ftello): Likewise.
59539         * tests/test-fseeko.c (main): Test this.
59540         * tests/test-fseeko.sh: Likewise.
59541         * tests/test-ftello.c (main): Likewise.
59542         * tests/test-ftello.sh: Likewise.
59543         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59544         implies replacing fseek.
59545         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59546         HAVE_FTELLO.
59547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59548         * modules/unistd (Makefile.am): Likewise.
59549         * lib/unistd_.h (lseek): Declare a replacement.
59550         * doc/functions/lseek.texi (lseek): Document this fix.
59551         * doc/functions/fseek.texi (fseek): Likewise.
59552         * doc/functions/ftell.texi (ftell): Likewise.
59553
59554 2007-05-24  Bruno Haible  <bruno@clisp.org>
59555
59556         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59557         in the printed representation of a NaN.
59558         * tests/test-vasprintf-posix.c (test_function): Likewise.
59559         * tests/test-snprintf-posix.h (test_function): Likewise.
59560         * tests/test-sprintf-posix.h (test_function): Likewise.
59561         Reported by Eric Blake.
59562
59563 2007-05-23  Eric Blake  <ebb9@byu.net>
59564
59565         Fix fseeko/ftello on cygwin 1.5.24.
59566         * doc/functions/fseeko.texi (fseeko): Document the fix.
59567         * doc/functions/ftello.texi (ftello): Document the fix.
59568         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59569         * doc/functions/stdout.text (stdout): New file.
59570         * doc/functions/stderr.text (stderr): New file.
59571         * doc/gnulib.texi (Function Substitutes): Use new files.
59572         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59573         prior to 1.7.0.
59574         * tests/test-ftello.c (main): Likewise for ftello.
59575         * tests/test-fseeko.sh: New file.
59576         * tests/test-ftello.sh: New file.
59577         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59578         with seekable stdin.
59579         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59580         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59581         (gl_REPLACE_FSEEKO): New macro.
59582         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59583         * modules/fseeko (Files): Distribute fseeko.c.
59584         * modules/ftello (Files): Distribute ftello.c.
59585         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59586         mode.
59587         * lib/ftello.c (rpl_ftello): New file.
59588         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59589         fseeko, ftello.
59590         (gl_STDIN_LARGE_OFFSET): New macro.
59591         * modules/stdio (Makefile.am): Perform the replacement.
59592         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59593
59594 2007-05-23  Bruno Haible  <bruno@clisp.org>
59595
59596         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59597         GNULIB_POSIXCHECK is defined.
59598
59599 2007-05-21  Bruno Haible  <bruno@clisp.org>
59600
59601         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59602         Check also the output for NaN arguments. When cross-compiling, guess
59603         no on IRIX.
59604         * lib/vasnprintf.c: Update comments.
59605         * tests/test-vasnprintf-posix.c (strisnan): New function.
59606         (test_function): Use it.
59607         * tests/test-vasprintf-posix.c (strisnan): New function.
59608         (test_function): Use it.
59609         * tests/test-snprintf-posix.h (strisnan): New function.
59610         (test_function): Use it.
59611         * tests/test-sprintf-posix.h (strisnan): New function.
59612         (test_function): Use it.
59613         Reported by Eric Blake.
59614
59615 2007-05-20  Bruno Haible  <bruno@clisp.org>
59616
59617         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59618         numbers that fails on BeOS.
59619         * doc/functions/frexpl.texi: Update.
59620
59621 2007-05-20  Jim Meyering  <jim@meyering.net>
59622
59623         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59624         forced upon us by glibc-2.6.
59625
59626 2007-05-20  Bruno Haible  <bruno@clisp.org>
59627
59628         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59629         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59630         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59631         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59632         NEED_PRINTF_INFINITE.
59633         (is_infinitel): New function.
59634         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59635         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59636         gl_PREREQ_VASNPRINTF_INFINITE.
59637         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59638         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59639         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59640         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59641         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59642         gl_PREREQ_VASNPRINTF_INFINITE.
59643         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59644         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59645         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59646         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59647         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59648         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59649         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59650         * doc/functions/fprintf.texi: Update.
59651         * doc/functions/printf.texi: Update.
59652         * doc/functions/snprintf.texi: Update.
59653         * doc/functions/sprintf.texi: Update.
59654         * doc/functions/vfprintf.texi: Update.
59655         * doc/functions/vprintf.texi: Update.
59656         * doc/functions/vsnprintf.texi: Update.
59657         * doc/functions/vsprintf.texi: Update.
59658
59659 2007-05-20  Bruno Haible  <bruno@clisp.org>
59660
59661         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59662         was not found in libc.
59663         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59664
59665 2007-05-20  Bruno Haible  <bruno@clisp.org>
59666
59667         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59668         printed as "-nan" instead of "nan".
59669         * tests/test-vasprintf-posix.c (test_function): Likewise.
59670         * tests/test-snprintf-posix.h (test_function): Likewise.
59671         * tests/test-sprintf-posix.h (test_function): Likewise.
59672         Needed for HP-UX 11.
59673
59674 2007-05-20  Jim Meyering  <jim@meyering.net>
59675
59676         Fix buggy test for the fchownat-deref bug.
59677         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59678         symlink required for the run-test.  Without it, this test would
59679         always declare that fchownat doesn't work, and client code would
59680         unnecessarily use the replacement function with fixed libc.
59681         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59682         Reported by Greg Schafer.
59683
59684 2007-05-19  Bruno Haible  <bruno@clisp.org>
59685
59686         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59687         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59688         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59689         Needed for IRIX 6.5 and Solaris 2.5.1.
59690
59691 2007-05-19  Bruno Haible  <bruno@clisp.org>
59692
59693         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59694         (test_function): Skip tests involving -0.0 on platforms where
59695         -0.0 = 0.0.
59696         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59697         (test_function): Skip tests involving -0.0 on platforms where
59698         -0.0 = 0.0.
59699         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59700         (test_function): Skip tests involving -0.0 on platforms where
59701         -0.0 = 0.0.
59702         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59703         (test_function): Skip tests involving -0.0 on platforms where
59704         -0.0 = 0.0.
59705         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59706         tests.
59707         * tests/test-printf-posix.h (test_function): Likewise.
59708         * tests/test-printf-posix.output: Remove all -0.0 related results.
59709         Needed for IRIX 6.5.
59710
59711 2007-05-19  Bruno Haible  <bruno@clisp.org>
59712
59713         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59714         printed as "nan0x7fffffff" instead of "nan".
59715         * tests/test-vasprintf-posix.c (test_function): Likewise.
59716         * tests/test-snprintf-posix.h (test_function): Likewise.
59717         * tests/test-sprintf-posix.h (test_function): Likewise.
59718         * tests/test-fprintf-posix.h (NaN): Remove macro.
59719         (test_function): Remove all NaN related tests.
59720         * tests/test-printf-posix.h (NaN): Remove macro.
59721         (test_function): Remove all NaN related tests.
59722         * tests/test-printf-posix.output: Remove all NaN related results.
59723         Needed for IRIX 6.5.
59724
59725 2007-05-19  Bruno Haible  <bruno@clisp.org>
59726
59727         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59728         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59729
59730 2007-05-19  Bruno Haible  <bruno@clisp.org>
59731
59732         * lib/float_.h: New file.
59733         * m4/float_h.m4: New file.
59734         * modules/float: New file.
59735         * modules/isnanl (Dependencies): Add float.
59736         * modules/isnanl-nolibm (Dependencies): Likewise.
59737         * modules/mathl (Dependencies): Likewise.
59738         * modules/printf-frexpl (Dependencies): Likewise.
59739         * modules/signbit (Dependencies): Likewise.
59740         * modules/vasnprintf (Dependencies): Likewise.
59741         * doc/headers/float.texi: Update.
59742
59743 2007-05-19  Jim Meyering  <jim@meyering.net>
59744
59745         * lib/utimens.c (gl_futimens): Rename from futimens,
59746         now that glibc-2.6 declares futimens.
59747         * lib/utimens.h: Likewise.
59748
59749 2007-05-19  Bruno Haible  <bruno@clisp.org>
59750
59751         Avoid test failures on mingw.
59752         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59753         * tests/test-printf-posix.sh: Likewise.
59754         * tests/test-vfprintf-posix.sh: Likewise.
59755         * tests/test-vprintf-posix.sh: Likewise.
59756
59757 2007-05-19  Bruno Haible  <bruno@clisp.org>
59758
59759         Fix *printf result for NaN, Inf, -0.0 on mingw.
59760         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59761         * lib/vasnprintf.c: Include math.h and isnan.h.
59762         (is_infinite_or_zero): New function.
59763         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59764         values in the %f, %F, %e, %E, %g, %G directives.
59765         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59766         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59767         gl_PRINTF_INFINITE and test its result. Invoke
59768         gl_PREREQ_VASNPRINTF_INFINITE.
59769         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59770         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59771         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59772         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59773         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59774         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59775         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59776         * doc/functions/fprintf.texi: Update.
59777         * doc/functions/printf.texi: Update.
59778         * doc/functions/snprintf.texi: Update.
59779         * doc/functions/sprintf.texi: Update.
59780         * doc/functions/vfprintf.texi: Update.
59781         * doc/functions/vprintf.texi: Update.
59782         * doc/functions/vsnprintf.texi: Update.
59783         * doc/functions/vsprintf.texi: Update.
59784
59785 2007-05-19  Bruno Haible  <bruno@clisp.org>
59786
59787         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59788         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59789         Instead of multiplying with 10^k, set extra_zeroes to k.
59790         (scale10_round_long_double): Remove function.
59791
59792 2007-05-18  Bruno Haible  <bruno@clisp.org>
59793
59794         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59795         introduced on 2007-05-06.
59796
59797 2007-05-18  Bruno Haible  <bruno@clisp.org>
59798
59799         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59800         %g directives.
59801         * tests/test-vasprintf-posix.c (test_function): Likewise.
59802         * tests/test-snprintf-posix.h (test_function): Likewise.
59803         * tests/test-sprintf-posix.h (test_function): Likewise.
59804
59805 2007-05-18  Bruno Haible  <bruno@clisp.org>
59806
59807         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59808         (strmatch): New function.
59809         (test_function): Test the %f directive on numbers of various exponents.
59810         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59811         (strmatch): New function.
59812         (test_function): Test the %f directive on numbers of various exponents.
59813         * tests/test-snprintf-posix.h (strmatch): New function.
59814         (test_function): Test the %f directive on numbers of various exponents.
59815         * tests/test-sprintf-posix.h (strmatch): New function.
59816         (test_function): Test the %f directive on numbers of various exponents.
59817         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59818         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59819         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59820         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59821
59822 2007-05-18  Bruno Haible  <bruno@clisp.org>
59823
59824         Add support for 'long double' number output.
59825         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59826         * lib/vasnprintf.c: Include math.h and float+.h.
59827         (mp_limb_t): New type.
59828         (GMP_LIMB_BITS): New macro.
59829         (mp_twolimb_t): New type.
59830         (GMP_TWOLIMB_BITS): New macro.
59831         (mpn_t): New type.
59832         (multiply, divide, convert_to_decimal, decode_long_double,
59833         scale10_round_long_double, scale10_round_decimal_long_double,
59834         floorlog10l): New functions.
59835         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59836         for the %f, %F, %e, %E, %g, %G directives.
59837         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59838         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59839         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59840         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59841         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59842         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59843         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59844         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59845         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59846         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59847         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59848         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59849         * modules/snprintf-posix (Depends-on): Likewise.
59850         * modules/sprintf-posix (Depends-on): Likewise.
59851         * modules/vasnprintf-posix (Depends-on): Likewise.
59852         * modules/vasprintf-posix (Depends-on): Likewise.
59853         * modules/vfprintf-posix (Depends-on): Likewise.
59854         * modules/vsnprintf-posix (Depends-on): Likewise.
59855         * modules/vsprintf-posix (Depends-on): Likewise.
59856         * modules/vasnprintf (Files): Add lib/float+.h.
59857         * doc/functions/fprintf.texi: Update.
59858         * doc/functions/printf.texi: Update.
59859         * doc/functions/snprintf.texi: Update.
59860         * doc/functions/sprintf.texi: Update.
59861         * doc/functions/vfprintf.texi: Update.
59862         * doc/functions/vprintf.texi: Update.
59863         * doc/functions/vsnprintf.texi: Update.
59864         * doc/functions/vsprintf.texi: Update.
59865
59866 2007-05-18  Bruno Haible  <bruno@clisp.org>
59867
59868         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59869
59870 2007-05-18  Bruno Haible  <bruno@clisp.org>
59871
59872         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59873         for printing 64-bit integers. Needed for mingw.
59874
59875 2007-05-18  Bruno Haible  <bruno@clisp.org>
59876
59877         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59878         gl_FUNC_FREXPL_WORKS.
59879         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59880
59881 2007-05-18  Bruno Haible  <bruno@clisp.org>
59882
59883         * modules/frexpl-nolibm-tests: New file.
59884
59885         * modules/frexpl-nolibm: New file.
59886         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59887
59888 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59889
59890         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59891         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59892         GCC 4.2, which otherwise issues a lot of warnings.
59893         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59894         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59895         Likewise.
59896         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59897         * modules/iconv_open (iconv.h): Likewise.
59898         * modules/locale (locale.h): Likewise.
59899         * modules/netinet_in (netinet/in.h): Likewise.
59900         * modules/sys_select (sys_select.h): Likewise.
59901         * modules/sys_socket (sys/socket.h): Likewise.
59902         * modules/sys_stat (sys/stat.h): Likewise.
59903         * modules/sysexits (sysexits.h): Likewise.
59904         * modules/unistd (unistd.h): Likewise.
59905
59906 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59907
59908         * modules/closein-tests (Makefile.am): Distribute
59909         `test-closein.sh'.
59910
59911 2007-05-17  Bruno Haible  <bruno@clisp.org>
59912
59913         * tests/test-printf-posix.output: Renamed from
59914         tests/test-fprintf-posix.out.
59915         * modules/fprintf-posix-tests: Update.
59916         * modules/printf-posix-tests: Update.
59917         * modules/vfprintf-posix-tests: Update.
59918         * modules/vprintf-posix-tests: Update.
59919         * tests/test-fprintf-posix.sh: Update.
59920         * tests/test-printf-posix.sh: Update.
59921         * tests/test-vfprintf-posix.sh: Update.
59922         * tests/test-vprintf-posix.sh: Update.
59923         Reported by Ralf Wildenhues.
59924
59925 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59926
59927         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59928         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59929         GCC 4.2, which otherwise issues a lot of warnings.
59930         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59931         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59932         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59933         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59934         it should no longer be needed.
59935         * lib/string_.h: Likewise.
59936         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59937         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59938         * modules/inttypes (inttypes.h): Likewise.
59939         * modules/math (math.h): Likewise.
59940         * modules/search (search.h): Likewise.
59941         * modules/signal (signal.h): Likewise.
59942         * modules/stdint (stdint.h): Likewise.
59943         * modules/stdio (stdio.h): Likewise.
59944         * modules/stdlib (stdlib.h): Likewise.
59945         * modules/string (string.h): Likewise.
59946         * modules/sys_time (sys/time.h): Likewise.
59947         * modules/time (time.h): Likewise.
59948         * modules/wchar (wchar.h): Likewise.
59949         * modules/wctype (wtype.h): Likewise.
59950
59951 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59952
59953         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59954
59955 2007-05-13  Bruno Haible  <bruno@clisp.org>
59956
59957         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59958         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59959         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59960         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59961         (gl_PREREQ_STRTOK_R): Don't require it here.
59962
59963 2007-05-13  Bruno Haible  <bruno@clisp.org>
59964
59965         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59966         when used in C++ mode.
59967
59968 2007-05-12  Bruno Haible  <bruno@clisp.org>
59969
59970         * lib/linebuffer.h: Tweak doc.
59971         * lib/linebuffer.c: Likewise.
59972
59973 2007-05-12  James Youngman  <jay@gnu.org>
59974
59975         * lib/linebuffer.c (readlinebuffer_delim): New function,
59976         like readlinebuffer, but use a caller-specified delimiter.
59977         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59978         as the delimiter.
59979         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59980
59981 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59982
59983         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59984         * modules/openat (Files): Remove openat-die.c.
59985         (Depends-on): Add openat-die.
59986         * modules/openat-die: New module.
59987
59988 2007-05-06  Bruno Haible  <bruno@clisp.org>
59989
59990         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59991         Update with info about Cygwin.
59992         * doc/functions/fprintf.texi: Update.
59993         * doc/functions/printf.texi: Update.
59994         * doc/functions/snprintf.texi: Update.
59995         * doc/functions/sprintf.texi: Update.
59996         * doc/functions/vfprintf.texi: Update.
59997         * doc/functions/vprintf.texi: Update.
59998         * doc/functions/vsnprintf.texi: Update.
59999         * doc/functions/vsprintf.texi: Update.
60000         Reported by Eric Blake.
60001
60002 2007-05-06  Bruno Haible  <bruno@clisp.org>
60003
60004         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
60005         padding ourselves for the floating-point directives.
60006         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
60007         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
60008         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60009         gl_PRINTF_FLAG_ZERO and test its result. Invoke
60010         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
60011         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60012         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60013         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60014         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60015         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60016         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60017         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60018         * tests/test-snprintf-posix.h (test_function): Also check the width
60019         and some flags in the %f directive.
60020         * tests/test-sprintf-posix.h (test_function): Likewise.
60021         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60022         * tests/test-vasprintf-posix.c (test_function): Likewise.
60023         * doc/functions/fprintf.texi: Update.
60024         * doc/functions/printf.texi: Update.
60025         * doc/functions/snprintf.texi: Update.
60026         * doc/functions/sprintf.texi: Update.
60027         * doc/functions/vfprintf.texi: Update.
60028         * doc/functions/vprintf.texi: Update.
60029         * doc/functions/vsnprintf.texi: Update.
60030         * doc/functions/vsprintf.texi: Update.
60031
60032 2007-05-06  Bruno Haible  <bruno@clisp.org>
60033
60034         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
60035         pass the ' flag character to sprintf or snprintf.
60036         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
60037         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
60038         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60039         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
60040         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
60041         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60042         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60043         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60044         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60045         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60046         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60047         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60048         * tests/test-snprintf-posix.h (test_function): Also check the grouping
60049         flag.
60050         * tests/test-sprintf-posix.h (test_function): Likewise.
60051         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60052         * tests/test-vasprintf-posix.c (test_function): Likewise.
60053         * doc/functions/fprintf.texi: Update.
60054         * doc/functions/printf.texi: Update.
60055         * doc/functions/snprintf.texi: Update.
60056         * doc/functions/sprintf.texi: Update.
60057         * doc/functions/vfprintf.texi: Update.
60058         * doc/functions/vprintf.texi: Update.
60059         * doc/functions/vsnprintf.texi: Update.
60060         * doc/functions/vsprintf.texi: Update.
60061
60062 2007-05-01  Bruno Haible  <bruno@clisp.org>
60063
60064         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
60065
60066 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
60067
60068         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
60069         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
60070
60071 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60072
60073         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
60074         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
60075         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
60076
60077 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
60078
60079         * lib/argp-help.c (struct hol_entry): New member `ord'.
60080         (HOL_ENTRY_PTRCMP): Use ord for comparison
60081         (hol_sort): Initialize ord.
60082
60083 2007-05-01  Bruno Haible  <bruno@clisp.org>
60084
60085         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
60086         Reported by Eric Blake.
60087         * doc/gnulib.texi (Function Substitutes): Update.
60088
60089 2007-05-01  Bruno Haible  <bruno@clisp.org>
60090
60091         * doc/functions.texi: Remove file, now redundant through
60092         doc/functions/*.texi.
60093
60094 2007-05-01  Bruno Haible  <bruno@clisp.org>
60095
60096         * modules/argp (Depends-on): Add sleep.
60097
60098 2007-05-01  Bruno Haible  <bruno@clisp.org>
60099
60100         * modules/sleep-tests: New file.
60101         * tests/test-sleep.c: New file.
60102
60103         * modules/sleep: New file.
60104         * lib/sleep.c: New file.
60105         * m4/sleep.m4: New file.
60106         * lib/unistd_.h (sleep): New declaration.
60107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
60108         HAVE_SLEEP.
60109         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
60110         * doc/functions/sleep.texi: Document the sleep module.
60111
60112 2007-05-01  Bruno Haible  <bruno@clisp.org>
60113
60114         * lib/sigprocmask.h: Remove file.
60115         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
60116         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
60117         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
60118         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
60119         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
60120         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
60121         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
60122         HAVE_SIGSET_T as a shell variable.
60123         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
60124         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
60125         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
60126         (Depends-on): Add signal. Remove verify.
60127         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
60128         (Include): Mention <signal.h> instead of sigprocmask.h.
60129         * NEWS: Mention the change.
60130         * lib/fatal-signal.c: Don't include sigprocmask.h.
60131
60132 2007-05-01  Bruno Haible  <bruno@clisp.org>
60133
60134         * modules/signal: New file.
60135         * lib/signal_.h: New file.
60136         * m4/signal_h.m4: New file.
60137
60138 2007-05-01  Bruno Haible  <bruno@clisp.org>
60139
60140         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
60141         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
60142         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
60143         HAVE_WCTYPE_CTMP_BUG into wctype.h.
60144
60145 2007-05-01  Bruno Haible  <bruno@clisp.org>
60146
60147         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
60148         configure time.
60149         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
60150         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
60151         * modules/sys_stat (Makefile.am): Substitute their values into
60152         sys/stat.h.
60153
60154 2007-05-01  Bruno Haible  <bruno@clisp.org>
60155
60156         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
60157         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
60158         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
60159
60160 2007-05-01  Bruno Haible  <bruno@clisp.org>
60161
60162         * doc/header/assert.texi: Undo last change: don't mention the gnulib
60163         'assert' module here.
60164
60165 2007-05-01  Bruno Haible  <bruno@clisp.org>
60166
60167         * doc/functions/*.texi: New files.
60168         * doc/functions/google-ranking.txt: New file.
60169         * doc/gnulib.texi (Function Substitutes): New chapter.
60170         (ctime, inet_ntoa): Remove sections.
60171         * doc/ctime.texi: Remove file.
60172         * doc/inet_ntoa.texi: Remove file.
60173         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
60174         dependencies.
60175         (%.info): New rule, specifying a --reference-limit.
60176
60177 2007-05-01  Bruno Haible  <bruno@clisp.org>
60178
60179         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
60180
60181 2007-05-01  Bruno Haible  <bruno@clisp.org>
60182
60183         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
60184         the portability of 'mkdir' to mingw systems.
60185
60186 2007-05-01  Bruno Haible  <bruno@clisp.org>
60187
60188         * doc/headers/google-ranking.txt: New file.
60189
60190 2007-04-30  Eric Blake  <ebb9@byu.net>
60191
60192         Prefer fseeko to fseek.
60193         * modules/getpass (Depends-on): Add fseeko.
60194         * lib/getpass.c (getpass): Use fseeko, not fseek.
60195
60196 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
60197
60198         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
60199         assumes the sorting is stable, while most qsort implementations
60200         are not.  Use argument addresses to ensure they never compare as
60201         equal.
60202
60203         * tests/test-argp-2.sh (usage-indent test): Fix output
60204         (func_compare): Restore diff options
60205         * tests/test-argp.c: Restore #include "progname.h"
60206
60207 2007-04-29  Bruno Haible  <bruno@clisp.org>
60208
60209         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
60210         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60211         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
60212         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60213         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
60214         (configure.ac): Define CHECK_SNPRINTF_POSIX.
60215         (TESTS, check_PROGRAMS): Add test-snprintf.
60216         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
60217         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
60218         (TESTS, check_PROGRAMS): Add test-vsnprintf.
60219         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
60220         assertions that fail on HP-UX, OSF/1, or IRIX.
60221         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
60222
60223 2007-04-29  Bruno Haible  <bruno@clisp.org>
60224
60225         * MODULES.html.sh (posix_functions): Remove 'contents'.
60226
60227 2007-04-29  Karl Berry  <karl@gnu.org>
60228
60229         * config/srclist.txt (gendocs_template_min): new entry.
60230
60231 2007-04-29  Bruno Haible  <bruno@clisp.org>
60232
60233         Work around fpurge bug on BSD systems.
60234         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
60235         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
60236         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
60237         fpurge to rpl_fpurge if the system already has this function.
60238         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
60239         the case where the system already has this function. Correct invariants
60240         on BSD systems.
60241         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
60242         BSD systems.
60243
60244 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60245
60246         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
60247         proposed by Sven Verdoolaege.
60248
60249         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
60250         options.
60251         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
60252         (usage and help tests): Update
60253
60254 2007-04-29  Bruno Haible  <bruno@clisp.org>
60255
60256         * tests/test-fflush.c (main): Use a file of size 17, not 10.
60257         Print more information in case of failure. Disable a test on BeOS.
60258
60259 2007-04-29  Bruno Haible  <bruno@clisp.org>
60260
60261         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
60262         This helps debugging on systems on which no gdb is available.
60263
60264 2007-04-29  Bruno Haible  <bruno@clisp.org>
60265
60266         * lib/freading.h: Improve comments.
60267         * lib/fwriting.h: Likewise.
60268         * tests/test-freading.c (main): Don't check freading immediately after
60269         repositioning. Needed for glibc.
60270
60271 2007-04-29  Bruno Haible  <bruno@clisp.org>
60272
60273         * lib/freading.c (freading): Trivial simplification.
60274
60275 2007-04-28  Bruno Haible  <bruno@clisp.org>
60276
60277         * tests/test-fwriting.c (main): Also test the interaction between
60278         fflush and fwriting.
60279         * modules/fwriting-tests (Depends-on): Add fflush.
60280
60281         * tests/test-freading.c (main): Also test the interaction between
60282         fflush and freading.
60283         * modules/freading-tests (Depends-on): Add fflush.
60284
60285 2007-04-28  Bruno Haible  <bruno@clisp.org>
60286
60287         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
60288         fseeko and ftello.
60289         Suggested by Eric Blake.
60290
60291 2007-04-28  Jim Meyering  <jim@meyering.net>
60292
60293         Avoid false-negative in gl_STDINT_H's C99 conformance test.
60294         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
60295         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
60296
60297 2007-04-27  Eric Blake  <ebb9@byu.net>
60298
60299         * doc/headers/assert.texi (assert.h): Document assert module use.
60300
60301 2007-04-27  Bruno Haible  <bruno@clisp.org>
60302
60303         * doc/headers/*.texi: New files.
60304         * doc/gnulib.texi (Header File Substitutes): New chapter.
60305         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
60306         dependencies.
60307         (standards.info ,standards.html, standards.dvi): Update dependencies.
60308         (mostlyclean, clean): New targets.
60309
60310 2007-04-27  Bruno Haible  <bruno@clisp.org>
60311
60312         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
60313         * modules/sysexits (Files, Makefile.am): Update.
60314
60315         * lib/sys_socket_.h: Renamed from lib/socket_.h.
60316         * modules/sys_socket (Files, Makefile.am): Update.
60317
60318         * lib/sys_stat_.h: Renamed from lib/stat_.h.
60319         * modules/sys_stat (Files, Makefile.am): Update.
60320
60321 2007-04-27  Eric Blake  <ebb9@byu.net>
60322
60323         * lib/freading.h: Improve comments.
60324         * lib/fwriting.h: Likewise.
60325         * lib/fflush.c: Likewise.
60326
60327         Fix closein for mingw.
60328         * modules/closein-tests: Add tests for closein.
60329         * tests/test-closein.c: New file.
60330         * tests/test-closein.sh: Likewise.
60331         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
60332         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
60333
60334 2007-04-27  Bruno Haible  <bruno@clisp.org>
60335
60336         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
60337         version is < 6.
60338         * lib/math_.h [__DECC]: Likewise.
60339         * lib/stdio_.h [__DECC]: Likewise.
60340         * lib/stdlib_.h [__DECC]: Likewise.
60341         * lib/string_.h [__DECC]: Likewise.
60342         * lib/time_.h [__DECC]: Likewise.
60343         * lib/wchar_.h [__DECC]: Likewise.
60344         * lib/wctype_.h [__DECC]: Likewise.
60345
60346 2007-04-27  Bruno Haible  <bruno@clisp.org>
60347
60348         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
60349
60350 2007-04-27  Bruno Haible  <bruno@clisp.org>
60351
60352         * lib/fflush.c: Add comments.
60353         * modules/fpurge-tests (Depends-on): Add fflush.
60354         * modules/freadable-tests (Depends-on): Likewise.
60355         * modules/fwritable-tests (Depends-on): Likewise.
60356
60357 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60358
60359         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60360         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60361         Report by Bruno Haible <bruno@clisp.org>.
60362
60363 2007-04-26  Eric Blake  <ebb9@byu.net>
60364
60365         Fix fflush on mingw.
60366         * modules/fflush (Depends-on): Add freading.
60367         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60368         but unread data.
60369
60370 2007-04-26  Eric Blake  <ebb9@byu.net>
60371         and Bruno Haible  <bruno@clisp.org>
60372
60373         Implement freading and fwriting.
60374         * lib/freading.c: New file.
60375         * lib/freading.h: Likewise.
60376         * m4/freading.m4: Likewise.
60377         * modules/freading: Likewise.
60378         * modules/freading-tests: Likewise.
60379         * tests/test-freading.c: Likewise.
60380         * lib/fwriting.c: New file.
60381         * lib/fwriting.h: Likewise.
60382         * m4/fwriting.m4: Likewise.
60383         * modules/fwriting: Likewise.
60384         * modules/fwriting-tests: Likewise.
60385         * tests/test-fwriting.c: Likewise.
60386         * MODULES.html.sh (File stream based Input/Output): Mention them.
60387
60388 2007-04-26  Bruno Haible  <bruno@clisp.org>
60389
60390         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60391         'long' when we assume it.
60392         Suggested by Eric Blake.
60393
60394 2007-04-26  Bruno Haible  <bruno@clisp.org>
60395
60396         Ensure fseeko, ftello are declared on glibc systems.
60397         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
60398         * modules/fseeko (configure.ac-early): Likewise.
60399         * modules/ftello (configure.ac-early): Likewise.
60400         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
60401         AC_FUNC_FSEEKO for this.
60402         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
60403         (gl_CHECK_FSEEKO): Remove macro.
60404
60405 2007-04-26  Bruno Haible  <bruno@clisp.org>
60406
60407         * tests/test-fflush.c (main): Also check the ftell result after
60408         fflush and fseek/fseeko.
60409         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
60410         file descriptor position cache in the stream.
60411         * lib/fseeko.c (rpl_fseeko): Likewise.
60412
60413 2007-04-26  Bruno Haible  <bruno@clisp.org>
60414
60415         * modules/fflush-tests (Depends-on): Add fseeko.
60416
60417 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
60418             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60419
60420         * lib/argz_.h: ensure error_t definition is obtained in same
60421         mechanism system argz.h would have.
60422         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
60423         argz facilities are known bad.  Err on the side of caution if
60424         cross-compiling.
60425
60426 2007-04-25  Eric Blake  <ebb9@byu.net>
60427
60428         * lib/fpurge.c (includes): Use stdlib.h for free.
60429         * tests/test-fflush.c (main): Also test fflush-fseeko.
60430
60431 2007-04-25  Bruno Haible  <bruno@clisp.org>
60432
60433         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
60434         * lib/fseeko.c: New file.
60435         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
60436         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
60437         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
60438         gl_FUNC_FSEEKO.
60439         (gl_FUNC_FSEEKO): Invoke it.
60440         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
60441         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
60442         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
60443
60444 2007-04-25  Bruno Haible  <bruno@clisp.org>
60445
60446         * modules/fflush (Depends-on): Add ftello.
60447
60448 2007-04-25  Bruno Haible  <bruno@clisp.org>
60449
60450         * modules/ftello-tests: New file.
60451         * tests/test-ftello.c: New file.
60452
60453         * modules/ftello: New file.
60454         * m4/ftello.m4: New file.
60455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
60456         HAVE_FTELLO.
60457         * lib/stdio_.h (ftello): New declaration.
60458         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
60459         HAVE_FTELLO.
60460
60461 2007-04-25  Bruno Haible  <bruno@clisp.org>
60462
60463         * modules/fseeko-tests: New file.
60464         * tests/test-fseeko.c: New file.
60465
60466         * modules/fseeko: New file.
60467         * m4/fseeko.m4: New file.
60468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
60469         HAVE_FSEEKO.
60470         * lib/stdio_.h (fseeko): New declaration.
60471         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60472         HAVE_FSEEKO.
60473
60474 2007-04-25  Bruno Haible  <bruno@clisp.org>
60475
60476         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60477
60478 2007-04-25  Bruno Haible  <bruno@clisp.org>
60479
60480         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60481         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60482         * tests/test-unistd.c: Likewise.
60483         * tests/test-fcntl.c: Likewise.
60484
60485 2007-04-23  Eric Blake  <ebb9@byu.net>
60486
60487         * lib/fflush.c: Fix missing include.
60488         Reported by Bruno Haible.
60489
60490 2007-04-23  Bruno Haible  <bruno@clisp.org>
60491
60492         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60493         Reported by Eric Blake.
60494
60495 2007-04-23  Bruno Haible  <bruno@clisp.org>
60496
60497         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60498
60499 2007-04-23  Bruno Haible  <bruno@clisp.org>
60500
60501         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60502
60503 2007-04-23  Bruno Haible  <bruno@clisp.org>
60504
60505         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60506         Needed on HP-UX 11.
60507
60508 2007-04-16  Eric Blake  <ebb9@byu.net>
60509
60510         Make fflush rely on fpurge.
60511         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60512         open coding all variants.
60513         * modules/fflush (Depends-on): Add fpurge and unistd.
60514         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60515         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60516
60517         Fix --with-tests compilation on cygwin.
60518         * modules/argmatch-tests (Makefile.am): List gnulib library first
60519         in LDADD.
60520         * modules/argp-tests (Makefile.am): Likewise.
60521         * modules/array-list-tests (Makefile.am): Likewise.
60522         * modules/array-oset-tests (Makefile.am): Likewise.
60523         * modules/avltree-list-tests (Makefile.am): Likewise.
60524         * modules/avltree-oset-tests (Makefile.am): Likewise.
60525         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60526         * modules/carray-list-tests (Makefile.am): Likewise.
60527         * modules/dirname-tests (Makefile.am): Likewise.
60528         * modules/frexp-tests (Makefile.am): Likewise.
60529         * modules/isnanl-tests (Makefile.am): Likewise.
60530         * modules/linked-list-tests (Makefile.am): Likewise.
60531         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60532         * modules/lock-tests (Makefile.am): Likewise.
60533         * modules/rbtree-list-tests (Makefile.am): Likewise.
60534         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60535         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60536         * modules/tls-tests (Makefile.am): Likewise.
60537         * modules/tsearch-tests (Makefile.am): Likewise.
60538         * modules/xvasprintf-tests (Makefile.am): Likewise.
60539
60540         Fix fpurge for cygwin.
60541         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60542         value.
60543         * modules/fpurge-tests (Depends-on): Clean up trash.
60544
60545 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60546
60547         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60548
60549         * m4/autobuild.m4: Re-indent.
60550
60551 2007-04-13  Bruno Haible  <bruno@clisp.org>
60552
60553         * modules/fpurge-tests: New file.
60554         * tests/test-fpurge.c: New file.
60555
60556         * modules/fpurge: New file.
60557         * lib/fpurge.h: New file.
60558         * lib/fpurge.c: New file.
60559         * m4/fpurge.m4: New file.
60560
60561 2007-04-13  Bruno Haible  <bruno@clisp.org>
60562
60563         * modules/fbufmode-tests: New file.
60564         * tests/test-fbufmode.c: New file.
60565
60566         * modules/fbufmode: New file.
60567         * lib/fbufmode.h: New file.
60568         * lib/fbufmode.c: New file.
60569         * m4/fbufmode.m4: New file.
60570
60571 2007-04-13  Bruno Haible  <bruno@clisp.org>
60572
60573         * modules/fwritable-tests: New file.
60574         * tests/test-fwritable.c: New file.
60575
60576         * modules/fwritable: New file.
60577         * lib/fwritable.h: New file.
60578         * lib/fwritable.c: New file.
60579         * m4/fwritable.m4: New file.
60580
60581 2007-04-13  Bruno Haible  <bruno@clisp.org>
60582
60583         * modules/freadable-tests: New file.
60584         * tests/test-freadable.c: New file.
60585
60586         * modules/freadable: New file.
60587         * lib/freadable.h: New file.
60588         * lib/freadable.c: New file.
60589         * m4/freadable.m4: New file.
60590
60591 2007-04-13  Bruno Haible  <bruno@clisp.org>
60592
60593         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60594         MOSTLYCLEANFILES.
60595
60596 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60597
60598         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60599         gzip bootstrap.conf to avoid dragging in i18n machinery.
60600         (gnulib_tool_option): Use it.
60601
60602 2007-04-13  Bruno Haible  <bruno@clisp.org>
60603
60604         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60605         %F directives.
60606         * tests/test-vasprintf-posix.c (test_function): Likewise.
60607         * tests/test-snprintf-posix.h (test_function): Likewise.
60608         * tests/test-sprintf-posix.h (test_function): Likewise.
60609         * tests/test-fprintf-posix.h (test_function): Likewise.
60610         * tests/test-printf-posix.h (test_function): Likewise.
60611         * tests/test-fprintf-posix.out: Likewise.
60612
60613 2007-04-13  Bruno Haible  <bruno@clisp.org>
60614
60615         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60616         * modules/tls-tests (configure.ac): Likewise.
60617         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60618
60619 2007-04-13  Bruno Haible  <bruno@clisp.org>
60620
60621         * lib/tls.c (glthread_tls_get): Fix return type.
60622         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60623
60624 2007-04-12  Eric Blake  <ebb9@byu.net>
60625
60626         * modules/gettime (Depends-on): Remove gettime.
60627         Reported by Dmitry V. Levin.
60628
60629 2007-04-12  Bruno Haible  <bruno@clisp.org>
60630
60631         * modules/fflush (Include): Mention <stdio.h>.
60632         * modules/strtoimax (Include): Mention <inttypes.h>.
60633         * modules/strtoumax (Include): Likewise.
60634
60635 2007-04-12  Eric Blake  <ebb9@byu.net>
60636
60637         * .cvsignore: New file.
60638         * .gitignore: Likewise.
60639
60640 2007-04-12  Bruno Haible  <bruno@clisp.org>
60641
60642         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60643         not before, since $(LDADD) often contains libgnu.a.
60644         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60645         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60646         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60647         Needed on Cygwin.
60648
60649 2007-04-12  Eric Blake  <ebb9@byu.net>
60650
60651         Work around glibc's failure to flush stdin on fclose.
60652         * lib/closein.c (close_stdin): Flush stdin before closing.
60653
60654         Work around glibc's failure to reset seekable stdin on exit.
60655         * modules/closein: New module.
60656         * lib/closein.c: New file.
60657         * lib/closein.h: Likewise.
60658         * m4/closein.m4: Likewise.
60659         * MODULES.html.sh (File stream based Input/Output): Document it.
60660
60661 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60662
60663         * gnulib-tool: Rename generated 'autobuild' script to
60664         'do-autobuild' in --create-megatestdir output.
60665
60666         * doc/gnulib.texi (Build robot for gnulib): Fix.
60667
60668 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60669
60670         * modules/sysexits (Depends-on): Add absolute-header.
60671
60672 2007-04-12  Eric Blake  <ebb9@byu.net>
60673
60674         No need to preserve errno on success.
60675         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60676         Reported by Bruno Haible.
60677
60678 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60679
60680         * MODULES.html.sh (Support for maintaining and releasing
60681         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60682
60683 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60684
60685         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60686
60687 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60688
60689         * modules/autobuild: New module.
60690
60691         * m4/autobuild.m4: New file.
60692
60693 2007-04-11  Bruno Haible  <bruno@clisp.org>
60694
60695         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60696         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60697         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60698         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60699         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60700         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60701         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60702         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60703         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60704         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60705         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60706         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60707         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60708         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60709         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60710         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60711         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60712         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60713         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60714         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60715         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60716         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60717         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60718         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60719         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60720         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60721         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60722         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60723         Reported by Eric Blake.
60724
60725 2007-04-11  Bruno Haible  <bruno@clisp.org>
60726
60727         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60728
60729 2007-04-10  Bruno Haible  <bruno@clisp.org>
60730
60731         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60732         for NaN and Infinity. Needed on FreeBSD 6.1.
60733         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60734         regarding results for "%010a" of Infinity and NaN.
60735         * tests/test-vasprintf-posix.c (test_function): Likewise.
60736         * tests/test-snprintf-posix.h (test_function): Likewise.
60737         * tests/test-sprintf-posix.h (test_function): Likewise.
60738         * tests/test-fprintf-posix.h (test_function): Likewise.
60739         * tests/test-printf-posix.h (test_function): Likewise.
60740         * tests/test-fprintf-posix.out: Likewise.
60741
60742 2007-04-10  Bruno Haible  <bruno@clisp.org>
60743
60744         * modules/locale-tests: New file.
60745         * tests/test-locale.c: New file.
60746
60747         * modules/locale: New file.
60748         * lib/locale_.h: New file.
60749         * m4/locale_h.m4: New file.
60750
60751 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60752             Bruno Haible  <bruno@clisp.org>
60753
60754         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60755         be determined, test for availability of the copysignf, copysign,
60756         copysignl functions.
60757         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60758         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60759         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60760
60761 2007-04-09  Eric Blake  <ebb9@byu.net>
60762
60763         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60764         * modules/stdio (Makefile.am): Support fflush.
60765         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60766         * modules/fflush: New file.
60767         * lib/fflush.c: Likewise.
60768         * m4/fflush.m4: Likewise.
60769         * modules/fflush-tests: New test.
60770         * tests/test-fflush.c: Likewise.
60771         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60772
60773 2007-04-06  Bruno Haible  <bruno@clisp.org>
60774
60775         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60776         (VASNPRINTF): Use signbit for faster determination whether to print a
60777         minus sign.
60778         * modules/vasnprintf (Files): Remove lib/float+.h.
60779         * modules/fprintf-posix (Depends-on): Add signbit.
60780         * modules/snprintf-posix (Depends-on): Likewise.
60781         * modules/sprintf-posix (Depends-on): Likewise.
60782         * modules/vasnprintf-posix (Depends-on): Likewise.
60783         * modules/vasprintf-posix (Depends-on): Likewise.
60784         * modules/vfprintf-posix (Depends-on): Likewise.
60785         * modules/vsnprintf-posix (Depends-on): Likewise.
60786         * modules/vsprintf-posix (Depends-on): Likewise.
60787
60788 2007-04-06  Bruno Haible  <bruno@clisp.org>
60789
60790         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60791         * tests/test-frexpl.c (main): Likewise.
60792         * tests/test-ldexpl.c (main): Likewise.
60793         * modules/frexp-tests (Depends-on): Add signbit.
60794         * modules/frexpl-tests (Depdends-on): Likewise.
60795         * modules/ldexpl-tests (Depdends-on): Likewise.
60796
60797 2007-04-06  Bruno Haible  <bruno@clisp.org>
60798
60799         * modules/signbit-tests: New file.
60800         * tests/test-signbit.c: New file.
60801
60802         * modules/signbit: New file.
60803         * lib/signbitf.c: New file.
60804         * lib/signbitd.c: New file.
60805         * lib/signbitl.c: New file.
60806         * m4/signbit.m4: New file.
60807         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60808         (signbit): New macro.
60809         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60810         REPLACE_SIGNBIT.
60811         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60812         REPLACE_FREXPL into math.h.
60813
60814 2007-04-06  Bruno Haible  <bruno@clisp.org>
60815
60816         * modules/isnanf-nolibm-tests: New file.
60817         * tests/test-isnanf.c: New file.
60818
60819         * modules/isnanf-nolibm: New file.
60820         * lib/isnanf.h: New file.
60821         * lib/isnanf.c: New file.
60822         * lib/isnan.c: Consider the USE_FLOAT macro.
60823         * m4/isnanf.m4: New file.
60824
60825 2007-04-06  Bruno Haible  <bruno@clisp.org>
60826
60827         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60828         (Link): New section.
60829
60830         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60831
60832 2007-04-06  Bruno Haible  <bruno@clisp.org>
60833
60834         Assume the 'long double' type.
60835         * m4/longdouble.m4: Remove file.
60836         * config/srclist.txt: Don't mention longdouble.m4.
60837         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60838         * lib/float+.h: Likewise.
60839         * lib/frexp.c: Likewise.
60840         * lib/printf-args.h: Likewise.
60841         * lib/printf-args.c: Likewise.
60842         * lib/printf-frexp.c: Likewise.
60843         * lib/printf-parse.c: Likewise.
60844         * lib/vasnprintf.c: Likewise.
60845         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60846         * m4/intl.m4: Likewise.
60847         * m4/isnanl.m4: Likewise.
60848         * m4/printf.m4: Likewise.
60849         * m4/printf-frexpl.m4: Likewise.
60850         * m4/vasnprintf.m4: Likewise.
60851         * modules/allocsa (Files): Remove m4/longdouble.m4.
60852         * modules/gettext (Files): Likewise.
60853         * modules/relocatable-prog-wrapper (Files): Likewise.
60854         * modules/vasnprintf (Files): Likewise.
60855         * modules/isnanl (Files): Likewise.
60856         (Include): Simplify.
60857         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60858         (Include): Simplify.
60859         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60860         (Include): Simplify.
60861         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60862         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60863         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60864         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60865         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60866         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60867         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60868         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60869         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60870         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60871         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60872         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60873         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60874         * tests/test-isnanl.c: Likewise.
60875         * tests/test-snprintf-posix.h: Likewise.
60876         * tests/test-sprintf-posix.h: Likewise.
60877         * tests/test-vasnprintf-posix.c: Likewise.
60878         * tests/test-vasnprintf-posix2.c: Likewise.
60879         * tests/test-vasprintf-posix.c: Likewise.
60880
60881 2007-04-06  Bruno Haible  <bruno@clisp.org>
60882
60883         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60884         * lib/math_.h [__DECC]: Include the overridden include file through
60885         #include_next, outside the double-inclusion guard.
60886         * lib/stdio_.h [__DECC]: Likewise.
60887         * lib/stdlib_.h [__DECC]: Likewise.
60888         * lib/string_.h [__DECC]: Likewise.
60889         * lib/time_.h [__DECC]: Likewise.
60890         * lib/wchar_.h [__DECC]: Likewise.
60891         * lib/wctype_.h [__DECC]: Likewise.
60892         * lib/inttypes_.h [__DECC]: Likewise.
60893         Reported by Albert Chin <china@thewrittenword.com> in
60894         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60895
60896 2007-04-04  Eric Blake  <ebb9@byu.net>
60897
60898         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60899         1.5.x.
60900
60901 2007-04-04  Bruno Haible  <bruno@clisp.org>
60902
60903         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60904         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60905
60906 2007-04-04  Bruno Haible  <bruno@clisp.org>
60907
60908         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60909         results for "%010a" of Infinity and NaN.
60910         * tests/test-vasprintf-posix.c (test_function): Likewise.
60911         * tests/test-snprintf-posix.h (test_function): Likewise.
60912         * tests/test-sprintf-posix.h (test_function): Likewise.
60913         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60914         * tests/test-printf-posix.h (test_function): Likewise.
60915         * tests/test-fprintf-posix.out: Update.
60916         Needed for FreeBSD 6.1.
60917
60918 2007-04-04  Bruno Haible  <bruno@clisp.org>
60919
60920         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60921         directly used by the gnulib modules nor by gnulib-tool.
60922
60923 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60924
60925         * DEPENDENCIES: Give overall description of version dependency
60926         desirability.  Use more-typical names for apps.
60927         Add shell, coreutils, diffutils, grep, tar, gzip.
60928
60929 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60930
60931         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60932
60933 2007-04-04  Karl Berry  <karl@gnu.org>
60934
60935         * MODULES.html.sh (func_module): missing '.
60936
60937 2007-04-03  Bruno Haible  <bruno@clisp.org>
60938
60939         * modules/argmatch-tests (Makefile.am): New variable
60940         test_argmatch_LDADD.
60941         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60942         * modules/array-list-tests (Makefile.am): New variable
60943         test_array_list_LDADD.
60944         * modules/array-oset-tests (Makefile.am): New variable
60945         test_array_oset_LDADD.
60946         * modules/avltree-list-tests (Makefile.am): New variable
60947         test_avltree_list_LDADD.
60948         * modules/avltree-oset-tests (Makefile.am): New variable
60949         test_avltree_oset_LDADD.
60950         * modules/avltreehash-list-tests (Makefile.am): New variable
60951         test_avltreehash_list_LDADD.
60952         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60953         test_canonicalize_lgpl_LDADD.
60954         * modules/carray-list-tests (Makefile.am): New variable
60955         test_carray_list_LDADD.
60956         * modules/dirname-tests (Makefile.am): New variable
60957         test_dirname_LDADD.
60958         * modules/linked-list-tests (Makefile.am): New variable
60959         test_linked_list_LDADD.
60960         * modules/linkedhash-list-tests (Makefile.am): New variable
60961         test_linkedhash_list_LDADD.
60962         * modules/rbtree-list-tests (Makefile.am): New variable
60963         test_rbtree_list_LDADD.
60964         * modules/rbtree-oset-tests (Makefile.am): New variable
60965         test_rbtree_oset_LDADD.
60966         * modules/rbtreehash-list-tests (Makefile.am): New variable
60967         test_rbtreehash_list_LDADD.
60968         * modules/xvasprintf-tests (Makefile.am): New variable
60969         test_xvasprintf_LDADD.
60970         Reported by Eric Blake.
60971
60972 2007-04-03  Eric Blake  <ebb9@byu.net>
60973
60974         * DEPENDENCIES: Weaken m4 requirements.
60975
60976 2007-04-03  Bruno Haible  <bruno@clisp.org>
60977
60978         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60979         * modules/isnanl-tests (configure.ac): Likewise.
60980
60981 2007-04-03  Ben Pfaff  <blp@gnu.org>
60982
60983         * modules/iconv_open: Add $(srcdir)/ to source directory
60984         references in Makefile fragments that call gperf, to fix VPATH
60985         builds.
60986
60987 2007-04-03  Bruno Haible  <bruno@clisp.org>
60988
60989         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60990         * lib/ldexpl.c: Undo last change.
60991
60992 2007-04-03  Bruno Haible  <bruno@clisp.org>
60993
60994         * modules/printf-frexpl (Depends-on): Undo last change.
60995         (Files): Add m4/ldexpl.m4.
60996
60997 2007-04-03  Bruno Haible  <bruno@clisp.org>
60998
60999         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
61000         * modules/isnanl (Link): New section.
61001
61002         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
61003         * modules/frexp (Link): New section.
61004
61005         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
61006         * modules/frexpl (Link): New section.
61007
61008         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
61009         * modules/ldexpl (Link): New section.
61010
61011 2007-04-03  Bruno Haible  <bruno@clisp.org>
61012
61013         * modules/TEMPLATE-EXTENDED: New file.
61014         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
61015
61016 2007-04-03  Bruno Haible  <bruno@clisp.org>
61017
61018         * DEPENDENCIES: New file.
61019         Suggested by Simon Josefsson.
61020
61021 2007-04-03  Bruno Haible  <bruno@clisp.org>
61022
61023         * doc/gnulib.texi: Escape @.
61024
61025 2007-04-03  James Youngman  <jay@gnu.org>
61026         and Paul Eggert  <eggert@cs.ucla.edu>
61027
61028         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
61029         birthtime on all systems that have birthtime, not just those which
61030         use st_birthtimensec rather than st_birthtim.  Putting zero in
61031         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
61032         that the birth time is not available for files on an NFS mount.
61033
61034 2007-04-03  Simon Josefsson  <simon@josefsson.org>
61035
61036         * modules/memxor: Move back from crypto/, suggested by Bruno.
61037         * modules/crypto/hmac-sha1: Fix memxor dependency.
61038
61039         * modules/crypto/gc: Moved from ../.
61040
61041 2007-04-02  Eric Blake  <ebb9@byu.net>
61042
61043         * lib/ldexpl.c (includes): Avoid libm.
61044
61045         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
61046
61047 2007-04-02  Bruno Haible  <bruno@clisp.org>
61048
61049         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
61050         on IRIX.
61051
61052 2007-04-02  Bruno Haible  <bruno@clisp.org>
61053
61054         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
61055         x86 or x86_64 platforms running MacOS X.
61056         Reported by Ryan Schmidt <@ryandesign.com>.
61057
61058 2007-04-02  Bruno Haible  <bruno@clisp.org>
61059
61060         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
61061         i386.
61062
61063 2007-04-01  Simon Josefsson  <simon@josefsson.org>
61064
61065         * modules/crypto/arcfour: Moved from ../.
61066         * modules/crypto/arcfour-tests: Moved from ../.
61067         * modules/crypto/arctwo: Moved from ../.
61068         * modules/crypto/arctwo-tests: Moved from ../.
61069         * modules/crypto/des: Moved from ../.
61070         * modules/crypto/des-tests: Moved from ../.
61071         * modules/crypto/gc-arcfour: Moved from ../.
61072         * modules/crypto/gc-arcfour-tests: Moved from ../.
61073         * modules/crypto/gc-arctwo: Moved from ../.
61074         * modules/crypto/gc-arctwo-tests: Moved from ../.
61075         * modules/crypto/gc-des: Moved from ../.
61076         * modules/crypto/gc-des-tests: Moved from ../.
61077         * modules/crypto/gc-hmac-md5: Moved from ../.
61078         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
61079         * modules/crypto/gc-hmac-sha1: Moved from ../.
61080         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
61081         * modules/crypto/gc-md2: Moved from ../.
61082         * modules/crypto/gc-md2-tests: Moved from ../.
61083         * modules/crypto/gc-md4: Moved from ../.
61084         * modules/crypto/gc-md4-tests: Moved from ../.
61085         * modules/crypto/gc-md5: Moved from ../.
61086         * modules/crypto/gc-md5-tests: Moved from ../.
61087         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
61088         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
61089         * modules/crypto/gc-random: Moved from ../.
61090         * modules/crypto/gc-rijndael: Moved from ../.
61091         * modules/crypto/gc-rijndael-tests: Moved from ../.
61092         * modules/crypto/gc-sha1: Moved from ../.
61093         * modules/crypto/gc-sha1-tests: Moved from ../.
61094         * modules/crypto/gc-tests: Moved from ../.
61095         * modules/crypto/hmac-md5: Moved from ../.
61096         * modules/crypto/hmac-md5-tests: Moved from ../.
61097         * modules/crypto/hmac-sha1: Moved from ../.
61098         * modules/crypto/hmac-sha1-tests: Moved from ../.
61099         * modules/crypto/md2: Moved from ../.
61100         * modules/crypto/md2-tests: Moved from ../.
61101         * modules/crypto/md4: Moved from ../.
61102         * modules/crypto/md4-tests: Moved from ../.
61103         * modules/crypto/md5: Moved from ../.
61104         * modules/crypto/md5-tests: Moved from ../.
61105         * modules/crypto/memxor: Moved from ../.
61106         * modules/crypto/rijndael: Moved from ../.
61107         * modules/crypto/rijndael-tests: Moved from ../.
61108         * modules/crypto/sha1: Moved from ../.
61109
61110 2007-03-30  James Youngman  <jay@gnu.org>
61111
61112         * tests/test-stat-time.c (prepare_test): use chmod() rather than
61113         rename() to change the ctime of a file (because ctime is unaffected
61114         by rename on jfs2 on AIX 5.1).
61115         (main): Start by doing cleanup, in case a previous run failed leaving
61116         test files behind.
61117
61118 2007-03-31  Bruno Haible  <bruno@clisp.org>
61119
61120         Support old proprietary implementations of iconv.
61121         * modules/iconv_open: New file.
61122         * lib/iconv_.h: New file.
61123         * m4/iconv_h.m4: New file.
61124         * lib/iconv_open.c: New file.
61125         * lib/iconv_open-aix.gperf: New file.
61126         * lib/iconv_open-hpux.gperf: New file.
61127         * lib/iconv_open-irix.gperf: New file.
61128         * lib/iconv_open-osf.gperf: New file.
61129         * m4/iconv_open.m4: New file.
61130         * modules/linebreak (Depends-on): Add iconv_open.
61131         * modules/striconv (Depends-on): Likewise.
61132         * modules/striconveh (Depends-on): Likewise.
61133         * modules/unicodeio (Depends-on): Likewise.
61134         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
61135         (iconv_t)(-1).
61136         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
61137         conversion if cd is (iconv_t)(-1).
61138         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
61139         is not possible.
61140
61141 2007-03-31  Bruno Haible  <bruno@clisp.org>
61142
61143         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61144         work on Solaris either. Protect also second use of "autodetect_jp".
61145
61146 2007-03-31  Bruno Haible  <bruno@clisp.org>
61147
61148         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
61149         the function is not present.
61150
61151 2007-03-31  Bruno Haible  <bruno@clisp.org>
61152
61153         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
61154         the function is not present.
61155
61156 2007-03-31  Bruno Haible  <bruno@clisp.org>
61157
61158         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
61159         a bug in HP-UX iconv_open().
61160
61161 2007-03-31  Bruno Haible  <bruno@clisp.org>
61162
61163         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
61164         (Mathematics <math.h>): New section, add fpieee.
61165         (Input/output <stdio.h>): Add fseterr.
61166         (Mathematics <math.h>): New section, add printf-frexp.
61167         (Container data structures): Add sublist.
61168         (Core language properties): Add fpucw, inline.
61169         (Functions for greatest-width integer types <inttypes.h>): Add
61170         imaxabs, imaxdiv, inttypes.
61171         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
61172         isnanl-nolibm, ldexp.
61173         (Mathematics <math.h>): New section, add printf-frexpl.
61174         (Support for systems lacking POSIX:2001): Add fprintf-posix,
61175         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
61176         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
61177         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
61178         (Unicode string functions): Add unistr/u*-mbtoucr.
61179         (Java): Add javacomp-script, javaexec-script.
61180         (C#): Add csharpcomp-script, csharpexec-script.
61181         (Support for building libraries and executables): Add havelib,
61182         relocatable-*.
61183         (Support for maintaining and releasing projects): Renamed from
61184         'Support for maintaining and release projects'. Add announce-gen.
61185
61186 2007-03-31  Bruno Haible  <bruno@clisp.org>
61187
61188         * README: Talk primarily about git.
61189         (git and CVS): Renamed from CVS.
61190         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
61191         gnulib is available through git.
61192         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
61193
61194 2007-03-30  Bruno Haible  <bruno@clisp.org>
61195
61196         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
61197         * lib/poll_.h: Likewise.
61198         * lib/stat_.h: Likewise.
61199         * lib/sys_time_.h: Likewise.
61200         * lib/sysexit_.h: Likewise.
61201         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
61202         * lib/stdbool_.h: Likewise.
61203         * lib/byteswap_.h: Add double-inclusion guard.
61204
61205 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
61206
61207         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
61208
61209 2007-03-30  Karl Berry  <karl@gnu.org>
61210
61211         * config/srclist-update: double space after USA in the license
61212         substitution, since that's how it's usually (?) written.
61213
61214 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61215
61216         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
61217         reported by Bruno Haible.
61218
61219 2007-03-29  Bruno Haible  <bruno@clisp.org>
61220
61221         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
61222         a bug in AIX iconv().
61223
61224 2007-03-29  Bruno Haible  <bruno@clisp.org>
61225
61226         * modules/ldexpl-tests: New file.
61227         * tests/test-ldexpl.c: New file.
61228
61229 2007-03-29  Bruno Haible  <bruno@clisp.org>
61230
61231         * lib/ldexpl.c: Include fpucw.h.
61232         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
61233         multiplication.
61234         * modules/ldexpl (Depends-on): Add fpucw.
61235
61236 2007-03-29  Bruno Haible  <bruno@clisp.org>
61237
61238         * modules/ldexpl: New file.
61239         * m4/ldexpl.m4: New file.
61240         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
61241         set.
61242         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
61243         REPLACE_LDEXPL.
61244         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
61245         REPLACE_LDEXPL.
61246         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61247         gl_FUNC_LDEXPL_WORKS.
61248         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
61249         * modules/mathl (Files): Remove lib/ldexpl.c.
61250         (Depends-on): Add ldexpl.
61251
61252 2007-03-29  Bruno Haible  <bruno@clisp.org>
61253
61254         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
61255
61256 2007-03-29  Bruno Haible  <bruno@clisp.org>
61257
61258         * tests/test-striconveh.c (main): Don't assume that a direct conversion
61259         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
61260         and possibly also HP-UX.
61261         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61262         work on AIX, IRIX, HP-UX, OSF/1.
61263         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61264         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61265         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61266         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61267         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
61268         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61269
61270 2007-03-29  Bruno Haible  <bruno@clisp.org>
61271
61272         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
61273
61274 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61275
61276         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
61277         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
61278
61279 2007-03-29  Eric Blake  <ebb9@byu.net>
61280
61281         * lib/acl-internal.h: Remove redundant include.
61282         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
61283         Cygwin when a file is locked.
61284
61285 2007-03-29  Bruno Haible  <bruno@clisp.org>
61286
61287         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
61288         file.
61289         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
61290
61291 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61292
61293         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
61294         try to remove a parent directory if the child couldn't be removed
61295         (except for the first rmdir, which could fail because the child
61296         doesn't exist).  Problem reported by Jeff Blaine in
61297         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
61298
61299 2007-03-28  Bruno Haible  <bruno@clisp.org>
61300
61301         * lib/striconveh.c (utf8conv_carefully): New function.
61302         (mem_cd_iconveh_internal): Invoke it.
61303
61304 2007-03-28  Bruno Haible  <bruno@clisp.org>
61305
61306         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
61307         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
61308         input.
61309         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
61310         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
61311         unistr/u8-uctomb.
61312
61313 2007-03-28  Bruno Haible  <bruno@clisp.org>
61314
61315         * modules/unistr/u8-mbtoucr: New file.
61316         * lib/unistr/u8-mbtoucr.c: New file.
61317         * modules/unistr/u16-mbtoucr: New file.
61318         * lib/unistr/u16-mbtoucr.c: New file.
61319         * modules/unistr/u16-mbtoucr: New file.
61320         * lib/unistr/u16-mbtoucr.c: New file.
61321         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
61322
61323 2007-03-27  Simon Josefsson  <simon@josefsson.org>
61324             Bruno Haible  <bruno@clisp.org>
61325
61326         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
61327         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
61328         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
61329
61330         * m4/stdio_h.m4: Add stubs for vasprintf too.
61331
61332         * modules/stdio: Support vasprintf in sed command.
61333
61334         * modules/vasprintf: Depend on stdio for prototypes.  Remove
61335         vasprintf.h.  Add stdio module indicator.
61336
61337         * lib/stdio_.h: Declare asprintf and vasprintf, based on
61338         vasprintf.h.
61339
61340         * lib/vasprintf.h: File removed.
61341
61342         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
61343         * lib/vasprintf.c: Ditto.
61344         * lib/xvasprintf.c: Ditto.
61345         * tests/test-vasprintf-posix.c: Ditto.
61346         * tests/test-vasprintf.c: Ditto.
61347
61348 2007-03-27  Bruno Haible  <bruno@clisp.org>
61349
61350         Make vasnprintf multithread-safe.
61351         * lib/vasnprintf.c (decimal_point_char): New function.
61352         (VASNPRINTF): Use it.
61353         Suggested by Simon Josefsson.
61354
61355 2007-03-27  Eric Blake  <ebb9@byu.net>
61356
61357         Support sub-second birthtime on cygwin.
61358         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61359         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61360         (get_stat_birthtime): Also work with st_birthtim.
61361
61362 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61363
61364         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61365         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61366         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61367         (get_stat_birthtime_ns): Simplify compile-time tests.
61368         (get_stat_birthtime): Change the API to look like
61369         get_stat_mtime etc., except return a negative tv_nsec on error.
61370         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61371         Don't check for "spare" fields.
61372         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61373         or for struct stat.st_birthtime, as these tests aren't used.
61374         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61375
61376 2007-03-27  Bruno Haible  <bruno@clisp.org>
61377
61378         * lib/stat-time.h: Include <sys/stat.h>.
61379
61380 2007-03-27  James Youngman  <jay@gnu.org>
61381
61382         * lib/stat-time.h (get_stat_birthtime): New function for
61383           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61384         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61385           and its variants.
61386         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
61387         * modules/stat-time-test: New file.
61388         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61389
61390 2007-03-26  Bruno Haible  <bruno@clisp.org>
61391
61392         Better support of signalling NaNs.
61393         * lib/atanl.c: Include isnanl.h.
61394         (atanl): Perform test for NaN at the beginning of the function and
61395         through a call to isnanl.
61396         * lib/cosl.c: Include isnanl.h.
61397         (cosl): Perform test for NaN at the beginning of the function and
61398         through a call to isnanl.
61399         * lib/ldexpl.c: Include isnanl.h.
61400         (ldexpl): Perform test for NaN through a call to isnanl.
61401         * lib/logl.c: Include isnanl.h.
61402         (logl): Perform test for NaN at the beginning of the function and
61403         through a call to isnanl.
61404         * lib/sinl.c: Include isnanl.h.
61405         (sinl): Perform test for NaN at the beginning of the function and
61406         through a call to isnanl.
61407         * lib/sqrtl.c: Include isnanl.h.
61408         (sqrtl): Perform test for NaN at the beginning of the function and
61409         through a call to isnanl.
61410         * lib/tanl.c: Include isnanl.h.
61411         (tanl): Perform test for NaN at the beginning of the function and
61412         through a call to isnanl.
61413         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
61414         * modules/mathl (Depends-on): Add isnanl.
61415
61416 2007-03-26  Eric Blake  <ebb9@byu.net>
61417
61418         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
61419         regression in logic sense of previous patch.
61420
61421 2007-03-26  Bruno Haible  <bruno@clisp.org>
61422
61423         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
61424         unportable shell command "if ! ...".
61425         Reported by Ralf Wildenhues.
61426
61427 2007-03-25  Bruno Haible  <bruno@clisp.org>
61428
61429         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
61430         <sysexits.h> file, and only add EX_CONFIG.
61431         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
61432         absolute file name and whether it is sufficient. Substitute also
61433         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
61434         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
61435         ABSOLUTE_SYSEXITS_H into sysexits.h.
61436
61437 2007-03-25  Bruno Haible  <bruno@clisp.org>
61438
61439         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
61440         hints is NULL.
61441
61442 2007-03-25  Bruno Haible  <bruno@clisp.org>
61443
61444         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
61445         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
61446
61447 2007-03-25  Bruno Haible  <bruno@clisp.org>
61448
61449         * lib/vasnprintf.c: Include langinfo.h.
61450         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
61451         multithread-safe.
61452         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
61453         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
61454         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61455         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61456         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61457         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61458         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61459         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
61460         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61461         Reported by Simon Josefsson.
61462
61463 2007-03-25  Bruno Haible  <bruno@clisp.org>
61464
61465         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
61466         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
61467         * modules/vasnprintf (Depends-on): Add stdint.
61468
61469 2007-03-25  Bruno Haible  <bruno@clisp.org>
61470
61471         * modules/fpieee: New file.
61472         * m4/fpieee.m4: New file.
61473         * modules/isnan-nolibm (Depends-on): Add fpieee.
61474         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61475         * modules/isnanl (Depends-on): Add fpieee.
61476
61477 2007-03-25  Bruno Haible  <bruno@clisp.org>
61478
61479         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61480
61481 2007-03-25  Bruno Haible  <bruno@clisp.org>
61482
61483         Avoid test failures on IRIX 6.5.
61484         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61485         (main): Use it.
61486         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61487         macros.
61488         (main): Use them.
61489
61490 2007-03-25  Bruno Haible  <bruno@clisp.org>
61491
61492         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61493         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61494         exists but doesn't work.
61495         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61496         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61497         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61498         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61499         math.h.
61500
61501 2007-03-25  Bruno Haible  <bruno@clisp.org>
61502
61503         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61504         returns inf. Needed on IRIX 6.5.
61505
61506 2007-03-25  Bruno Haible  <bruno@clisp.org>
61507
61508         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61509         (main): Use isnanl instead of x != x idiom.
61510         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61511
61512         * tests/test-frexp.c: Include isnan.h.
61513         (main): Use isnan instead of x != x idiom.
61514         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61515
61516 2007-03-25  Bruno Haible  <bruno@clisp.org>
61517
61518         * tests/test-frexp.c (NaN): New function/macro.
61519         (main): Use it instead of 0.0 / 0.0.
61520         * tests/test-isnan.c (NaN): New function/macro.
61521         (main): Use it instead of 0.0 / 0.0.
61522         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61523         (test_function): Use it instead of 0.0 / 0.0.
61524         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61525         (test_function): Use it instead of 0.0 / 0.0.
61526         * tests/test-snprintf-posix.h (NaN): New function/macro.
61527         (test_function): Use it instead of 0.0 / 0.0.
61528         * tests/test-sprintf-posix.h (NaN): New function/macro.
61529         (test_function): Use it instead of 0.0 / 0.0.
61530         * tests/test-fprintf-posix.h (NaN): New function/macro.
61531         (test_function): Use it instead of 0.0 / 0.0.
61532         * tests/test-printf-posix.h (NaN): New function/macro.
61533         (test_function): Use it instead of 0.0 / 0.0.
61534
61535         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61536
61537 2007-03-25  Bruno Haible  <bruno@clisp.org>
61538
61539         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61540
61541 2007-03-25  Bruno Haible  <bruno@clisp.org>
61542
61543         * lib/regexec.c (merge_state_with_log): Make static.
61544
61545 2007-03-25  Bruno Haible  <bruno@clisp.org>
61546
61547         * lib/trigl.c (kernel_rem_pio2): Make static.
61548
61549 2007-03-25  Bruno Haible  <bruno@clisp.org>
61550
61551         * lib/sincosl.c (sincosl_table): Make static.
61552
61553 2007-03-25  Bruno Haible  <bruno@clisp.org>
61554
61555         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61556         if the compiler does not support C99.
61557
61558 2007-03-25  Bruno Haible  <bruno@clisp.org>
61559
61560         * modules/time (Makefile.am): Ensure all rule action lines start with a
61561         tab.
61562
61563 2007-03-24  Bruno Haible  <bruno@clisp.org>
61564
61565         * modules/tsearch-tests: New file.
61566         * tests/test-tsearch.sh: New file.
61567         * tests/test-tsearch.c: New file, mostly copied from glibc.
61568
61569         * modules/search-tests: New file.
61570         * tests/test-search.c: New file.
61571
61572         * modules/search: New file.
61573         * lib/search_.h: New file, incorporating lib/tsearch.h.
61574         * m4/search_h.m4: New file.
61575         * lib/tsearch.h: Remove file.
61576         * lib/tsearch.c: Include search.h instead of tsearch.h.
61577         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61578         HAVE_TSEARCH.
61579         * modules/tsearch (Files): Remove lib/tsearch.h.
61580         (Depends-on): Add search.
61581         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61582         (Include): Change tsearch.h into search.h.
61583
61584 2007-03-24  Bruno Haible  <bruno@clisp.org>
61585
61586         * modules/fpucw: New file.
61587         * lib/fpucw.h: New file.
61588         * lib/frexp.c: Include fpucw.h.
61589         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61590         (FUNC): Use them.
61591         * lib/printf-frexp.c: Include fpucw.h.
61592         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61593         (FUNC): Use them.
61594         * lib/vasnprintf.c: Include fpucw.h.
61595         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61596         'long double' calculations.
61597         * tests/test-frexpl.c: Include fpucw.h.
61598         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61599         * tests/test-printf-frexpl.c: Include fpucw.h.
61600         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61601         * modules/frexpl (Depends-on): Add fpucw.
61602         * modules/printf-frexpl (Depends-on): Likewise.
61603         * modules/fprintf-posix (Depends-on): Likewise.
61604         * modules/snprintf-posix (Depends-on): Likewise.
61605         * modules/sprintf-posix (Depends-on): Likewise.
61606         * modules/vasnprintf-posix (Depends-on): Likewise.
61607         * modules/vasprintf-posix (Depends-on): Likewise.
61608         * modules/vfprintf-posix (Depends-on): Likewise.
61609         * modules/vsnprintf-posix (Depends-on): Likewise.
61610         * modules/vsprintf-posix (Depends-on): Likewise.
61611         * modules/frexpl-tests (Depends-on): Likewise.
61612         * modules/printf-frexpl-tests (Depends-on): Likewise.
61613
61614 2007-03-24  Bruno Haible  <bruno@clisp.org>
61615
61616         * lib/float+.h: New file.
61617         * lib/isnan.c: Include float+.h.
61618         (SIZE): New macro.
61619         (FUNC): Compare only SIZE bytes of the value.
61620         * lib/vasnprintf.c: Include float+.h.
61621         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61622         SIZEOF_LDBL or SIZEOF_DBL bytes.
61623         * modules/isnan-nolibm (Files): Add lib/float+.h.
61624         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61625         * modules/isnanl (Files): Add lib/float+.h.
61626         * modules/vasnprintf (Files): Add lib/float+.h.
61627
61628 2007-03-24  Bruno Haible  <bruno@clisp.org>
61629
61630         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61631         include isnanl-nolibm.h.
61632
61633 2007-03-24  Bruno Haible  <bruno@clisp.org>
61634
61635         * tests/test-read-file.c (main): Don't produce spurious output for
61636         expected situations. Make the test fail if it encountered unexpected
61637         results.
61638
61639 2007-03-24  Bruno Haible  <bruno@clisp.org>
61640
61641         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61642         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61643
61644 2007-03-24  Bruno Haible  <bruno@clisp.org>
61645
61646         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61647
61648 2007-03-24  Bruno Haible  <bruno@clisp.org>
61649
61650         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61651         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61652
61653         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61654         * modules/utf8-ucs4: Turn into a symbolic link to module
61655         unistr/u8-mbtouc.
61656
61657         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61658         utf8-ucs4-unsafe.
61659         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61660         unistr/u8-mbtouc-unsafe.
61661
61662         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61663         * modules/utf16-ucs4: Turn into a symbolic link to module
61664         unistr/u16-mbtouc.
61665
61666         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61667         utf16-ucs4-unsafe.
61668         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61669         unistr/u16-mbtouc-unsafe.
61670
61671         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61672         * modules/ucs4-utf8: Turn into a symbolic link to module
61673         unistr/u8-ubtomb.
61674
61675         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61676         * modules/ucs4-utf16: Turn into a symbolic link to module
61677         unistr/u16-ubtomb.
61678
61679 2007-03-24  Bruno Haible  <bruno@clisp.org>
61680
61681         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61682         Enable the function only if HAVE_INLINE.
61683         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61684         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61685         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61686         Enable the function only if HAVE_INLINE.
61687         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61688         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61689         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61690         Enable the function only if HAVE_INLINE.
61691         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61692         Enable the function only if HAVE_INLINE.
61693         * modules/utf8-ucs4: Update.
61694         * modules/utf8-ucs4-unsafe: Update.
61695         * modules/utf16-ucs4: Update.
61696         * modules/utf16-ucs4-unsafe: Update.
61697         * modules/ucs4-utf8: Update.
61698         * modules/ucs4-utf16: Update.
61699
61700 2007-03-24  Bruno Haible  <bruno@clisp.org>
61701
61702         * lib/utf8-ucs4.h: Remove file.
61703         * lib/utf8-ucs4-unsafe.h: Remove file.
61704         * lib/utf16-ucs4.h: Remove file.
61705         * lib/utf16-ucs4-unsafe.h: Remove file.
61706         * lib/ucs4-utf8.h: Remove file.
61707         * lib/ucs4-utf16.h: Remove file.
61708         * lib/unistr.h: Include their previous contents.
61709         * m4/utf-ucs4.m4: Remove file.
61710         * m4/ucs4-utf.m4: Remove file.
61711         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61712         (Depends-on): Add unistr/base.
61713         (configure.ac): Remove gl_UTF_UCS4.
61714         (Makefile.am): Update.
61715         (Include): Change to unistr.h.
61716         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61717         (Depends-on): Add unistr/base.
61718         (configure.ac): Remove gl_UTF_UCS4.
61719         (Makefile.am): Update.
61720         (Include): Change to unistr.h.
61721         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61722         (Depends-on): Add unistr/base.
61723         (configure.ac): Remove gl_UTF_UCS4.
61724         (Makefile.am): Update.
61725         (Include): Change to unistr.h.
61726         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61727         (Depends-on): Add unistr/base.
61728         (configure.ac): Remove gl_UTF_UCS4.
61729         (Makefile.am): Update.
61730         (Include): Change to unistr.h.
61731         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61732         (Depends-on): Add unistr/base.
61733         (configure.ac): Remove gl_UCS4_UTF.
61734         (Makefile.am): Update.
61735         (Include): Change to unistr.h.
61736         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61737         (Depends-on): Add unistr/base.
61738         (configure.ac): Remove gl_UCS4_UTF.
61739         (Makefile.am): Update.
61740         (Include): Change to unistr.h.
61741         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61742         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61743         utf8-ucs4-unsafe.h.
61744         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61745         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61746         utf16-ucs4-unsafe.h.
61747         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61748         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61749         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61750         * lib/unistr/u8-strchr.c: Likewise.
61751         * lib/unistr/u8-strrchr.c: Likewise.
61752         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61753         * lib/unistr/u16-strchr.c: Likewise.
61754         * lib/unistr/u16-strrchr.c: Likewise.
61755         * lib/striconveh.c: Update.
61756         * lib/linebreak.c: Update.
61757
61758 2007-03-24  Bruno Haible  <bruno@clisp.org>
61759
61760         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61761         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61762
61763 2007-03-22  Bruno Haible  <bruno@clisp.org>
61764
61765         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61766
61767 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61768
61769         * MODULES.html.sh (File system functions): New module write-any-file.
61770         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61771         * m4/write-any-file.m4: New files.
61772
61773 2007-03-23  Eric Blake  <ebb9@byu.net>
61774
61775         * gnulib-tool: Rearrange space-tab sequences, since some editors
61776         like to eat them.
61777
61778 2007-03-23  Eric Blake  <ebb9@byu.net>
61779
61780         * lib/version-etc.c (version_etc_va): Update license wording to
61781         be more concise.  Recommended by Richard Stallman.
61782
61783 2007-03-22  Bruno Haible  <bruno@clisp.org>
61784
61785         * lib/poll.c (MSG_PEEK): New fallback definition.
61786
61787 2007-03-22  Bruno Haible  <bruno@clisp.org>
61788
61789         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61790         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61791         (main): Update.
61792         Fixes a compilation error on BeOS.
61793
61794 2007-03-22  Bruno Haible  <bruno@clisp.org>
61795
61796         * modules/frexpl-tests: New file.
61797         * tests/test-frexpl.c: New file.
61798
61799         * modules/frexpl: New file.
61800         * m4/frexpl.m4: New file.
61801         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61802         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61803         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61804         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61805         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61806         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61807
61808 2007-03-22  Bruno Haible  <bruno@clisp.org>
61809
61810         * lib/frexpl.c: Share code with lib/frexp.c.
61811         * modules/mathl (Files): Add lib/frexp.c.
61812         (Depends-on): Add isnanl-nolibm.
61813
61814 2007-03-22  Bruno Haible  <bruno@clisp.org>
61815
61816         * modules/printf-frexp (Files): Add m4/frexp.m4.
61817         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61818         only if the found frexp function actually works.
61819
61820 2007-03-22  Bruno Haible  <bruno@clisp.org>
61821
61822         * lib/frexp.c: Remove older implementation that uses divisions.
61823
61824 2007-03-21  Bruno Haible  <bruno@clisp.org>
61825
61826         * modules/frexp-tests: New file.
61827         * tests/test-frexp.c: New file.
61828
61829         * modules/frexp: New file.
61830         * lib/frexp.c: New file.
61831         * m4/frexp.m4: New file.
61832         * lib/math_.h (frexp): New declaration.
61833         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61834         REPLACE_FREXP.
61835         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61836
61837 2007-03-21  Bruno Haible  <bruno@clisp.org>
61838
61839         * modules/isnanl-tests: New file.
61840         * tests/test-isnanl.c: New file.
61841
61842         * modules/isnanl: New file.
61843         * lib/isnanl.h: New file.
61844         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61845         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61846         gl_FUNC_ISNANL_WORKS.
61847         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61848         New macros.
61849
61850 2007-03-21  Bruno Haible  <bruno@clisp.org>
61851
61852         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61853         lib/isnanl.h.
61854         (Include): Update.
61855         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61856         * lib/vasnprintf.c: Update.
61857         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61858         tests/test-isnanl.h, remove tests/test-isnanl.c.
61859         (Makefile.am): Update.
61860         * tests/test-isnanl-nolibm.c: New file.
61861         * tests/test-isnanl.h: New file.
61862         * tests/test-isnanl.c: Remove file.
61863
61864 2007-03-21  Jim Meyering  <jim@meyering.net>
61865
61866         When trying to open ".", treat ESTALE like EACCES.
61867         * lib/savewd.c (savewd_save): Resort to forking not just upon
61868         failure with EACCES, but also when errno is ESTALE.
61869
61870 2007-03-20  Bruno Haible  <bruno@clisp.org>
61871
61872         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61873         Needed on AIX 5.1. Reported by Matthew Woehlke.
61874
61875 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61876
61877         Suggestions by Bruno Haible:
61878         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61879         our own.
61880         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61881         * modules/acl (Depends-on): Add gettext.
61882
61883 2007-03-19  Bruno Haible  <bruno@clisp.org>
61884
61885         * modules/iconvme: Remove file.
61886         * lib/iconvme.h: Remove file.
61887         * lib/iconvme.c: Remove file.
61888         * m4/iconvme.m4: Remove file.
61889
61890 2007-03-19  Bruno Haible  <bruno@clisp.org>
61891
61892         * doc/relocatable-maint.texi: Break long shell script line.
61893         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61894
61895 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61896
61897         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61898         handle file_has_acl.
61899         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61900         * lib/acl.c: Move header inclusions and related macro defns into
61901         lib/acl-internal.h.
61902         (S_ISLNK): Remove defn, since that's now done for us.
61903         (file_has_acl): Move to lib/file-has-acl.c.
61904         Call acl_trivial if available.  This is the crucial part of the fix.
61905         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61906         shared within the library.  Rewrite a bit, partly to make it compatible
61907         with the GNU coding style.
61908         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61909         Remove unnecessary double-quotes.
61910         Don't test for acl_to_text; the build will catch that.
61911         Replace acl_entries if it doesn't exist and it is needed.
61912         Check for -lsec and acl_trivial (as used on Solaris 10).
61913         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61914         lib/file-has-acl.c.
61915         (Depends-on): Add sys_stat, for S_ISLNK.
61916
61917 2007-03-19  Ben Pfaff  <blp@gnu.org>
61918
61919         * doc/gnulib.texi: Fix typos.
61920         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61921
61922 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61923
61924         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61925         If size is zero here, buf must be zero.
61926
61927 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61928
61929         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61930         <bruno@clisp.org>.
61931
61932 2007-03-18  Bruno Haible  <bruno@clisp.org>
61933
61934         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61935         Suggested by Eric Blake.
61936
61937 2007-03-18  Ben Pfaff  <blp@gnu.org>
61938
61939         * doc/relocatable.texi: Recommend using as prefix a directory
61940         that does not exist and will never be created.  Based on
61941         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61942         and others.
61943
61944 2007-03-17  Bruno Haible  <bruno@clisp.org>
61945
61946         * lib/fchownat.c: Include lchown.h.
61947
61948 2007-03-17  Bruno Haible  <bruno@clisp.org>
61949
61950         Fix endless loop when the given allocated size was > INT_MAX.
61951         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61952         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61953         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61954         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61955         * lib/sprintf.c (sprintf): Likewise.
61956
61957 2007-03-17  Bruno Haible  <bruno@clisp.org>
61958
61959         * tests/test-argp-2.sh (func_compare): Output a context diff.
61960
61961 2007-03-17  Bruno Haible  <bruno@clisp.org>
61962
61963         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61964         locale's decimal-point character.
61965
61966 2007-03-17  Bruno Haible  <bruno@clisp.org>
61967
61968         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61969         before comparing it. Needed because on some platforms (e.g. x86) a
61970         'long double' occupies less bytes than sizeof (long double).
61971
61972 2007-03-17  Bruno Haible  <bruno@clisp.org>
61973
61974         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61975         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61976         * tests/test-getaddrinfo.c (simple): Likewise.
61977         * tests/test-read-file.c (main): Likewise.
61978
61979 2007-03-17  Bruno Haible  <bruno@clisp.org>
61980
61981         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61982
61983 2007-03-17  Bruno Haible  <bruno@clisp.org>
61984
61985         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61986         unused variable.
61987
61988 2007-03-17  Bruno Haible  <bruno@clisp.org>
61989
61990         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61991         * tests/test-c-strncasecmp.c: Likewise.
61992
61993 2007-03-17  Bruno Haible  <bruno@clisp.org>
61994
61995         * modules/stdlib (Depends-on): Add unistd.
61996         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61997         Needed for MacOS X 10.3.
61998
61999 2007-03-17  Bruno Haible  <bruno@clisp.org>
62000
62001         * lib/unistr/u-strdup.h: Include <stdlib.h>.
62002
62003 2007-03-17  Bruno Haible  <bruno@clisp.org>
62004
62005         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
62006
62007 2007-03-17  Bruno Haible  <bruno@clisp.org>
62008
62009         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
62010         to reflect files copied from gnulib (with or without modifications).
62011         Suggested by Jim Meyering.
62012
62013 2007-03-17  Eric Blake  <ebb9@byu.net>
62014
62015         * NEWS: Document stdlib change from 2007-02-18.
62016
62017 2007-03-17  Jim Meyering  <jim@meyering.net>
62018
62019         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
62020         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
62021         someone uses a name containing shell meta-characters.
62022         Reported by Alfred M. Szmidt.
62023
62024         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
62025
62026 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62027
62028         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
62029         and copy gettext configuration files only if configure.ac contains
62030         a use of AM_GNU_GETTEXT_VERSION.
62031
62032 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62033
62034         * build-aux/bootstrap (gnulib_name): New variable.
62035         (gnulib_tool_options): Use it.
62036
62037 2007-03-13  Simon Josefsson  <simon@josefsson.org>
62038
62039         * tests/test-des.c: Use new namespace.
62040
62041 2007-03-15  Bruno Haible  <bruno@clisp.org>
62042
62043         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
62044         Reported by James Youngman <jay@gnu.org>.
62045
62046 2007-03-15  Bruno Haible  <bruno@clisp.org>
62047
62048         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
62049         declared prototype. Needed with cc on OSF/1 5.1.
62050
62051 2007-03-15  Bruno Haible  <bruno@clisp.org>
62052
62053         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
62054         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
62055         (struct gl_list_implementation): Add dispose_fn argument to the
62056         'create_empty', 'create' methods.
62057         (struct gl_list_impl_base): Add field 'dispose_fn'.
62058         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
62059         argument.
62060         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
62061         dispose_fn argument.
62062         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
62063         dispose_fn on the dropped values.
62064         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
62065         dispose_fn argument.
62066         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
62067         dropped values.
62068         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
62069         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62070         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
62071         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62072         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
62073         argument.
62074         (gl_tree_list_free): Call dispose_fn on the dropped values.
62075         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
62076         the dropped values.
62077         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62078         Add dispose_fn argument.
62079         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
62080         Call dispose_fn on the dropped values.
62081         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
62082         Add dispose_fn argument.
62083         (gl_sublist_create): Initialize the 'dispose_fn' field.
62084         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
62085         * tests/test-array_list.c (main): Update.
62086         * tests/test-carray_list.c (main): Update.
62087         * tests/test-avltree_list.c (main): Update.
62088         * tests/test-rbtree_list.c (main): Update.
62089         * tests/test-avltreehash_list.c (main): Update.
62090         * tests/test-rbtreehash_list.c (main): Update.
62091         * tests/test-linked_list.c (main): Update.
62092         * tests/test-linkedhash_list.c (main): Update.
62093         * tests/test-array_oset.c (main): Update.
62094
62095 2007-03-15  Bruno Haible  <bruno@clisp.org>
62096
62097         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
62098         (gl_oset_create_empty): Add dispose_fn argument.
62099         (struct gl_oset_implementation): Add dispose_fn argument to
62100         'create_empty' method.
62101         (struct gl_oset_impl_base): Add dispose_fn field.
62102         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
62103         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
62104         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
62105         values.
62106         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
62107         (gl_tree_oset_free): Call dispose_fn on the dropped values.
62108         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62109         dropped value.
62110         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62111         dropped value.
62112         * tests/test-array_oset.c (main): Update.
62113         * tests/test-avltree_oset.c (main): Update.
62114         * tests/test-rbtree_oset.c (main): Update.
62115         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
62116
62117 2007-03-13  Bruno Haible  <bruno@clisp.org>
62118
62119         * tests/test-stdbool.c (i): Update after last patch.
62120
62121 2007-03-12  Bruno Haible  <bruno@clisp.org>
62122
62123         * lib/quotearg.c: Include <wctype.h> early, before the definition of
62124         the iswprint macro. Needed on Solaris 2.5.1.
62125
62126 2007-03-12  Bruno Haible  <bruno@clisp.org>
62127
62128         * tests/test-printf-frexp.c (main): Declare x as volatile.
62129
62130 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62131
62132         * doc/gnulib.texi (Build robot for gnulib): New section.
62133
62134 2007-03-12  Jim Meyering  <jim@meyering.net>
62135
62136         * build-aux/bootstrap: New file.
62137         * build-aux/bootstrap.conf: New file, from coreutils.
62138
62139 2007-03-11  Bruno Haible  <bruno@clisp.org>
62140
62141         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
62142
62143 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62144
62145         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
62146         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
62147         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
62148
62149 2007-03-11  Bruno Haible  <bruno@clisp.org>
62150
62151         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
62152         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
62153
62154 2007-03-11  Bruno Haible  <bruno@clisp.org>
62155
62156         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
62157         formula. Needed for SunPRO C 5.0.
62158
62159 2007-03-11  Bruno Haible  <bruno@clisp.org>
62160
62161         * modules/long-options (Depends-on): Add getopt.
62162
62163 2007-03-11  Bruno Haible  <bruno@clisp.org>
62164
62165         * modules/modechange (Depends-on): Add stdbool.
62166
62167 2007-03-11  Bruno Haible  <bruno@clisp.org>
62168
62169         * modules/i-ring (Depends-on): Add stdbool.
62170
62171 2007-03-11  Bruno Haible  <bruno@clisp.org>
62172
62173         * modules/gc-des (Depends-on): Add stdbool.
62174
62175 2007-03-11  Bruno Haible  <bruno@clisp.org>
62176
62177         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
62178
62179 2007-03-11  Bruno Haible  <bruno@clisp.org>
62180
62181         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
62182
62183 2007-03-11  Bruno Haible  <bruno@clisp.org>
62184
62185         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
62186
62187 2007-03-11  Bruno Haible  <bruno@clisp.org>
62188
62189         * lib/vasnprintf.c (sprintf): Undefine.
62190
62191 2007-03-11  Bruno Haible  <bruno@clisp.org>
62192
62193         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
62194         initializers in SunPRO C and Compaq C compilers.
62195
62196 2007-03-11  Bruno Haible  <bruno@clisp.org>
62197
62198         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
62199         decrementing code ANSI C compliant.
62200
62201 2007-03-11  Bruno Haible  <bruno@clisp.org>
62202
62203         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
62204         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
62205
62206 2007-03-11  Bruno Haible  <bruno@clisp.org>
62207
62208         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
62209         <stdbool.h> substitute doesn't pass.
62210
62211 2007-03-11  Bruno Haible  <bruno@clisp.org>
62212
62213         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
62214
62215 2007-03-11  Bruno Haible  <bruno@clisp.org>
62216
62217         * gnulib-tool (func_create_megatestdir): Create also an autobuild
62218         script, for submission to autobuild.josefsson.org.
62219
62220 2007-03-10  Bruno Haible  <bruno@clisp.org>
62221
62222         * modules/canonicalize-lgpl-tests: New file.
62223         * tests/test-canonicalize-lgpl.sh: New file.
62224         * tests/test-canonicalize-lgpl.c: New file.
62225
62226         * modules/c-strcase-tests: New file.
62227         * tests/test-c-strcase.sh: New file.
62228         * tests/test-c-strcasecmp.c: New file.
62229         * tests/test-c-strncasecmp.c: New file.
62230
62231         * modules/atexit-tests: New file.
62232         * tests/test-atexit.sh: New file.
62233         * tests/test-atexit.c: New file.
62234
62235 2007-03-10  Bruno Haible  <bruno@clisp.org>
62236
62237         * tests/test-binary-io.sh: Use temporary filenames that are not so
62238         likely to clash with those of other tests (in a parallel make).
62239         * tests/test-binary-io.c: Likewise.
62240
62241 2007-03-10  Bruno Haible  <bruno@clisp.org>
62242
62243         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
62244         fallback; use #error instead.
62245         Suggested by Simon Josefsson.
62246
62247 2007-03-10  Bruno Haible  <bruno@clisp.org>
62248
62249         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
62250         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
62251         first and the last.
62252
62253 2007-03-10  Bruno Haible  <bruno@clisp.org>
62254
62255         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
62256
62257 2007-03-10  Bruno Haible  <bruno@clisp.org>
62258
62259         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
62260         "make distcheck".
62261         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
62262         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
62263         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
62264
62265 2007-03-10  Bruno Haible  <bruno@clisp.org>
62266
62267         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
62268         variable.
62269         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
62270         variable.
62271
62272 2007-03-09  Eric Blake  <ebb9@byu.net>
62273         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
62274
62275         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
62276         types are not being provided by gnulib.
62277         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
62278         types are supported.
62279
62280 2007-03-10  Bruno Haible  <bruno@clisp.org>
62281
62282         * lib/stdio_.h (__attribute__): New macro.
62283         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
62284         vsprintf): Specify __attribute__ __format__ for GCC.
62285         Suggested by Eric Blake.
62286
62287 2007-03-09  Bruno Haible  <bruno@clisp.org>
62288
62289         * modules/printf-posix-tests: New file.
62290         * tests/test-printf-posix.sh: New file.
62291         * tests/test-printf-posix.c: New file.
62292
62293         * modules/printf-posix: New file.
62294         * lib/printf.c: New file.
62295         * m4/printf-posix-rpl.m4: New file.
62296         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
62297         REPLACE_PRINTF.
62298         * lib/stdio_.h (printf): New declaration.
62299         (format, __format__, ____printf____, ____scanf____, ____strftime____,
62300         ____strfmon____): New macros.
62301         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
62302         REPLACE_PRINTF.
62303
62304 2007-03-09  Bruno Haible  <bruno@clisp.org>
62305
62306         * tests/test-vasnprintf-posix2.sh: New file.
62307         * tests/test-vasnprintf-posix2.c: New file.
62308         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
62309         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
62310         (Makefile.am): Activate test-vasnprintf-posix2.sh.
62311
62312         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
62313         a locale dependent decimal point, rather than always '.'.
62314
62315 2007-03-09  Eric Blake  <ebb9@byu.net>
62316
62317         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
62318         spite of platforms like Tandem/NSK that define it to -1.
62319
62320 2007-03-08  Bruno Haible  <bruno@clisp.org>
62321
62322         * modules/vprintf-posix-tests: New file.
62323         * tests/test-vprintf-posix.sh: New file.
62324         * tests/test-vprintf-posix.c: New file.
62325         * tests/test-printf-posix.h: New file.
62326
62327         * modules/vprintf-posix: New file.
62328         * lib/vprintf.c: New file.
62329         * m4/vprintf-posix.m4: New file.
62330         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
62331         REPLACE_VPRINTF.
62332         * lib/stdio_.h (vprintf): New declaration.
62333         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
62334         REPLACE_VPRINTF.
62335
62336 2007-03-08  Bruno Haible  <bruno@clisp.org>
62337
62338         * modules/fprintf-posix-tests: New file.
62339         * tests/test-fprintf-posix.sh: New file.
62340         * tests/test-fprintf-posix.c: New file.
62341
62342         * modules/fprintf-posix: New file.
62343         * lib/fprintf.c: New file.
62344         * m4/fprintf-posix.m4: New file.
62345         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
62346         REPLACE_FPRINTF.
62347         * lib/stdio_.h (fprintf): New declaration.
62348         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
62349         REPLACE_FPRINTF.
62350
62351 2007-03-08  Bruno Haible  <bruno@clisp.org>
62352
62353         * modules/vfprintf-posix-tests: New file.
62354         * tests/test-vfprintf-posix.sh: New file.
62355         * tests/test-vfprintf-posix.c: New file.
62356         * tests/test-fprintf-posix.h: New file.
62357         * tests/test-fprintf-posix.out: New file.
62358
62359         * modules/vfprintf-posix: New file.
62360         * lib/vfprintf.c: New file.
62361         * m4/vfprintf-posix.m4: New file.
62362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62363         REPLACE_VFPRINTF.
62364         * lib/stdio_.h (vfprintf): New declaration.
62365         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62366         REPLACE_VFPRINTF.
62367
62368 2007-03-08  Bruno Haible  <bruno@clisp.org>
62369
62370         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62371
62372 2007-03-08  Bruno Haible  <bruno@clisp.org>
62373
62374         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62375         instead of 'expr' invocations.
62376         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62377         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62378         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62379         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62380         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62381         Suggested by Paul Eggert.
62382
62383 2007-03-08  Bruno Haible  <bruno@clisp.org>
62384
62385         * modules/fseterr-tests: New file.
62386         * tests/test-fseterr.c: New file.
62387
62388         * modules/fseterr: New file.
62389         * lib/fseterr.h: New file.
62390         * lib/fseterr.c: New file.
62391
62392 2007-03-08  Bruno Haible  <bruno@clisp.org>
62393
62394         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
62395         * lib/getopt_.h: Likewise.
62396         * lib/mbswidth.h: Likewise.
62397         * lib/setenv.h: Likewise.
62398         * lib/vasnprintf.h: Likewise.
62399         * lib/vasprintf.h: Likewise.
62400         * lib/verror.h: Likewise.
62401         * lib/xsetenv.h: Likewise.
62402         * lib/xvasprintf.h: Likewise.
62403
62404 2007-03-08  Jim Meyering  <jim@meyering.net>
62405
62406         * users.txt: Add parted.
62407
62408         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
62409
62410 2007-03-07  Bruno Haible  <bruno@clisp.org>
62411
62412         * m4/printf.m4: Make the shell script snippets copy&pastable.
62413
62414 2007-03-02  Bruno Haible  <bruno@clisp.org>
62415
62416         * lib/netinet_in_.h: New file.
62417         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
62418         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
62419         * modules/netinet_in (Files): Add lib/netinet_in_.h.
62420         (Depends-on): Add absolute-header.
62421         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
62422         into netinet/in.h.
62423
62424 2007-03-03  Bruno Haible  <bruno@clisp.org>
62425
62426         * lib/sys_select_.h: New file.
62427         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
62428         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
62429         * modules/sys_select (Files): Add lib/sys_select_.h.
62430         (Depends-on): Add absolute-header.
62431         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
62432         into sys/select.h.
62433
62434 2007-03-02  Bruno Haible  <bruno@clisp.org>
62435
62436         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
62437         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
62438         values.
62439         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
62440         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
62441         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
62442         * modules/sys_socket (Depends-on): Add absolute-header.
62443         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
62444         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
62445         (Include): Remove requirement of inclusion of <sys/types.h>.
62446
62447 2007-03-02  Bruno Haible  <bruno@clisp.org>
62448
62449         * lib/byteswap_.h (bswap_32): Fix formula.
62450
62451 2007-03-06  Bruno Haible  <bruno@clisp.org>
62452
62453         * modules/sprintf-posix-tests: New file.
62454         * tests/test-sprintf-posix.c: New file.
62455
62456         * modules/sprintf-posix: New file.
62457         * lib/sprintf.c: New file.
62458         * m4/sprintf-posix.m4: New file.
62459         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
62460         REPLACE_SPRINTF.
62461         * lib/stdio_.h (sprintf): New declaration.
62462         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
62463         REPLACE_SPRINTF.
62464
62465 2007-03-06  Bruno Haible  <bruno@clisp.org>
62466
62467         * modules/vsprintf-posix-tests: New file.
62468         * tests/test-vsprintf-posix.c: New file.
62469         * tests/test-sprintf-posix.h: New file.
62470
62471         * modules/vsprintf-posix: New file.
62472         * lib/vsprintf.c: New file.
62473         * m4/vsprintf-posix.m4: New file.
62474         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62475         REPLACE_VSPRINTF.
62476         * lib/stdio_.h (vsprintf): New declaration.
62477         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62478         REPLACE_VSPRINTF.
62479
62480 2007-03-06  Bruno Haible  <bruno@clisp.org>
62481
62482         * modules/vsnprintf (Depend-on): Remove minmax.
62483
62484 2007-03-06  Bruno Haible  <bruno@clisp.org>
62485
62486         * modules/snprintf-posix-tests: New file.
62487         * tests/test-snprintf-posix.c: New file.
62488
62489         * modules/snprintf-posix: New file.
62490         * m4/snprintf-posix.m4: New file.
62491         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62492         gl_FUNC_SNPRINTF.
62493         (gl_FUNC_SNPRINTF): Invoke it.
62494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62495         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62496         is set.
62497         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62498
62499 2007-03-06  Bruno Haible  <bruno@clisp.org>
62500
62501         * modules/vsnprintf-posix-tests: New file.
62502         * tests/test-vsnprintf-posix.c: New file.
62503         * tests/test-snprintf-posix.h: New file.
62504
62505         * modules/vsnprintf-posix: New file.
62506         * m4/vsnprintf-posix.m4: New file.
62507         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62508         gl_FUNC_VSNPRINTF.
62509         (gl_FUNC_VSNPRINTF): Invoke it.
62510         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62511         * lib/stdio_.h (vsnprintf): Define as a replacement if
62512         REPLACE_VSNPRINTF is set.
62513         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62514
62515 2007-03-06  Bruno Haible  <bruno@clisp.org>
62516
62517         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62518         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62519
62520 2007-03-06  Bruno Haible  <bruno@clisp.org>
62521
62522         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62523         (asinl): Declare also if HAVE_DECL_ASINL is set.
62524         (atanl): Declare also if HAVE_DECL_ATANL is set.
62525         (ceill): Declare also if HAVE_DECL_CEILL is set.
62526         (cosl): Declare also if HAVE_DECL_COSL is set.
62527         (expl): Declare also if HAVE_DECL_EXPL is set.
62528         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62529         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62530         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62531         (logl): Declare also if HAVE_DECL_LOGL is set.
62532         (sinl): Declare also if HAVE_DECL_SINL is set.
62533         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62534         (tanl): Declare also if HAVE_DECL_TANL is set.
62535         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62536         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62537         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62538         declaration of frexpl, ldexpl.
62539         * modules/printf-frexpl (Depends-on): Add math.
62540         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62541
62542 2007-03-05  Bruno Haible  <bruno@clisp.org>
62543
62544         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62545         frexpl and ldexpl are declared.
62546         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62547
62548 2007-03-05  Bruno Haible  <bruno@clisp.org>
62549
62550         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62551         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62552
62553 2007-03-05  Bruno Haible  <bruno@clisp.org>
62554
62555         * lib/stdio_.h: Include <stddef.h>.
62556
62557 2007-03-05  Bruno Haible  <bruno@clisp.org>
62558
62559         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62560
62561 2007-03-05  Bruno Haible  <bruno@clisp.org>
62562
62563         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62564         NetBSD 4, from Ralf Wildenhues.
62565
62566 2007-03-04  Bruno Haible  <bruno@clisp.org>
62567
62568         * lib/vasprintf.h: Update #if logic for the case when the functions
62569         exist but are overridden.
62570
62571 2007-03-04  Bruno Haible  <bruno@clisp.org>
62572
62573         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62574         implementations: glibc-2.4 and MacOS X 10.3.
62575         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62576         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62577         * tests/test-vasprintf-posix.c (test_function): Likewise.
62578
62579 2007-03-04  Bruno Haible  <bruno@clisp.org>
62580
62581         * modules/vasprintf-posix-tests: New file.
62582         * tests/test-vasprintf-posix.c: New file.
62583
62584         * modules/vasprintf-posix: New file.
62585         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62586         defined.
62587         * m4/vasprintf-posix.m4: New file.
62588         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62589         gl_FUNC_VASPRINTF.
62590         (gl_FUNC_VASPRINTF): Invoke it.
62591         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62592         here.
62593         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62594
62595 2007-03-04  Bruno Haible  <bruno@clisp.org>
62596
62597         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62598         REPLACE_GETTIMEOFDAY.
62599         * modules/sys_time (Makefile.am): Likewise.
62600         * m4/sys_time_h.m4: Likewise.
62601         * m4/gettimeofday.m4: Likewise.
62602
62603 2007-03-04  Bruno Haible  <bruno@clisp.org>
62604
62605         * modules/vasnprintf-posix-tests: New file.
62606         * tests/test-vasnprintf-posix.c: New file.
62607
62608         * modules/vasnprintf-posix: New file.
62609         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62610         printf-frexpl.h.
62611         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62612         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62613         REPLACE_VASNPRINTF is defined.
62614         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62615         gl_FUNC_VASNPRINTF.
62616         (gl_FUNC_VASNPRINTF): Invoke it.
62617         * m4/vasnprintf-posix.m4: New file.
62618         * m4/printf.m4: New file.
62619
62620 2007-03-04  Bruno Haible  <bruno@clisp.org>
62621
62622         Compile progreloc.c only if --enable-relocatable is specified.
62623         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62624         if --enable-relocatable was specified.
62625         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62626         lib_SOURCES.
62627
62628 2007-03-04  Jim Meyering  <jim@meyering.net>
62629
62630         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62631         Use it consistently, rather than enumerating errno constants.
62632
62633 2007-03-04  Bruno Haible  <bruno@clisp.org>
62634
62635         * modules/xvasprintf-tests: New file.
62636         * tests/test-xvasprintf.c: New file.
62637
62638         * modules/vasprintf-tests: New file.
62639         * tests/test-vasprintf.c: New file.
62640
62641         * modules/vasnprintf-tests: New file.
62642         * tests/test-vasnprintf.c: New file.
62643
62644         * modules/vsnprintf-tests: New file.
62645         * tests/test-vsnprintf.c: New file.
62646
62647         * modules/snprintf-tests: New file.
62648         * tests/test-snprintf.c: New file.
62649
62650 2007-03-04  Bruno Haible  <bruno@clisp.org>
62651
62652         Compile relocatable.c only if --enable-relocatable is specified.
62653         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62654         gl_RELOCATABLE_LIBRARY.
62655         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62656         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62657         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62658         gl_RELOCATABLE_LIBRARY.
62659         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62660         (Makefile.am): Remove lib_SOURCES.
62661         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62662         gl_RELOCATABLE_LIBRARY.
62663         (Makefile.am): Remove lib_SOURCES.
62664         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62665         always.
62666         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62667         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62668
62669 2007-03-04  Bruno Haible  <bruno@clisp.org>
62670
62671         * modules/argmatch-tests: New file.
62672         * tests/test-argmatch.c: New file.
62673
62674         * tests/test-allocsa.c (main): Halve the number of loop runs.
62675
62676         * modules/alloca-opt-tests: New file.
62677         * tests/test-alloca-opt.c: New file.
62678
62679 2007-03-04  Jim Meyering  <jim@meyering.net>
62680
62681         Work around difference between Linux ACLs and Solaris 10 ZFS.
62682         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62683         for EINVAL.
62684
62685 2007-03-03  Bruno Haible  <bruno@clisp.org>
62686
62687         * modules/relocatable-prog (Depends-on): Add back progreloc's
62688         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62689
62690 2007-03-03  Bruno Haible  <bruno@clisp.org>
62691
62692         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62693         * modules/relocatable-lib: New file.
62694
62695 2007-03-03  Bruno Haible  <bruno@clisp.org>
62696
62697         * modules/relocatable-prog: Renamed from modules/relocatable.
62698         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62699
62700 2007-03-03  Bruno Haible  <bruno@clisp.org>
62701
62702         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62703         m4/relocatable-lib.m4.
62704         (Depends-on): Remove 'relocatable'.
62705         (configure.ac): Add gl_RELOCATABLE_NOP.
62706
62707 2007-03-03  Bruno Haible  <bruno@clisp.org>
62708
62709         * modules/relocatable-prog-wrapper: New file.
62710         * modules/relocatable (Depends-on): Add it. Remove all other
62711         dependencies except progname.
62712         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62713
62714         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62715         (gl_FUNC_STRERROR): Nop.
62716         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62717
62718         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62719         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62720
62721         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62722         (gl_FUNC_READLINK): Update.
62723
62724         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62725
62726 2007-03-03  Bruno Haible  <bruno@clisp.org>
62727
62728         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62729         * modules/xreadlink (Depends-on): Add unistd.
62730         * modules/xreadlink-with-size (Depends-on): Likewise.
62731
62732 2007-03-03  Bruno Haible  <bruno@clisp.org>
62733
62734         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62735         extracted from gt_FUNC_SETENV.
62736         (gt_FUNC_SETENV): Remove macro.
62737         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62738         remove gt_FUNC_SETENV.
62739
62740 2007-03-03  Bruno Haible  <bruno@clisp.org>
62741
62742         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62743         ENABLE_RELOCATABLE here.
62744         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62745
62746 2007-03-03  Bruno Haible  <bruno@clisp.org>
62747
62748         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62749         * tests/test-rbtreehash_list.c: Include progname.h.
62750         (main): Call set_program_name.
62751
62752         * modules/rbtree-oset-tests (Depends-on): Add progname.
62753         * tests/test-rbtree_oset.c: Include progname.h.
62754         (main): Call set_program_name.
62755
62756         * modules/rbtree-list-tests (Depends-on): Add progname.
62757         * tests/test-rbtree_list.c: Include progname.h.
62758         (main): Call set_program_name.
62759
62760         * modules/linked-list-tests (Depends-on): Add progname.
62761         * tests/test-linked_list.c: Include progname.h.
62762         (main): Call set_program_name.
62763
62764 2007-03-03  Bruno Haible  <bruno@clisp.org>
62765
62766         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62767         All uses of __restrict changed to _Restrict_.
62768         * lib/glob_.h (__restrict): Remove macro.
62769
62770 2007-03-02  Bruno Haible  <bruno@clisp.org>
62771
62772         * modules/gettext (configure.ac): Require gettext infrastructure
62773         from version 0.16.1.
62774
62775 2007-03-02  Bruno Haible  <bruno@clisp.org>
62776
62777         * modules/linkedhash-list-tests (Depends-on): Add progname.
62778         * tests/test-linkedhash_list.c: Include progname.h.
62779         (main): Call set_program_name.
62780
62781         * modules/carray-list-tests (Depends-on): Add progname.
62782         * tests/test-carray_list.c: Include progname.h.
62783         (main): Call set_program_name.
62784
62785         * modules/avltreehash-list-tests (Depends-on): Add progname.
62786         * tests/test-avltreehash_list.c: Include progname.h.
62787         (main): Call set_program_name.
62788
62789         * modules/avltree-oset-tests (Depends-on): Add progname.
62790         * tests/test-avltree_oset.c: Include progname.h.
62791         (main): Call set_program_name.
62792
62793         * modules/avltree-list-tests (Depends-on): Add progname.
62794         * tests/test-avltree_list.c: Include progname.h.
62795         (main): Call set_program_name.
62796
62797         * modules/array-oset-tests (Depends-on): Add progname.
62798         * tests/test-array_oset.c: Include progname.h.
62799         (main): Call set_program_name.
62800
62801         * modules/array-list-tests (Depends-on): Add progname.
62802         * tests/test-array_list.c: Include progname.h.
62803         (main): Call set_program_name.
62804
62805         * modules/argp-tests (Depends-on): Add progname.
62806         * tests/test-argp.c: Include argp.h first. Include progname.h.
62807         (main): Call set_program_name.
62808
62809 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62810
62811         * doc/gnulib-tool.texi (Initial import): Reword description of
62812         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62813         limited effect even if defined after the first system include.
62814
62815 2007-03-01  Bruno Haible  <bruno@clisp.org>
62816
62817         * build-aux/config.libpath: Update to libtool-1.5.22.
62818         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62819
62820 2007-03-01  Bruno Haible  <bruno@clisp.org>
62821
62822         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62823         foo_CFLAGS.
62824         Reported by Ralf Wildenhues.
62825
62826 2007-03-01  Bruno Haible  <bruno@clisp.org>
62827
62828         * build-aux/install-reloc: Remove object files left over by some
62829         compilers.
62830         Reported by Ralf Wildenhues.
62831
62832 2007-03-01  Bruno Haible  <bruno@clisp.org>
62833
62834         * build-aux/install-reloc: Break long lines.
62835
62836 2007-03-01  Bruno Haible  <bruno@clisp.org>
62837
62838         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62839         Reported by Ralf Wildenhues.
62840
62841 2007-03-01  Bruno Haible  <bruno@clisp.org>
62842
62843         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62844         include ordering constraints.
62845
62846 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62847
62848         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62849         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62850         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62851         as another example.
62852         * lib/time_.h: Fix misspelling.
62853         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62854         Require gl_HEADER_TIME_H_DEFAULTS.
62855         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62856         * m4/time_r.m4 (gl_TIME_R): Likewise.
62857         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62858
62859 2007-03-01  Bruno Haible  <bruno@clisp.org>
62860
62861         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62862         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62863
62864 2007-03-01  Jim Meyering  <jim@meyering.net>
62865
62866         * modules/xreadlink (Maintainer): Add my name.
62867         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62868
62869 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62870             Bruno Haible  <bruno@clisp.org>
62871
62872         * build-aux/install-reloc: Compile also c-ctype.c.
62873         * build-aux/relocatable.sh.in: New file.
62874         * doc/relocatable.texi: New file.
62875         * doc/relocatable-maint.texi: New file.
62876         * doc/gnulib.texi: Include relocatable-maint.texi.
62877         * lib/progreloc.c: Include unistd.h unconditionally.
62878         * lib/relocwrapper.c: Include unistd.h unconditionally.
62879         Include c-ctype.h.
62880         (add_dotbin): Use c_tolower.
62881         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62882         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62883         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62884         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62885         to m4/relocatable-lib.m4.
62886         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62887         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62888         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62889         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62890         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62891         * modules/relocatable: New file.
62892         * modules/relocatable-lib: New file.
62893         * modules/relocatable-script: New file.
62894
62895 2007-02-28  Bruno Haible  <bruno@clisp.org>
62896
62897         Import --enable-relocatable infrastructure.
62898         * build-aux/config.libpath: New file, from GNU gettext.
62899         * build-aux/install-reloc: New file, from GNU gettext.
62900         * build-aux/reloc-ldflags: New file, from GNU gettext.
62901         * lib/relocatable.h: New file, from GNU gettext.
62902         * lib/relocatable.c: New file, from GNU gettext.
62903         * lib/relocwrapper.c: New file, from GNU gettext.
62904         * m4/relocatable.m4: New file, from GNU gettext.
62905
62906 2007-02-28  Bruno Haible  <bruno@clisp.org>
62907
62908         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62909
62910         * modules/xreadlink: New file, from GNU gettext with modifications.
62911         * lib/xreadlink.c: New file, from GNU gettext.
62912         * lib/xreadlink.h: Add comments.
62913         (xreadlink): New declaration.
62914
62915         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62916         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62917         lib/xreadlink-with-size.c.
62918         (configure.ac): Remove gl_XREADLINK invocation.
62919         (Makefile.am): Augment lib_SOURCES.
62920         * m4/xreadlink.m4: Remove file.
62921         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62922         (xreadlink_with_size): Renamed from xreadink.
62923         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62924         * modules/canonicalize (Depends-on): Replace xreadlink with
62925         xreadlink-with-size.
62926         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62927
62928 2007-02-25  Jim Meyering  <jim@meyering.net>
62929
62930         * build-aux/announce-gen: When complaining about excess arguments,
62931         list them.
62932
62933 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62934
62935         * README: Document signed integer overflow situation more
62936         accurately.
62937
62938 2007-02-25  Bruno Haible  <bruno@clisp.org>
62939
62940         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62941         'a' or 'A' conversion.
62942
62943 2007-02-25  Bruno Haible  <bruno@clisp.org>
62944
62945         * modules/filename: Renamed from modules/pathname.
62946         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62947         lib/concatpath.c with lib/concat-filename.c.
62948         (Makefile.am): Update.
62949         (Include): Replace pathname.h with filename.h.
62950         * lib/filename.h: Renamed from lib/pathname.h.
62951         (concatenated_filename): Renamed from concatenated_pathname.
62952         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62953         (concatenated_filename): Renamed from concatenated_pathname.
62954         * lib/findprog.c: Include filename.h instead of pathname.h.
62955         (find_in_path): Update.
62956         * lib/javacomp.c: Include filename.h instead of pathname.h.
62957         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62958         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62959         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62960         is_oldgcj_14_13_usable, is_javac_usable): Update.
62961         * lib/javaexec.c: Include filename.h instead of pathname.h.
62962         (execute_java_class): Update.
62963         * modules/findprog: Update.
62964         * modules/javacomp: Update.
62965         * modules/javaexec: Update.
62966         * MODULES.html.sh (File system functions): Add 'filename', remove
62967         'pathname'.
62968
62969 2007-02-25  Bruno Haible  <bruno@clisp.org>
62970
62971         * modules/printf-frexpl-tests: New file.
62972         * tests/test-printf-frexpl.c: New file.
62973
62974         * modules/printf-frexpl: New file.
62975         * lib/printf-frexpl.h: New file.
62976         * lib/printf-frexpl.c: New file.
62977         * m4/printf-frexpl.m4: New file.
62978
62979 2007-02-25  Bruno Haible  <bruno@clisp.org>
62980
62981         * modules/printf-frexp-tests: New file.
62982         * tests/test-printf-frexp.c: New file.
62983
62984         * modules/printf-frexp: New file.
62985         * lib/printf-frexp.h: New file.
62986         * lib/printf-frexp.c: New file.
62987         * m4/printf-frexp.m4: New file.
62988
62989 2007-02-25  Bruno Haible  <bruno@clisp.org>
62990
62991         Assume automake >= 1.10 for the tests.
62992         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62993         * modules/arctwo-tests: Likewise.
62994         * modules/argp-tests: Likewise.
62995         * modules/avltree-list-tests: Likewise.
62996         * modules/avltree-oset-tests: Likewise.
62997         * modules/avltreehash-list-tests: Likewise.
62998         * modules/carray-list-tests: Likewise.
62999         * modules/crc-tests: Likewise.
63000         * modules/des-tests: Likewise.
63001         * modules/gc-arcfour-tests: Likewise.
63002         * modules/gc-arctwo-tests: Likewise.
63003         * modules/gc-des-tests: Likewise.
63004         * modules/gc-hmac-md5-tests: Likewise.
63005         * modules/gc-hmac-sha1-tests: Likewise.
63006         * modules/gc-md2-tests: Likewise.
63007         * modules/gc-md4-tests: Likewise.
63008         * modules/gc-md5-tests: Likewise.
63009         * modules/gc-pbkdf2-sha1-tests: Likewise.
63010         * modules/gc-rijndael-tests: Likewise.
63011         * modules/gc-sha1-tests: Likewise.
63012         * modules/gc-tests: Likewise.
63013         * modules/getaddrinfo-tests: Likewise.
63014         * modules/hmac-md5-tests: Likewise.
63015         * modules/hmac-sha1-tests: Likewise.
63016         * modules/linked-list-tests: Likewise.
63017         * modules/linkedhash-list-tests: Likewise.
63018         * modules/lock-tests: Likewise.
63019         * modules/md2-tests: Likewise.
63020         * modules/md4-tests: Likewise.
63021         * modules/md5-tests: Likewise.
63022         * modules/rbtree-list-tests: Likewise.
63023         * modules/rbtree-oset-tests: Likewise.
63024         * modules/rbtreehash-list-tests: Likewise.
63025         * modules/read-file-tests: Likewise.
63026         * modules/rijndael-tests: Likewise.
63027         * modules/stdint-tests: Likewise.
63028         * modules/tls-tests: Likewise.
63029
63030 2007-02-24  Bruno Haible  <bruno@clisp.org>
63031
63032         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
63033         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
63034         function; instead check whether isnan with a double argument links.
63035         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
63036         function; instead check whether isnan with a 'long double' argument
63037         links.
63038         Reported by Eric Blake <ebb9@byu.net>.
63039
63040 2007-02-24  Bruno Haible  <bruno@clisp.org>
63041
63042         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
63043         defined.
63044         * lib/isnanl.c: Remove all code. Just include isnan.c.
63045         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
63046
63047 2007-02-25  Jim Meyering  <jim@meyering.net>
63048
63049         Avoid conflicting types for 'unsetenv' on FreeBSD.
63050         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
63051         conflicting with FreeBSD's (5.0 and 6.1) function declaration
63052         in stdlib.h.
63053
63054 2007-02-24  Bruno Haible  <bruno@clisp.org>
63055
63056         * modules/isnanl-nolibm-tests: New file.
63057         * tests/test-isnanl.c: New file.
63058
63059         * modules/isnanl-nolibm: New file.
63060         * lib/isnanl.h: New file.
63061         * lib/isnanl.c: New file.
63062         * m4/isnanl.m4: New file.
63063
63064 2007-02-24  Bruno Haible  <bruno@clisp.org>
63065
63066         * modules/isnan-nolibm-tests: New file.
63067         * tests/test-isnan.c: New file.
63068
63069         * modules/isnan-nolibm: New file.
63070         * lib/isnan.h: New file.
63071         * lib/isnan.c: New file.
63072         * m4/isnan.m4: New file.
63073
63074 2007-02-24  Bruno Haible  <bruno@clisp.org>
63075
63076         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
63077         assume that an exponent fits in 20 bits.
63078
63079 2007-02-24  Jim Meyering  <jim@meyering.net>
63080
63081         * m4/regex.m4: Update the description of the configure-time option,
63082         --without-included-regex, to state accurately what the defaults are,
63083         and perhaps to give people an idea why using this option is risky.
63084
63085 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63086
63087         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
63088         loops on small arguments.  This attempts to avoid the problem
63089         Bruno Haible reported for AIX 4.3.2 in
63090         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
63091
63092 2007-02-23  Bruno Haible  <bruno@clisp.org>
63093
63094         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
63095         Needed for help2man.
63096
63097 2007-02-23  Karl Berry  <karl@gnu.org>
63098
63099         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
63100         exists, foo.h should be cvs-ignored, not committed.
63101
63102 2007-02-23  Eric Blake  <ebb9@byu.net>
63103
63104         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
63105         * lib/stat-time.h (includes): Likewise.
63106         * lib/utimecmp.c (includes): Likewise.
63107         * lib/utimens.h (includes): Likewise.
63108         * lib/getdate.y (includes): Also include "timespec.h" for use
63109         internal to the module.
63110         * modules/utimens (Depends-on): Revert yesterday's patch.
63111         * modules/nanosleep (Depends-on): Add missing dependency.
63112
63113 2007-02-22  Bruno Haible  <bruno@clisp.org>
63114
63115         * lib/glob.c: Don't include getlogin_r.h.
63116
63117 2007-02-22  Jim Meyering  <jim@meyering.net>
63118
63119         * modules/utimens (Depends-on): Add timespec, required for
63120         utimens.h's inclusion of timespec.h.
63121
63122 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
63123
63124         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
63125         long unreadable paths in GNU/Linux.  Problem reported by Andreas
63126         Schwab in
63127         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
63128         I'll try to think of a better way to fix the Solaris problem.
63129
63130         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
63131         like glibc; on Solaris 10, it fails with errno == EINVAL.
63132         POSIX says the behavior is unspecified if the first argument is NULL,
63133         so play it safe and never pass NULL to the system getcwd.
63134
63135 2007-02-21  Jim Meyering  <jim@meyering.net>
63136
63137         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
63138         of gettimeofday.  It would conflict with the one now always
63139         provided via sys_time_.h.  Reported by Matthew Woehlke, as
63140         an IRIX 6.5 build failure.
63141
63142 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63143
63144         Minor fixups to port to Solaris 10 with Sun C 5.8.
63145         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
63146         * modules/getcwd (Depends-on): Add dirfd.
63147         * lib/putenv.c (putenv): #undef it.
63148         (rpl_putenv): New decl.
63149         (malloc, free): Include <stdlib.h> rather than prototyping separately.
63150
63151 2007-02-20  Bruno Haible  <bruno@clisp.org>
63152
63153         * modules/stdio-tests: New file.
63154         * tests/test-stdio.c: New file.
63155
63156         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
63157         (Depends-on): Add stdio.
63158         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63159         (Include): Use <stdio.h> instead of vsnprintf.h.
63160         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63161         HAVE_DECL_VSNPRINTF.
63162         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
63163
63164         * modules/snprintf (Files): Remove lib/snprintf.h.
63165         (Depends-on): Add stdio.
63166         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63167         (Include): Use <stdio.h> instead of snprintf.h.
63168         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63169         HAVE_DECL_SNPRINTF.
63170         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
63171         * lib/getaddrinfo.c: Likewise.
63172
63173         * modules/stdio: New file.
63174         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
63175         * lib/snprintf.h: Remove file.
63176         * lib/vsnprintf.h: Remove file.
63177         * lib/.cppi-disable: Remove snprintf.h.
63178         * m4/stdio_h.m4: New file.
63179         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
63180
63181 2007-02-20  Jim Meyering  <jim@meyering.net>
63182
63183         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
63184         used by e.g., mingw.  From Bruno Haible.
63185
63186 2007-02-19  Bruno Haible  <bruno@clisp.org>
63187
63188         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
63189         warnings.
63190         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63191
63192 2007-02-19  Bruno Haible  <bruno@clisp.org>
63193
63194         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
63195         from mingw users.
63196
63197 2007-02-19  Bruno Haible  <bruno@clisp.org>
63198
63199         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
63200         warnings.
63201         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
63202
63203 2007-02-19  Jim Meyering  <jim@meyering.net>
63204
63205         Don't use FD after a successful "fdopendir (fd)".
63206         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
63207         Reset it by calling dirfd on the just-obtained DIR*.
63208
63209         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
63210         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
63211
63212 2007-02-18  Bruno Haible  <bruno@clisp.org>
63213
63214         * lib/readlink.c: Include <unistd.h>.
63215         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
63216         HAVE_READLINK.
63217         * modules/readlink (Depends-on): Add unistd.
63218         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63219         (Include): Add <unistd.h>.
63220
63221         * lib/getlogin_r.h: Remove file.
63222         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
63223         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
63224         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
63225         HAVE_DECL_GETLOGIN_R.
63226         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
63227         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63228         (Include): Use <unistd.h> instead of getlogin_r.h.
63229
63230         * lib/getcwd.h: Remove file.
63231         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
63232         * lib/xgetcwd.c: Likewise.
63233         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
63234         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
63235         * modules/getcwd (Files): Remove lib/getcwd.h.
63236         (Depends-on): Add unistd.
63237         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63238         (Include): Use <unistd.h> instad of getcwd.h.
63239
63240         * lib/ftruncate.c: Include <unistd.h> first.
63241         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
63242         Set HAVE_FTRUNCATE.
63243         * modules/ftruncate (Depends-on): Add unistd.
63244         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63245
63246         * lib/fchdir.c: Include <unistd.h> first.
63247         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
63248         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
63249         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
63250         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63251         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
63252
63253         * lib/dup2.c: Include <unistd.h> first.
63254         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
63255         HAVE_DUP2.
63256         * modules/dup2 (Depends-on): Add unistd.
63257         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63258
63259         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
63260         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
63261         REPLACE_CHOWN. Don't define chown as a macro here.
63262         * modules/chown (Depends-on): Add unistd.
63263         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63264
63265         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
63266         Add definition for GL_LINK_WARNING.
63267         (chown, dup2): New declarations.
63268         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
63269         link warning.
63270         (ftruncate): New declaration.
63271         (getcwd): New declaration, taken from old getcwd.h.
63272         (getlogin_r): New declaration, taken from old getlogin_r.h.
63273         (readlink): New declaration.
63274         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
63275         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
63276         (gl_PREREQ_UNISTD): Remove macro.
63277         (gl_UNISTD_MODULE_INDICATOR): New macro.
63278         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
63279         many new variables. Don't set UNISTD_H.
63280         * modules/unistd (Description): Change.
63281         (Depends-on): Add link-warning.
63282         (configure.ac): Update.
63283         (Makefile.am): Create unistd.h always. Substitute many new variables
63284         into it.
63285
63286 2007-02-18  Bruno Haible  <bruno@clisp.org>
63287
63288         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
63289         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
63290         HAVE_GETSUBOPT.
63291         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
63292         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
63293         * lib/getsubopt.h: Remove file.
63294         * modules/getsubopt (Files): Remove lib/getsubopt.h.
63295         (Depends-on): Add stdlib.
63296         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63297         (Includes): Use <stdlib.h> instead of getsubopt.h.
63298         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
63299         Set HAVE_GETSUBOPT.
63300         * lib/getsubopt.c: Don't include getsubopt.h.
63301
63302 2007-02-18  Bruno Haible  <bruno@clisp.org>
63303
63304         * modules/fchdir (Depends-on): Add dup2.
63305
63306 2007-02-18  Bruno Haible  <bruno@clisp.org>
63307
63308         * lib/stdlib_.h: Handle glibc's special invocation convention
63309         specially.
63310
63311 2007-02-18  Bruno Haible  <bruno@clisp.org>
63312
63313         * modules/stdlib-tests: New file.
63314         * tests/test-stdlib.c: New file.
63315
63316         * modules/mkstemp (Files): Remove lib/mkstemp.h.
63317         (Depends-on): Add stdlib.
63318         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63319         (Includes): Use <stdlib.h> instead of mkstemp.h.
63320         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63321         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
63322         * lib/mkstemp.c: Don't include mkstemp.h.
63323         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
63324         * lib/stdlib--.h: Don't include mkstemp.h.
63325
63326         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
63327         (Depends-on): Add stdlib.
63328         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63329         (Includes): Use <stdlib.h> instead of mkdtemp.h.
63330         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63331         HAVE_MKDTEMP.
63332         * lib/mkdtemp.c: Don't include mkdtemp.h.
63333         * lib/clean-temp.c: Don't include mkdtemp.h.
63334
63335         * modules/exit (Files): Remove lib/exit.h.
63336         (Depends-on): Add stdlib.
63337         (Makefile.am): Remove lib_SOURCES.
63338         (Include): Use <stdlib.h> instead of exit.h.
63339         * lib/argmatch.c: Don't include exit.h.
63340         * lib/execute.c: Likewise.
63341         * lib/pagealign_alloc.c: Likewise.
63342         * lib/pipe.c: Likewise.
63343         * lib/wait-process.c: Likewise.
63344         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
63345         * lib/exitfail.c: Likewise.
63346         * lib/savewd.c: Likewise.
63347         * lib/xsetenv.c: Likewise.
63348
63349         * modules/stdlib: New file.
63350         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
63351         and extra comments about mkstemp().
63352         * lib/exit.h: Remove file.
63353         * lib/mkdtemp.h: Remove file.
63354         * lib/mkstemp.h: Remove file.
63355         * m4/stdlib_h.m4: New file.
63356         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
63357
63358 2007-02-18  Bruno Haible  <bruno@clisp.org>
63359
63360         * modules/math-tests: New file.
63361         * tests/test-math.c: New file.
63362
63363         * modules/math: New file.
63364         * modules/mathl (Files): Remove lib/mathl.h.
63365         (Depends-on): Add math.
63366         (Makefile.am): Don't mention mathl.h.
63367         (Include): Use <math.h> instead of mathl.h.
63368         * lib/math_.h: New file.
63369         * lib/mathl.h: Remove file.
63370         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63371         mathl.h.
63372         * lib/asinl.c: Likewise.
63373         * lib/atanl.c: Likewise.
63374         * lib/ceill.c: Likewise.
63375         * lib/cosl.c: Likewise.
63376         * lib/expl.c: Likewise.
63377         * lib/floorl.c: Likewise.
63378         * lib/frexpl.c: Likewise.
63379         * lib/ldexpl.c: Likewise.
63380         * lib/logl.c: Likewise.
63381         * lib/sincosl.c: Likewise.
63382         * lib/sinl.c: Likewise.
63383         * lib/sqrtl.c: Likewise.
63384         * lib/tanl.c: Likewise.
63385         * lib/trigl.c: Likewise.
63386         * m4/math_h.m4: New file.
63387         * MODULES.html.sh (Mathematics): Add math.
63388
63389 2007-02-17  Bruno Haible  <bruno@clisp.org>
63390
63391         * modules/wctype-tests: New file.
63392         * tests/test-wctype.c: New file.
63393
63394         * modules/wchar-tests: New file.
63395         * tests/test-wchar.c: New file.
63396
63397         * modules/unistd-tests: New file.
63398         * tests/test-unistd.c: New file.
63399
63400         * modules/time-tests: New file.
63401         * tests/test-time.c: New file.
63402
63403         * modules/sysexits-tests: New file.
63404         * tests/test-sysexits.c: New file.
63405
63406         * modules/sys_time-tests: New file.
63407         * tests/test-sys_time.c: New file.
63408
63409         * modules/sys_stat-tests: New file.
63410         * tests/test-sys_stat.c: New file.
63411
63412         * modules/sys_socket-tests: New file.
63413         * tests/test-sys_socket.c: New file.
63414
63415         * modules/sys_select-tests: New file.
63416         * tests/test-sys_select.c: New file.
63417
63418         * modules/string-tests: New file.
63419         * tests/test-string.c: New file.
63420
63421         * modules/stdbool-tests: New file.
63422         * tests/test-stdbool.c: New file.
63423
63424         * modules/netinet_in-tests: New file.
63425         * tests/test-netinet_in.c: New file.
63426
63427         * modules/inttypes-tests: New file.
63428         * tests/test-inttypes.c: New file.
63429
63430         * modules/fcntl-tests: New file.
63431         * tests/test-fcntl.c: New file.
63432
63433         * modules/byteswap-tests: New file.
63434         * tests/test-byteswap.c: New file.
63435
63436         * modules/arpa_inet-tests: New file.
63437         * tests/test-arpa_inet.c: New file.
63438
63439 2007-02-17  Bruno Haible  <bruno@clisp.org>
63440
63441         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
63442         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
63443         if the corresponding module is not enabled. Emit link warnings if
63444         the function is used nevertheless.
63445         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
63446         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
63447         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
63448         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
63449         * modules/inttypes (Depends-on): Add link-warning.
63450         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63451         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
63452         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
63453         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
63454         * modules/imaxdiv (configure.ac): Likewise.
63455         * modules/strtoimax (configure.ac): Likewise.
63456         * modules/strtoumax (configure.ac): Likewise.
63457
63458 2007-02-17  Bruno Haible  <bruno@clisp.org>
63459
63460         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
63461         gl_STRING_MODULE_INDICATOR_DEFAULTS.
63462         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
63463         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
63464
63465 2007-02-17  Bruno Haible  <bruno@clisp.org>
63466
63467         * modules/link-warning: New file.
63468         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
63469         * lib/string_.h (GL_LINK_WARNING): Remove definition.
63470         * modules/string (Depends-on): Add link-warning.
63471         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63472         string.h.
63473         * MODULES.html.sh (Support for building libraries and executables): Add
63474         link-warning.
63475
63476 2007-02-17  Bruno Haible  <bruno@clisp.org>
63477
63478         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63479         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63480         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63481         long lines.
63482
63483 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63484             Bruno Haible  <bruno@clisp.org>
63485
63486         * modules/tmpfile: New file.
63487         * lib/tmpfile.c: New file.
63488         * m4/tmpfile.m4: New file.
63489         * MODULES.html.sh (func_all_modules): New section "Input/output".
63490
63491 2007-02-15  Bruno Haible  <bruno@clisp.org>
63492
63493         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63494         (supports_delete_on_close): New function.
63495         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63496
63497 2007-02-14  Bruno Haible  <bruno@clisp.org>
63498
63499         * modules/mbspcasecmp-tests: New file.
63500         * tests/test-mbspcasecmp.sh: New file.
63501         * tests/test-mbspcasecmp.c: New file.
63502
63503         New module mbspcasecmp.
63504         * modules/mbspcasecmp: New file.
63505         * lib/mbspcasecmp.c: New file.
63506         * lib/string_.h (strncasecmp): Change warning message.
63507         (mbspcasecmp): New declaration.
63508         * m4/mbspcasecmp.m4: New file.
63509         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63510         GNULIB_MBSPCASECMP.
63511         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63512         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63513
63514 2007-02-14  Bruno Haible  <bruno@clisp.org>
63515
63516         * modules/mbsncasecmp-tests: New file.
63517         * tests/test-mbsncasecmp.sh: New file.
63518         * tests/test-mbsncasecmp.c: New file.
63519
63520         New module mbsncasecmp.
63521         * modules/mbsncasecmp: New file.
63522         * lib/mbsncasecmp.c: New file.
63523         * lib/string_.h (mbsncasecmp): New declaration.
63524         * m4/mbsncasecmp.m4: New file.
63525         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63526         GNULIB_MBSNCASECMP.
63527         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63528         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63529
63530 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63531
63532         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63533         Verify that it doesn't overlap with our flags.
63534         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63535         do not have the desired effect in multibyte locales; instead, use
63536         mbscasecmp.
63537         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63538         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63539         we don't require GNU fnmatch ourselves (if our users require it, they
63540         should do so explicitly).
63541
63542         Fix regex code so it doesn't rely on strcasecmp.
63543         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63544         Otherwise, include gnulib's langinfo.h.
63545         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63546         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63547         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63548         * modules/regex (FILES): Remove m4/codeset.m4.
63549         (Depends-on): Add localcharset.  Remove strcase.
63550
63551 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63552
63553         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63554         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63555
63556 2007-02-13  Bruno Haible  <bruno@clisp.org>
63557
63558         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63559         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63560
63561 2007-02-12  Bruno Haible  <bruno@clisp.org>
63562
63563         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63564         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63565         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63566         time warning rather than a link error.
63567
63568 2007-02-12  Bruno Haible  <bruno@clisp.org>
63569
63570         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63571         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63572         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63573
63574 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63575
63576         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63577         args, not 2.
63578
63579 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63580
63581         New module 'time', so that apps can include <time.h> as per
63582         POSIX and GNU instead of separate include files like time_r.h
63583         and timegm.h.  This implementation tries out a simpler approach
63584         for replacing decls in standard include files (as compared to
63585         the string module), somewhat as an experiment.
63586
63587         * config/srclist.txt: Comment out mktime.c for now.
63588         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63589         since it doesn't apply any more.  Use generic wording instead.
63590         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63591         'time'.
63592         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63593         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63594         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63595         Don't include <sys/types.h>; no longer needed since we assume C89.
63596         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63597         * lib/strftime.c: Likewise.
63598         * lib/time_r.c: Likewise.
63599         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63600         * lib/nanosleep.c: Include <time.h> first, to check interface.
63601         * lib/strptime.c: Likewise.
63602         * lib/time_r.c: Likewise.
63603         * lib/timegm.c: Likewise.
63604         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63605         needed.
63606         * lib/timegm.c: Don't include timegm.h; no longer needed.
63607         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63608         time.h now handles any problems in that area.
63609         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63610         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63611         that time.h defines struct timespec.
63612         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63613         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63614         handles that.
63615         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63616         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63617         needed.  Set REPLACE_LOCALTIME.
63618         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63619         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63620         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63621         nanosleep; time_h.m4 now does that.  Don't require
63622         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63623         module handles this now.
63624         * modules/getdate (Depends-on): Remove timespec.  Add time.
63625         * modules/nanosleep (Depends-on): Likewise.
63626         * modules/stat-time (Depends-on): Likewise.
63627         * modules/nanosleep (Include): Include time.h, not timespec.h.
63628         * modules/strptime (Files): Remove lib/strptime.h.
63629         (Depends-on): Add extensions, time.
63630         (Include): Include time.h, not strptime.h.
63631         * modules/time_r (Files): Remove lib/time_r.h.
63632         (Depends-on): Add time.
63633         (Include): Include time.h, not time_r.h.
63634         * modules/timegm: Likewise.
63635         * modules/timespec (Description): Now does timespec-related decls
63636         of our own, instead of struct timespec itself.
63637         (Depends-on): Add time; remove extensions.
63638         (Maintainer): Add self.
63639         * modules/utimecmp (Depends-on): Add time; remove timespec.
63640         * modules/utimens (Depends-on): Likewise.
63641         * modules/xnanosleep (Depends-on): Likewise.
63642
63643 2007-02-11  Bruno Haible  <bruno@clisp.org>
63644
63645         * lib/c-strstr.c: Include allocsa.h.
63646         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63647         * lib/c-strcasestr.c: Include allocsa.h.
63648         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63649         * lib/strcasestr.c: Include allocsa.h.
63650         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63651         * lib/mbsstr.c: Include allocsa.h.
63652         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63653         allocsa/freesa instead of malloc/free.
63654         * lib/mbscasestr.c: Include allocsa.h.
63655         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63656         allocsa/freesa instead of malloc/free.
63657         * modules/c-strstr (Depends-on): Add allocsa.
63658         * modules/c-strcasestr (Depends-on): Likewise.
63659         * modules/strcasestr (Depends-on): Likewise.
63660         * modules/mbsstr (Depends-on): Likewise.
63661         * modules/mbscasestr (Depends-on): Likewise.
63662
63663 2007-02-11  Bruno Haible  <bruno@clisp.org>
63664
63665         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63666
63667         * modules/mbsspn-tests: New file.
63668         * tests/test-mbsspn.sh: New file.
63669         * tests/test-mbsspn.c: New file.
63670
63671 2007-02-11  Bruno Haible  <bruno@clisp.org>
63672
63673         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63674
63675         * modules/mbspbrk-tests: New file.
63676         * tests/test-mbspbrk.sh: New file.
63677         * tests/test-mbspbrk.c: New file.
63678
63679 2007-02-11  Bruno Haible  <bruno@clisp.org>
63680
63681         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63682         unneeded cast.
63683
63684         * modules/mbscspn-tests: New file.
63685         * tests/test-mbscspn.sh: New file.
63686         * tests/test-mbscspn.c: New file.
63687
63688 2007-02-11  Bruno Haible  <bruno@clisp.org>
63689
63690         * modules/mbscasecmp-tests: New file.
63691         * tests/test-mbscasecmp.sh: New file.
63692         * tests/test-mbscasecmp.c: New file.
63693
63694 2007-02-11  Bruno Haible  <bruno@clisp.org>
63695
63696         Ensure O(n) worst-case complexity of mbscasestr.
63697         * lib/mbscasestr.c: Include stdbool.h.
63698         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63699         functions.
63700         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63701         the bookkeeping indicates that it's worth it.
63702         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63703
63704         * modules/mbscasestr-tests: New file.
63705         * tests/test-mbscasestr1.c: New file.
63706         * tests/test-mbscasestr2.sh: New file.
63707         * tests/test-mbscasestr2.c: New file.
63708         * tests/test-mbscasestr3.sh: New file.
63709         * tests/test-mbscasestr3.c: New file.
63710         * tests/test-mbscasestr4.sh: New file.
63711         * tests/test-mbscasestr4.c: New file.
63712         * m4/locale-tr.m4: New file.
63713
63714 2007-02-11  Bruno Haible  <bruno@clisp.org>
63715
63716         Ensure O(n) worst-case complexity of mbsstr.
63717         * lib/mbsstr.c: Include stdbool.h.
63718         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63719         functions.
63720         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63721         bookkeeping indicates that it's worth it.
63722         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63723
63724         * modules/mbsstr-tests: New file.
63725         * tests/test-mbsstr1.c: New file.
63726         * tests/test-mbsstr2.sh: New file.
63727         * tests/test-mbsstr2.c: New file.
63728         * tests/test-mbsstr3.sh: New file.
63729         * tests/test-mbsstr3.c: New file.
63730         * m4/locale-fr.m4: New file.
63731
63732 2007-02-11  Bruno Haible  <bruno@clisp.org>
63733
63734         * lib/mbsrchr.c (mbsrchr): Fix bug.
63735
63736         * modules/mbsrchr-tests: New file.
63737         * tests/test-mbsrchr.sh: New file.
63738         * tests/test-mbsrchr.c: New file.
63739
63740 2007-02-11  Bruno Haible  <bruno@clisp.org>
63741
63742         * lib/mbschr.c (mbschr): Fix bug.
63743
63744         * modules/mbschr-tests: New file.
63745         * tests/test-mbschr.sh: New file.
63746         * tests/test-mbschr.c: New file.
63747         * m4/locale-zh.m4: New file.
63748
63749 2007-02-11  Bruno Haible  <bruno@clisp.org>
63750
63751         Support for copying multibyte string iterators.
63752         * lib/mbiter.h: Include <string.h>.
63753         (mbiter_multi_copy): New function.
63754         (mbi_copy): New macro.
63755         * lib/mbuiter.h: Include <string.h>.
63756         (mbuiter_multi_copy): New function.
63757         (mbui_copy): New macro.
63758
63759 2007-02-11  Bruno Haible  <bruno@clisp.org>
63760
63761         New module mbslen.
63762         * modules/mbslen: New file.
63763         * lib/mbslen.c: New file.
63764         * lib/string_.h (mbslen): New declaration.
63765         * m4/mbslen.m4: New file.
63766         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63767         GNULIB_MBSLEN.
63768         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63769         * MODULES.html.sh (Internationalization functions): Add mbslen.
63770
63771 2007-02-11  Bruno Haible  <bruno@clisp.org>
63772
63773         Ensure O(n) worst-case complexity of strcasestr substitute.
63774         * lib/strcasestr.c: Include stdbool.h.
63775         (knuth_morris_pratt): New function.
63776         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63777         bookkeeping indicates that it's worth it.
63778         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63779
63780         * modules/strcasestr-tests: New file.
63781         * tests/test-strcasestr.c: New file.
63782
63783 2007-02-11  Bruno Haible  <bruno@clisp.org>
63784
63785         Ensure O(n) worst-case complexity of c_strcasestr.
63786         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63787         (knuth_morris_pratt): New function.
63788         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63789         the bookkeeping indicates that it's worth it.
63790         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63791
63792         * modules/c-strcasestr-tests: New file.
63793         * tests/test-c-strcasestr.c: New file.
63794
63795 2007-02-11  Bruno Haible  <bruno@clisp.org>
63796
63797         Ensure O(n) worst-case complexity of c_strstr.
63798         * lib/c-strstr.c: Include stdbool.h, string.h.
63799         (knuth_morris_pratt): New function.
63800         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63801         bookkeeping indicates that it's worth it.
63802         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63803
63804         * lib/c-strstr.c: Complete rewrite for maintainability.
63805
63806         * modules/c-strstr-tests: New file.
63807         * tests/test-c-strstr.c: New file.
63808
63809 2007-02-11  Bruno Haible  <bruno@clisp.org>
63810
63811         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63812         5.2.1 and earlier, whereby \055 was treated just like the range
63813         delimiter '-'.
63814         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63815
63816 2007-02-08  Bruno Haible  <bruno@clisp.org>
63817
63818         * modules/regex (Depends-on): Add stdbool.
63819         Reported by Dalibor Topic <robilad@kaffe.org>.
63820
63821 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63822
63823         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63824         Prefer returning from main to exiting from it.
63825         Remove unnecessary parens after sizeof.
63826
63827 2007-02-05  Bruno Haible  <bruno@clisp.org>
63828
63829         New module mbssep.
63830         * modules/mbssep: New file.
63831         * lib/mbssep.c: New file.
63832         * lib/string_.h (strsep): Add a conditional link warning.
63833         (mbssep): New declaration.
63834         * m4/mbssep.m4: New file.
63835         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63836         GNULIB_MBSSEP.
63837         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63838         * MODULES.html.sh (Internationalization functions): Add mbssep.
63839
63840 2007-02-05  Bruno Haible  <bruno@clisp.org>
63841
63842         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63843         Optimize search in case of 1 delimiter.
63844
63845 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63846
63847         * lib/acl.h: Include sys/types.h before sys/acl.h.
63848
63849 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63850
63851         Merge upstream fix for glibc bugzilla #3957:
63852
63853         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63854
63855         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63856         bit for RE_HAT_LISTS_NOT_NEWLINE.
63857         (build_charclass_op): Remove bogus comment.
63858
63859 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63860
63861         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63862
63863 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63864
63865         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63866         * lib/memmem.c [!defined _LIBC]: Include config.h.
63867
63868 2007-02-04  Bruno Haible  <bruno@clisp.org>
63869
63870         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63871         warning message.
63872
63873 2007-02-04  Bruno Haible  <bruno@clisp.org>
63874
63875         New module mbstok_r.
63876         * modules/mbstok_r: New file.
63877         * lib/mbstok_r.c: New file.
63878         * lib/string_.h (strtok_r): Change argument names to match the
63879         comments. Add a conditional link warning.
63880         (mbstok_r): New declaration.
63881         * m4/mbstok_r.m4: New file.
63882         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63883         GNULIB_MBSTOK_R.
63884         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63885         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63886
63887 2007-02-04  Bruno Haible  <bruno@clisp.org>
63888
63889         New module mbsspn.
63890         * modules/mbsspn: New file.
63891         * lib/mbsspn.c: New file.
63892         * lib/string_.h (strspn): Add a conditional link warning.
63893         (mbsspn): New declaration.
63894         * m4/mbsspn.m4: New file.
63895         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63896         GNULIB_MBSSPN.
63897         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63898         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63899
63900 2007-02-04  Bruno Haible  <bruno@clisp.org>
63901
63902         New module mbspbrk.
63903         * modules/mbspbrk: New file.
63904         * lib/mbspbrk.c: New file.
63905         * lib/string_.h (strpbrk): Add a conditional link warning.
63906         (mbspbrk): New declaration.
63907         * m4/mbspbrk.m4: New file.
63908         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63909         GNULIB_MBSPBRK.
63910         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63911         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63912
63913 2007-02-04  Bruno Haible  <bruno@clisp.org>
63914
63915         New module mbscspn.
63916         * modules/mbscspn: New file.
63917         * lib/mbscspn.c: New file.
63918         * lib/string_.h (strcspn): Add a conditional link warning.
63919         (mbscspn): New declaration.
63920         * m4/mbscspn.m4: New file.
63921         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63922         GNULIB_MBSCSPN.
63923         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63924         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63925
63926 2007-02-04  Bruno Haible  <bruno@clisp.org>
63927
63928         New module mbscasestr, reduced goal of strcasestr.
63929         * modules/mbscasestr: New file.
63930         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63931         (mbscasestr): Renamed from strcasestr.
63932         * lib/strcasestr.c: Don't include mbuiter.h.
63933         (strcasestr): Remove support for multibyte locales.
63934         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63935         Change the conditional link warning.
63936         (mbscasestr): New declaration.
63937         * m4/mbscasestr.m4: New file.
63938         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63939         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63940         REPLACE_STRCASESTR.
63941         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63942         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63943         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63944         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63945         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63946         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63947         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63948         (Depends-on): Remove mbuiter.
63949         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63950
63951 2007-02-04  Bruno Haible  <bruno@clisp.org>
63952
63953         Simplify handling of strncasecmp.
63954         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63955         the conditional link warning.
63956         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63957         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63958         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63959         * modules/strcase (configure.ac): Don't invoke
63960         gl_STRING_MODULE_INDICATOR.
63961         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63962
63963 2007-02-04  Bruno Haible  <bruno@clisp.org>
63964
63965         New module mbscasecmp, reduced goal of strcasecmp.
63966         * modules/mbscasecmp: New file.
63967         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63968         (mbscasecmp): Renamed from strcasecmp.
63969         * lib/strcasecmp.c: Don't include mbuiter.h.
63970         (strcasecmp): Remove support for multibyte locales.
63971         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63972         Change the conditional link warning.
63973         (mbscasecmp): New declaration.
63974         * m4/mbscasecmp.m4: New file.
63975         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63976         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63977         REPLACE_STRCASECMP.
63978         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63979         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63980         GNULIB_MBSCASECMP.
63981         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63982         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63983         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63984         (Depends-on): Remove mbuiter.
63985         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63986
63987 2007-02-04  Bruno Haible  <bruno@clisp.org>
63988
63989         New module mbsstr. Remove module strstr.
63990         * modules/mbsstr: New file.
63991         * modules/strstr: Remove file.
63992         * lib/mbsstr.c: Renamed from lib/strstr.c.
63993         (mbsstr): Renamed from strstr.
63994         * lib/string_.h (strstr): Remove declaration. Change the conditional
63995         link warning.
63996         (mbsstr): New declaration.
63997         * m4/mbsstr.m4: New file.
63998         * m4/strstr.m4: Remove file.
63999         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
64000         REPLACE_STRSTR.
64001         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
64002         Don't initialize GNULIB_STRSTR.
64003         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
64004         substitute GNULIB_STRSTR and REPLACE_STRSTR.
64005         * MODULES.html.sh (Internationalization functions): Add mbsstr.
64006         (Support for systems lacking ANSI C 89): Remove strstr.
64007
64008 2007-02-04  Bruno Haible  <bruno@clisp.org>
64009
64010         New module mbsrchr.
64011         * modules/mbsrchr: New file.
64012         * lib/mbsrchr.c: New file.
64013         * lib/string_.h (strrchr): Add a conditional link warning.
64014         (mbsrchr): New declaration.
64015         * m4/mbsrchr.m4: New file.
64016         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64017         GNULIB_MBSRCHR.
64018         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
64019         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
64020
64021 2007-02-04  Bruno Haible  <bruno@clisp.org>
64022
64023         New module mbschr.
64024         * modules/mbschr: New file.
64025         * lib/mbschr.c: New file.
64026         * lib/string_.h (strchr): Add a conditional link warning.
64027         (mbschr): New declaration.
64028         * m4/mbschr.m4: New file.
64029         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64030         GNULIB_MBSCHR.
64031         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
64032         * MODULES.html.sh (Internationalization functions): Add mbschr.
64033
64034 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64035
64036         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
64037
64038         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
64039
64040 2007-02-04  Bruno Haible  <bruno@clisp.org>
64041
64042         New module description section 'configure.ac-early'.
64043         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
64044         (func_get_autoconf_early_snippet): New function.
64045         (func_import, func_create_testdir): Use it. Remove special cases for
64046         modules 'extensions' and 'lock'.
64047         * modules/extensions (configure.ac-early): Require
64048         gl_USE_SYSTEM_EXTENSIONS.
64049         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
64050
64051 2007-02-04  Bruno Haible  <bruno@clisp.org>
64052
64053         Make use of gcj-4.3's -fsource and -ftarget option.
64054         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
64055         and if so try the options -fsource and -ftarget.
64056         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
64057         source_version, ftarget_option, target_version arguments.
64058         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
64059         (is_envjavac_oldgcj_14_14_usable): Renamed from
64060         is_envjavac_gcj_14_14_usable.
64061         (is_envjavac_oldgcj_14_13_usable): Renamed from
64062         is_envjavac_gcj_14_13_usable.
64063         (is_gcj_present): Update.
64064         (is_gcj_43, is_gcj43_usable): New functions.
64065         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
64066         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
64067         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
64068         try the options -fsource and -ftarget.
64069
64070 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64071
64072         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
64073         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
64074         larger value.
64075
64076 2007-02-03  Jim Meyering  <jim@meyering.net>
64077
64078         Give tools a better chance to allocate space for very large buffers.
64079         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
64080
64081         Make pwd and readlink work also when run with an unreadable parent dir
64082         on systems with openat support.
64083         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
64084         provided getcwd function, even when we have openat support.
64085         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
64086
64087 2007-02-02  Bruno Haible  <bruno@clisp.org>
64088
64089         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64090         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
64091         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
64092         portability problems if one of these functions is only used on specific
64093         platforms.
64094         Reported by Paul Eggert.
64095
64096 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
64097
64098         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
64099         is causing more trouble than it's curing.
64100         * lib/regex_internal.h (__mempcpy): Remove.
64101         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
64102         (and make the code a tad smaller to boot).
64103         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
64104
64105 2007-02-02  Jim Meyering  <jim@meyering.net>
64106
64107         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
64108         section, not in the Makefile.am: one.
64109
64110 2007-02-02  Eric Blake  <ebb9@byu.net>
64111
64112         * lib/strchrnul.c: Always include config.h first.
64113
64114         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
64115         gnulib strstr is not necessary here.
64116
64117 2007-02-02  Simon Josefsson  <simon@josefsson.org>
64118
64119         * m4/socklen.m4: Fix typo.
64120
64121 2007-02-02  Eric Blake  <ebb9@byu.net>
64122
64123         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
64124         * modules/netinet_in (Makefile.am): Likewise.
64125
64126 2007-02-01  Bruno Haible  <bruno@clisp.org>
64127
64128         * lib/string_.h (GL_LINK_WARNING): New macro.
64129         (strcasecmp, strstr, strcasestr): If provided by the system,
64130         conditionally define as a macro that leads to a warning instead of to
64131         an error.
64132         (strncasecmp): Conditionally define as a macro that leads to a warning.
64133
64134 2007-02-01  Karl Berry  <karl@gnu.org>
64135
64136         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
64137
64138 2007-02-01  Bruno Haible  <bruno@clisp.org>
64139
64140         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
64141         renamings.
64142
64143 2007-02-01  Eric Blake  <ebb9@byu.net>
64144
64145         * modules/regex (Depends-on): Revert dependence on mempcpy.
64146         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
64147         module's definition of mempcpy.
64148         Reported by Paul Eggert.
64149
64150 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64151
64152         * lib/string_.h: If the gnulib module XYZ is not present, undefine
64153         the symbol XYZ before redefining it.  This fixes a problem with
64154         programs that don't use XYZ, when compiled on systems that define
64155         XYZ to something else.
64156
64157 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
64158
64159         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
64160         occurs when "mkdir -m foo" creates a setgid directory that is (1)
64161         writeable to group or other and (2) is intended to have a special
64162         mode bit that is set or cleared.  In such a case, the directory
64163         should be neither group- nor other-writeable until the special
64164         mode bits are right.
64165
64166 2007-01-31  Eric Blake  <ebb9@byu.net>
64167
64168         * modules/mountlist (Depends-on): Add strstr.
64169
64170         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
64171         bug.
64172         * modules/string (Makefile.am): Remove redundant replacement.
64173         * modules/regex (Depends-on): Add mempcpy.
64174
64175 2007-01-31  Bruno Haible  <bruno@clisp.org>
64176
64177         New module description field 'Link'.
64178         * gnulib-tool (func_usage): Document --extract-link-directive.
64179         (sed_extract_prog): Recognize 'Link' directive.
64180         (func_get_link_directive): New function.
64181         (func_import): Show summary of link directives.
64182         Handle --extract-link-directive option.
64183         * modules/acl (Link): New section.
64184         * modules/clock-time (Link): New section.
64185         * modules/euidaccess (Link): New section.
64186         * modules/gettext (Link): New section.
64187         * modules/iconv (Link): New section.
64188         * modules/lock (Link): New section.
64189         * modules/nanosleep (Link): New section.
64190         * modules/readline (Link): New section.
64191
64192 2007-01-27  Bruno Haible  <bruno@clisp.org>
64193
64194         Enforce the use of gnulib modules for unportable <string.h> functions.
64195         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
64196         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
64197         (gl_HEADER_STRING_H_BODY): Require it.
64198         * lib/string_.h: If the gnulib module XYZ is not present, redefine
64199         the symbol XYZ to one that gives a link error.
64200         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
64201         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
64202         * modules/mempcpy (configure.ac): Likewise.
64203         * modules/memrchr (configure.ac): Likewise.
64204         * modules/stpcpy (configure.ac): Likewise.
64205         * modules/stpncpy (configure.ac): Likewise.
64206         * modules/strcase (configure.ac): Likewise.
64207         * modules/strcasestr (configure.ac): Likewise.
64208         * modules/strchrnul (configure.ac): Likewise.
64209         * modules/strdup (configure.ac): Likewise.
64210         * modules/strndup (configure.ac): Likewise.
64211         * modules/strnlen (configure.ac): Likewise.
64212         * modules/strpbrk (configure.ac): Likewise.
64213         * modules/strsep (configure.ac): Likewise.
64214         * modules/strstr (configure.ac): Likewise.
64215         * modules/strtok_r (configure.ac): Likewise.
64216
64217 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
64218
64219         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
64220
64221 2007-01-30  Jim Meyering  <jim@meyering.net>
64222
64223         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
64224
64225 2007-01-29  Bruno Haible  <bruno@clisp.org>
64226
64227         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
64228         * lib/execute.c: Likewise.
64229         * lib/pipe.c: Likewise.
64230         * lib/printf-args.h: Likewise.
64231         * lib/printf-args.c: Likewise.
64232         * lib/printf-parse.c: Likewise.
64233         * lib/vasnprintf.c: Likewise.
64234
64235 2007-01-29  Eric Blake  <ebb9@byu.net>
64236
64237         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
64238         declaration.
64239
64240 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
64241
64242         * lib/strptime.h (strptime): Use 'restrict' for args where
64243         POSIX requires this.
64244         * lib/strptime.c (strptime): Likewise.
64245         Change license notice from LGPL to GPL, since gnulib-tool will
64246         change this as needed.
64247         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
64248         defined.
64249         Include "strptime.h" first, to check interface.
64250         Do not #undef _LIBC and _NL_CURRENT.
64251         Do not include <stdlib.h>; no longer needed.
64252         Include "time_r.h" and declare ptime_locale_status
64253         only if _LIBC is not defined.
64254         (__P): Remove unused macro.
64255         (match_string): Bring back glibc version, but use it only if _LIBC
64256         is defined.
64257         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
64258         Remove unnecessary assertion and abort() call.
64259         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
64260         * m4/strptime.m4: Fix serial number comment.
64261         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
64262         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
64263         (Depends-on): Add time_r.
64264
64265 2007-01-29  Bruno Haible  <bruno@clisp.org>
64266
64267         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64268         strptime.
64269         * modules/strptime (Depends-on): Add stdbool.
64270         * lib/strptime.h: Include <time.h> always. Add comments.
64271
64272 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64273
64274         * modules/strptime: New file.
64275         * lib/strptime.h: New file.
64276         * lib/strptime.c: New file.
64277         * m4/strptime.m4: New file.
64278
64279 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64280
64281         * MODULES.html.sh: New module mpsort.
64282         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
64283
64284         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
64285         a circularity problem with HP-UX ia64 reported by Bob Proulx in
64286         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
64287         All uses changed.
64288         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
64289         All uses changed.
64290         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
64291         to _Restrict_.
64292         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
64293         the parameter matches the prototype.
64294
64295 2007-01-28  Jim Meyering  <jim@meyering.net>
64296
64297         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
64298         sys/time.h here, reverting that part of the previous patch:
64299         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
64300
64301 2007-01-28  Bruno Haible  <bruno@clisp.org>
64302
64303         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
64304         value of $(SYS_TIME_H).
64305         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
64306         remove it conditionally, too. [added by Jim Meyering]
64307         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
64308         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64309         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
64310         GETTIMEOFDAY_REPLACEMENT to 1.
64311
64312 2007-01-28  Bruno Haible  <bruno@clisp.org>
64313
64314         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
64315         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
64316         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
64317         Set UNISTD_H instead of UNISTD_H2.
64318         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
64319
64320 2007-01-28  Bruno Haible  <bruno@clisp.org>
64321
64322         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
64323         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
64324
64325 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64326
64327         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
64328         (func_create_testdir): Ensure C locale for `grep' and `tr'
64329         character ranges.
64330         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
64331         ACLOCAL_AMFLAGS parsing state machine.
64332
64333 2007-01-27  Bruno Haible  <bruno@clisp.org>
64334
64335         * modules/unistr/base: Update.
64336
64337 2007-01-27  Bruno Haible  <bruno@clisp.org>
64338
64339         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
64340         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
64341         * modules/unistr/u32-mbtouc-unsafe: Renamed from
64342         modules/unistr/u32-mbtouc.
64343         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
64344         * lib/unistr.h: Update.
64345         * lib/linebreak.c: Update.
64346         * modules/unistr/u32-mbtouc: Renamed from
64347         modules/unistr/u32-mbtouc-safe.
64348         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
64349         * lib/unistr.h: Update.
64350         * lib/unistr/u32-to-u8.c: Update.
64351         * lib/unistr/u32-to-u16.c: Update.
64352
64353 2007-01-27  Bruno Haible  <bruno@clisp.org>
64354
64355         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
64356         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
64357         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64358         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64359         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64360         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64361         modules/unistr/u16-mbtouc.
64362         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64363         * lib/unistr.h: Update.
64364         * lib/linebreak.c: Update.
64365         * modules/linebreak: Update.
64366         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64367         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64368         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64369         * modules/unistr/u16-mbtouc: Renamed from
64370         modules/unistr/u16-mbtouc-safe.
64371         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64372         * lib/unistr.h: Update.
64373         * lib/unistr/u16-to-u8.c: Update.
64374         * modules/unistr/u16-to-u8: Update.
64375         * lib/unistr/u16-to-u32.c: Update.
64376         * modules/unistr/u16-to-u32: Update.
64377
64378 2007-01-27  Bruno Haible  <bruno@clisp.org>
64379
64380         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64381         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64382         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64383         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64384         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64385         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64386         modules/unistr/u8-mbtouc.
64387         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64388         * lib/unistr.h: Update.
64389         * lib/striconveh.c: Update.
64390         * modules/striconveh: Update.
64391         * lib/linebreak.c: Update.
64392         * modules/linebreak: Update.
64393         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
64394         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
64395         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
64396         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
64397         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
64398         * lib/unistr.h: Update.
64399         * lib/striconveh.c: Update.
64400         * modules/striconveh: Update.
64401         * lib/unistr/u8-to-u16.c: Update.
64402         * modules/unistr/u8-to-u16: Update.
64403         * lib/unistr/u8-to-u32.c: Update.
64404         * modules/unistr/u8-to-u32: Update.
64405
64406 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64407
64408         Sync from Libtool.
64409         * lib/argz.c: Do not include strings.h nor memory.h, include
64410         string.h unconditionally.  Patch by Simon Josefsson.
64411
64412 2007-01-27  Bruno Haible  <bruno@clisp.org>
64413
64414         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
64415         from gl_HEADER_STRING_H_BODY.
64416         (gl_HEADER_STRING_H_BODY): Require it.
64417         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
64418         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64419         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64420         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64421         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64422         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
64423         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64424         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64425         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
64426         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64427         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64428         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
64429         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64430         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
64431         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64432
64433 2007-01-27  Bruno Haible  <bruno@clisp.org>
64434
64435         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
64436         check_PROGRAMS into noinst_PROGRAMS.
64437         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
64438         check_PROGRAMS in this case.
64439         (func_import): Set for_test to false.
64440         (func_create_testdir): Set for_test to true.
64441
64442 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64443             Bruno Haible  <bruno@clisp.org>
64444
64445         * modules/strcasestr (Files): Remove lib/strcasestr.h.
64446         (Depends-on): Add string.
64447         (Includes): Use <string.h> instead of strcasestr.h.
64448         * modules/string (Makefile.am): Also substitute the value of
64449         REPLACE_STRCASESTR.
64450         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
64451         assume strcasestr is declared in <string.h> not <strings.h>. Also
64452         set REPLACE_STRCASESTR.
64453         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
64454         REPLACE_STRCASESTR.
64455         * lib/strcasestr.h: Remove file.
64456         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
64457         * lib/string_.h (strcasestr): New declaration.
64458
64459 2007-01-27  Bruno Haible  <bruno@clisp.org>
64460
64461         * lib/string_.h: Use 'extern'.
64462
64463 2007-01-27  Jim Meyering  <jim@meyering.net>
64464
64465         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
64466         of set-but-not-used local, "q".
64467
64468         * lib/mempcpy.c: Include <config.h> before <string.h>.
64469         This fixes a compilation error on HP-UX, due to the system's
64470         "restrict"-using mempcpy prototype.
64471
64472 2007-01-26  Bruno Haible  <bruno@clisp.org>
64473
64474         Small optimization.
64475         * lib/javacomp.c: Include c-strstr.h.
64476          (is_envjavac_gcj): Use c_strstr instead of strstr.
64477         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64478
64479 2007-01-26  Bruno Haible  <bruno@clisp.org>
64480
64481         * MODULES.html.sh (Unicode string functions): Add the new modules.
64482
64483         * modules/uniconv/u32-strconv-to-locale: New file.
64484         * lib/uniconv/u32-strconv-to-locale.c: New file.
64485
64486         * modules/uniconv/u16-strconv-to-locale: New file.
64487         * lib/uniconv/u16-strconv-to-locale.c: New file.
64488
64489         * modules/uniconv/u8-strconv-to-locale: New file.
64490         * lib/uniconv/u8-strconv-to-locale.c: New file.
64491
64492         * modules/uniconv/u32-strconv-from-locale: New file.
64493         * lib/uniconv/u32-strconv-from-locale.c: New file.
64494
64495         * modules/uniconv/u16-strconv-from-locale: New file.
64496         * lib/uniconv/u16-strconv-from-locale.c: New file.
64497
64498         * modules/uniconv/u8-strconv-from-locale: New file.
64499         * lib/uniconv/u8-strconv-from-locale.c: New file.
64500
64501         * modules/uniconv/u32-strconv-to-enc: New file.
64502         * lib/uniconv/u32-strconv-to-enc.c: New file.
64503         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64504         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64505
64506         * modules/uniconv/u16-strconv-to-enc: New file.
64507         * lib/uniconv/u16-strconv-to-enc.c: New file.
64508         * lib/uniconv/u-strconv-to-enc.h: New file.
64509         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64510         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64511
64512         * modules/uniconv/u8-strconv-to-enc: New file.
64513         * lib/uniconv/u8-strconv-to-enc.c: New file.
64514         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64515         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64516
64517         * modules/uniconv/u32-strconv-from-enc: New file.
64518         * lib/uniconv/u32-strconv-from-enc.c: New file.
64519         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64520         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64521
64522         * modules/uniconv/u16-strconv-from-enc: New file.
64523         * lib/uniconv/u16-strconv-from-enc.c: New file.
64524         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64525         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64526
64527         * modules/uniconv/u8-strconv-from-enc: New file.
64528         * lib/uniconv/u8-strconv-from-enc.c: New file.
64529         * lib/uniconv/u-strconv-from-enc.h: New file.
64530         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64531         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64532
64533         * modules/uniconv/u32-conv-from-enc: New file.
64534         * lib/uniconv/u32-conv-from-enc.c: New file.
64535         * modules/uniconv/u32-conv-from-enc-tests: New file.
64536         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64537
64538         * modules/uniconv/u16-conv-from-enc: New file.
64539         * lib/uniconv/u16-conv-from-enc.c: New file.
64540         * lib/uniconv/u-conv-from-enc.h: New file.
64541         * modules/uniconv/u16-conv-from-enc-tests: New file.
64542         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64543
64544         * modules/uniconv/u8-conv-from-enc: New file.
64545         * lib/uniconv/u8-conv-from-enc.c: New file.
64546         * modules/uniconv/u8-conv-from-enc-tests: New file.
64547         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64548
64549         * modules/uniconv/base: New file.
64550         * lib/uniconv.h: New file.
64551
64552 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64553
64554         * doc/gnulib-tool.texi (Initial import): Update to match current
64555         behavior with strdup module.
64556         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64557         * lib/memmem.h: Remove; all uses removed.  This is now done
64558         by <string.h>.
64559         * lib/mempcpy.h: Likewise.
64560         * lib/memrchr.h: Likewise.
64561         * lib/stpcpy.h: Likewise.
64562         * lib/stpncpy.h: Likewise.
64563         * lib/strcase.h: Likewise.
64564         * lib/strchrnul.h: Likewise.
64565         * lib/strdup.h: Likewise.
64566         * lib/strndup.h: Likewise.
64567         * lib/strnlen.h: Likewise.
64568         * lib/strpbrk.h: Likewise.
64569         * lib/strsep.h: Likewise.
64570         * lib/strstr.h: Likewise.
64571         * lib/strtok_r.h: Likewise.
64572         * lib/string_.h: New file.
64573         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64574         Rely on <string.h> instead.
64575         * lib/canon-host.c: Likewise.
64576         * lib/chdir-long.c: Likewise.
64577         * lib/concatpath.c: Likewise.
64578         * lib/exclude.c: Likewise.
64579         * lib/fchdir.c: Likewise.
64580         * lib/getaddrinfo.c: Likewise.
64581         * lib/getcwd.c: Likewise.
64582         * lib/getsubopt.c: Likewise.
64583         * lib/glob.c: Likewise.
64584         * lib/hard-locale.c: Likewise.
64585         * lib/iconvme.c: Likewise.
64586         * lib/javacomp.c: Likewise.
64587         * lib/mempcpy.c: Likewise.
64588         * lib/memrchr.c: Likewise.
64589         * lib/regex_internal.h: Likewise.
64590         * lib/stpncpy.c: Likewise.
64591         * lib/strcasecmp.c: Likewise.
64592         * lib/strchrnul.c: Likewise.
64593         * lib/strdup.c: Likewise.
64594         * lib/striconv.c: Likewise.
64595         * lib/striconveh.c: Likewise.
64596         * lib/striconveha.c: Likewise.
64597         * lib/strncasecmp.c: Likewise.
64598         * lib/strndup.c: Likewise.
64599         * lib/strnlen.c: Likewise.
64600         * lib/strsep.c: Likewise.
64601         * lib/strstr.c: Likewise.
64602         * lib/strtok_r.c: Likewise.
64603         * lib/userspec.c: Likewise.
64604         * lib/w32spawn.h: Likewise.
64605         * lib/xstrndup.c: Likewise.
64606         * lib/mountlist.c (strstr): Remove decl.
64607         * m4/string_h.m4: New file.
64608         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64609         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64610         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64611         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64612         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64613         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64614         Set REPLACE_STRCASECMP if necessary.
64615         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64616         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64617         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64618         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64619         HAVE_DECL_STRDUP if necessary.
64620         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64621         since gl_FUNC_STRNDUP does that now.
64622         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64623         Check for decl here...
64624         (gl_PREREQ_STRNLEN): ... not here.
64625         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64626         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64627         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64628         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64629         necessary.
64630         * modules/string: New file.
64631         * modules/memmem (Files): Remove special-purpose include file.
64632         (Depends-on): Add string.
64633         (Include): Include <string.h>, not the removed file.
64634         * modules/mempcpy: Likewise.
64635         * modules/memrchr: Likewise.
64636         * modules/stpcpy: Likewise.
64637         * modules/stpncpy: Likewise.
64638         * modules/strcase: Likewise.
64639         * modules/strchrnul: Likewise.
64640         * modules/strdup: Likewise.
64641         * modules/strndup: Likewise.
64642         * modules/strnlen: Likewise.
64643         * modules/strpbrk: Likewise.
64644         * modules/strsep: Likewise.
64645         * modules/strstr: Likewise.
64646         * modules/strtok_r: Likewise.
64647         * tests/test-dirname.c: Don't include "strdup.h", since
64648         <string.h> now suffices.
64649         * tests/test-memmem.c: Don't include "memmem.h", since
64650         <string.h> now suffices.
64651
64652 2007-01-25  Bruno Haible  <bruno@clisp.org>
64653
64654         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64655         *resultp is 0.
64656
64657         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64658         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64659         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64660         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64661
64662         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64663         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64664         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64665         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64666         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64667         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64668
64669 2007-01-24  Bruno Haible  <bruno@clisp.org>
64670
64671         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64672         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64673         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64674         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64675         gl_FUNC_FTS_CORE.
64676         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64677         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64678         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64679         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64680         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64681         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64682         gl_FUNC_FCHOWNAT.
64683         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64684         gl_FUNC_STRFTIME.
64685         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64686         Reported by Ralf Wildenhues.
64687
64688 2007-01-24  Bruno Haible  <bruno@clisp.org>
64689
64690         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64691         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64692         gl_GETADDRINFO.
64693         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64694         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64695         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64696
64697 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64698
64699         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64700         Don't use 'exit'; just return from 'main'.
64701         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64702
64703         * lib/fnmatch_.h: Readjust white space and comments to match
64704         glibc, to avoid spurious diffs.
64705
64706 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64707
64708         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64709         2004-12-01 change by Jakub Jelinek, since this code won't compile
64710         if !LIBC.  Problem reported by Bob Proulx.
64711
64712 2007-01-23  Bruno Haible  <bruno@clisp.org>
64713
64714         * lib/striconveh.c: Include c-strcaseeq.h.
64715         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64716         * modules/striconveh (Depends-on): Add c-strcaseeq.
64717
64718 2007-01-23  Bruno Haible  <bruno@clisp.org>
64719
64720         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64721
64722         * modules/c-strcaseeq: New file.
64723         * lib/c-strcaseeq.h: New file.
64724
64725         * modules/streq: New file.
64726         * lib/streq.h: New file.
64727
64728 2007-01-23  Bruno Haible  <bruno@clisp.org>
64729
64730         * modules/striconveha-tests: New file.
64731         * tests/test-striconveha.c: New file.
64732
64733         * lib/striconveha.h: Include <stdbool.h>.
64734         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64735         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64736         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64737         (mem_iconveha): New function.
64738         (str_iconveha_notranslit): Renamed from str_iconveha.
64739         (str_iconveha): New function.
64740         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64741         c-strcase.
64742
64743 2007-01-23  Bruno Haible  <bruno@clisp.org>
64744
64745         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64746         encodings without forgiving before trying any encoding with handler.
64747         (str_iconveha): Try all encodings without forgiving before trying any
64748         encoding with handler.
64749
64750 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64751
64752         Import the following changes from libc.
64753
64754         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64755
64756         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64757
64758         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64759
64760         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64761         normal_bracket label.
64762
64763         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64764
64765         [BZ #361]
64766         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64767         to normal_bracket after fetching the next character.
64768
64769 2007-01-22  Bruno Haible  <bruno@clisp.org>
64770
64771         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64772         argument.
64773         * lib/striconveh.c (iconv_carefully_1): New function.
64774         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64775         argument.
64776         (str_cd_iconveh): Update.
64777         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64778         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64779         * tests/test-striconveh.c (MAGIC): New macro.
64780         (new_offsets): New function.
64781         (main): Test call with and without offsets.
64782
64783 2007-01-22  Bruno Haible  <bruno@clisp.org>
64784
64785         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64786         * modules/sys_select (Makefile.am): Likewise.
64787         * modules/sys_socket (Makefile.am): Likewise.
64788         * modules/sys_time (Makefile.am): Likewise.
64789
64790 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64791
64792         * modules/gettimeofday (License): Change from GPL to LGPL, since
64793         gettimeofday is a library function.
64794
64795 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64796
64797         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64798
64799 2007-01-21  Bruno Haible  <bruno@clisp.org>
64800
64801         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64802
64803 2007-01-21  Bruno Haible  <bruno@clisp.org>
64804
64805         * modules/striconveha: New file.
64806         * lib/striconveha.h: New file.
64807         * lib/striconveha.c: New file.
64808         * MODULES.html.sh (Internationalization functions): Add striconveha.
64809         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64810         string.
64811         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64812
64813 2007-01-21  Bruno Haible  <bruno@clisp.org>
64814
64815         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64816         * lib/striconveh.c (str_iconveh): Likewise.
64817
64818 2007-01-21  Bruno Haible  <bruno@clisp.org>
64819
64820         * lib/striconveh.h (mem_iconveh): New declaration.
64821         * lib/striconveh.c (mem_iconveh): New function.
64822         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64823
64824 2007-01-21  Bruno Haible  <bruno@clisp.org>
64825
64826         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64827
64828         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64829         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64830         original result buffer.
64831         (str_cd_iconveh): Update.
64832         * tests/test-striconveh.c (main): Update.
64833
64834         * lib/striconv.h (mem_cd_iconv): Change specification.
64835         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64836         result buffer.
64837         (str_cd_iconv): Update.
64838         * tests/test-striconv.c (main): Update.
64839
64840 2007-01-21  Bruno Haible  <bruno@clisp.org>
64841
64842         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64843
64844 2007-01-20  Jim Meyering  <jim@meyering.net>
64845
64846         * lib/userspec.c (parse_with_separator): If a user or group string
64847         starts with "+", skip the corresponding name-to-ID look-up, since
64848         such a look-up must fail: user and group names may not include "+".
64849
64850 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64851
64852         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64853         since we now assume the sys_time module.
64854         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64855         check for sys/time.h; no longer needed.
64856         * modules/poll (Depends-on): Depend on sys_time.
64857
64858 2007-01-18  Bruno Haible  <bruno@clisp.org>
64859
64860         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64861         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64862
64863         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64864         gettimeofday.
64865
64866         * tests/test-gettimeofday.c: Include <time.h>.
64867         (dummy): Remove variable.
64868
64869         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64870         gl_HEADER_SYS_TIME_H.
64871         (gl_HEADER_SYS_TIME_H): New macro.
64872
64873         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64874         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64875         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64876         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64877         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64878         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64879         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64880         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64881         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64882         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64883         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64884
64885         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64886         last change; it caused a compilation error when cross-compiling to
64887         Cygwin.
64888
64889 2007-01-18  Jim Meyering  <jim@meyering.net>
64890
64891         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64892         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64893         than the race-prone "test -d sys || mkdir sys".
64894         (configure.ac): Use AC_PROG_MKDIR_P.
64895         * modules/sys_select: Likewise.
64896         * modules/sys_socket: Likewise.
64897         * modules/sys_time: Likewise.
64898
64899 2007-01-18  Eric Blake  <ebb9@byu.net>
64900
64901         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64902         replace gettimeofday.
64903         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64904         name, to avoid infinite recursion.
64905
64906 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64907
64908         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64909         module sys_time.
64910         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64911         assume timespec.h defines struct timeval.
64912         * lib/settime.c: Likewise.
64913         * lib/utimens.c: Likewise.
64914         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64915         since we now assume the gettimeofday module.
64916         * lib/tempname.c (__gen_tempname): Likewise.
64917         * lib/gettimeofday.h: Remove.
64918         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64919         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64920         Include <time.h>, for 'time()'.
64921         (localtime_buffer_addr): Also use this workaround if
64922         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64923         to simplify the uses.  All uses changed.
64924         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64925         that #undef is inside {}, and 'const' follows type name consistently.
64926         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64927         (gettimeofday): Do not use the maximum possible value for
64928         tv->tv_usec, since that might break usages other than ls.c.
64929         Instead, we'll leave ls.c alone.  This undoes today's patch
64930         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64931         we've never observed the problem but might as well keep the
64932         canary.
64933         * lib/nanosleep.c: Include timespec.h first, for interface check.
64934         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64935         now assume the sys_time module.
64936         * lib/tempname.c: Likewise.
64937         * lib/timespec.h: Likewise.
64938         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64939         needed.
64940         * lib/strftime.c: Likewise.
64941         * lib/timespec.h: Likewise.
64942         * lib/posixtm.c: Include posixtm.h first, for interface check.
64943         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64944         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64945         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64946         * lib/sys_time_.h: New file.
64947         * lib/timespec.h (struct timespec): Use long int, not long.
64948         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64949         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64950         Remove obsolescent call to AC_HEADER_TIME.
64951         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64952         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64953         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64954         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64955         Likewise.
64956         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64957         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64958         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64959         into the sys_time module.  Check for gettimeofday just once.
64960         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64961         for gettimeofday signature to just check the signature.  Merely
64962         compile it, since linking doesn't test signature.  Improve test for
64963         whether gettimeofday.o is actually needed.
64964         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64965         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64966         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64967         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64968         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64969         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64970         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64971         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64972         than worrying about sys/time.h.
64973         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64974         Don't bother worrying about TIME_WITH_SYS_TIME.
64975         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64976         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64977         * m4/sys_time_h.m4: New file.
64978         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64979         Don't include sys/time.h.  Return from main rather than exiting.
64980         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64981         all uses changed.
64982         * modules/gethrxtime (Depends-on): Add sys_time.
64983         * modules/gettime (Depends-on): Likewise.
64984         * modules/gettimeofday (Depends-on): Likewise.
64985         * modules/nanosleep (Depends-on): Likewise.
64986         * modules/settime (Depends-on): Likewise.
64987         * modules/tempname (Depends-on): Likewise.
64988         * modules/utimens (Depends-on): Likewise.
64989         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64990         (Include): Change back to <sys/time.h>.
64991         (Maintainer): Add self.
64992         * modules/sys_time: New file.
64993         * modules/tempname (Depends-on): Add gettimeofday.
64994         * tests/test-gettimeofday.c: Include <sys/time.h>
64995         rather than gettimeofday.h.
64996
64997 2007-01-17  Bruno Haible  <bruno@clisp.org>
64998
64999         * gnulib-tool (func_get_license): Revert last patch. Instead, let
65000         the license default to GPL.
65001         (func_create_testdir): Don't complain if a module is LGPL and its
65002         tests module depends on GPLed modules.
65003
65004 2007-01-17  Bruno Haible  <bruno@clisp.org>
65005
65006         * lib/gettimeofday.c (gettimeofday): Add code for the case
65007         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
65008         maximum possible value for tv->tv_usec, rather than the minimum one.
65009
65010 2005-10-08  Martin Lambers  <marlam@marlam.de>
65011 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65012 2007-01-16  Bruno Haible  <bruno@clisp.org>
65013
65014         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
65015         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
65016         gl_FUNC_GETTIMEOFDAY.
65017         (Include): Add gettimeofday.h.
65018         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
65019         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
65020         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
65021         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
65022         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
65023         * lib/gettimeofday.h: New file.
65024         * lib/gettimeofday.c: Include <sys/timeb.h>.
65025         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
65026         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65027         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
65028         fall back on time().
65029
65030         * tests/test-gettimeofday.c: New file.
65031         * modules/gettimeofday-tests: New file.
65032
65033 2007-01-16  Eric Blake  <ebb9@byu.net>
65034
65035         * modules/fnmatch (Depends-on): Depend on wchar.
65036         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
65037         * m4/fnmatch.m4: Likewise.
65038         * modules/mbchar (Makefile.am): Assume <wchar.h>.
65039         * m4/mbchar.m4: Likewise.
65040         * modules/mbswidth (Depends-on): Depend on wchar.
65041         * lib/mbswidth.c: Assume <wchar.h>.
65042         * m4/mbswidth.m4: Likewise.
65043         * modules/quotearg (Depends-on): Depend on wchar.
65044         * lib/quotearg.c: Assume <wchar.h>.
65045         * m4/quotearg.m4: Likewise.
65046         * modules/regex (Depends-on): Depend on wchar.
65047         * lib/regex_internal.h: Assume <wchar.h>.
65048         * m4/regex.m4: Likewise.
65049         * modules/stdint (Depends-on): Depend on wchar.
65050         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
65051         * m4/stdint.m4: Likewise.
65052         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
65053         * modules/strftime (Depends-on): Depend on wchar.
65054         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
65055         * modules/strtol (Depends-on): Depend on wchar.
65056         * lib/strtol.c: Assume <wchar.h>.
65057         * modules/wcwidth (Depends-on): Depend on wchar.
65058         * lib/wcwidth.h: Assume <wchar.h>.
65059         * m4/wcwidth.m4: Likewise.
65060
65061 2007-01-16  Bruno Haible  <bruno@clisp.org>
65062
65063         * modules/csharpexec-script: New, created from...
65064         * modules/csharpexec: ... this.
65065
65066 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
65067
65068         * modules/javaexec-script: New, created from...
65069         * modules/javaexec: ... this.
65070
65071 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65072
65073         * modules/poll (Dependencies): Add sys_select.
65074
65075 2007-01-15  Jim Meyering  <jim@meyering.net>
65076
65077         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
65078         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
65079         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
65080         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
65081
65082 2007-01-15  Bruno Haible  <bruno@clisp.org>
65083
65084         * modules/striconveh: New file.
65085         * lib/striconveh.h: New file.
65086         * lib/striconveh.c: New file.
65087         * MODULES.html.sh (Internationalization functions): Add striconveh.
65088
65089         * modules/striconveh-tests: New file.
65090         * tests/test-striconveh.c: New file.
65091
65092 2007-01-15  Bruno Haible  <bruno@clisp.org>
65093
65094         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
65095         not from GNU libiconv or GNU libc.
65096
65097 2007-01-15  Bruno Haible  <bruno@clisp.org>
65098
65099         * doc/gnulib-intro.texi (Copyright): Explain the different license
65100         terms for module descriptions, autoconf macros, tests, documentation.
65101
65102 2007-01-14  Bruno Haible  <bruno@clisp.org>
65103
65104         * modules/striconv-tests: New file.
65105         * tests/test-striconv.c: New file.
65106
65107 2007-01-14  Bruno Haible  <bruno@clisp.org>
65108
65109         * modules/iconv-tests: New file.
65110         * tests/test-iconv.c: New file.
65111
65112 2007-01-14  Bruno Haible  <bruno@clisp.org>
65113
65114         * gnulib-tool (func_get_license): For test modules, use the license of
65115         the main module.
65116
65117 2007-01-14  Bruno Haible  <bruno@clisp.org>
65118
65119         * modules/iconv (Include): Clarify that <iconv.h> can only be included
65120         if iconv is found to exist.
65121
65122 2007-01-14  Bruno Haible  <bruno@clisp.org>
65123
65124         * modules/c-ctype-tests: New file.
65125         * tests/test-c-ctype.c: New file.
65126
65127 2007-01-14  Bruno Haible  <bruno@clisp.org>
65128
65129         * modules/binary-io-tests: New file.
65130         * tests/test-binary-io.sh: New file.
65131         * tests/test-binary-io.c: New file.
65132
65133 2007-01-14  Bruno Haible  <bruno@clisp.org>
65134
65135         * modules/array-oset-tests: New file.
65136         * tests/test-array_oset.c: New file.
65137
65138 2007-01-14  Bruno Haible  <bruno@clisp.org>
65139
65140         * modules/array-list-tests: New file.
65141         * tests/test-array_list.c: New file.
65142
65143 2007-01-14  Bruno Haible  <bruno@clisp.org>
65144
65145         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
65146         and make.
65147         Reported by Simon Josefsson in
65148         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
65149
65150 2007-01-14  Bruno Haible  <bruno@clisp.org>
65151
65152         * modules/allocsa-tests: New file.
65153         * tests/test-allocsa.c: New file.
65154
65155 2007-01-14  Bruno Haible  <bruno@clisp.org>
65156
65157         * modules/fchdir (Depends-on): Add absolute-header.
65158         * modules/unistd (Depends-on): Likewise.
65159
65160 2006-12-30  Bruno Haible  <bruno@clisp.org>
65161
65162         * modules/fchdir: New file.
65163         * modules/unistd (Files): Add lib/unistd_.h.
65164         (Makefile.am): Generate unistd.h from unistd_.h.
65165         * lib/fchdir.c: New file.
65166         * lib/dirent_.h: New file.
65167         * lib/unistd_.h: New file.
65168         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
65169         * m4/fchdir.m4: New file.
65170         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
65171         (gl_HEADER_UNISTD): Invoke it.
65172         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
65173         function.
65174         * lib/backupfile.c (opendir, closedir): Undefine.
65175         * lib/chown.c (open, close): Undefine.
65176         * lib/clean-temp.c (open, close): Undefine.
65177         * lib/copy-file.c (open, close): Undefine.
65178         * lib/execute.c (open, close): Undefine.
65179         * lib/fsusage.c (open, close): Undefine.
65180         * lib/gc-gnulib.c (open, close): Undefine.
65181         * lib/getcwd.c (opendir, closedir): Undefine.
65182         * lib/glob.c (opendir, closedir): Undefine.
65183         * lib/javacomp.c (open, close): Undefine.
65184         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
65185         * lib/openat-proc.c (open, close): Undefine.
65186         * lib/pagealign_alloc.c (open, close): Undefine.
65187         * lib/pipe.c (open, close): Undefine.
65188         * lib/progreloc.c (open, close): Undefine.
65189         * lib/savedir.c (opendir, closedir): Undefine.
65190         * lib/utime.c (open, close): Undefine.
65191         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
65192
65193 2007-01-10  Bruno Haible  <bruno@clisp.org>
65194
65195         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
65196
65197 2007-01-12  Eric Blake  <ebb9@byu.net>
65198
65199         Provide a robust <wchar.h>.  Further simplifications are now
65200         possible in other modules, but not included here.
65201         * modules/wchar: New module.
65202         * m4/wchar.m4: New file.
65203         * lib/wchar_.h: Likewise.
65204         * modules/mbchar (Depends-on): Depend on wchar, as the first use
65205         of the new module.
65206         * MODULES.html.sh (Extended multibyte and wide character utilities):
65207         New section.
65208
65209 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
65210
65211         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
65212         to a reasonable default for memory allocation.
65213         (xreadlink): Don't allocate a huge buffer, to work around a buggy
65214         file system that reports garbage st_size values for symlinks.
65215         Problem reported by Liyang Hu.
65216
65217 2007-01-11  Simon Josefsson  <simon@josefsson.org>
65218
65219         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
65220         Emacs .#* auto-save files).
65221
65222 2007-01-11  Bruno Haible  <bruno@clisp.org>
65223
65224         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
65225         directory.
65226
65227 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65228
65229         Use @...@ consistently in lib/wctype_.h.
65230         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
65231         on it being set to 1 or 0.
65232         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
65233         go back to AC_SUBSTing it.
65234         * modules/wctype (Makefile.am): Undo previous change.
65235
65236 2007-01-10  Eric Blake  <ebb9@byu.net>
65237
65238         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
65239         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
65240         * modules/wctype (Makefile.am): Likewise.
65241         Reported by Chris McGuire.
65242
65243 2007-01-10  Jim Meyering  <jim@meyering.net>
65244
65245         fts.c: a small readability/maintainability improvement
65246         * lib/fts.c (fts_read): Make this code slightly more readable and
65247         maintainable by hoisting the "sp->fts_cur = p" assignments to
65248         immediately follow the statements that set P.  Derived from
65249         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
65250
65251 2007-01-10  Eric Blake  <ebb9@byu.net>
65252
65253         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
65254         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
65255         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65256         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65257         Reported by Chris McGuire.
65258
65259 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65260
65261         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
65262         in sed script.
65263
65264 2007-01-09  Bruno Haible  <bruno@clisp.org>
65265
65266         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
65267         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
65268         variables.
65269         (func_module): Use them.
65270
65271 2007-01-09  Bruno Haible  <bruno@clisp.org>
65272
65273         * modules/unistr/base: New file.
65274         * lib/unistr.h: New file.
65275
65276         * modules/unistr/u8-to-u16: New file.
65277         * lib/unistr/u8-to-u16.c: New file.
65278
65279         * modules/unistr/u8-to-u32: New file.
65280         * lib/unistr/u8-to-u32.c: New file.
65281
65282         * modules/unistr/u16-to-u8: New file.
65283         * lib/unistr/u16-to-u8.c: New file.
65284
65285         * modules/unistr/u16-to-u32: New file.
65286         * lib/unistr/u16-to-u32.c: New file.
65287
65288         * modules/unistr/u32-to-u8: New file.
65289         * lib/unistr/u32-to-u8.c: New file.
65290
65291         * modules/unistr/u32-to-u16: New file.
65292         * lib/unistr/u32-to-u16.c: New file.
65293
65294         * modules/unistr/u8-check: New file.
65295         * modules/unistr/u16-check: New file.
65296         * modules/unistr/u32-check: New file.
65297         * lib/unistr/u8-check.c: New file.
65298         * lib/unistr/u16-check.c: New file.
65299         * lib/unistr/u32-check.c: New file.
65300
65301         * modules/unistr/u8-chr: New file.
65302         * modules/unistr/u16-chr: New file.
65303         * modules/unistr/u32-chr: New file.
65304         * lib/unistr/u8-chr.c: New file.
65305         * lib/unistr/u16-chr.c: New file.
65306         * lib/unistr/u32-chr.c: New file.
65307
65308         * modules/unistr/u8-cmp: New file.
65309         * modules/unistr/u16-cmp: New file.
65310         * modules/unistr/u32-cmp: New file.
65311         * lib/unistr/u8-cmp.c: New file.
65312         * lib/unistr/u16-cmp.c: New file.
65313         * lib/unistr/u32-cmp.c: New file.
65314
65315         * modules/unistr/u8-cpy: New file.
65316         * modules/unistr/u16-cpy: New file.
65317         * modules/unistr/u32-cpy: New file.
65318         * lib/unistr/u8-cpy.c: New file.
65319         * lib/unistr/u16-cpy.c: New file.
65320         * lib/unistr/u32-cpy.c: New file.
65321         * lib/unistr/u-cpy.h: New file.
65322
65323         * modules/unistr/u8-cpy-alloc: New file.
65324         * modules/unistr/u16-cpy-alloc: New file.
65325         * modules/unistr/u32-cpy-alloc: New file.
65326         * lib/unistr/u8-cpy-alloc.c: New file.
65327         * lib/unistr/u16-cpy-alloc.c: New file.
65328         * lib/unistr/u32-cpy-alloc.c: New file.
65329         * lib/unistr/u-cpy-alloc.h: New file.
65330
65331         * modules/unistr/u8-endswith: New file.
65332         * modules/unistr/u16-endswith: New file.
65333         * modules/unistr/u32-endswith: New file.
65334         * lib/unistr/u8-endswith.c: New file.
65335         * lib/unistr/u16-endswith.c: New file.
65336         * lib/unistr/u32-endswith.c: New file.
65337         * lib/unistr/u-endswith.h: New file.
65338
65339         * modules/unistr/u8-mblen: New file.
65340         * modules/unistr/u16-mblen: New file.
65341         * modules/unistr/u32-mblen: New file.
65342         * lib/unistr/u8-mblen.c: New file.
65343         * lib/unistr/u16-mblen.c: New file.
65344         * lib/unistr/u32-mblen.c: New file.
65345
65346         * modules/unistr/u8-mbtouc: New file.
65347         * modules/unistr/u16-mbtouc: New file.
65348         * modules/unistr/u32-mbtouc: New file.
65349         * lib/unistr/u8-mbtouc.c: New file.
65350         * lib/unistr/u16-mbtouc.c: New file.
65351         * lib/unistr/u32-mbtouc.c: New file.
65352
65353         * modules/unistr/u8-mbtouc-safe: New file.
65354         * modules/unistr/u16-mbtouc-safe: New file.
65355         * modules/unistr/u32-mbtouc-safe: New file.
65356         * lib/unistr/u8-mbtouc-safe.c: New file.
65357         * lib/unistr/u16-mbtouc-safe.c: New file.
65358         * lib/unistr/u32-mbtouc-safe.c: New file.
65359
65360         * modules/unistr/u8-move: New file.
65361         * modules/unistr/u16-move: New file.
65362         * modules/unistr/u32-move: New file.
65363         * lib/unistr/u8-move.c: New file.
65364         * lib/unistr/u16-move.c: New file.
65365         * lib/unistr/u32-move.c: New file.
65366         * lib/unistr/u-move.h: New file.
65367
65368         * modules/unistr/u8-next: New file.
65369         * modules/unistr/u16-next: New file.
65370         * modules/unistr/u32-next: New file.
65371         * lib/unistr/u8-next.c: New file.
65372         * lib/unistr/u16-next.c: New file.
65373         * lib/unistr/u32-next.c: New file.
65374
65375         * modules/unistr/u8-prev: New file.
65376         * modules/unistr/u16-prev: New file.
65377         * modules/unistr/u32-prev: New file.
65378         * lib/unistr/u8-prev.c: New file.
65379         * lib/unistr/u16-prev.c: New file.
65380         * lib/unistr/u32-prev.c: New file.
65381
65382         * modules/unistr/u8-set: New file.
65383         * modules/unistr/u16-set: New file.
65384         * modules/unistr/u32-set: New file.
65385         * lib/unistr/u8-set.c: New file.
65386         * lib/unistr/u16-set.c: New file.
65387         * lib/unistr/u32-set.c: New file.
65388         * lib/unistr/u-set.h: New file.
65389
65390         * modules/unistr/u8-startswith: New file.
65391         * modules/unistr/u16-startswith: New file.
65392         * modules/unistr/u32-startswith: New file.
65393         * lib/unistr/u8-startswith.c: New file.
65394         * lib/unistr/u16-startswith.c: New file.
65395         * lib/unistr/u32-startswith.c: New file.
65396         * lib/unistr/u-startswith.h: New file.
65397
65398         * modules/unistr/u8-stpcpy: New file.
65399         * modules/unistr/u16-stpcpy: New file.
65400         * modules/unistr/u32-stpcpy: New file.
65401         * lib/unistr/u8-stpcpy.c: New file.
65402         * lib/unistr/u16-stpcpy.c: New file.
65403         * lib/unistr/u32-stpcpy.c: New file.
65404         * lib/unistr/u-stpcpy.h: New file.
65405
65406         * modules/unistr/u8-stpncpy: New file.
65407         * modules/unistr/u16-stpncpy: New file.
65408         * modules/unistr/u32-stpncpy: New file.
65409         * lib/unistr/u8-stpncpy.c: New file.
65410         * lib/unistr/u16-stpncpy.c: New file.
65411         * lib/unistr/u32-stpncpy.c: New file.
65412         * lib/unistr/u-stpncpy.h: New file.
65413
65414         * modules/unistr/u8-strcat: New file.
65415         * modules/unistr/u16-strcat: New file.
65416         * modules/unistr/u32-strcat: New file.
65417         * lib/unistr/u8-strcat.c: New file.
65418         * lib/unistr/u16-strcat.c: New file.
65419         * lib/unistr/u32-strcat.c: New file.
65420         * lib/unistr/u-strcat.h: New file.
65421
65422         * modules/unistr/u8-strchr: New file.
65423         * modules/unistr/u16-strchr: New file.
65424         * modules/unistr/u32-strchr: New file.
65425         * lib/unistr/u8-strchr.c: New file.
65426         * lib/unistr/u16-strchr.c: New file.
65427         * lib/unistr/u32-strchr.c: New file.
65428
65429         * modules/unistr/u8-strcmp: New file.
65430         * modules/unistr/u16-strcmp: New file.
65431         * modules/unistr/u32-strcmp: New file.
65432         * lib/unistr/u8-strcmp.c: New file.
65433         * lib/unistr/u16-strcmp.c: New file.
65434         * lib/unistr/u32-strcmp.c: New file.
65435
65436         * modules/unistr/u8-strcpy: New file.
65437         * modules/unistr/u16-strcpy: New file.
65438         * modules/unistr/u32-strcpy: New file.
65439         * lib/unistr/u8-strcpy.c: New file.
65440         * lib/unistr/u16-strcpy.c: New file.
65441         * lib/unistr/u32-strcpy.c: New file.
65442         * lib/unistr/u-strcpy.h: New file.
65443
65444         * modules/unistr/u8-strcspn: New file.
65445         * modules/unistr/u16-strcspn: New file.
65446         * modules/unistr/u32-strcspn: New file.
65447         * lib/unistr/u8-strcspn.c: New file.
65448         * lib/unistr/u16-strcspn.c: New file.
65449         * lib/unistr/u32-strcspn.c: New file.
65450         * lib/unistr/u-strcspn.h: New file.
65451
65452         * modules/unistr/u8-strdup: New file.
65453         * modules/unistr/u16-strdup: New file.
65454         * modules/unistr/u32-strdup: New file.
65455         * lib/unistr/u8-strdup.c: New file.
65456         * lib/unistr/u16-strdup.c: New file.
65457         * lib/unistr/u32-strdup.c: New file.
65458         * lib/unistr/u-strdup.h: New file.
65459
65460         * modules/unistr/u8-strlen: New file.
65461         * modules/unistr/u16-strlen: New file.
65462         * modules/unistr/u32-strlen: New file.
65463         * lib/unistr/u8-strlen.c: New file.
65464         * lib/unistr/u16-strlen.c: New file.
65465         * lib/unistr/u32-strlen.c: New file.
65466         * lib/unistr/u-strlen.h: New file.
65467
65468         * modules/unistr/u8-strmblen: New file.
65469         * modules/unistr/u16-strmblen: New file.
65470         * modules/unistr/u32-strmblen: New file.
65471         * lib/unistr/u8-strmblen.c: New file.
65472         * lib/unistr/u16-strmblen.c: New file.
65473         * lib/unistr/u32-strmblen.c: New file.
65474
65475         * modules/unistr/u8-strmbtouc: New file.
65476         * modules/unistr/u16-strmbtouc: New file.
65477         * modules/unistr/u32-strmbtouc: New file.
65478         * lib/unistr/u8-strmbtouc.c: New file.
65479         * lib/unistr/u16-strmbtouc.c: New file.
65480         * lib/unistr/u32-strmbtouc.c: New file.
65481
65482         * modules/unistr/u8-strncat: New file.
65483         * modules/unistr/u16-strncat: New file.
65484         * modules/unistr/u32-strncat: New file.
65485         * lib/unistr/u8-strncat.c: New file.
65486         * lib/unistr/u16-strncat.c: New file.
65487         * lib/unistr/u32-strncat.c: New file.
65488         * lib/unistr/u-strncat.h: New file.
65489
65490         * modules/unistr/u8-strncmp: New file.
65491         * modules/unistr/u16-strncmp: New file.
65492         * modules/unistr/u32-strncmp: New file.
65493         * lib/unistr/u8-strncmp.c: New file.
65494         * lib/unistr/u16-strncmp.c: New file.
65495         * lib/unistr/u32-strncmp.c: New file.
65496
65497         * modules/unistr/u8-strncpy: New file.
65498         * modules/unistr/u16-strncpy: New file.
65499         * modules/unistr/u32-strncpy: New file.
65500         * lib/unistr/u8-strncpy.c: New file.
65501         * lib/unistr/u16-strncpy.c: New file.
65502         * lib/unistr/u32-strncpy.c: New file.
65503         * lib/unistr/u-strncpy.h: New file.
65504
65505         * modules/unistr/u8-strnlen: New file.
65506         * modules/unistr/u16-strnlen: New file.
65507         * modules/unistr/u32-strnlen: New file.
65508         * lib/unistr/u8-strnlen.c: New file.
65509         * lib/unistr/u16-strnlen.c: New file.
65510         * lib/unistr/u32-strnlen.c: New file.
65511         * lib/unistr/u-strnlen.h: New file.
65512
65513         * modules/unistr/u8-strpbrk: New file.
65514         * modules/unistr/u16-strpbrk: New file.
65515         * modules/unistr/u32-strpbrk: New file.
65516         * lib/unistr/u8-strpbrk.c: New file.
65517         * lib/unistr/u16-strpbrk.c: New file.
65518         * lib/unistr/u32-strpbrk.c: New file.
65519         * lib/unistr/u-strpbrk.h: New file.
65520
65521         * modules/unistr/u8-strrchr: New file.
65522         * modules/unistr/u16-strrchr: New file.
65523         * modules/unistr/u32-strrchr: New file.
65524         * lib/unistr/u8-strrchr.c: New file.
65525         * lib/unistr/u16-strrchr.c: New file.
65526         * lib/unistr/u32-strrchr.c: New file.
65527
65528         * modules/unistr/u8-strspn: New file.
65529         * modules/unistr/u16-strspn: New file.
65530         * modules/unistr/u32-strspn: New file.
65531         * lib/unistr/u8-strspn.c: New file.
65532         * lib/unistr/u16-strspn.c: New file.
65533         * lib/unistr/u32-strspn.c: New file.
65534         * lib/unistr/u-strspn.h: New file.
65535
65536         * modules/unistr/u8-strstr: New file.
65537         * modules/unistr/u16-strstr: New file.
65538         * modules/unistr/u32-strstr: New file.
65539         * lib/unistr/u8-strstr.c: New file.
65540         * lib/unistr/u16-strstr.c: New file.
65541         * lib/unistr/u32-strstr.c: New file.
65542         * lib/unistr/u-strstr.h: New file.
65543
65544         * modules/unistr/u8-strtok: New file.
65545         * modules/unistr/u16-strtok: New file.
65546         * modules/unistr/u32-strtok: New file.
65547         * lib/unistr/u8-strtok.c: New file.
65548         * lib/unistr/u16-strtok.c: New file.
65549         * lib/unistr/u32-strtok.c: New file.
65550         * lib/unistr/u-strtok.h: New file.
65551
65552         * modules/unistr/u8-uctomb: New file.
65553         * modules/unistr/u16-uctomb: New file.
65554         * modules/unistr/u32-uctomb: New file.
65555         * lib/unistr/u8-uctomb.c: New file.
65556         * lib/unistr/u16-uctomb.c: New file.
65557         * lib/unistr/u32-uctomb.c: New file.
65558
65559         * MODULES.html.sh (Unicode string functions): Add the new modules.
65560
65561 2007-01-08  Bruno Haible  <bruno@clisp.org>
65562
65563         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65564         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65565         subdirectories.
65566
65567 2007-01-08  Karl Berry  <karl@gnu.org>
65568
65569         * doc/error.texi: mention that main() fns must set program_name
65570         when progname is used.
65571
65572 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65573
65574         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65575         WCTYPE_H is empty, for the benefit of builds from non-distclean
65576         directories.  Problem reported by Eric Blake in
65577         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65578
65579 2007-01-08  Bruno Haible  <bruno@clisp.org>
65580
65581         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65582         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65583         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65584         PROVIDE_CANONICALIZE_FILENAME_MODE.
65585         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65586
65587 2007-01-08  Bruno Haible  <bruno@clisp.org>
65588
65589         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65590         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65591         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65592         * lib/fts.c: Likewise.
65593         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65594
65595 2006-12-25  Bruno Haible  <bruno@clisp.org>
65596
65597         * modules/utf8-ucs4-safe: New file.
65598         * lib/utf8-ucs4-safe.h: New file.
65599         * lib/unistr/utf8-ucs4-safe.c: New file.
65600
65601         * modules/utf16-ucs4-safe: New file.
65602         * lib/utf16-ucs4-safe.h: New file.
65603         * lib/unistr/utf16-ucs4-safe.c: New file.
65604
65605         * MODULES.html.sh (Unicode string functions): Add the new modules.
65606
65607 2007-01-08  Bruno Haible  <bruno@clisp.org>
65608
65609         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65610         (Depends-on): Add unitypes.
65611         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65612         (u8_mbtouc_aux): Move out to separate file.
65613         (u8_mbtouc): Use ucs4_t, uint8_t types.
65614         * lib/unistr/utf8-ucs4.c: New file.
65615
65616         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65617         (Depends-on): Add unitypes.
65618         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65619         (u16_mbtouc_aux): Move out to separate file.
65620         (u16_mbtouc): Use ucs4_t, uint16_t types.
65621         * lib/unistr/utf16-ucs4.c: New file.
65622
65623         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65624         (Depends-on): Add unitypes.
65625         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65626         (u8_uctomb_aux): Move out to separate file.
65627         (u8_uctomb): Use ucs4_t, uint8_t types.
65628         * lib/unistr/ucs4-utf8.c: New file.
65629
65630         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65631         (Depends-on): Add unitypes.
65632         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65633         (u16_uctomb_aux): Move out to separate file.
65634         (u16_uctomb): Use ucs4_t, uint16_t types.
65635         * lib/unistr/ucs4-utf16.c: New file.
65636
65637 2006-12-25  Bruno Haible  <bruno@clisp.org>
65638
65639         * modules/unitypes: New file.
65640         * lib/unitypes.h: New file.
65641         * MODULES.html.sh (func_all_modules): New section "Unicode string
65642         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65643         this section. Add unitypes.
65644
65645 2007-01-08  Bruno Haible  <bruno@clisp.org>
65646
65647         Avoid variable names that conflict with those from libtool.
65648         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65649         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65650         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65651         library_names_spec to acl_library_names_spec, hardcode_* to
65652         acl_hardcode_*.
65653         Reported by Ralf Wildenhues.
65654
65655 2007-01-08  Bruno Haible  <bruno@clisp.org>
65656
65657         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65658         definition.
65659         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65660         definition.
65661         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65662         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65663         definition.
65664         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65665         definition.
65666         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65667         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65668         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65669         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65670         definition.
65671         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65672         definition.
65673         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65674         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65675         GC_USE_<algorithm>.
65676         * lib/gc-libgcrypt.c: Likewise.
65677         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65678         * modules/gc-arctwo (configure.ac): Likewise.
65679         * modules/gc-des (configure.ac): Likewise.
65680         * modules/gc-hmac-md5 (configure.ac): Likewise.
65681         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65682         * modules/gc-md2 (configure.ac): Likewise.
65683         * modules/gc-md4 (configure.ac): Likewise.
65684         * modules/gc-md5 (configure.ac): Likewise.
65685         * modules/gc-random (configure.ac): Likewise.
65686         * modules/gc-rijndael (configure.ac): Likewise.
65687         * modules/gc-sha1 (configure.ac): Likewise.
65688
65689 2007-01-08  Bruno Haible  <bruno@clisp.org>
65690
65691         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65692         macro definition.
65693         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65694         definition.
65695         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65696         definition.
65697         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65698         * modules/fcntl-safer (configure.ac): Likewise.
65699         * modules/fopen-safer (configure.ac): Likewise.
65700         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65701         GNULIB_FWRITEERROR macro definition.
65702
65703 2007-01-08  Bruno Haible  <bruno@clisp.org>
65704
65705         * m4/gnulib-common.m4: New file.
65706         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65707         (func_get_filelist): Add m4/gnulib-common.m4.
65708
65709 2007-01-08  Bruno Haible  <bruno@clisp.org>
65710
65711         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65712         command.
65713
65714 2007-01-08  Jim Meyering  <jim@meyering.net>
65715
65716         Use a more robust test for a "can't happen" condition.
65717         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65718         narrowed the st_size value.  Presuming the "can't happen" condition
65719         is true, that narrowing could conceivably convert an invalid st_size
65720         value into a valid one.  Instead, use a change based on Matthew
65721         Woehlke's original patch.
65722
65723         Slight readability improvement: use an assert-like macro
65724         in place of literal "abort ()" uses.
65725         * lib/fts.c (fts_assert): Define.
65726         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65727         Use this macro instead of a bare 'abort'.
65728
65729 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65730
65731         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65732         simply work around them.
65733         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65734         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65735         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65736         declaring.
65737         Don't bother to define as macros, since the standard doesn't require it.
65738         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65739         longer worry about IRIX 5.3.
65740         (HAVE_WCTYPE_CTMP_BUG): Remove.
65741
65742 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65743
65744         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65745         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65746         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65747         Problems reported by Georg Schwarz for IRIX 5.3.
65748
65749         * gnulib-tool (autoconf_minversion): Take the maximum version number
65750         found, not the minimum.  Problem reported by James Youngman.
65751
65752 2007-01-03  Karl Berry  <karl@gnu.org>
65753
65754         * doc/error.texi: new file, explaining interaction with progname.
65755         * doc/gnulib.texi: include it.  Update copyright.
65756
65757 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65758
65759         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65760         AC_CANONICAL_HOST, to improve autobuild outputs.
65761
65762 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65763             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65764
65765         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65766         sockets, server sockets, and other file descriptors.  Count errors
65767         to compute the return value.  Reorder the code a bit to be easier
65768         to follow.  Don't set event bits that were not requested (except
65769         POLLERR and POLLHUP).
65770
65771 2007-01-01  Bruno Haible  <bruno@clisp.org>
65772
65773         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65774
65775 2007-01-03  Jim Meyering  <jim@meyering.net>
65776
65777         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65778
65779 2007-01-02  Bruno Haible  <bruno@clisp.org>
65780
65781         * modules/settime (Include): Require timespec.h.
65782         * modules/nanosleep (Include): Likewise.
65783
65784 2007-01-01  Bruno Haible  <bruno@clisp.org>
65785
65786         * gnulib-tool (func_emit_copyright_notice): Bump year.
65787         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65788
65789 2007-01-01  Bruno Haible  <bruno@clisp.org>
65790
65791         Improve support for OpenBSD.
65792         * build-aux/config.rpath (libname_spec): Export.
65793         (library_names_spec): New variable. Export.
65794         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65795         library_names_spec from the config.rpath output. Locate shared library
65796         through the name pattern in library_names_spec.
65797
65798 2007-01-01  Eric Blake  <ebb9@byu.net>
65799
65800         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65801
65802 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65803
65804         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65805         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65806         assume the C locale, and avoid an "eval" that could cause trouble.
65807         Problem with SORT reported by Bob Proulx.
65808
65809         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65810         Define.  Trivial patch from Henning Nielsen Lund, originally
65811         sent to bug-grep@gnu.org today.
65812
65813 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65814
65815         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65816         struct stat.  Problem reported by Henning Nielsen Lund.
65817         * lib/acl.c: Include acl.h first, to check interface.  Don't
65818         bother to include sys/types.h and sys/stat.h again.
65819
65820 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65821
65822         Import the following change from libc; problem reported by
65823         Sven Verdoolaege.
65824
65825         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65826
65827         [BZ #1373]
65828         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65829
65830 2006-12-28  Jim Meyering  <jim@meyering.net>
65831
65832         * build-aux/announce-gen: Do not assume that the package
65833         builds any of tar.gz, tar.bz2, and .xdelta files.
65834         Suggestion from Simon Josefsson.
65835
65836 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65837
65838         * modules/announce-gen: New file.
65839
65840 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65841
65842         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65843         handles its gotchas now.
65844         * lib/mbswidth.c: Likewise.
65845         * lib/wcwidth.h: Likewise.
65846         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65847         and iswcntrl; the wctype module does this stuff now.
65848         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65849         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65850         * modules/mbchar (Depends-on): Add wctype.
65851         * modules/mbswidth (Depends-on): Likewise.
65852         * modules/wcwidth (Depends-on): Likewise.
65853
65854 2006-12-27  Eric Blake  <ebb9@byu.net>
65855
65856         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65857         module uses more than what <wctype.h> is required to provide.
65858
65859 2006-12-26  Eric Blake  <ebb9@byu.net>
65860
65861         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65862
65863 2006-12-26  Eric Blake  <ebb9@byu.net>
65864
65865         * modules/absolute-header: New module.
65866         * modules/fcntl (Depends-on): Depend on it.
65867         * modules/inttypes (Depends-on): Likewise.
65868         * modules/stdint (Depends-on): Likewise.
65869         * modules/sys_stat (Depends-on): Likewise.
65870         * modules/wctype (Depends-on): Likewise.
65871         * MODULES.html.sh (Support for building libraries and
65872         executables): Document it.
65873
65874 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65875
65876         * gnulib-tool (SED): Remove, undoing previous change.
65877         The problem was that it broke coreutils on Solaris, because
65878         "sed --posix" leaked into a makefile.
65879         (sed): New alias, if 'alias' and GNU sed.
65880
65881 2006-12-24  Jim Meyering  <jim@meyering.net>
65882
65883         Work around an fchownat bug in glibc-2.4:
65884         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65885         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65886         in spite of the -P option.
65887         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65888         New macros.
65889         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65890         * modules/openat (Files): Add lib/fchownat.c.
65891         * lib/openat.c (fchownat): Don't define here.  Move to...
65892         * lib/fchownat.c: ...this new file.
65893
65894 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65895
65896         Fix bug reported by Bruno Haible in
65897         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65898         where quotearg.c didn't compile on Mac OS X 10.2 because it
65899         lacks <wchar.h> and wint_t.
65900         * lib/wctype_.h (__wctype_wint_t): New type.
65901         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65902         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65903         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65904         Arg is now of type __wctype_wint_t, not wint_t.
65905         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65906         substitute HAVE_WINT_T.
65907         * modules/wctype (Files): Add m4/wint_t.m4.
65908         (wctype.h): Substitute HAVE_WINT_T.
65909
65910 2006-12-23  Bruno Haible  <bruno@clisp.org>
65911
65912         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65913
65914 2006-12-23  Bruno Haible  <bruno@clisp.org>
65915
65916         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65917         S_ISLNK.
65918         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65919         mingw.
65920
65921 2006-12-22  Bruno Haible  <bruno@clisp.org>
65922
65923         * lib/copy-file.c: Include acl.h.
65924         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65925         Close the file descriptors only after being done with copy_acl.
65926         * modules/copy-file (Depends-on): Add acl.
65927
65928 2006-12-22  Bruno Haible  <bruno@clisp.org>
65929
65930         * gnulib-tool (SED): New variable.
65931         Use $SED instead of sed everywhere.
65932
65933 2006-12-22  Bruno Haible  <bruno@clisp.org>
65934
65935         * modules/no-c++: New file.
65936         * m4/no-c++.m4: New file.
65937         * MODULES.html.sh (Support for building libraries and executables):
65938         Add no-c++.
65939
65940 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65941
65942         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65943         Include <limits.h>, and use its INT_MAX to rewrite the
65944         j loop so that it does not overflow 'int'.  Problem reported by
65945         Ralf Wildenhues in
65946         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65947         Play it safe by shifting left by 1 rather than multiplying by 2,
65948         as GCC is less likely to optimize this away when the value
65949         is signed (when it assumes overflow leads to undefined behavior).
65950         Also, don't assume time_t uses two's complement.
65951
65952 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65953
65954         * MODULES.html.sh: New module wctype.
65955         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65956         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65957         <wctype.h>, since the new wctype module should fix this.
65958         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65959         the wctype module should arrange for it.
65960         * lib/regex_internal.h: Likewise.
65961         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65962         since the wctype module should handle this now.
65963         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65964         * modules/fnmatch (Depends-on): Add wctype.
65965         * modules/quotearg (Depends-on): Likewise.
65966         * modules/regex (Depends-on): Likewise.
65967
65968 2006-12-19  Bruno Haible  <bruno@clisp.org>
65969
65970         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65971         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65972
65973 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65974
65975         * modules/savewd (Depends-on): Fix dependency on fcntl.
65976
65977 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65978
65979         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65980         conforms to C99, rather than relying on the user's environment
65981         setting of STDINT_H.
65982
65983 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65984         and Eric Blake  <ebb9@byu.net>
65985
65986         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65987         This is more consistent with the other defines here.
65988         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65989         Port to z/OS.  Problem reported by Paul Gilmartin.
65990         Change local vars to use gl_ prefix rather than ac_.
65991         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65992         with other defines.
65993         * modules/double-slash-root: New module.
65994         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65995         (Depends-on): Add double-slash-root.
65996         * MODULES.html.sh (File system functions): Mention new module.
65997
65998 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65999
66000         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
66001         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
66002         This is for the benefit of gzip, which doesn't do i18n.
66003
66004 2006-12-12  Jim Meyering  <jim@meyering.net>
66005
66006         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
66007         Reported by Andreas Schwab <schwab@suse.de>.
66008
66009 2006-12-12  Bruno Haible  <bruno@clisp.org>
66010
66011         Merge these changes.
66012         2006-09-05  Bruno Haible  <bruno@clisp.org>
66013         * lib/iconvme.c (iconv_string): No need to save and restore errno when
66014         iconv_alloc succeeded.
66015         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
66016         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
66017         test for " && dest " at the end - dest is always != NULL there. Call
66018         iconv with 4xNULL arguments initially, to reset the state. Call iconv
66019         with 2xNULL arguments, also to flush the state storage. Handle the
66020         IRIX iconv behaviour. Realloc the final result, to throw away unused
66021         memory.
66022
66023 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
66024
66025         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
66026         and fchmodat unconditionally, since glibc 2.4 has them.
66027         Problem reported by Arkadiusz Miskiewicz.
66028
66029 2006-12-10  Bruno Haible  <bruno@clisp.org>
66030
66031         * gnulib-tool (func_import): Show the include files only for those
66032         modules that are copied and specified.
66033         Reported by Karl Berry.
66034
66035 2006-12-08  Jim Meyering  <jim@meyering.net>
66036
66037         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
66038         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
66039
66040         * build-aux/announce-gen: Add two new options, both optional:
66041         --bootstrap-tools=TOOL_LIST
66042               a comma-separated list of tools, e.g.,
66043               autoconf,automake,bison,gnulib
66044         --gnulib-snapshot-date=DATE
66045               if gnulib is in the bootstrap tool list,
66046               then report this as the snapshot date.
66047               If not specified, use the current date/time.
66048               If you specify a date here, be sure it's UTC.
66049
66050 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66051
66052         * tests/test-argp-2.sh: Fix test to match actual output.
66053         (func_compare): Fix sed script to be portable.
66054
66055 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
66056
66057         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
66058         workaround for this case.  It is not autoconfigured now; offhand
66059         it's hard to see how to autoconfigure it.
66060
66061 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
66062
66063         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
66064         a directory that is about to be chowned.  Such a directory's
66065         initial file permissions should permit the owner only and this
66066         should not be changed until after the chown, since the group and
66067         other bits would be incorrect if they granted permission before
66068         the chown.
66069
66070         Fix porting problem for iswctype reported by Georg Schwarz in:
66071         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
66072         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
66073         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
66074         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
66075         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66076
66077 2006-12-03  Jim Meyering  <jim@meyering.net>
66078
66079         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
66080         p->fts_statp may not yet be defined.
66081         (fts_read): Instead, set it in the caller, once p->fts_statp is
66082         sure to be defined, and corresponds to a top-level directory.
66083         This bug made du -x fail.  Here's the coreutils test case:
66084         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
66085         Reported by Mike Frysinger.
66086
66087 2006-12-01  Jim Meyering  <jim@meyering.net>
66088
66089         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
66090         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
66091         Reported by Simon Josefsson.
66092
66093 2006-11-30  Jim Meyering  <jim@meyering.net>
66094
66095         * m4/warning.m4: Use the all-permissive copyright notice
66096         recommended by RMS (rather than LGPL).
66097         * m4/vararrays.m4: Likewise.
66098         * m4/flexmember.m4: Likewise.
66099
66100 2006-11-29  Bruno Haible  <bruno@clisp.org>
66101
66102         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66103         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
66104         using +=.
66105         Reported by Simon Josefsson <simon@josefsson.org>.
66106
66107 2006-11-28  James Youngman <jay@gnu.org>
66108
66109         * README: Advise users that they might find the bug-gnulib@gnu.org
66110         and autotools-announce@gnu.org mailing lists useful.
66111
66112 2006-11-28  Bruno Haible  <bruno@clisp.org>
66113
66114         * m4/ptrdiff_max.m4: Remove file.
66115
66116 2006-11-21  Bruno Haible  <bruno@clisp.org>
66117
66118         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
66119         _AC_COMPUTE_INT.
66120         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66121         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
66122         _AC_COMPUTE_INT.
66123         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66124         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
66125         _AC_COMPUTE_INT.
66126         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66127
66128 2006-11-28  Jim Meyering  <jim@meyering.net>
66129
66130         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
66131         warning from "gcc -Wshadow" about shadowing the builtin.
66132
66133 2006-11-27  Bruno Haible  <bruno@clisp.org>
66134
66135         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
66136         _AC_COMPUTE_INT.
66137         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66138
66139 2006-11-27  Bruno Haible  <bruno@clisp.org>
66140             Paul Eggert  <eggert@cs.ucla.edu>
66141
66142         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
66143
66144 2006-11-26  Bruno Haible  <bruno@clisp.org>
66145
66146         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66147         noinst_LTLIBRARIES.
66148
66149 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66150             Bruno Haible  <bruno@clisp.org>
66151
66152         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
66153         if compiling with "gcc -ansi".
66154
66155 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66156
66157         Fix some incompatibilities with gcc -ansi -pedantic.
66158         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
66159         if compiling pedantically with GCC, unless it's C99 or later.
66160         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
66161         it mishandles gcc -ansi -pedantic as well.
66162         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
66163         if gcc -pedantic.
66164         * lib/regexec.c (check_node_accept_bytes): Don't use auto
66165         initializers for struct if -pedantic, unless it's C99 or later.
66166
66167 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
66168
66169         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
66170         Don't close an fd more than once. Identical atimes indicate
66171         success, not failure.
66172
66173 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
66174
66175         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
66176
66177 2006-11-23  Jim Meyering  <jim@meyering.net>
66178
66179         * build-aux/announce-gen: New file.  From coreutils.
66180
66181 2006-11-22  Jim Meyering  <jim@meyering.net>
66182
66183         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
66184         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
66185         (fts_read): Use a temporary to narrow the overused st_size member
66186         before using it in a switch statement.  Reported by Matthew Woehlke.
66187
66188         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
66189         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
66190
66191 2006-11-20  Bruno Haible  <bruno@clisp.org>
66192
66193         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
66194         changequote instead of pairs of brackets.
66195         Reported by Andreas Schwab <schwab@suse.de>.
66196
66197 2006-11-21  Jim Meyering  <jim@meyering.net>
66198
66199         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
66200         so as to remain compatible with older compilers.
66201         Patch from Michael Deutschmann.
66202
66203 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66204
66205         * MODULES.html.sh (File system functions): Add openat.
66206
66207         * lib/openat.h (rpl_fstatat): New macro, if
66208         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
66209         (fstatat): Define to rpl_fstatat under the same conditions,
66210         unless COMPILING_FSTATAT.
66211         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
66212         seems to have the bug.
66213         * lib/fstatat.c: New file.
66214         * modules/openat (Files): Add it.
66215
66216 2006-11-20  Bruno Haible  <bruno@clisp.org>
66217
66218         * Makefile: New file.
66219
66220 2006-11-20  Jim Meyering  <jim@meyering.net>
66221
66222         The beginnings of syntax-related checks for gnulib.
66223         * lib/Makefile: New file.
66224         * lib/t-idcache: New script.  Ensure that the two halves of
66225         idcache.c stay in sync.
66226
66227         * lib/idcache.c: Adjust comments in user- and group- portions to
66228         be more accurate, and to be consistent with one another.
66229
66230 2006-11-20  Jim Meyering  <jim@meyering.net>
66231
66232         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
66233         continue using the flexible array member (thus, this module performs
66234         half as many malloc calls), with the addition that...
66235         (getgroup, getuser): Consistently record a non-match via an empty
66236         "name" string, and map an empty string match to a NULL return value.
66237         * modules/idcache (Depends-on): Re-add flexmember.
66238
66239         * lib/idcache.c (getuser): Remove all uses of the register keyword.
66240         (getuidbyname, getgroup, getgidbyname): Likewise.
66241
66242         Use cleaner syntax: NULL rather than 0.
66243         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
66244
66245 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66246
66247         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
66248         It mishandled the case where the group was missing.
66249         Problem reported by Greg Schafer.
66250         * modules/idcache: Likewise.
66251
66252 2006-11-18  Jim Meyering  <jim@meyering.net>
66253
66254         * check-module (%exempt_header): Add exception for some
66255         conditionally-included headers.
66256
66257         * modules/i-ring (Depends-on): Add verify.
66258         (License): Change to LGPL.
66259
66260 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66261
66262         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
66263         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
66264         and inttostr.h.  Use snprintf rather than uinttostr, so that
66265         LGPLed code doesn't depend on GPLed.
66266
66267 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66268
66269         * modules/inline (License): Change from GPL to LGPL.
66270
66271 2006-11-17  Jim Meyering  <jim@meyering.net>
66272
66273         * modules/d-type (License): Switch to LGPL.
66274
66275 2006-11-15  Bruno Haible  <bruno@clisp.org>
66276
66277         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
66278
66279 2006-11-15  Eric Blake  <ebb9@byu.net>
66280
66281         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
66282         the module dependency.
66283
66284 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66285             Bruno Haible  <bruno@clisp.org>
66286
66287         * gnulib-tool (func_create_testdir): Add license consistency check.
66288
66289 2006-11-15  Eric Blake  <ebb9@byu.net>
66290
66291         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
66292         random "(cached)" in configure output.
66293
66294 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66295
66296         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
66297         test for conforming inttypes.h is both announced and cached.
66298
66299         * MODULES.html.sh (seen_modules, seen_files): New variables.
66300         (func_module): Rewrite to use a few less gnulib-tool and sed
66301         invocations.  Avoid a couple of quadratic algorithms for ...
66302         (missed_modules, missed_files): ... these, with ...
66303         (func_append, func_tmpdir): ... these new functions, from
66304         gnulib-tool.  Analogously, install traps for cleanup.
66305
66306         * tests/test-gc.c (main): Remove unused variables.
66307         * tests/test-read-file.c: Include stdlib.h, for 'free'.
66308
66309 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
66310
66311         * modules/inttostr (License): Change to LGPL.
66312
66313 2006-11-14  Eric Blake  <ebb9@byu.net>
66314
66315         * modules/tempname (License): Change to LGPL.
66316
66317 2006-11-14  Eric Blake  <ebb9@byu.net>
66318
66319         * doc/functions.texi (Function Portability): *printf functions on
66320         Cygwin now understand all POSIX size specifiers.
66321
66322 2006-11-14  Bruno Haible  <bruno@clisp.org>
66323
66324         * modules/c-ctype (License): Change to LGPL.
66325
66326 2006-11-12  Bruno Haible  <bruno@clisp.org>
66327
66328         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66329         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
66330         for GNOME libraries, for which the include files are installed in
66331         subdirectories of $prefix/include.
66332
66333 2006-11-12  Bruno Haible  <bruno@clisp.org>
66334
66335         * m4/lib-link.m4: Require at least autoconf-2.54.
66336         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
66337         name to underscores for the --with option.
66338
66339 2006-11-13  Bruno Haible  <bruno@clisp.org>
66340
66341         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
66342         the tests directory.
66343         Reported by Ralf Wildenhues.
66344
66345 2006-11-13  Bruno Haible  <bruno@clisp.org>
66346
66347         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
66348         (func_emit_initmacro_end): Undo the override here.
66349         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
66350         Works around the famous automake error in coreutils.
66351
66352 2006-11-13  Eric Blake  <ebb9@byu.net>
66353
66354         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
66355         element, not its node.
66356
66357 2006-11-12  Bruno Haible  <bruno@clisp.org>
66358
66359         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66360         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66361
66362 2006-11-12  Bruno Haible  <bruno@clisp.org>
66363
66364         * gnulib-tool: New option --local-symlink.
66365         (func_usage): Document it.
66366         (lsymbolic): New variable.
66367         (func_import, func_create_testdir): If --symlink was not specified,
66368         test whether --local-symlink was specified and the file comes from
66369         the local_gnulib_dir.
66370
66371 2006-11-12  Bruno Haible  <bruno@clisp.org>
66372
66373         * gnulib-tool (func_ln): New function.
66374         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66375
66376 2006-11-12  Bruno Haible  <bruno@clisp.org>
66377
66378         Finish support for source files in subdirectories.
66379         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
66380         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66381         AUTOMAKE_OPTIONS.
66382         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66383
66384 2006-11-12  Bruno Haible  <bruno@clisp.org>
66385
66386         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66387         EXTRA_lib_SOURCES augmentation.
66388         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66389
66390 2006-11-12  Jim Meyering  <jim@meyering.net>
66391
66392         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
66393         file descriptors.  This also averts a failure on systems with
66394         native openat support when a traversed directory lacks "x" access.
66395         * lib/fts_.h: Include "i-ring.h"
66396         (struct FTS) [fts_fd_ring]: New member.
66397         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
66398         (FCHDIR): Add parentheses.
66399         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
66400         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
66401         When descending, rather than simply closing the previous
66402         fts_cwd_fd value, push that file descriptor onto the ring.
66403         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
66404         (fts_open): Initialize the new fd_ring member.
66405         (fts_close): Clear the ring.
66406         (fts_safe_changedir): When possible, use our new fd_ring to skip
66407         the diropen and fstat and dev/ino comparison that would normally
66408         accompany a virtual `chdir ("..")'.
66409
66410         * modules/fts (Depends-on): Add i-ring.
66411         * modules/i-ring: New module.
66412         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
66413         * m4/i-ring.m4: New file.
66414
66415 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66416
66417         * gnulib-tool (func_create_testdir): Fix replacement of
66418         `build-aux' in configure.ac.  Run autotools in gltests
66419         subdirectory.
66420         (func_create_testdir, func_create_megatestdir, test): There is
66421         no need for '--force' in most autotool invocations in a new
66422         tree.  Actually fail the whole test if any of the tools, or the
66423         configure or make stages fail.
66424
66425         Sync from Automake.
66426         * build-aux/gnupload: Revert last change.  Add pointer to upload
66427         instructions of the GNU Maintenance Instructions.
66428         Suggestion by Karl Berry.
66429
66430 2006-11-10  Jim Meyering  <jim@meyering.net>
66431
66432         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
66433
66434 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66435
66436         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
66437         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
66438         (bind_textdomain_codeset) [! ENABLE_NLS]:
66439         Evaluate all the arguments.  That way, callers get compatible behavior
66440         if the arguments have side effects.  Also, it avoids some GCC
66441         diagnostics in some cases; Joel E. Denny reported problems when Bison
66442         was configured with --enable-gcc-warnigs.
66443
66444 2006-11-10  Jim Meyering  <jim@meyering.net>
66445
66446         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
66447         relevant options in CFLAGS (like -O, -fno-inline) are taken into
66448         account.
66449
66450 2006-11-10  Jim Meyering  <jim@meyering.net>
66451
66452         * modules/inline: New file/module.
66453         * modules/xalloc (Files): Remove m4/inline.m4.
66454         (Depends-on): Add inline, instead.
66455         * modules/oset: Likewise.
66456         * modules/list: Likewise.
66457
66458 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66459
66460         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
66461         Problem reported by Matthew Woehlke.
66462
66463 2006-11-09  Bruno Haible  <bruno@clisp.org>
66464
66465         * lib/tempname.c (gen_tempname): Remove variant that invokes
66466         __gen_tempname.
66467         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
66468         __gen_tempname.
66469
66470 2006-11-08  Bruno Haible  <bruno@clisp.org>
66471
66472         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66473         to 'yes' instead of 'cross-compiling'.
66474
66475 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66476
66477         * lib/quotearg.h (quotearg_free): New decl.
66478         * lib/quotearg.c (quotearg_free): New function.
66479         (slot0, nslots, slotvec0, slotvec):
66480         Now file-scope so that quotearg_free can get at them.
66481
66482 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66483
66484         Sync from Automake.
66485         * build-aux/gnupload: Add missing 'gnu' to example URL.
66486         Report by Karl Berry.
66487
66488 2006-11-08  Bruno Haible  <bruno@clisp.org>
66489
66490         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66491         Suggested by Paul Eggert.
66492
66493 2006-11-08  Jim Meyering  <jim@meyering.net>
66494
66495         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66496         It's already included if !_LIBC.
66497         (fts_safe_changedir): Add a comment.
66498
66499 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66500
66501         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66502         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66503         Matthew Woehlke.
66504
66505         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66506         definitions up, to avoid colliding with change below.
66507         (static_inline) [HAVE_INLINE]: New macro.
66508         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66509         Provide extern decls when !HAVE_INLINE.  Do not define unless
66510         static_inline is defined, either by us or by xmalloc.c.  Use
66511         static_inline rather than static inline.
66512         (XCALLOC): Optimize sizeof(T) = 1 case.
66513         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66514
66515 2006-11-07  Bruno Haible  <bruno@clisp.org>
66516
66517         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66518         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66519         AC_C_INLINE.
66520         * modules/xalloc (Files): Add m4/inline.m4.
66521
66522 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66523
66524         * README: Fix typo.
66525         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66526         (Miscellanous Notes): ...from this.
66527
66528 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66529
66530         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66531         Mention that offsetof should be used instead of sizeof.
66532         From Bruno Haible.
66533
66534 2006-11-07  Bruno Haible  <bruno@clisp.org>
66535
66536         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66537
66538 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66539
66540         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66541         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66542         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66543         (gl_tree_add_before, gl_tree_add_after):
66544         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66545         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66546         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66547         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66548         (gl_linked_add_after, gl_linked_add_at): Likewise.
66549         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66550         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66551         (gl_tree_add_before, gl_tree_add_after): Likewise.
66552         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66553         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66554         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66555
66556 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66557
66558         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66559
66560 2006-11-06  Bruno Haible  <bruno@clisp.org>
66561
66562         * m4/inline.m4: New file.
66563         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66564         * modules/list (Files): Add m4/inline.m4.
66565         * modules/oset (Files): Likewise.
66566
66567 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66568
66569         * lib/idcache.c: Include <stddef.h>, for offsetof.
66570         (struct userid.name): Change from char * to a flexible array member.
66571         All uses changed.
66572         * modules/idcache (Depends-on): Add flexmember.
66573
66574         * MODULES.html.sh (Core language properties): New module flexmember.
66575         * modules/flexmember, m4/flexmember.m4: New files.
66576
66577         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66578         inline functions that are identical with the old xnmalloc_inline,
66579         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66580         that we can avoid some unnecessary integer multiplications and
66581         divisions in the common case where the element size is known at
66582         compile time.
66583         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66584         needed.
66585         (xnboundedmalloc): Remove.
66586         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66587         arguments, for consistency with rest of this header.
66588         (xcharalloc): Rewrite using XNMALLOC.
66589         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66590         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66591         versions have been moved to lib/xalloc.h and renamed to be the
66592         non-*_inline versions.
66593         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66594         and xnrealloc functions, since those functions are now inline and
66595         now call us.
66596         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66597         renaming described above.
66598         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66599         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66600         captures the dependency in AC_C_INLINE.
66601
66602         New module canonicalize-lgpl, proposed by Charles Wilson in
66603         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66604         with a few small changes afterwards.
66605         * MODULES.html.sh (File system functions): New module
66606         canonicalize-lgpl.
66607         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66608         and canonicalize_file_name.
66609         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66610         * modules/canonicalize-lgpl: New files.
66611
66612 2006-11-05  Bruno Haible  <bruno@clisp.org>
66613
66614         * gnulib-tool (func_import, func_create_testdir): Create directories
66615         also for files in subdirectories of lib/.
66616
66617 2006-11-05  Bruno Haible  <bruno@clisp.org>
66618
66619         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66620         ANSI C compliant.
66621
66622 2006-11-03  Bruno Haible  <bruno@clisp.org>
66623
66624         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66625         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66626         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66627         (xnboundedmalloc): New inline function.
66628         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66629         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66630         xmalloc.
66631         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66632         xmalloc.
66633         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66634         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66635         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66636         xmalloc.
66637         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66638         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66639         xmalloc.
66640         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66641         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66642         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66643         xmalloc.
66644         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66645         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66646         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66647         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66648         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66649         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66650         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66651
66652 2006-11-03  Bruno Haible  <bruno@clisp.org>
66653
66654         * lib/c-ctype.h [C++]: Define functions without name mangling.
66655         * lib/fwriteerror.h [C++]: Likewise.
66656         * lib/gcd.h [C++]: Likewise.
66657         * lib/linebreak.h [C++]: Likewise.
66658
66659 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66660
66661         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66662         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66663         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66664         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66665         Check for functions and headers just once.
66666         Check for declaration of canonicalize_file_name.
66667         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66668
66669 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66670
66671         * gnulib-tool (func_import): Fix typo in actioncmd.
66672
66673 2006-11-02  Bruno Haible  <bruno@clisp.org>
66674
66675         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66676         newline sequence in the Makefile.am snippet as a space, like "make"
66677         does.
66678         Reported by Roger Persson <perrog@gmail.com>.
66679
66680 2006-11-01  Bruno Haible  <bruno@clisp.org>
66681
66682         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66683         already declared in <string.h>.
66684         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66685
66686 2006-11-01  Bruno Haible  <bruno@clisp.org>
66687
66688         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66689         * lib/strcase.h: Include <string.h>.
66690         (strcasecmp): Define to rpl_strcasecmp here.
66691
66692 2006-11-01  Bruno Haible  <bruno@clisp.org>
66693
66694         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66695
66696 2006-11-01  Eric Blake  <ebb9@byu.net>
66697
66698         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66699
66700         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66701
66702 2006-10-29  Bruno Haible  <bruno@clisp.org>
66703
66704         Make it compile in C++ mode.
66705         * lib/full-write.c (full_rw): Add a cast.
66706
66707 2006-11-01  Bruno Haible  <bruno@clisp.org>
66708
66709         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66710         be POSIX compliant.
66711         Reported by Roger Persson <perrog@gmail.com>.
66712
66713 2006-11-01  Eric Blake  <ebb9@byu.net>
66714
66715         * lib/getopt_.h: Fix comments.
66716
66717 2006-10-31  Eric Blake  <ebb9@byu.net>
66718
66719         * modules/tmpdir (Depends-on): Add sys_stat.
66720         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66721         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66722         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66723         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66724         tempname.
66725
66726 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66727
66728         Avoid some C++ diagnostics reported by Bruno Haible.
66729         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66730         xmalloc.
66731         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66732         (struct slotvec): Move to top level.
66733         (quotearg_n_options): Rewrite to avoid xmalloc.
66734         * lib/xalloc.h (xcharalloc): New function.
66735         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66736         [defined __cplusplus]: Add function template that provides result
66737         type propagation.  This part of the change is from Bruno Haible.
66738
66739 2006-10-29  Bruno Haible  <bruno@clisp.org>
66740
66741         Make it compile in C++ mode.
66742         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66743         * lib/strnlen1.c (strnlen1): Cast memchr result.
66744         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66745         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66746         (create_temp_dir): Rename local variable 'template'.
66747         (compile_csharp_using_sscli): Add cast.
66748         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66749         * lib/findprog.c (find_in_path): Likewise.
66750         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66751         * lib/wait-process.c (register_slave_subprocess): Likewise.
66752
66753 2006-10-22  Bruno Haible  <bruno@clisp.org>
66754
66755         * modules/tsearch: New file.
66756         * lib/tsearch.h: New file.
66757         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66758         * m4/tsearch.m4: New file.
66759         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66760
66761 2006-10-29  Eric Blake  <ebb9@byu.net>
66762
66763         * lib/arcfour.c: Assume config.h.
66764         * lib/arctwo.c: Likewise.
66765         * lib/base64.c: Likewise.
66766         * lib/check-version.c: Likewise.
66767         * lib/crc.c: Likewise.
66768         * lib/des.c: Likewise.
66769         * lib/gc-gnulib.c: Likewise.
66770         * lib/gc-libgcrypt.c: Likewise.
66771         * lib/gc-pbkdf2-sha1.c: Likewise.
66772         * lib/getaddrinfo.c: Likewise.
66773         * lib/getdelim.c: Likewise.
66774         * lib/getline.c: Likewise.
66775         * lib/hmac-md5.c: Likewise.
66776         * lib/hmac-sha1.c: Likewise.
66777         * lib/iconvme.c: Likewise.
66778         * lib/md2.c: Likewise.
66779         * lib/md4.c: Likewise.
66780         * lib/memxor.c: Likewise.
66781         * lib/read-file.c: Likewise.
66782         * lib/readline.c: Likewise.
66783         * lib/rijndael-alg-fst.c: Likewise.
66784         * lib/rijndael-api-fst.c: Likewise.
66785         * lib/xgetdomainname.c: Likewise.
66786
66787 2006-10-28  Eric Blake  <ebb9@byu.net>
66788
66789         * lib/xstrndup.c: Assume config.h.
66790
66791 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66792
66793         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66794         stat-macros.h is now for our own macros, whereas stat_h is for
66795         macros in the <sys/stat.h> name space.
66796         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66797         (STAT_MACROS_H): Remove.
66798         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66799         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66800         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66801         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66802         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66803         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66804         Move these macros to ...
66805         * lib/stat_.h: here.  Don't include stat-macros.h.
66806         * lib/canonicalize.c: Don't include stat-macros.h.
66807         * lib/chown.c: Likewise.
66808         * lib/euidaccess.c: Likewise.
66809         * lib/file-type.c: Likewise.
66810         * lib/filemode.c: Likewise.
66811         * lib/glob.c: Likewise.
66812         * lib/isapipe.c: Likewise.
66813         * lib/lchown.c: Likewise.
66814         * lib/lstat.c: Likewise.
66815         * lib/mkdir-p.c: Likewise.
66816         * lib/rmdir.c: Likewise.
66817         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66818         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66819         unless mkdir isn't declared, to speed up 'configure'.
66820         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66821         would define all the S_* symbols.
66822         * modules/canonicalize (Depends-on):
66823         Depend on sys_stat, not stat-macros.
66824         * modules/chown: Likewise.
66825         * modules/euidaccess: Likewise.
66826         * modules/filemode: Likewise.
66827         * modules/file-type: Likewise.
66828         * modules/glob: Likewise.
66829         * modules/isapipe: Likewise.
66830         * modules/lchown: Likewise.
66831         * modules/lstat: Likewise.
66832         * modules/mkancesdirs: Likewise.
66833         * modules/rmdir: Likewise.
66834         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66835         * modules/modechange: Likewise.
66836         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66837         (configure.ac): Remove gl_STAT_MACROS.
66838         * modules/sys_stat (Depends-on): Remove stat-macros.
66839
66840 2006-10-27  Bruno Haible  <bruno@clisp.org>
66841
66842         * m4/signed.m4: Remove file.
66843         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66844         invocation.
66845         * modules/vasnprintf (Files): Remove m4/signed.m4.
66846
66847 2006-10-27  Bruno Haible  <bruno@clisp.org>
66848
66849         Update to GNU gettext 0.16.
66850         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66851         m4/inttypes-h.m4, m4/signed.m4.
66852         * m4/gettext.m4: Update to GNU gettext 0.16.
66853         * m4/intl.m4: New file, from GNU gettext.
66854         * m4/intldir.m4: New file, from GNU gettext.
66855         * config/srclist.txt: Update
66856
66857 2006-10-27  Eric Blake  <ebb9@byu.net>
66858
66859         * MODULES.html.sh: Document tempname.
66860         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66861         dependencies.
66862         (Files): Move lib/tempname.c...
66863         * modules/tempname: ...to this new module.
66864         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66865         (gl_PREREQ_TEMPNAME): Move...
66866         * m4/tempname.m4: ...to this new file.
66867         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66868         * modules/sys_stat (Depends-on): Add stat-macros.
66869         * lib/stat_.h (includes): Pick up stat macros.
66870         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66871         if stat macros are broken.
66872         * lib/tempname.c (includes): No need to include "stat-macros.h".
66873         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66874         (direxists, __path_search) [!_LIBC]: Don't compile these in
66875         gnulib; the tmpdir module covers that.
66876         * lib/tempname.h: New file.
66877
66878 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66879
66880         * COPYING: Explain how gnulib-tool converts licence headers.
66881         Almost all wording by Eric Blake.
66882
66883 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66884
66885         * lib/mbchar.h (is_basic_table): Make read-only.
66886         * lib/mbchar.c (is_basic_table): Likewise.
66887         Reported by John Darrington.
66888
66889 2006-10-25  Bruno Haible  <bruno@clisp.org>
66890
66891         * lib/progname.h (set_program_name): Undefine before defining.
66892
66893 2006-10-25  Bruno Haible  <bruno@clisp.org>
66894
66895         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66896         false for non-gcc C++ compilers.
66897         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66898
66899 2006-10-24  Bruno Haible  <bruno@clisp.org>
66900
66901         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66902         iconv implementations like Irix iconv.
66903
66904 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66905
66906         * modules/vararrays: New file.
66907         * m4/vararrays.m4: New file, taken from diffutils.
66908         * MODULES.html.sh: New module vararrays.
66909
66910 2006-10-24  Karl Berry  <karl@gnu.org>
66911
66912         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66913         Don't call GNU Unix.
66914
66915 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66916
66917         * users.txt: Add Libtool.
66918
66919         Sync from Libtool:
66920
66921         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66922
66923         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66924         to gnulib's policy of including config.h unconditionally.
66925
66926 2006-10-24  Bruno Haible  <bruno@clisp.org>
66927
66928         * modules/wcwidth (Files): Add m4/wint_t.m4.
66929         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66930         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66931
66932 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66933
66934         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66935         to pacify GCC with some -W flags enabled.  Problem reported by
66936         Bruno Haible.
66937
66938 2006-10-24  Jim Meyering  <jim@meyering.net>
66939
66940         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66941         Reported by Karl Berry.
66942
66943 2006-10-23  Bruno Haible  <bruno@clisp.org>
66944
66945         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66946
66947 2006-10-24  Bruno Haible  <bruno@clisp.org>
66948
66949         * lib/gl_list.h: Use C comment style, not C++ comment style.
66950
66951 2006-10-23  Eric Blake  <ebb9@byu.net>
66952
66953         * lib/getaddrinfo.c (includes): Add missing include.
66954
66955 2006-10-23  Bruno Haible  <bruno@clisp.org>
66956             Paul Eggert  <eggert@cs.ucla.edu>
66957
66958         Ability to rename obstack_free.
66959         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66960         obstack_free.
66961         (obstack_free): Invoke the __obstack_free macro.
66962         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66963
66964 2006-10-23  Bruno Haible  <bruno@clisp.org>
66965             Paul Eggert  <eggert@cs.ucla.edu>
66966
66967         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66968         __argc, __argv from the declaration. (They are defined as macros on
66969         mingw.)
66970
66971 2006-10-22  Bruno Haible  <bruno@clisp.org>
66972
66973         * doc/gnulib-intro.texi: New file.
66974         * doc/gnulib.texi: Include it.
66975
66976 2006-10-21  Bruno Haible  <bruno@clisp.org>
66977
66978         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66979         "Introduction", "Miscellanous Notes", "Particular Modules".
66980
66981 2006-10-21  Bruno Haible  <bruno@clisp.org>
66982
66983         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66984         Change mostlyclean-local rule to avoid sh syntax error from bash
66985         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66986
66987 2006-10-23  Jim Meyering  <jim@meyering.net>
66988
66989         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66990         in place of snprintf.
66991
66992         * modules/inttostr (Files): Add lib/uinttostr.c.
66993         * lib/uinttostr.c (inttostr): New file/function.
66994         * lib/inttostr.h (uinttostr): Declare.
66995         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66996         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66997         Add uinttostr.
66998         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66999
67000 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67001
67002         * lib/canonicalize.c (ELOOP): Define if not already defined.
67003         Problem reported by Bruno Haible in
67004         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
67005
67006 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67007
67008         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
67009         Problem reported by Perry Smith and Ville Laurikari.
67010
67011         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
67012         uses.
67013
67014 2006-10-19  Bruno Haible  <bruno@clisp.org>
67015
67016         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
67017         for mingw.
67018
67019 2006-10-19  Bruno Haible  <bruno@clisp.org>
67020
67021         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
67022         Needed for mingw.
67023
67024 2006-10-19  Bruno Haible  <bruno@clisp.org>
67025
67026         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
67027
67028 2006-10-19  Bruno Haible  <bruno@clisp.org>
67029
67030         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
67031         it.
67032
67033 2006-10-19  Bruno Haible  <bruno@clisp.org>
67034
67035         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
67036         invocation.
67037
67038 2006-10-19  Bruno Haible  <bruno@clisp.org>
67039
67040         * gnulib-tool (func_create_testdir): Don't include ftruncate and
67041         mountlist by default.
67042
67043 2006-10-16  Bruno Haible  <bruno@clisp.org>
67044
67045         * lib/c-strstr.c: Include c-strstr.h.
67046
67047 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67048
67049         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
67050         in a slash.
67051
67052 2006-10-18  Bruno Haible  <bruno@clisp.org>
67053
67054         * lib/lock.h [C++]: Wrap definitions in extern "C".
67055
67056 2006-10-18  Bruno Haible  <bruno@clisp.org>
67057
67058         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
67059         gl_LIBOBJS list.
67060
67061 2006-10-18  Bruno Haible  <bruno@clisp.org>
67062
67063         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
67064
67065 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
67066
67067         * lib/xstrtol.h: Include gettext.h.
67068         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
67069         Problem reported by Eric Blake.
67070         * modules/xstrtol (Depends-on): Add gettext-h.
67071
67072 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
67073
67074         * lib/strftime.c (advance): New macro.
67075         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
67076         incomplete type, so you can't add 0 to it.  Problem and patch
67077         reported by Eelco Dolstra for dietlibc.
67078
67079 2006-10-18  Jim Meyering  <jim@meyering.net>
67080
67081         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
67082         type for a local, and rename it: s/up/user_proc/.
67083
67084 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
67085
67086         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
67087         READ_UTMP_USER_PROCESS.
67088         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
67089
67090 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67091
67092         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
67093         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
67094
67095 2006-10-17  Eric Blake  <ebb9@byu.net>
67096
67097         * lib/sigprocmask.c (sigprocmask): Fix typo.
67098
67099         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
67100
67101         * modules/clean-temp (Makefile.am): Don't add to make output...
67102         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
67103         config.h.
67104
67105 2006-10-17  Bruno Haible  <bruno@clisp.org>
67106
67107         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
67108         differently if DEFAULT_TEXT_DOMAIN is set.
67109
67110 2006-10-16  Bruno Haible  <bruno@clisp.org>
67111
67112         * lib/clean-temp.c: Include fwriteerror.h.
67113
67114 2006-10-16  Bruno Haible  <bruno@clisp.org>
67115
67116         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
67117
67118 2006-10-16  Bruno Haible  <bruno@clisp.org>
67119
67120         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
67121         * lib/sigprocmask.h: Include <sys/types.h>.
67122         (sigset_t): Use the system's definition if present.
67123
67124 2006-10-17  Eric Blake  <ebb9@byu.net>
67125
67126         * lib/xvasprintf.c (includes): Assume config.h.
67127         * lib/xasprintf.c (includes): Likewise.
67128
67129 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
67130
67131         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
67132         at least as wide as intmax_t.
67133
67134 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
67135
67136         (Imported from Automake.)
67137         * build-aux/gnupload: Update to version 1.1 of directive file.
67138
67139 2006-10-16  Eric Blake  <ebb9@byu.net>
67140
67141         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
67142         match Automake 1.10a.
67143
67144 2006-10-14  Bruno Haible  <bruno@clisp.org>
67145
67146         * modules/sigprocmask: New file.
67147         * lib/sigprocmask.h: New file.
67148         * lib/sigprocmask.c: New file.
67149         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
67150         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
67151         request sigprocmask.o.
67152         (gl_PREREQ_SIGPROCMASK): New macro.
67153         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
67154         (Depends-on): Add sigprocmask.
67155         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
67156         gt_SIGNALBLOCKING. Test for 'raise' only once.
67157         * lib/fatal-signal.c: Include sigprocmask.h.
67158         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
67159         unblock_fatal_signals): Define always.
67160         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67161         sigprocmask.
67162
67163 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67164
67165         Sync from Automake.
67166         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
67167         which incorrectly sets the mode of an existing destination
67168         directory.  In some cases the unpatched install-sh could do the
67169         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
67170         system.  We hope this is rare in practice, but it's clearly worth
67171         fixing.  Problem reported by Alex Unleashed in
67172         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
67173         Also, don't bother to check for -m bugs unless we're using -m;
67174         suggested by Stepan Kasal.
67175
67176 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67177
67178         Sync from Automake.
67179         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
67180         `-c' flag, so they appear at the same position as in %FASTDEP%
67181         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
67182         which ignores unknown options only after the first non-option.
67183         Bug report against M4 by Nelson H. F. Beebe.
67184
67185 2006-10-13  Jim Meyering  <jim@meyering.net>
67186
67187         Fix a bug in yesterday's change.
67188         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
67189         p->fts_statp->st_dev would be used uninitialized.
67190         Ensures that we always call fts_stat on the very first entry.
67191         Miklos Szeredi reported that find -xdev stopped working.
67192
67193 2006-10-12  Bruno Haible  <bruno@clisp.org>
67194
67195         * gnulib-tool (func_get_automake_snippet): Append an automatically
67196         computed EXTRA_DIST augmentation.
67197         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
67198         * modules/alloca-opt (Makefile.am): Likewise.
67199         * modules/allocsa (Makefile.am): Likewise.
67200         * modules/arcfour (Makefile.am): Likewise.
67201         * modules/arctwo (Makefile.am): Likewise.
67202         * modules/argmatch (Makefile.am): Likewise.
67203         * modules/argz (Makefile.am): Likewise.
67204         * modules/atexit (Makefile.am): Likewise.
67205         * modules/backupfile (Makefile.am): Likewise.
67206         * modules/byteswap (Makefile.am): Likewise.
67207         * modules/c-strtod (Makefile.am): Likewise.
67208         * modules/c-strtold (Makefile.am): Likewise.
67209         * modules/calloc (Makefile.am): Likewise.
67210         * modules/canon-host (Makefile.am): Likewise.
67211         * modules/canonicalize (Makefile.am): Likewise.
67212         * modules/chdir-long (Makefile.am): Likewise.
67213         * modules/chdir-safer (Makefile.am): Likewise.
67214         * modules/check-version (Makefile.am): Likewise.
67215         * modules/chown (Makefile.am): Likewise.
67216         * modules/cloexec (Makefile.am): Likewise.
67217         * modules/close-stream (Makefile.am): Likewise.
67218         * modules/closeout (Makefile.am): Likewise.
67219         * modules/crc (Makefile.am): Likewise.
67220         * modules/csharpexec (Makefile.am): Likewise.
67221         * modules/cycle-check (Makefile.am): Likewise.
67222         * modules/des (Makefile.am): Likewise.
67223         * modules/dev-ino (Makefile.am): Likewise.
67224         * modules/dirfd (Makefile.am): Likewise.
67225         * modules/dirname (Makefile.am): Likewise.
67226         * modules/dup2 (Makefile.am): Likewise.
67227         * modules/eealloc (Makefile.am): Likewise.
67228         * modules/error (Makefile.am): Likewise.
67229         * modules/euidaccess (Makefile.am): Likewise.
67230         * modules/exclude (Makefile.am): Likewise.
67231         * modules/exitfail (Makefile.am): Likewise.
67232         * modules/fcntl-safer (Makefile.am): Likewise.
67233         * modules/fcntl (Makefile.am): Likewise.
67234         * modules/file-type (Makefile.am): Likewise.
67235         * modules/fileblocks (Makefile.am): Likewise.
67236         * modules/filemode (Makefile.am): Likewise.
67237         * modules/filenamecat (Makefile.am): Likewise.
67238         * modules/fnmatch (Makefile.am): Likewise.
67239         * modules/fopen-safer (Makefile.am): Likewise.
67240         * modules/fpending (Makefile.am): Likewise.
67241         * modules/fprintftime (Makefile.am): Likewise.
67242         * modules/free (Makefile.am): Likewise.
67243         * modules/fsusage (Makefile.am): Likewise.
67244         * modules/ftruncate (Makefile.am): Likewise.
67245         * modules/fts (Makefile.am): Likewise.
67246         * modules/gc-arcfour (Makefile.am): Likewise.
67247         * modules/gc-des (Makefile.am): Likewise.
67248         * modules/gc-hmac-md5 (Makefile.am): Likewise.
67249         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
67250         * modules/gc-md4 (Makefile.am): Likewise.
67251         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67252         * modules/gc-sha1 (Makefile.am): Likewise.
67253         * modules/gc (Makefile.am): Likewise.
67254         * modules/getaddrinfo (Makefile.am): Likewise.
67255         * modules/getcwd (Makefile.am): Likewise.
67256         * modules/getdelim (Makefile.am): Likewise.
67257         * modules/getdomainname (Makefile.am): Likewise.
67258         * modules/getgroups (Makefile.am): Likewise.
67259         * modules/gethostname (Makefile.am): Likewise.
67260         * modules/gethrxtime (Makefile.am): Likewise.
67261         * modules/getline (Makefile.am): Likewise.
67262         * modules/getloadavg (Makefile.am): Likewise.
67263         * modules/getlogin_r (Makefile.am): Likewise.
67264         * modules/getndelim2 (Makefile.am): Likewise.
67265         * modules/getopt (Makefile.am): Likewise.
67266         * modules/getpagesize (Makefile.am): Likewise.
67267         * modules/getpass-gnu (Makefile.am): Likewise.
67268         * modules/getpass (Makefile.am): Likewise.
67269         * modules/getsubopt (Makefile.am): Likewise.
67270         * modules/gettime (Makefile.am): Likewise.
67271         * modules/gettimeofday (Makefile.am): Likewise.
67272         * modules/getugroups (Makefile.am): Likewise.
67273         * modules/getusershell (Makefile.am): Likewise.
67274         * modules/glob (Makefile.am): Likewise.
67275         * modules/group-member (Makefile.am): Likewise.
67276         * modules/hard-locale (Makefile.am): Likewise.
67277         * modules/hash (Makefile.am): Likewise.
67278         * modules/hmac-md5 (Makefile.am): Likewise.
67279         * modules/hmac-sha1 (Makefile.am): Likewise.
67280         * modules/human (Makefile.am): Likewise.
67281         * modules/idcache (Makefile.am): Likewise.
67282         * modules/imaxabs (Makefile.am): Likewise.
67283         * modules/imaxdiv (Makefile.am): Likewise.
67284         * modules/inet_ntop (Makefile.am): Likewise.
67285         * modules/inet_pton (Makefile.am): Likewise.
67286         * modules/intprops (Makefile.am): Likewise.
67287         * modules/inttostr (Makefile.am): Likewise.
67288         * modules/inttypes (Makefile.am): Likewise.
67289         * modules/isapipe (Makefile.am): Likewise.
67290         * modules/javaversion (Makefile.am): Likewise.
67291         * modules/lchmod (Makefile.am): Likewise.
67292         * modules/lchown (Makefile.am): Likewise.
67293         * modules/localcharset (Makefile.am): Likewise.
67294         * modules/long-options (Makefile.am): Likewise.
67295         * modules/lstat (Makefile.am): Likewise.
67296         * modules/malloc (Makefile.am): Likewise.
67297         * modules/mathl (Makefile.am): Likewise.
67298         * modules/mbchar (Makefile.am): Likewise.
67299         * modules/md2 (Makefile.am): Likewise.
67300         * modules/md4 (Makefile.am): Likewise.
67301         * modules/md5 (Makefile.am): Likewise.
67302         * modules/memcasecmp (Makefile.am): Likewise.
67303         * modules/memchr (Makefile.am): Likewise.
67304         * modules/memcmp (Makefile.am): Likewise.
67305         * modules/memcoll (Makefile.am): Likewise.
67306         * modules/memcpy (Makefile.am): Likewise.
67307         * modules/memmem (Makefile.am): Likewise.
67308         * modules/memmove (Makefile.am): Likewise.
67309         * modules/mempcpy (Makefile.am): Likewise.
67310         * modules/memrchr (Makefile.am): Likewise.
67311         * modules/memset (Makefile.am): Likewise.
67312         * modules/memxor (Makefile.am): Likewise.
67313         * modules/mkancesdirs (Makefile.am): Likewise.
67314         * modules/mkdir-p (Makefile.am): Likewise.
67315         * modules/mkdir (Makefile.am): Likewise.
67316         * modules/mkdtemp (Makefile.am): Likewise.
67317         * modules/mkstemp (Makefile.am): Likewise.
67318         * modules/mktime (Makefile.am): Likewise.
67319         * modules/modechange (Makefile.am): Likewise.
67320         * modules/mountlist (Makefile.am): Likewise.
67321         * modules/nanosleep (Makefile.am): Likewise.
67322         * modules/obstack (Makefile.am): Likewise.
67323         * modules/openat (Makefile.am): Likewise.
67324         * modules/pagealign_alloc (Makefile.am): Likewise.
67325         * modules/pathmax (Makefile.am): Likewise.
67326         * modules/physmem (Makefile.am): Likewise.
67327         * modules/poll (Makefile.am): Likewise.
67328         * modules/posixtm (Makefile.am): Likewise.
67329         * modules/posixver (Makefile.am): Likewise.
67330         * modules/putenv (Makefile.am): Likewise.
67331         * modules/quote (Makefile.am): Likewise.
67332         * modules/quotearg (Makefile.am): Likewise.
67333         * modules/raise (Makefile.am): Likewise.
67334         * modules/read-file (Makefile.am): Likewise.
67335         * modules/readline (Makefile.am): Likewise.
67336         * modules/readlink (Makefile.am): Likewise.
67337         * modules/readtokens (Makefile.am): Likewise.
67338         * modules/readutmp (Makefile.am): Likewise.
67339         * modules/realloc (Makefile.am): Likewise.
67340         * modules/regex (Makefile.am): Likewise.
67341         * modules/rename-dest-slash (Makefile.am): Likewise.
67342         * modules/rename (Makefile.am): Likewise.
67343         * modules/rijndael (Makefile.am): Likewise.
67344         * modules/rmdir (Makefile.am): Likewise.
67345         * modules/rpmatch (Makefile.am): Likewise.
67346         * modules/safe-read (Makefile.am): Likewise.
67347         * modules/safe-write (Makefile.am): Likewise.
67348         * modules/same-inode (Makefile.am): Likewise.
67349         * modules/same (Makefile.am): Likewise.
67350         * modules/save-cwd (Makefile.am): Likewise.
67351         * modules/savedir (Makefile.am): Likewise.
67352         * modules/setenv (Makefile.am): Likewise.
67353         * modules/settime (Makefile.am): Likewise.
67354         * modules/sha1 (Makefile.am): Likewise.
67355         * modules/sig2str (Makefile.am): Likewise.
67356         * modules/snprintf (Makefile.am): Likewise.
67357         * modules/stat-macros (Makefile.am): Likewise.
67358         * modules/stat-time (Makefile.am): Likewise.
67359         * modules/stdbool (Makefile.am): Likewise.
67360         * modules/stdint (Makefile.am): Likewise.
67361         * modules/stdlib-safer (Makefile.am): Likewise.
67362         * modules/stpcpy (Makefile.am): Likewise.
67363         * modules/stpncpy (Makefile.am): Likewise.
67364         * modules/strcase (Makefile.am): Likewise.
67365         * modules/strcasestr (Makefile.am): Likewise.
67366         * modules/strchrnul (Makefile.am): Likewise.
67367         * modules/strcspn (Makefile.am): Likewise.
67368         * modules/strdup (Makefile.am): Likewise.
67369         * modules/strerror (Makefile.am): Likewise.
67370         * modules/strftime (Makefile.am): Likewise.
67371         * modules/strndup (Makefile.am): Likewise.
67372         * modules/strnlen (Makefile.am): Likewise.
67373         * modules/strpbrk (Makefile.am): Likewise.
67374         * modules/strsep (Makefile.am): Likewise.
67375         * modules/strstr (Makefile.am): Likewise.
67376         * modules/strtod (Makefile.am): Likewise.
67377         * modules/strtoimax (Makefile.am): Likewise.
67378         * modules/strtok_r (Makefile.am): Likewise.
67379         * modules/strtol (Makefile.am): Likewise.
67380         * modules/strtoll (Makefile.am): Likewise.
67381         * modules/strtoul (Makefile.am): Likewise.
67382         * modules/strtoull (Makefile.am): Likewise.
67383         * modules/strtoumax (Makefile.am): Likewise.
67384         * modules/strverscmp (Makefile.am): Likewise.
67385         * modules/sys_socket (Makefile.am): Likewise.
67386         * modules/sys_stat (Makefile.am): Likewise.
67387         * modules/sysexits (Makefile.am): Likewise.
67388         * modules/time_r (Makefile.am): Likewise.
67389         * modules/timegm (Makefile.am): Likewise.
67390         * modules/timespec (Makefile.am): Likewise.
67391         * modules/tmpfile-safer (Makefile.am): Likewise.
67392         * modules/trim (Makefile.am): Likewise.
67393         * modules/unistd-safer (Makefile.am): Likewise.
67394         * modules/unlinkdir (Makefile.am): Likewise.
67395         * modules/unlocked-io (Makefile.am): Likewise.
67396         * modules/userspec (Makefile.am): Likewise.
67397         * modules/utime (Makefile.am): Likewise.
67398         * modules/utimecmp (Makefile.am): Likewise.
67399         * modules/utimens (Makefile.am): Likewise.
67400         * modules/vasnprintf (Makefile.am): Likewise.
67401         * modules/vasprintf (Makefile.am): Likewise.
67402         * modules/vsnprintf (Makefile.am): Likewise.
67403         * modules/xalloc (Makefile.am): Likewise.
67404         * modules/xgetcwd (Makefile.am): Likewise.
67405         * modules/xnanosleep (Makefile.am): Likewise.
67406         * modules/xreadlink (Makefile.am): Likewise.
67407         * modules/xstrtod (Makefile.am): Likewise.
67408         * modules/xstrtol (Makefile.am): Likewise.
67409         * modules/xstrtold (Makefile.am): Likewise.
67410         * modules/yesno (Makefile.am): Likewise.
67411         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
67412
67413 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67414
67415         * modules/error (Makefile.am): Distribute files through
67416         EXTRA_DIST, not lib_SOURCES.
67417
67418 2006-10-12  Eric Blake  <ebb9@byu.net>
67419
67420         * modules/error (Makefile.am): Distribute files in /lib.
67421         * modules/obstack (Makefile.am): Likewise.
67422
67423 2006-10-12  Bruno Haible  <bruno@clisp.org>
67424
67425         * modules/acl (Makefile.am): Distribute all files in lib/ through
67426         EXTRA_DIST.
67427         * modules/arcfour (Makefile.am): Likewise.
67428         * modules/arctwo (Makefile.am): Likewise.
67429         * modules/argmatch (Makefile.am): Likewise.
67430         * modules/argz (Makefile.am): Likewise.
67431         * modules/atexit (Makefile.am): Likewise.
67432         * modules/backupfile (Makefile.am): Likewise.
67433         * modules/c-strtod (Makefile.am): Likewise.
67434         * modules/c-strtold (Makefile.am): Likewise.
67435         * modules/calloc (Makefile.am): Likewise.
67436         * modules/canon-host (Makefile.am): Likewise.
67437         * modules/canonicalize (Makefile.am): Likewise.
67438         * modules/chdir-long (Makefile.am): Likewise.
67439         * modules/chdir-safer (Makefile.am): Likewise.
67440         * modules/check-version (Makefile.am): Likewise.
67441         * modules/chown (Makefile.am): Likewise.
67442         * modules/cloexec (Makefile.am): Likewise.
67443         * modules/close-stream (Makefile.am): Likewise.
67444         * modules/closeout (Makefile.am): Likewise.
67445         * modules/crc (Makefile.am): Likewise.
67446         * modules/cycle-check (Makefile.am): Likewise.
67447         * modules/des (Makefile.am): Likewise.
67448         * modules/dirfd (Makefile.am): Likewise.
67449         * modules/dirname (Makefile.am): Likewise.
67450         * modules/dup2 (Makefile.am): Likewise.
67451         * modules/euidaccess (Makefile.am): Likewise.
67452         * modules/exclude (Makefile.am): Likewise.
67453         * modules/exitfail (Makefile.am): Likewise.
67454         * modules/fcntl-safer (Makefile.am): Likewise.
67455         * modules/file-type (Makefile.am): Likewise.
67456         * modules/fileblocks (Makefile.am): Likewise.
67457         * modules/filemode (Makefile.am): Likewise.
67458         * modules/filenamecat (Makefile.am): Likewise.
67459         * modules/fnmatch (Makefile.am): Likewise.
67460         * modules/fopen-safer (Makefile.am): Likewise.
67461         * modules/fpending (Makefile.am): Likewise.
67462         * modules/fprintftime (Makefile.am): Likewise.
67463         * modules/free (Makefile.am): Likewise.
67464         * modules/fsusage (Makefile.am): Likewise.
67465         * modules/ftruncate (Makefile.am): Likewise.
67466         * modules/fts (Makefile.am): Likewise.
67467         * modules/gc (Makefile.am): Likewise.
67468         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67469         * modules/getaddrinfo (Makefile.am): Likewise.
67470         * modules/getcwd (Makefile.am): Likewise.
67471         * modules/getdelim (Makefile.am): Likewise.
67472         * modules/getdomainname (Makefile.am): Likewise.
67473         * modules/getgroups (Makefile.am): Likewise.
67474         * modules/gethostname (Makefile.am): Likewise.
67475         * modules/gethrxtime (Makefile.am): Likewise.
67476         * modules/getline (Makefile.am): Likewise.
67477         * modules/getloadavg (Makefile.am): Likewise.
67478         * modules/getlogin_r (Makefile.am): Likewise.
67479         * modules/getopt (Makefile.am): Likewise.
67480         * modules/getpass (Makefile.am): Likewise.
67481         * modules/getpass-gnu (Makefile.am): Likewise.
67482         * modules/getsubopt (Makefile.am): Likewise.
67483         * modules/gettime (Makefile.am): Likewise.
67484         * modules/gettimeofday (Makefile.am): Likewise.
67485         * modules/getugroups (Makefile.am): Likewise.
67486         * modules/getusershell (Makefile.am): Likewise.
67487         * modules/glob (Makefile.am): Likewise.
67488         * modules/group-member (Makefile.am): Likewise.
67489         * modules/hard-locale (Makefile.am): Likewise.
67490         * modules/hash (Makefile.am): Likewise.
67491         * modules/hmac-md5 (Makefile.am): Likewise.
67492         * modules/hmac-sha1 (Makefile.am): Likewise.
67493         * modules/human (Makefile.am): Likewise.
67494         * modules/idcache (Makefile.am): Likewise.
67495         * modules/imaxabs (Makefile.am): Likewise.
67496         * modules/imaxdiv (Makefile.am): Likewise.
67497         * modules/inet_ntop (Makefile.am): Likewise.
67498         * modules/inet_pton (Makefile.am): Likewise.
67499         * modules/inttostr (Makefile.am): Likewise.
67500         * modules/isapipe (Makefile.am): Likewise.
67501         * modules/lchown (Makefile.am): Likewise.
67502         * modules/long-options (Makefile.am): Likewise.
67503         * modules/lstat (Makefile.am): Likewise.
67504         * modules/malloc (Makefile.am): Likewise.
67505         * modules/mathl (Makefile.am): Likewise.
67506         * modules/mbchar (Makefile.am): Likewise.
67507         * modules/md2 (Makefile.am): Likewise.
67508         * modules/md4 (Makefile.am): Likewise.
67509         * modules/md5 (Makefile.am): Likewise.
67510         * modules/memcasecmp (Makefile.am): Likewise.
67511         * modules/memchr (Makefile.am): Likewise.
67512         * modules/memcmp (Makefile.am): Likewise.
67513         * modules/memcoll (Makefile.am): Likewise.
67514         * modules/memcpy (Makefile.am): Likewise.
67515         * modules/memmem (Makefile.am): Likewise.
67516         * modules/memmove (Makefile.am): Likewise.
67517         * modules/mempcpy (Makefile.am): Likewise.
67518         * modules/memrchr (Makefile.am): Likewise.
67519         * modules/memset (Makefile.am): Likewise.
67520         * modules/memxor (Makefile.am): Likewise.
67521         * modules/mkancesdirs (Makefile.am): Likewise.
67522         * modules/mkdir (Makefile.am): Likewise.
67523         * modules/mkdir-p (Makefile.am): Likewise.
67524         * modules/mkdtemp (Makefile.am): Likewise.
67525         * modules/mkstemp (Makefile.am): Likewise.
67526         * modules/mktime (Makefile.am): Likewise.
67527         * modules/modechange (Makefile.am): Likewise.
67528         * modules/mountlist (Makefile.am): Likewise.
67529         * modules/nanosleep (Makefile.am): Likewise.
67530         * modules/openat (Makefile.am): Likewise.
67531         * modules/pagealign_alloc (Makefile.am): Likewise.
67532         * modules/physmem (Makefile.am): Likewise.
67533         * modules/poll (Makefile.am): Likewise.
67534         * modules/posixtm (Makefile.am): Likewise.
67535         * modules/posixver (Makefile.am): Likewise.
67536         * modules/putenv (Makefile.am): Likewise.
67537         * modules/quote (Makefile.am): Likewise.
67538         * modules/quotearg (Makefile.am): Likewise.
67539         * modules/raise (Makefile.am): Likewise.
67540         * modules/read-file (Makefile.am): Likewise.
67541         * modules/readline (Makefile.am): Likewise.
67542         * modules/readlink (Makefile.am): Likewise.
67543         * modules/readtokens (Makefile.am): Likewise.
67544         * modules/readutmp (Makefile.am): Likewise.
67545         * modules/realloc (Makefile.am): Likewise.
67546         * modules/regex (Makefile.am): Likewise.
67547         * modules/rename (Makefile.am): Likewise.
67548         * modules/rename-dest-slash (Makefile.am): Likewise.
67549         * modules/rijndael (Makefile.am): Likewise.
67550         * modules/rmdir (Makefile.am): Likewise.
67551         * modules/rpmatch (Makefile.am): Likewise.
67552         * modules/safe-read (Makefile.am): Likewise.
67553         * modules/safe-write (Makefile.am): Likewise.
67554         * modules/same (Makefile.am): Likewise.
67555         * modules/save-cwd (Makefile.am): Likewise.
67556         * modules/savedir (Makefile.am): Likewise.
67557         * modules/setenv (Makefile.am): Likewise.
67558         * modules/settime (Makefile.am): Likewise.
67559         * modules/sha1 (Makefile.am): Likewise.
67560         * modules/sig2str (Makefile.am): Likewise.
67561         * modules/snprintf (Makefile.am): Likewise.
67562         * modules/stdlib-safer (Makefile.am): Likewise.
67563         * modules/stpcpy (Makefile.am): Likewise.
67564         * modules/stpncpy (Makefile.am): Likewise.
67565         * modules/strcase (Makefile.am): Likewise.
67566         * modules/strcasestr (Makefile.am): Likewise.
67567         * modules/strchrnul (Makefile.am): Likewise.
67568         * modules/strcspn (Makefile.am): Likewise.
67569         * modules/strdup (Makefile.am): Likewise.
67570         * modules/strerror (Makefile.am): Likewise.
67571         * modules/strftime (Makefile.am): Likewise.
67572         * modules/strndup (Makefile.am): Likewise.
67573         * modules/strnlen (Makefile.am): Likewise.
67574         * modules/strpbrk (Makefile.am): Likewise.
67575         * modules/strsep (Makefile.am): Likewise.
67576         * modules/strstr (Makefile.am): Likewise.
67577         * modules/strtod (Makefile.am): Likewise.
67578         * modules/strtoimax (Makefile.am): Likewise.
67579         * modules/strtok_r (Makefile.am): Likewise.
67580         * modules/strtol (Makefile.am): Likewise.
67581         * modules/strtoll (Makefile.am): Likewise.
67582         * modules/strtoul (Makefile.am): Likewise.
67583         * modules/strtoull (Makefile.am): Likewise.
67584         * modules/strtoumax (Makefile.am): Likewise.
67585         * modules/strverscmp (Makefile.am): Likewise.
67586         * modules/time_r (Makefile.am): Likewise.
67587         * modules/timegm (Makefile.am): Likewise.
67588         * modules/tmpfile-safer (Makefile.am): Likewise.
67589         * modules/unistd-safer (Makefile.am): Likewise.
67590         * modules/unlinkdir (Makefile.am): Likewise.
67591         * modules/userspec (Makefile.am): Likewise.
67592         * modules/utime (Makefile.am): Likewise.
67593         * modules/utimecmp (Makefile.am): Likewise.
67594         * modules/utimens (Makefile.am): Likewise.
67595         * modules/vasnprintf (Makefile.am): Likewise.
67596         * modules/vasprintf (Makefile.am): Likewise.
67597         * modules/vsnprintf (Makefile.am): Likewise.
67598         * modules/xalloc (Makefile.am): Likewise.
67599         * modules/xgetcwd (Makefile.am): Likewise.
67600         * modules/xnanosleep (Makefile.am): Likewise.
67601         * modules/xreadlink (Makefile.am): Likewise.
67602         * modules/xstrtod (Makefile.am): Likewise.
67603         * modules/xstrtol (Makefile.am): Likewise.
67604         * modules/xstrtold (Makefile.am): Likewise.
67605         * modules/yesno (Makefile.am): Likewise.
67606
67607 2006-10-12  Jim Meyering  <jim@meyering.net>
67608
67609         * m4/getloadavg.m4: Revert the change below.
67610
67611         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67612         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67613         fail with a symlink, which is what coreutils' ./bootstrap now
67614         creates by default.
67615
67616 2006-10-12  Bruno Haible  <bruno@clisp.org>
67617
67618         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67619         mingw.
67620         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67621         MSVC and mingw explicitly.
67622
67623 2006-10-11  Simon Josefsson  <jas@extundo.com>
67624             Bruno Haible  <bruno@clisp.org>
67625
67626         Add support for multiple gnulib-tool invocations in the scope of a
67627         single configure.ac file.
67628         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67629         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67630         with the same contents as the _LIBADD variable.
67631         (func_emit_initmacro_start, func_emit_initmacro_end,
67632         func_emit_initmacro_done): New functions.
67633         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67634         gl_LIBOBJS and gl_LTLIBOBJS.
67635
67636 2006-10-11  Bruno Haible  <bruno@clisp.org>
67637
67638         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67639         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67640         autoreconf. Instead, invoke autopoint explicitly but move back the
67641         *.m4 files from gnulib.
67642
67643 2006-10-11  Bruno Haible  <bruno@clisp.org>
67644
67645         * gnulib-tool (func_usage): Make module names after --create-testdir
67646         optional.
67647         (func_create_testdir): If no module was specified, use nearly all
67648         modules.
67649
67650 2006-10-12  Jim Meyering  <jim@meyering.net>
67651
67652         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67653         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67654         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67655         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67656         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67657         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67658         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67659         (fts_set_stat_required): New function.
67660         (fts_open): Defer the calls to fts_stat, if possible or requested.
67661         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67662         into fts_stat itself.
67663         (fts_read): Perform any required (deferred) fts_stat call.
67664         (fts_build): Likewise, for the directory we're about to open and read.
67665         In the readdir loop, carefully decide whether each entry will require
67666         an eventual call to fts_stat, using dirent.d_type info if available.
67667         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67668         a command line argument into this function.  Update all callers.
67669         Map a return value of FTS_DOT to FTS_D for a command line argument.
67670         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67671         Thanks to Miklos Szeredi for his tenacity and for the initial
67672         bug report about "find" failing on a FUSE-based file system.
67673
67674         * lib/fts.c (fts_open): Use consistent indentation.
67675
67676 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67677
67678         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67679         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67680         reported by Jim Meyering.  All uses of cache variables renamed
67681         to match Autoconf's.
67682         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67683         the other one.
67684
67685         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67686         Fix misspelling in diagnostic.
67687
67688 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67689
67690         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67691         defined.  Problem reported by Matthew Woehlke.
67692
67693         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67694         Add support for Tandem NonStop R series.
67695         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67696         Use new macro.
67697
67698         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67699         (has_trailing_slash): Omit size arg; all callers changed.
67700         Omit 'inline', since it doesn't help performance and we'd
67701         need to configure it.
67702         Don't count //, ///, etc. as having a trailing slash.
67703         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67704         (rpl_rename_dest_slash): On failure, use rename's errno rather
67705         than (in some cases) an incorrect or junk errno.
67706         Simplify code by removing need to compute length; this does
67707         cause it to make two passes instead of one over the file name,
67708         but it's worth it.
67709
67710         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67711         change, since Autoconf's version may no longer be appropriate now
67712         that we are using CVS Autoconf's version.  Add support for Tandem.
67713
67714 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67715             Bruno Haible  <bruno@clisp.org>
67716
67717         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67718         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67719         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67720         gl_AC_TYPE_LONG_LONG.
67721
67722         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67723         instead of HAVE_LONG_LONG.
67724         * lib/printf-args.c (printf_fetchargs): Likewise.
67725         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67726         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67727         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67728         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67729         gl_AC_TYPE_LONG_LONG.
67730
67731 2006-10-11  Bruno Haible  <bruno@clisp.org>
67732
67733         * m4/longlong.m4: Add comments.
67734         * m4/ulonglong.m4: Likewise.
67735
67736 2006-10-10  Bruno Haible  <bruno@clisp.org>
67737
67738         Make it possible to #define stpcpy, strdup to aliases.
67739         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67740         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67741
67742 2006-10-10  Bruno Haible  <bruno@clisp.org>
67743
67744         Make it possible to #define gcd to an alias.
67745         * lib/gcd.c: Include config.h.
67746
67747 2006-10-10  Bruno Haible  <bruno@clisp.org>
67748
67749         Make it possible to #define c_isascii to an alias.
67750         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67751         defined. Undefine the macros before defining them, to avoid gcc
67752         warnings.
67753         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67754         define NO_C_CTYPE_MACROS early.
67755
67756 2006-10-10  Bruno Haible  <bruno@clisp.org>
67757
67758         Make it possible to #define set_program_name to an alias.
67759         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67760         ENABLE_RELOCATABLE early.
67761
67762 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67763
67764         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67765         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67766         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67767         More generally, don't assume that 64-bit signed int is available
67768         if unsigned int is, and vice versa.
67769         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67770         unsigned symbols, not on their signed counterparts.
67771         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67772         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67773         (UINT64_C, UINTMAX_C):
67774         Likewise.
67775         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67776         unsigned counterparts.
67777         (Have_long_long, Unsigned): New macros.
67778         (Int): Renamed from INT.
67779         (strtoimax): Use the new macros.
67780         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67781         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67782         * modules/inttypes (inttypes.h): Substitute
67783         HAVE_UNSIGNED_LONG_LONG_INT.
67784         * modules/stdint (stdint.h): Likewise.
67785         (Files): Add m4/ulonglong.m4.
67786
67787 2006-10-10  Bruno Haible  <bruno@clisp.org>
67788
67789         Fix a gcc -Wshadow warning.
67790         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67791         to 'bucket'.
67792         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67793         gl_linked_indexof_from_to): Likewise.
67794         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67795         Likewise.
67796         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67797         Likewise.
67798         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67799         Reported by Eric Blake.
67800
67801 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67802
67803         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67804         for NetBSD.  Problem reported by Bruno Haible.
67805
67806 2006-10-09  Jim Meyering  <jim@meyering.net>
67807
67808         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67809         Patch from Bruno Haible.
67810
67811 2006-10-09  Jim Meyering  <jim@meyering.net>
67812
67813         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67814         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67815         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67816
67817 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67818
67819         Don't include <config.h> twice; this doesn't work in some cases,
67820         e.g., when config.h has "#define intmax_t long long int" and
67821         we include <config.h>, <inttypes.h>, <config.h> in that order.
67822         Problem reported by Matthew Woehlke in:
67823         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67824         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67825         * lib/fts-cycle.c: Don't include config.h.
67826         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67827         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67828         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67829         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67830         inttypes.h.
67831         * lib/xstrtoumax.c: Likewise.
67832         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67833         __strtol and the like, so that this module is more like its siblings.
67834         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67835         Remove; no longer needed now that we assume gnulib inttypes.h.
67836
67837 2006-10-08  Bruno Haible  <bruno@clisp.org>
67838
67839         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67840         option.
67841
67842 2006-10-07  Jim Meyering  <jim@meyering.net>
67843
67844         * modules/inttypes (inttypes.h): Revert what seems to have been
67845         an inadvertent part of today's change: use "|", not "/" in the
67846         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67847
67848 2006-10-07  Bruno Haible  <bruno@clisp.org>
67849
67850         * modules/sublist: New file.
67851
67852 2006-10-07  Bruno Haible  <bruno@clisp.org>
67853
67854         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67855         * modules/argz (argz.h): Likewise.
67856         * modules/arpa_inet (arpa/inet.h): Likewise.
67857         * modules/byteswap (byteswap.h): Likewise.
67858         * modules/configmake (configmake.h): Likewise.
67859         * modules/fcntl (fcntl.h): Likewise.
67860         * modules/fnmatch (fnmatch.h): Likewise.
67861         * modules/getopt (getopt.h): Likewise.
67862         * modules/glob (glob.h): Likewise.
67863         * modules/inttypes (inttypes.h): Likewise.
67864         * modules/netinet_in (netinet/in.h): Likewise.
67865         * modules/poll (poll.h): Likewise.
67866         * modules/stdbool (stdbool.h): Likewise.
67867         * modules/stdint (stdint.h): Likewise.
67868         * modules/sys_select (sys/select.h): Likewise.
67869         * modules/sys_socket (sys/socket.h): Likewise.
67870         * modules/sys_stat (sys/stat.h): Likewise.
67871         * modules/sysexits (sysexits.h): Likewise.
67872         * modules/unistd (unistd.h): Likewise.
67873         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67874         Add a "DO NOT EDIT" comment to the generated file.
67875         (func_import): Likewise for gnulib-comp.m4.
67876
67877 2006-10-07  Bruno Haible  <bruno@clisp.org>
67878
67879         * lib/gl_sublist.h: New file.
67880         * lib/gl_sublist.c: New file.
67881
67882 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67883
67884         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67885         name (relative to the original working directory) and the file
67886         name component (relative to the temporary working directory).  All
67887         callers changed.
67888         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67889         * lib/mkdir-p.c (make_dir_parents): Likewise.
67890         * lib/mkdir-p.h (make_dir_parents): Likewise.
67891
67892 2006-10-06  Eric Blake  <ebb9@byu.net>
67893
67894         Define several macros for use by the clean-temp module.
67895         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67896         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67897         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67898
67899         * lib/clean-temp.h (close_stream_temp): New declaration.
67900         * lib/clean-temp.c (includes): Pull in headers according to what
67901         other modules are in use.
67902         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67903
67904 2006-10-06  Bruno Haible  <bruno@clisp.org>
67905
67906         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67907         instead of fopen, fwriteerror.
67908
67909 2006-10-06  Bruno Haible  <bruno@clisp.org>
67910
67911         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67912         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67913         int.
67914         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67915         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67916         Return an error indicator.
67917         Suggested by Eric Blake.
67918
67919 2006-10-06  Bruno Haible  <bruno@clisp.org>
67920
67921         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67922         Reported by Eric Blake.
67923
67924 2006-10-06  Bruno Haible  <bruno@clisp.org>
67925
67926         * modules/closeout (Description): Mention stderr too.
67927
67928 2006-10-06  Bruno Haible  <bruno@clisp.org>
67929         and Paul Eggert  <eggert@cs.ucla.edu>
67930
67931         * lib/closeout.c (close_stdout): Also close stderr.
67932         * lib/closeout.h: Update comment.
67933
67934 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67935
67936         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67937         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67938         * lib/dirchownmod.c: Include lchown.h.
67939         * lib/lchown.c: Don't include files that lchown.h now includes.
67940         Don't declare chown, since lchown.h now does that.
67941         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67942         (lchown): Define to rpl_chown if lchown is declared but
67943         does not exist.  Declare using a prototype if lchown is not
67944         declared.  Add a copyright notice.
67945         * lib/mkstemp.h: Include <unistd.h>.
67946         * lib/openat.c: Include lchown.h.
67947
67948         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67949         we now test for that separately.
67950         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67951         rather than O_NOFOLLOW, when testing whether it's possible to
67952         avoid a race condition reliably.
67953         * lib/savewd.c (savewd_chdir): Likewise.
67954
67955         Remove macros that are no longer needed now that stdint.h is
67956         reliable.
67957         * lib/fsusage.c (UINTMAX_MAX): Remove.
67958         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67959         * lib/utimecmp.c (SIZE_MAX): Remove.
67960
67961         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67962
67963         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67964         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67965         O_NOATIME works.
67966
67967 2006-10-05  Bruno Haible  <bruno@clisp.org>
67968
67969         * lib/gl_list.h (gl_sortedlist_search_from_to,
67970         gl_sortedlist_indexof_from_to): New declarations.
67971         (gl_list_implementation): New fields sortedlist_search_from_to,
67972         sortedlist_indexof_from_to.
67973         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67974         inline functions.
67975         * lib/gl_list.c (gl_sortedlist_search_from_to,
67976         gl_sortedlist_indexof_from_to): New functions.
67977         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67978         function.
67979         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67980         (gl_array_sortedlist_search_from_to): New function.
67981         (gl_array_list_implementation): Update.
67982         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67983         function.
67984         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67985         (gl_carray_sortedlist_search_from_to): New function.
67986         (gl_carray_list_implementation): Update.
67987         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67988         gl_linked_sortedlist_indexof_from_to): New functions.
67989         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67990         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67991         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67992         gl_tree_sortedlist_indexof_from_to): New functions.
67993         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67994         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67995         Update.
67996         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67997         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67998         Update.
67999
68000 2006-10-05  Bruno Haible  <bruno@clisp.org>
68001
68002         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
68003         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
68004         (struct gl_list_implementation): Add fields search_from_to,
68005         indexof_from_to. Remove fields search, indexof.
68006         (gl_list_search): Use the search_from_to method.
68007         (gl_list_search_from, gl_list_search_from_to): New functions.
68008         (gl_list_indexof): Use the indexof_from_to method.
68009         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68010         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
68011         (gl_list_search_from, gl_list_search_from_to): New functions.
68012         (gl_list_indexof): Use the indexof_from_to method.
68013         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68014         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
68015         gl_array_indexof. Add start_index, end_index arguments.
68016         (gl_array_search_from_to): Renamed from gl_array_search. Add
68017         start_index, end_index arguments.
68018         (gl_array_remove, gl_array_list_implementation): Update.
68019         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
68020         gl_carray_indexof. Add start_index, end_index arguments.
68021         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
68022         start_index, end_index arguments.
68023         (gl_carray_remove, gl_carray_list_implementation): Update.
68024         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
68025         gl_linked_search. Add start_index, end_index arguments.
68026         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
68027         start_index, end_index arguments.
68028         (gl_linked_remove): Update.
68029         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68030         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68031         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
68032         field to 'size_t'.
68033         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
68034         gl_tree_search. Add start_index, end_index arguments.
68035         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68036         start_index, end_index arguments.
68037         (gl_tree_remove): Update.
68038         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68039         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68040         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
68041         function.
68042         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
68043         gl_tree_search. Add start_index, end_index arguments.
68044         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68045         start_index, end_index arguments.
68046         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68047         Update.
68048         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
68049
68050 2006-10-05  Bruno Haible  <bruno@clisp.org>
68051
68052         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
68053
68054         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
68055         fwriteerror_temp): New declarations.
68056         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
68057         (descriptors): New variable.
68058         (cleanup): First, close the descriptors.
68059         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
68060         fclose_temp, fwriteerror_temp): New functions.
68061
68062 2006-10-04  Jim Meyering  <jim@meyering.net>
68063
68064         * lib/fts.c (fts_open): Tiny comment change.
68065
68066 2006-10-04  Bruno Haible  <bruno@clisp.org>
68067
68068         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
68069         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
68070         gl_LOCK_BODY.
68071         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
68072         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
68073         gl_LOCK_EARLY_BODY.
68074         (gl_LOCK): Require gl_LOCK_BODY.
68075
68076 2006-10-04  Bruno Haible  <bruno@clisp.org>
68077
68078         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
68079         (gl_oset_search_atleast): New declaration.
68080         (struct gl_oset_implementation): Add field 'search_atleast'.
68081         (gl_oset_search_atleast): New inline function.
68082         * lib/gl_oset.c (gl_oset_search_atleast): New function.
68083         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
68084         (gl_array_oset_implementation): Update.
68085         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
68086         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
68087         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
68088
68089 2006-10-04  Bruno Haible  <bruno@clisp.org>
68090
68091         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
68092
68093 2006-10-03  Bruno Haible  <bruno@clisp.org>
68094
68095         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
68096         from gl_avltreehash_list_implementation.
68097
68098 2006-10-03  Bruno Haible  <bruno@clisp.org>
68099
68100         * lib/gl_oset.c (gl_oset_add): Fix return type.
68101
68102 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
68103
68104         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
68105
68106 2006-10-02  Eric Blake  <ebb9@byu.net>
68107
68108         * modules/strnlen (Depends-on): Add extensions.
68109
68110 2006-10-02  Eric Blake  <ebb9@byu.net>
68111
68112         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
68113         definition in 2.60+.
68114
68115 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
68116
68117         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
68118         checks.
68119
68120 2006-10-02  Bruno Haible  <bruno@clisp.org>
68121
68122         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
68123         to the AUTOMAKE_OPTIONS.
68124         Reported by Jim Meyering.
68125
68126 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68127
68128         Work around bug in Solaris 10 /proc file system:
68129         /proc/self/fd/NNN/.. isn't the parent directory of
68130         the directory whose file descriptor is NNN.  This needs to
68131         be worked around at run time, not compile time, since a
68132         program might be built on Solaris 8, where things work, and
68133         run on Solaris 10.
68134         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
68135         to use the following interface instead:
68136         (OPENAT_BUFFER_SIZE): New macro.
68137         (openat_proc_name): New function.
68138         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
68139         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
68140         Likewise.
68141         * lib/openat-proc.c: New file.
68142         * modules/openat (Files): Add lib/openat-proc.c.
68143         (Depends-on): Add same-inode, stdbool.
68144         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
68145
68146 2006-09-29  Bruno Haible  <bruno@clisp.org>
68147
68148         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
68149         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
68150         argument. Set stdout_closed before testing for ferror, not after.
68151         (fwriteerror, fwriteerror_no_ebadf): New functions.
68152
68153 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68154
68155         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
68156
68157 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
68158
68159         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
68160         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
68161
68162 2006-09-28  Jim Meyering  <jim@meyering.net>
68163
68164         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
68165         Include <unistd.h>.
68166
68167 2006-09-28  Bruno Haible  <bruno@clisp.org>
68168
68169         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
68170         * modules/linkedhash-list (Depends-on): Likewise.
68171         * modules/rbtreehash-list (Depends-on): Likewise.
68172
68173 2006-09-28  Bruno Haible  <bruno@clisp.org>
68174
68175         * lib/strndup.h: Simplify the redefinition of strndup.
68176         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
68177         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
68178
68179 2006-09-28  Bruno Haible  <bruno@clisp.org>
68180
68181         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
68182         * lib/gl_linkedhash_list.c: Likewise.
68183         * lib/gl_rbtreehash_list.c: Likewise.
68184
68185 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68186
68187         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
68188         getaddrinfo.
68189
68190         * lib/__fpending.h: Don't include <stdio_ext.h> unless
68191         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
68192         it causes <stdio_ext.h> to cause a compile-time error.
68193         Problem reported by Nelson H. F. Beebe.
68194         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
68195         of HAVE_DECL___PENDING.
68196
68197         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
68198         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
68199         declaration.
68200
68201 2006-09-27  Jim Meyering  <jim@meyering.net>
68202
68203         This file could end up with a definition for a function
68204         named __strndup, rather than rpl_strndup on a system with
68205         incomplete weak_alias support.
68206         * lib/strndup.c (strndup): Rename from __strndup.
68207         Remove #defines that used to map __strndup to strndup.
68208         Don't use K&R prototypes.
68209         Remove LIBC-related code, since this file is not sync'd with glibc.
68210         * lib/strndup.h: Revamp, accordingly.
68211         * m4/strndup.m4: Modernize.
68212
68213 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68214
68215         * modules/savewd (Depends-on): Add 'raise'.
68216         * lib/savewd.c: Include <signal.h>, for 'raise'.
68217
68218 2006-09-26  Jim Meyering  <jim@meyering.net>
68219
68220         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
68221         when we detect Darwin 8.7.0's acl_get_file bug.
68222         Rearrange to perform the new (below) run-test while $LIBS
68223         contains any acl-related library.  Set USE_ACL at the end.
68224         (gl_ACL_GET_FILE): New function.
68225
68226 2006-09-26  Eric Blake  <ebb9@byu.net>
68227
68228         * lib/verror.c: Include <config.h> unconditionally.
68229
68230 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
68231
68232         * modules/clock-time (Maintainer): Add self.
68233         * modules/getlogin_r (Depends-on): Add extensions.
68234
68235 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68236
68237         * modules/clock-time: New module.
68238         * modules/nanosleep (Depends-on): Add clock-time.
68239         * modules/gethrxtime (Depends-on): Likewise.
68240         * modules/gettime (Depends-on): Likewise.
68241         * modules/settime (Depends-on): Likewise.
68242
68243         * modules/fts-lgpl: Depend on openat.
68244         * modules/mkancesdirs: Depend on savewd.
68245         * modules/mkdir-p: Likewise.
68246
68247 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68248
68249         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
68250
68251         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
68252         `gl_have_arbitrary_file_name_length_limit' to
68253         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
68254         actually works between configure runs.
68255
68256 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68257             Bruno Haible  <bruno@clisp.org>
68258
68259         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
68260
68261 2006-09-25  Jim Meyering  <jim@meyering.net>
68262
68263         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
68264         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
68265
68266 2006-09-25  Eric Blake  <ebb9@byu.net>
68267
68268         * gnulib-tool (func_import, func_create_testdir): Fix typos in
68269         exec's in 2006-09-18 patch when shuffling fds.
68270
68271 2006-09-25  Bruno Haible  <bruno@clisp.org>
68272
68273         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
68274         Reported by Jim Meyering.
68275
68276 2006-09-24  Jim Meyering  <jim@meyering.net>
68277
68278         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
68279         compare a pointer against a literal "0".  That caused failures with
68280         at least HP-UX's hpcc.
68281
68282 2006-09-22  Simon Josefsson  <jas@extundo.com>
68283
68284         * modules/gc-sha1:
68285         * modules/gc-md4:
68286         * modules/gc-hmac-sha1:
68287         * modules/gc-hmac-md5:
68288         * modules/gc-des:
68289         * modules/gc-arcfour: Distribute more files.
68290
68291 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68292
68293         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
68294         (gl_linked_iterator_from_to): Initialize struct completely.
68295         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
68296         (gl_tree_iterator_from_to): Likewise
68297         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
68298         * lib/gl_array_list.c [lint] (gl_array_iterator)
68299         (gl_array_iterator_from_to): Likewise.
68300         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
68301         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
68302         (gl_carray_iterator_from_to): Likewise.
68303
68304         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
68305         * lib/md4.c (md4_process_block): Remove unused variable.
68306         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
68307         parentheses for clarity.
68308
68309 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68310
68311         * modules/bison-i18n (Depends-on): Add gettext.
68312
68313 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68314
68315         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
68316         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
68317         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
68318         also add missing comma that caused broken test.
68319         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
68320         stdlib.h, for `abort'.
68321         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
68322         variables.
68323         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
68324         include unistd.h if present, for `rmdir'.
68325         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
68326         variables.
68327         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
68328         in the process include standard headers for prototypes.
68329         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
68330         gets declared on GNU/Linux.
68331         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
68332         unistd.h, for `rmdir'.
68333         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
68334
68335         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
68336         always true.
68337         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
68338
68339         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
68340
68341 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68342
68343         * gnulib-tool (func_version): Create output all at once.  This
68344         may help avoid triggering unnecessary SIGPIPEs, and at any
68345         rate it doesn't hurt.
68346
68347 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68348             Bruno Haible  <bruno@clisp.org>
68349
68350         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
68351         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68352         * m4/signed.m4 (bh_C_SIGNED): Likewise.
68353
68354         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
68355         (gl_FUNC_VASPRINTF): Invoke it.
68356
68357 2006-09-22  Bruno Haible  <bruno@clisp.org>
68358
68359         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68360         getloadavg.c as first argument.
68361
68362 2006-09-22  Bruno Haible  <bruno@clisp.org>
68363
68364         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68365         at the beginning of the gl_INIT macro.
68366         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68367         gl_GETLOADAVG.
68368
68369 2006-09-22  Bruno Haible  <bruno@clisp.org>
68370
68371         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68372         module.
68373         Suggested by Ralf Wildenhues.
68374
68375 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68376
68377         Import this patch from libc:
68378
68379         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
68380
68381         * lib/regex_internal.c (re_string_reconstruct): Handle
68382         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68383         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68384         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68385         re_string_context_at.
68386
68387         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68388         now requires it.
68389         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68390         gl_REGEX now does it for us.
68391         (gl_REGEX): Add test taken from
68392         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
68393
68394         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
68395         Check that large offsets work.  Modernize Autoconf usages.
68396         Prefer "yes" to mean a good thing rather than a bad.
68397         Don't put "#define mkstemp" in config.h, as this might interfere
68398         with standard system headers that "#define mkstemp mkstemp64".
68399
68400         * modules/mkstemp (Depends-on): Add extensions, so that
68401         mkstemp is visible on some platforms.
68402         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
68403         (Include): Change to "mkstemp.h" from <stdlib.h>.
68404         (Files): Add mkstemp.h.
68405
68406         * lib/mkstemp.h: New file, since some standard headers
68407         #define mkstemp.
68408         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
68409         Include "mkstemp.h".
68410         Make the _LIBC code resemble glibc original more,
68411         e.g., use K&R style.
68412         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
68413         (mkstemp): Remove, since mkstemp.h does this for us.
68414         * lib/stdlib--.h: Include mkstemp.h.
68415
68416         Import this patch from libc:
68417
68418         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68419
68420         * lib/tempname.c (__gen_tempname): Change attempts_min
68421         into a macro.  Use preprocessor to decide how to initialize
68422         attempts [Coverity CID 67].
68423
68424 2006-09-20  Bruno Haible  <bruno@clisp.org>
68425
68426         * lib/mkdtemp.c: Import from libc.
68427         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68428                 * sysdeps/posix/tempname.c (__gen_tempname): Change
68429                 attempts_min into a macro.  Use preprocessor to decide how to
68430                 initialize attempts [Coverity CID 67].
68431         2001-11-27  Paul Eggert  <eggert@twinsun.com>
68432                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
68433                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
68434
68435 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68436
68437         * gnulib-tool (func_exit): New function, to allow to pass the
68438         exit status portably through the trap.  Use everywhere.
68439         (--help, --version): Signal a write error.
68440         (trap): catch SIGPIPE, for write errors.
68441         Exit at the end of the trap, with the correct exit status.
68442
68443 2006-09-19  Karl Berry  <karl@gnu.org>
68444
68445         * doc/gnulib.texi: note about the license texinfo files.
68446
68447 2006-09-19  Eric Blake  <ebb9@byu.net>
68448
68449         * gnulib-tool: Avoid space-tab.
68450
68451 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68452
68453         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
68454         that prevented coreutils 6.1 from building.  Problem reported
68455         by Petter Reinholdtsen.
68456
68457 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68458
68459         * gnulib-tool (avoidlist): Fix typo that broke options like
68460         --avoid=lock that are used by coreutils bootstrap.
68461
68462 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
68463
68464         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
68465         more systematically.
68466
68467 2006-09-18  Jim Meyering  <jim@meyering.net>
68468
68469         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
68470
68471 2006-09-18  Bruno Haible  <bruno@clisp.org>
68472
68473         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68474
68475 2006-09-18  Bruno Haible  <bruno@clisp.org>
68476
68477         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68478         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68479         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68480         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68481         * m4/gettext.m4: Require autoconf >= 2.52.
68482         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68483         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68484         of gl_cv_header_inttypes_h.
68485
68486 2006-09-18  Bruno Haible  <bruno@clisp.org>
68487
68488         * lib/javaversion.c: Include configmake.h.
68489
68490 2006-09-18  Bruno Haible  <bruno@clisp.org>
68491
68492         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68493         avoid that the while loops be executed in a subshell.
68494
68495 2006-09-18  Bruno Haible  <bruno@clisp.org>
68496
68497         * MODULES.html.sh (func_module): Break long lines.
68498         Suggested by Bruce Korb <bkorb@gnu.org>.
68499
68500 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68501
68502         Speed up by a factor of 1.12.
68503         * gnulib-tool (nl): New variable.
68504         (func_import): Rewrite include directive extraction to only read each
68505         directive once.
68506
68507 2006-09-17  Bruno Haible  <bruno@clisp.org>
68508
68509         * modules/javaversion (Makefile.am): Remove DEFS setting.
68510         (Depends-on): Add configmake, for PKGDATADIR definition.
68511
68512 2006-09-17  Bruno Haible  <bruno@clisp.org>
68513
68514         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68515
68516 2006-09-17  Bruno Haible  <bruno@clisp.org>
68517
68518         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68519         (func_modules_transitive_closure, func_modules_add_dummy,
68520         func_modules_to_filelist, func_import, func_create_testdir,
68521         func_create_megatestdir, ...): Use it wherever possible.
68522         Suggested by Ralf Wildenhues.
68523
68524 2006-09-16  Karl Berry  <karl@gnu.org>
68525
68526         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68527         to avoid sectioning errors.
68528         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68529         [ifinfo]: blank line after @center-ed titles.
68530         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68531         Spell FSF address consistently with others.
68532         (These changes approved by rms.)
68533
68534 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68535
68536         Speed up by a factor of 1.61.
68537         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68538         already checked module names again.
68539
68540 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68541
68542         Speed up by a factor of 1.13.
68543         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68544         for new_files, and the input to func_add_or_update.
68545
68546 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68547
68548         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68549         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68550
68551 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68552
68553         * modules/mkancesdirs (Depends-on): Add fcntl.
68554         * modules/savewd: New file.
68555         * MODULES.html.sh (File system functions): Add savewd.
68556
68557         * modules/configmake (Makefile.am): Add support for the
68558         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68559
68560 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68561
68562         * m4/savewd.m4: New file.
68563
68564 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68565
68566         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68567         (dirchownmod): New arg FD.  All callers changed.
68568         Use FD rather than opening the directory ourself, as opening is
68569         now the caller's responsibility.
68570         * lib/dirchownmod.h: Likewise.
68571         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68572         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68573         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68574         (test_dir): Remove.
68575         (mkancesdirs): Return length of prefix of FILE that has already
68576         been made, or -2 if there is a child doing the work.  Redo
68577         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68578         ".", and treat ".." specially since it might stray back into
68579         already-created areas.  Use a subprocess if necessary.  New arg
68580         WD; all users changed.  MAKE_DIR function should now return 1
68581         if it creates a directory that is not readable.  Return -2 if
68582         a child process is spun off.
68583         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68584         Adjust signature to match code.
68585         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68586         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68587         all users changed.
68588         * lib/savewd.c, lib/savewd.h: New files.
68589
68590 2006-09-15  Jim Meyering  <jim@meyering.net>
68591
68592         * modules/rename-dest-slash: New module.
68593         * MODULES.html.sh (posix_compat): Add it here.
68594
68595         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68596
68597 2006-09-15  Jim Meyering  <jim@meyering.net>
68598
68599         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68600         file.
68601
68602         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68603
68604 2006-09-15  Jim Meyering  <jim@meyering.net>
68605
68606         * lib/rename-dest-slash.c (has_trailing_slash): Use
68607         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68608         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68609         test before testing whether SRC is a directory.
68610         Suggestions from Bruno Haible.
68611
68612         Avoid a warning about an unused variable.
68613         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68614         into the #ifdef block where it's used.
68615
68616         * lib/rename-dest-slash.c: New file.
68617
68618 2006-09-14  Bruno Haible  <bruno@clisp.org>
68619
68620         * lib/allocsa.c: Include <config.h> unconditionally.
68621         * lib/asnprintf.c: Likewise.
68622         * lib/asprintf.c: Likewise.
68623         * lib/c-strcasecmp.c: Likewise.
68624         * lib/c-strcasestr.c: Likewise.
68625         * lib/c-strncasecmp.c: Likewise.
68626         * lib/c-strstr.c: Likewise.
68627         * lib/classpath.c: Likewise.
68628         * lib/clean-temp.c: Likewise.
68629         * lib/concatpath.c: Likewise.
68630         * lib/copy-file.c: Likewise.
68631         * lib/csharpcomp.c: Likewise.
68632         * lib/csharpexec.c: Likewise.
68633         * lib/execute.c: Likewise.
68634         * lib/fatal-signal.c: Likewise.
68635         * lib/findprog.c: Likewise.
68636         * lib/fwriteerror.c: Likewise.
68637         * lib/gl_array_list.c: Likewise.
68638         * lib/gl_array_oset.c: Likewise.
68639         * lib/gl_avltree_list.c: Likewise.
68640         * lib/gl_avltree_oset.c: Likewise.
68641         * lib/gl_avltreehash_list.c: Likewise.
68642         * lib/gl_carray_list.c: Likewise.
68643         * lib/gl_linked_list.c: Likewise.
68644         * lib/gl_linkedhash_list.c: Likewise.
68645         * lib/gl_list.c: Likewise.
68646         * lib/gl_oset.c: Likewise.
68647         * lib/gl_rbtree_list.c: Likewise.
68648         * lib/gl_rbtree_oset.c: Likewise.
68649         * lib/gl_rbtreehash_list.c: Likewise.
68650         * lib/imaxabs.c: Likewise.
68651         * lib/imaxdiv.c: Likewise.
68652         * lib/javacomp.c: Likewise.
68653         * lib/javaexec.c: Likewise.
68654         * lib/javaversion.c: Likewise.
68655         * lib/linebreak.c: Likewise.
68656         * lib/localcharset.c: Likewise.
68657         * lib/lock.c: Likewise.
68658         * lib/mbchar.c: Likewise.
68659         * lib/mbswidth.c: Likewise.
68660         * lib/mkdtemp.c: Likewise.
68661         * lib/pipe.c: Likewise.
68662         * lib/printf-args.c: Likewise.
68663         * lib/printf-parse.c: Likewise.
68664         * lib/progname.c: Likewise.
68665         * lib/progreloc.c: Likewise.
68666         * lib/readlink.c: Likewise.
68667         * lib/sh-quote.c: Likewise.
68668         * lib/stpcpy.c: Likewise.
68669         * lib/stpncpy.c: Likewise.
68670         * lib/strcasecmp.c: Likewise.
68671         * lib/strcasestr.c: Likewise.
68672         * lib/strcspn.c: Likewise.
68673         * lib/striconv.c: Likewise.
68674         * lib/strncasecmp.c: Likewise.
68675         * lib/strnlen1.c: Likewise.
68676         * lib/strstr.c: Likewise.
68677         * lib/strtok_r.c: Likewise.
68678         * lib/tls.c: Likewise.
68679         * lib/tmpdir.c: Likewise.
68680         * lib/unicodeio.c: Likewise.
68681         * lib/unsetenv.c: Likewise.
68682         * lib/vasnprintf.c: Likewise.
68683         * lib/vasprintf.c: Likewise.
68684         * lib/wait-process.c: Likewise.
68685         * lib/xallocsa.c: Likewise.
68686         * lib/xsetenv.c: Likewise.
68687         * lib/xstriconv.c: Likewise.
68688
68689 2006-09-13  Simon Josefsson  <jas@extundo.com>
68690
68691         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68692         that internally, suggested by Ralf Wildenhues
68693         <Ralf.Wildenhues@gmx.de>.
68694
68695 2006-09-13  Simon Josefsson  <jas@extundo.com>
68696
68697         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68698         @LIBOBJS@.
68699         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68700
68701 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68702
68703         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68704         longer worry about uses that don't define HAVE_CONFIG_H.
68705         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68706         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68707         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68708         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68709         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68710         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68711         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68712         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68713         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68714         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68715         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68716         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68717         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68718         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68719         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68720         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68721         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68722         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68723         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68724         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68725         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68726         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68727         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68728         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68729         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68730         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68731         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68732         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68733         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68734         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68735         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68736         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68737         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68738         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68739         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68740         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68741         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68742         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68743         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68744         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68745         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68746         Likewise.
68747
68748 2006-09-13  Eric Blake  <ebb9@byu.net>
68749
68750         * lib/getopt.c: Fix typo in last commit.
68751
68752 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68753
68754         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68755         dgettext.
68756
68757 2006-09-12  Jim Meyering  <jim@meyering.net>
68758
68759         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68760         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68761         Reported by Nelson H. F. Beebe.
68762
68763 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68764
68765         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68766         program_invocation_name and program_invocation_short_name are
68767         initialized.
68768         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68769         and program_invocation_short_name to argp.h, so they are visible
68770         to user programs.
68771         * lib/argp.h: Likewise
68772
68773 2006-09-10  Bruno Haible  <bruno@clisp.org>
68774
68775         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68776         m4/inttypes_h.m4, m4/uintmax_t.m4.
68777
68778 2006-09-10  Bruno Haible  <bruno@clisp.org>
68779
68780         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68781         gl_AC_TYPE_UINTMAX_T.
68782
68783 2006-09-10  Bruno Haible  <bruno@clisp.org>
68784
68785         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68786
68787 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68788
68789         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68790         convention.  Text proposed by Bruno Haible.
68791         (struct argp_option): Document the use of N_() wrappers.
68792
68793         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68794         '\v', and translate the two parts separately, instead of feeding
68795         the whole string to gettext.  This allows to exclude
68796         '\v' from the strings visible to the translator by writing doc
68797         strings as N_("..") "\v" N_("..").
68798
68799 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68800
68801         * config/srclist.txt: Undo latest change; the bug was fixed.
68802
68803 2006-09-09  Bruno Haible  <bruno@clisp.org>
68804
68805         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68806         assignments if building a library without libtool.
68807         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68808         in func_emit_lib_Makefile_am.
68809         (func_import): When building a static library libfoo.a, arrange to
68810         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68811         (func_create_testdir): Likewise.
68812         * modules/gc (configure.ac, Makefile.am): If building statically,
68813         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68814         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68815         * modules/striconv (configure.ac, Makefile.am): Likewise.
68816         Based on a suggestion by Ralf Wildenhues.
68817
68818 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68819
68820         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68821         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68822         Also:
68823
68824         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68825         Add year_2050_test to catch glibc bug 2821
68826         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68827
68828         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68829         Prefer #ifdef to #if.
68830
68831         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68832         Return from 'main' instead of calling 'exit'.
68833
68834 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68835
68836         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68837         returned the maximum time_t value rather than (time_t) -1.
68838         Problem originally reported by William Bardwell
68839         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68840
68841         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68842         Moved to here ...
68843         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68844         ... from here.
68845
68846 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68847
68848         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68849         2821 is fixed.
68850
68851 2006-09-08  Jim Meyering  <jim@meyering.net>
68852
68853         Don't make generated files read-only.  That would bother too many
68854         people.  However, do retain the ability to work when targets are
68855         read-only: remove the destination and temporary files before writing
68856         them (when generated via sed or echo), or by using the -f option for
68857         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68858         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68859         * modules/byteswap, modules/configmake, modules/fcntl:
68860         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68861         * modules/localcharset, modules/netinet_in, modules/poll:
68862         * modules/stdbool, modules/stdint, modules/sys_select:
68863         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68864
68865 2006-09-08  Jim Meyering  <jim@meyering.net>
68866
68867         Avoid new build failure on FreeBSD 6.0.
68868         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68869         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68870         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68871
68872 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68873
68874         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68875
68876 2006-09-07  Jim Meyering  <jim@meyering.net>
68877
68878         Fix global typo in last change: use chmod u-w, not chmod u-x.
68879         Spotted by Paul Eggert and Bruce Korb.
68880         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68881         * modules/byteswap, modules/configmake, modules/fcntl:
68882         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68883         * modules/localcharset, modules/netinet_in, modules/poll:
68884         * modules/stdbool, modules/stdint, modules/sys_select:
68885         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68886
68887 2006-09-06  Jim Meyering  <jim@meyering.net>
68888
68889         Make generated files be read-only.
68890         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68891         Ensure that each generated file is now read-only.
68892         * modules/argz: Likewise.
68893         * modules/arpa_inet: Likewise.
68894         * modules/byteswap: Likewise.
68895         * modules/configmake: Likewise.
68896         * modules/fcntl: Likewise.
68897         * modules/fnmatch: Likewise.
68898         * modules/getopt: Likewise.
68899         * modules/glob: Likewise.
68900         * modules/inttypes: Likewise.
68901         * modules/netinet_in: Likewise.
68902         * modules/poll: Likewise.
68903         * modules/stdbool: Likewise.
68904         * modules/stdint: Likewise.
68905         * modules/sys_select: Likewise.
68906         * modules/sys_socket: Likewise.
68907         * modules/sys_stat: Likewise.
68908         * modules/sysexits: Likewise.
68909         * modules/localcharset: Same as above, but continue using temporary
68910         file named "t-$@" (why different?) rather than the "$@-t" used
68911         everywhere else.
68912
68913         * modules/sysexits (Makefile.am): Replace literal occurrences
68914         of "sysexit.h" more readable, and more consistent, "$@".
68915
68916 2006-09-06  Bruno Haible  <bruno@clisp.org>
68917
68918         * modules/striconv: New file.
68919         * modules/xstriconv: New file.
68920         * MODULES.html.sh (Internationalization functions): Add striconv,
68921         xstriconv.
68922
68923 2006-09-06  Bruno Haible  <bruno@clisp.org>
68924
68925         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68926         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68927         not using libtool correctly.
68928
68929 2006-09-06  Bruno Haible  <bruno@clisp.org>
68930
68931         * lib/striconv.h: New file.
68932         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68933         iconvstring.c.
68934         * lib/xstriconv.h: New file.
68935         * lib/xstriconv.c: New file.
68936
68937 2006-09-06  Bruno Haible  <bruno@clisp.org>
68938
68939         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68940         lib_..._LDFLAGS.
68941
68942 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68943
68944         * lib/argz_.h: Sync from Libtool.
68945
68946         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68947                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68948
68949         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68950
68951 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68952
68953         * modules/trim: New file.
68954
68955 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68956
68957         * lib/trim.h: New file.
68958         * lib/trim.c: New file.
68959
68960 2006-09-05  Bruno Haible  <bruno@clisp.org>
68961
68962         * MODULES.html.sh (String handling): Add trim.
68963
68964 2006-09-04  Karl Berry  <karl@gnu.org>
68965
68966         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68967         until next release.
68968
68969 2006-09-03  Bruno Haible  <bruno@clisp.org>
68970
68971         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68972         correctly.
68973
68974 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68975
68976         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68977         not gl_GETLOADAVG.  Omit unneeded semicolons.
68978         Problems reported by Ralf Wildenhues in
68979         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68980         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68981         at the end, which is the usual gnulib style.
68982
68983         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68984         of doing all the work ourselves.
68985         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68986         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68987
68988 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68989
68990         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68991         Problem reported by Ralf Wildenhues in
68992         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68993
68994         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68995         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68996
68997 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68998
68999         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
69000         yesterday's patch by changing test -n to test -z.
69001
69002 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69003
69004         * modules/getloadavg (Files): Add m4/getloadavg.m4.
69005         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
69006         the former is now obsolescent.
69007
69008         * modules/chdir-long (Depends-on): Add fcntl.
69009
69010 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69011
69012         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
69013         obsolescent, and programs should use gnulib instead.
69014         * m4/getloadavg.m4: New file, with contents taken from Autoconf
69015         but with prefixes changed.
69016
69017 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69018
69019         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
69020         or stdbool.h, because they might not exist while configuring.
69021
69022         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
69023         Don't include unistd.h or limits.h; not needed, since chdir-long.h
69024         does that for us.
69025         (O_DIRECTORY): Remove.
69026
69027 2006-08-31  Eric Blake  <ebb9@byu.net>
69028
69029         * gnulib-tool: Don't let emacs change spaces to TAB.
69030
69031 2006-08-31  Bruno Haible  <bruno@clisp.org>
69032
69033         * gnulib-tool: When calling func_import more than once, do it in a
69034         subshell.
69035         Reported by Eric Blake <ebb9@byu.net>.
69036
69037 2006-08-31  Bruno Haible  <bruno@clisp.org>
69038
69039         * gnulib-tool (nl): Remove variable.
69040         (sed_transform_lib_file): Use more robust test for config-h module.
69041         (func_import): Fix typo in 2006-08-25 patch.
69042
69043 2006-08-31  Bruno Haible  <bruno@clisp.org>
69044
69045         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
69046         specified, augment Makefile.am variables instead of assigning them.
69047
69048 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69049
69050         Work around a bug in both the Linux and SunOS 64-bit kernels:
69051         nanosleep mishandles sleeps for longer than 2**31 seconds.
69052         Problem reported by Frank v Waveren in
69053         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69054         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
69055         Check for nanosleep bug.
69056         (LIB_NANOSLEEP): Append clock_gettime library if needed.
69057
69058 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69059
69060         Work around a bug in both the Linux and SunOS 64-bit kernels:
69061         nanosleep mishandles sleeps for longer than 2**31 seconds.
69062         Problem reported by Frank v Waveren in
69063         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69064         * lib/nanosleep.c (BILLION): New constant.
69065         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
69066         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
69067         implementation.
69068
69069 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69070
69071         * modules/nanosleep (Depends-on): Add gettime.
69072
69073 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69074         and Simon Josefsson  <jas@extundo.com>
69075         and Oskar Liljeblad  <oskar@osk.mine.nu>
69076
69077         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
69078         * gnulib-tool (func_import): New license type 'unmodifiable license
69079         text'.
69080         * modules/fdl: Use it.  Longer description.
69081         * module/gpl, module/lgpl: New files.
69082
69083 2006-08-30  Jim Meyering  <jim@meyering.net>
69084
69085         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
69086         shadowing the parameter.
69087
69088 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69089
69090         Sync from Libtool:
69091
69092         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69093
69094         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
69095         sharing with gnulib.  Report by Eric Blake.
69096
69097 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69098
69099         * modules/isapipe: New file.
69100         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
69101
69102 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69103
69104         * modules/configmake (Makefile.am): Add a comment, and omit
69105         the CONFIGMAKE_ prefix from generated macro names.  Suggested
69106         by Bruno Haible.
69107
69108 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69109
69110         * m4/isapipe.m4: New file.
69111
69112 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69113
69114         * lib/isapipe.c, lib/isapipe.h: New files.
69115
69116 2006-08-29  Jim Meyering  <jim@meyering.net>
69117
69118         * modules/configmake (Makefile.am): Make configmake.h depend on
69119         Makefile.  Otherwise, a stale configmake.h could hang around.
69120
69121 2006-08-29  Eric Blake  <ebb9@byu.net>
69122
69123         * lib/error.c (error_at_line, print_errno_message): Match libc, after
69124         resolution of upstream bug 3044.
69125
69126 2006-08-29  Bruno Haible  <bruno@clisp.org>
69127
69128         * modules/localcharset (Depends-on): Add configmake.
69129         (Makefile.am): Remove setting of LIBDIR through DEFS.
69130
69131 2006-08-29  Bruno Haible  <bruno@clisp.org>
69132
69133         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
69134         defined.
69135
69136 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69137
69138         * modules/fcntl: New file.
69139         * modules/chdir-safer (Depends-on): Add fcntl.
69140         * modules/fts: Likewise.
69141         * modules/mkdir-p: Likewise.
69142
69143         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
69144         This undoes the most recent change, since we're now addressing the
69145         problem in a different way.
69146
69147         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
69148         into output, since the output might be called Makefile.am even
69149         if $makefile_name is something different.
69150         (func_import): Use $makefile_am rather than
69151         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
69152         empty.
69153
69154         * modules/inttypes (Files): Add m4/inttypes-h.m4.
69155
69156 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69157
69158         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
69159         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
69160         recent change to stdint.m4, since we're now addressing the problem in a
69161         different way.
69162
69163 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69164
69165         * m4/fcntl_h.m4: New file.
69166
69167 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69168
69169         * lib/fcntl_.h: New file.
69170         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
69171         the fcntl module.
69172         * lib/dirchownmod.c: Likewise.
69173         * lib/fts.c: Likewise.
69174
69175         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
69176         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
69177         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
69178         just before including <inttypes.h>, to avoid circular inclusion.
69179
69180 2006-08-28  Jim Meyering  <jim@meyering.net>
69181
69182         * doc/visibility.texi: Actually read and correct the grammar of the
69183         sentence affected by yesterday's change.
69184
69185 2006-08-28  Eric Blake  <ebb9@byu.net>
69186
69187         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
69188         needs wrapper.
69189
69190 2006-08-28  Eric Blake  <ebb9@byu.net>
69191
69192         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
69193
69194 2006-08-28  Eric Blake  <ebb9@byu.net>
69195
69196         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
69197
69198 2006-08-28  Bruno Haible  <bruno@clisp.org>
69199
69200         * modules/c-strstr: New file, from GNU gettext.
69201         * MODULES.html.sh (String handling): Add c-strstr.
69202
69203 2006-08-28  Bruno Haible  <bruno@clisp.org>
69204
69205         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
69206         macros.
69207         Reported by Eric Blake.
69208
69209 2006-08-28  Bruno Haible  <bruno@clisp.org>
69210
69211         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
69212         (VASNPRINTF): Return a string of length > INT_MAX without failing.
69213         * lib/vasprintf.c: Include errno.h, limits.h.
69214         (EOVERFLOW): New fallback definition.
69215         (vasprintf): Test here whether the string length is > INT_MAX.
69216         * lib/vsnprintf.c: Include errno.h, limits.h.
69217         (EOVERFLOW): New fallback definition.
69218         (vsnprintf): Fix bug when generated string was too long for the buffer.
69219         Test here whether the string length is > INT_MAX.
69220
69221 2006-08-28  Bruno Haible  <bruno@clisp.org>
69222
69223         * lib/inttypes_.h (SCNX*): Remove definitions.
69224         Reported by Eric Blake.
69225
69226 2006-08-28  Bruno Haible  <bruno@clisp.org>
69227
69228         * lib/c-strstr.h: New file, from GNU gettext.
69229         * lib/c-strstr.c: New file, from GNU gettext.
69230
69231 2006-08-28  Bruno Haible  <bruno@clisp.org>
69232
69233         * gnulib-tool: Reorder some statements.
69234
69235 2006-08-28  Bruno Haible  <bruno@clisp.org>
69236
69237         * gnulib-tool: New option --makefile-name.
69238         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
69239         $makefile_name.
69240         (func_import): Write $makefile_name to the cache file, and read it from
69241         there unless explicitly specified. Use $makefile_name as file name
69242         instead of Makefile.am. Adjust the recommendations accordingly.
69243
69244 2006-08-28  Bruno Haible  <bruno@clisp.org>
69245
69246         * gnulib-tool (func_verify_module): Check against misapplying patch.
69247
69248 2006-08-28  Bruno Haible  <bruno@clisp.org>
69249
69250         * gnulib-tool (func_relativize, func_relconcat): New functions.
69251         Give an error if --local-dir is given with --update.
69252         Remove trailing slashes from $local_gnulib_dir.
69253         (func_import): Store the relativized $local_gnulib_dir in
69254         gnulib-cache.m4, and read it from there if not specified explicitly.
69255
69256 2006-08-28  Bruno Haible  <bruno@clisp.org>
69257
69258         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
69259         is the current directory. Respect also $local_gnulib_dir.
69260
69261 2006-08-28  Bruno Haible  <bruno@clisp.org>
69262             Simon Josefsson  <jas@extundo.com>
69263
69264         BeOS portability.
69265         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
69266
69267 2006-08-27  Jim Meyering  <jim@meyering.net>
69268
69269         * doc/visibility.texi: Remove duplicate word: "pointer".
69270
69271 2006-08-26  Bruno Haible  <bruno@clisp.org>
69272
69273         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
69274         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
69275         (Makefile.am): Create inttypes.h from inttypes_.h.
69276         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
69277
69278         * modules/imaxabs: New file.
69279
69280         * modules/imaxdiv: New file.
69281
69282 2006-08-26  Bruno Haible  <bruno@clisp.org>
69283
69284         * m4/inttypes.m4: New file.
69285         * m4/_inttypes_h.m4: Remove file.
69286         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
69287         PRI_MACROS_BROKEN.
69288         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
69289
69290         * m4/imaxabs.m4: New file.
69291
69292         * m4/imaxdiv.m4: New file.
69293
69294 2006-08-26  Bruno Haible  <bruno@clisp.org>
69295
69296         * lib/inttypes_.h: New file.
69297         * lib/inttypes.h: Remove file.
69298         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
69299
69300         * lib/imaxabs.c: New file.
69301
69302         * lib/imaxdiv.c: New file.
69303
69304 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69305
69306         New config-h module, so that "make" output needn't be cluttered
69307         by -DHAVE_CONFIG_H.
69308         * MODULES.html.sh (Support for building libraries and executables):
69309         Add config-h.
69310         * modules/config-h: New file.
69311         * gnulib-tool (nl, sed_transform_lib_file): New vars.
69312         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
69313         the config-h module is used.
69314
69315         New configmake module, so that "make" output needn't be cluttered
69316         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
69317         * MODULES.html.sh (Support for building libraries and executables):
69318         Add configmake.
69319         * modules/configmake: New file.
69320
69321 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69322
69323         * m4/config-h.m4: New file.
69324
69325 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69326
69327         * config/srclist.txt: Add elisp-comp.
69328
69329 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69330
69331         * MODULES.html.sh (Support for building libraries and executables):
69332         Add elisp-comp.
69333         * build-aux/elisp-comp: New file.
69334         * modules/elisp-comp: New file.
69335
69336 2006-08-24  Bruno Haible  <bruno@clisp.org>
69337
69338         * gnulib-tool (func_create_testdir): Use non-default values of
69339         sourcebase and m4base.
69340
69341 2006-08-24  Bruno Haible  <bruno@clisp.org>
69342
69343         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
69344         HTML structure.
69345
69346 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69347
69348         * modules/openat (Depends-on): Add lchown.
69349
69350 2006-08-23  Bruno Haible  <bruno@clisp.org>
69351
69352         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
69353         of gl_LOCK_EARLY instead of gl_LOCK.
69354
69355 2006-08-23  Bruno Haible  <bruno@clisp.org>
69356
69357         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69358         on OSF/1 to no.
69359         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69360
69361 2006-08-23  Bruno Haible  <bruno@clisp.org>
69362
69363         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69364         as unusable.
69365
69366         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69367         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69368         (gl_LOCK): New macro.
69369
69370 2006-08-22  Simon Josefsson  <jas@extundo.com>
69371
69372         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69373         to md5 module.
69374
69375 2006-08-22  Simon Josefsson  <jas@extundo.com>
69376
69377         * MODULES.html.sh: Add "Support for maintaining and release
69378         projects".
69379
69380         * build-aux/gnupload: New file, from coreutils.
69381
69382 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69383
69384         Avoid the need for AC_LIBSOURCES in m4 macros.
69385         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69386         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
69387         * modules/check-version (EXTRA_DIST): Add check-version.h.
69388         * modules/crc (EXTRA_DIST): Add crc.h.
69389         * modules/des (EXTRA_DIST): Add des.h.
69390         * modules/gc (EXTRA_DIST): Add gc.h.
69391         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
69392         * modules/getline (EXTRA_DIST): Add getline.h.
69393         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
69394         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
69395         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
69396         * modules/md2 (EXTRA_DIST): Add md2.h.
69397         * modules/md4 (EXTRA_DIST): Add md4.h.
69398         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
69399         * modules/read-file (EXTRA_DIST): Add read-file.h.
69400         * modules/readline (EXTRA_DIST): Add readline.h.
69401         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
69402         rijndael-api-fst.h.
69403
69404 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69405
69406         * m4/rijndael.m4 (gl_ARCFOUR):
69407         * m4/arctwo.m4 (gl_ARCTWO):
69408         * m4/check-version.m4 (gl_CHECK_VERSION):
69409         * m4/crc.m4 (gl_CRC):
69410         * m4/des.m4 (gl_DES):
69411         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
69412         * m4/gc.m4 (gl_GC):
69413         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
69414         * m4/getline.m4 (gl_FUNC_GETLINE):
69415         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
69416         * m4/hmac-md5.m4 (gl_HMAC_MD5):
69417         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
69418         * m4/md2.m4 (gl_MD2):
69419         * m4/md4.m4 (gl_MD4):
69420         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
69421         * m4/read-file.m4 (gl_FUNC_READ_FILE):
69422         * m4/readline.m4 (gl_FUNC_READLINE):
69423         * m4/rijndael.m4 (gl_RIJNDAEL):
69424         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69425         to get the necessary .h files and whatnot.
69426
69427 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69428
69429         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
69430         gnulib rather than the other way around.
69431         * config/srclistvars.sh (COREUTILS): Remove.
69432
69433 2006-08-22  Jim Meyering  <jim@meyering.net>
69434
69435         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
69436
69437         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
69438
69439 2006-08-22  Eric Blake  <ebb9@byu.net>
69440
69441         * modules/regexprops-generic: New file.
69442         * MODULES.html.sh (Support for building documentation): List it.
69443
69444 2006-08-22  Eric Blake  <ebb9@byu.net>
69445
69446         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
69447         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69448         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
69449         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
69450
69451 2006-08-22  Bruno Haible  <bruno@clisp.org>
69452
69453         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
69454         and lib_LTLIBRARIES like the other lib_* variables.
69455
69456 2006-08-22  Bruno Haible  <bruno@clisp.org>
69457
69458         * build-aux/x-to-1.in: New file, from GNU gettext.
69459
69460 2006-08-22  Bruno Haible  <bruno@clisp.org>
69461
69462         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
69463         <utmpx.h> exists.
69464
69465 2006-08-22  Bruno Haible  <bruno@clisp.org>
69466
69467         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
69468         <utmpx.h> exists.
69469
69470 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69471
69472         BeOS portability.
69473         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69474         exist.
69475         Problem reported by Bruno Haible.
69476
69477 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69478
69479         Avoid the need for AC_LIBSOURCES in m4 macros.
69480         * modules/acl (EXTRA_DIST): Add acl.h.
69481         * modules/argmatch (Files): Add m4/argmatch.m4.
69482         (configure.ac): Add gl_ARGMATCH.
69483         (EXTRA_DIST): Renamed from lib_SOURCES, for
69484         consistency with the other modules.  Remove argmatch.c.
69485         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69486         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69487         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69488         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69489         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69490         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69491         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69492         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69493         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69494         * modules/closeout (EXTRA_DIST): Add closeout.h.
69495         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69496         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69497         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69498         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69499         dirname.h; remove basename.c and stripslash.c.
69500         * modules/exclude (EXTRA_DIST): Add exclude.h.
69501         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69502         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69503         * modules/file-type (EXTRA_DIST): Add file-type.h.
69504         * modules/filemode (EXTRA_DIST): Add filemode.h.
69505         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69506         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69507         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69508         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69509         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69510         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69511         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69512         * modules/getdate (EXTRA_DIST): Add getdate.c.
69513         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69514         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69515         * modules/getpass (EXTRA_DIST): Add getpass.h.
69516         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69517         * modules/group-member (EXTRA_DIST): Add group-member.h.
69518         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69519         * modules/hash (EXTRA_DIST): Add hash.h.
69520         * modules/human (EXTRA_DIST): Add human.h.
69521         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69522         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69523         * modules/lchown (EXTRA_DIST): Add lchown.h.
69524         * modules/long-options (EXTRA_DIST): Add long-options.h.
69525         * modules/lstat (EXTRA_DIST): Add lstat.h.
69526         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69527         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69528         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69529         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69530         * modules/memxor (EXTRA_DIST): Add memxor.h.
69531         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69532         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69533         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69534         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69535         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69536         * modules/physmem (EXTRA_DIST): Add physmem.h.
69537         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69538         * modules/posixver (EXTRA_DIST): Add posixver.h.
69539         * modules/quote (EXTRA_DIST): Add quote.h.
69540         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69541         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69542         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69543         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69544         regex_internal.h regexec.c.
69545         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69546         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69547         * modules/same (EXTRA_DIST): Add same.h.
69548         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69549         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69550         * modules/savedir (EXTRA_DIST): Add savedir.h.
69551         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69552         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69553         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69554         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69555         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69556         * modules/strdup (EXTRA_DIST): Add strdup.h.
69557         * modules/strftime (EXTRA_DIST): Add strftime.h.
69558         * modules/strndup (EXTRA_DIST): Add strndup.h.
69559         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69560         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69561         * modules/time_r (EXTRA_DIST): Add time_r.h.
69562         * modules/timespec (EXTRA_DIST): Add timespec.h.
69563         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69564         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69565         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69566         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69567         * modules/userspec (EXTRA_DIST): Add userspec.h.
69568         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69569         * modules/utimens (EXTRA_DIST): Add utimens.h.
69570         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69571         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69572         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69573         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69574         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69575         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69576         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69577         * modules/yesno (EXTRA_DIST): Add yesno.h.
69578
69579 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69580
69581         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69582
69583         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69584         * m4/dev-ino.m4, same-inode.m4: Remove.
69585
69586         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69587         * m4/acl.m4 (AC_FUNC_ACL):
69588         * m4/backupfile.m4 (gl_BACKUPFILE):
69589         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69590         * m4/canon-host.m4 (gl_CANON_HOST):
69591         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69592         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69593         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69594         * m4/cloexec.m4 (gl_CLOEXEC):
69595         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69596         * m4/closeout.m4 (gl_CLOSEOUT):
69597         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69598         * m4/dirname.m4 (gl_DIRNAME):
69599         * m4/exclude.m4 (gl_EXCLUDE):
69600         * m4/exitfail.m4 (gl_EXITFAIL):
69601         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69602         * m4/file-type.m4 (gl_FILE_TYPE):
69603         * m4/filemode.m4 (gl_FILEMODE):
69604         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69605         * m4/fpending.m4 (gl_FUNC_FPENDING):
69606         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69607         * m4/fts.m4 (gl_FUNC_FTS):
69608         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69609         * m4/getdate.m4 (gl_GETDATE):
69610         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69611         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69612         * m4/getpass.m4 (gl_FUNC_GETPASS):
69613         * m4/gettime.m4 (gl_GETTIME):
69614         * m4/getugroups.m4 (gl_GETUGROUPS):
69615         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69616         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69617         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69618         * m4/hash.m4 (gl_HASH):
69619         * m4/idcache.m4 (gl_IDCACHE):
69620         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69621         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69622         * m4/long-options.m4 (gl_LONG_OPTIONS):
69623         * m4/lstat.m4 (gl_FUNC_LSTAT):
69624         * m4/md5.m4 (gl_MD5):
69625         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69626         * m4/memcoll.m4 (gl_MEMCOLL):
69627         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69628         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69629         * m4/memxor.m4 (gl_MEMXOR):
69630         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69631         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69632         * m4/modechange.m4 (gl_MODECHANGE):
69633         * m4/mountlist.m4 (gl_MOUNTLIST):
69634         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69635         * m4/openat.m4 (gl_FUNC_OPENAT):
69636         * m4/pathmax.m4 (gl_PATHMAX):
69637         * m4/physmem.m4 (gl_PHYSMEM):
69638         * m4/posixtm.m4 (gl_POSIXTM):
69639         * m4/posixver.m4 (gl_POSIXVER):
69640         * m4/quote.m4 (gl_QUOTE):
69641         * m4/quotearg.m4 (gl_QUOTEARG):
69642         * m4/readtokens.m4 (gl_READTOKENS):
69643         * m4/readutmp.m4 (gl_READUTMP):
69644         * m4/regex.m4 (gl_REGEX):
69645         * m4/safe-read.m4 (gl_SAFE_READ):
69646         * m4/safe-write.m4 (gl_SAFE_WRITE):
69647         * m4/same.m4 (gl_SAME):
69648         * m4/save-cwd.m4 (gl_SAVE_CWD):
69649         * m4/savedir.m4 (gl_SAVEDIR):
69650         * m4/settime.m4 (gl_SETTIME):
69651         * m4/sha1.m4 (gl_SHA1):
69652         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69653         * m4/stat-macros.m4 (gl_STAT_MACROS):
69654         * m4/stat-time.m4 (gl_STAT_TIME):
69655         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69656         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69657         * m4/strdup.m4 (gl_FUNC_STRDUP):
69658         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69659         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69660         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69661         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69662         * m4/time_r.m4 (gl_TIME_R):
69663         * m4/timespec.m4 (gl_TIMESPEC):
69664         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69665         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69666         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69667         * m4/userspec.m4 (gl_USERSPEC):
69668         * m4/utimecmp.m4 (gl_UTIMECMP):
69669         * m4/utimens.m4 (gl_UTIMENS):
69670         * m4/xalloc.m4 (gl_XALLOC):
69671         * m4/xgetcwd.m4 (gl_XGETCWD):
69672         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69673         * m4/xreadlink.m4 (gl_XREADLINK):
69674         * m4/xstrtod.m4 (gl_XSTRTOD):
69675         * m4/yesno.m4 (gl_YESNO):
69676         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69677         to get the necessary .h files and whatnot.
69678
69679 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69680             Bruno Haible  <bruno@clisp.org>
69681
69682         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69683         /bin/sh understanding of '!' conditional negation.
69684
69685 2006-08-21  Jim Meyering  <jim@meyering.net>
69686
69687         * modules/openat (Depends-on): Really alphabetize.
69688
69689         * modules/acl (Depends-on): Add error and quote.
69690
69691         * check-module (find_included_lib_files): Add at-func.c to the
69692         ok-to-include-more-than-once white list.
69693
69694         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69695
69696 2006-08-21  Bruno Haible  <bruno@clisp.org>
69697
69698         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69699         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69700         Reported by Martin Lambers <marlam@marlam.de>.
69701
69702 2006-08-21  Bruno Haible  <bruno@clisp.org>
69703
69704         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69705         specify an installation location, don't emit a noinst_LIBRARIES or
69706         noinst_LTLIBRARIES assignment.
69707
69708 2006-08-21  Bruno Haible  <bruno@clisp.org>
69709
69710         BeOS portability.
69711         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69712         BeOS has mbrtowc() but no <wctype.h>.
69713
69714 2006-08-21  Bruno Haible  <bruno@clisp.org>
69715
69716         BeOS portability.
69717         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69718         exist.
69719
69720 2006-08-21  Bruno Haible  <bruno@clisp.org>
69721
69722         BeOS portability.
69723         * lib/mbchar.h: Include <wctype.h> only if it exists.
69724
69725 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69726
69727         Remove files that are no longer needed by their respective modules.
69728         * m4/obstack.m4: Remove.
69729         * m4/strerror_r.m4: Remove.
69730         * m4/uint32_t.m4: Remove.
69731         * m4/uintptr_t.m4: Remove.
69732         * m4/ullong_max.m4: Remove.
69733         * m4/xstrtoimax.m4: Remove.
69734         * m4/xstrtoumax.m4: Remove.
69735
69736         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69737         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69738         dependencies now capture this.
69739
69740         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69741         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69742         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69743         * m4/human.m4 (gl_HUMAN): Likewise.
69744         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69745         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69746
69747         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69748
69749         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69750         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69751         stdint.
69752         * m4/human.m4 (gl_HUMAN): Likewise.
69753         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69754         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69755         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69756         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69757         * m4/xstrtol (gl_XSTRTOL): Likewise.
69758
69759         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69760         AC_TYPE_LONG_LONG_INT.
69761         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69762         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69763         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69764         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69765
69766         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69767         on stdbool.
69768
69769         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69770         (gl_PREREQ_XSTRTOUL): Remove.
69771
69772         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69773
69774         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69775         mode.
69776
69777 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69778
69779         Add and change modules to make it easier for coreutils to use
69780         gnulib-tool.
69781         * modules/backupfile (Files): Remove m4/d-ino.m4.
69782         (Depends-on): Add d-ino.
69783         * modules/cycle-check (Depends-on): Add stdint.
69784         (lib_SOURCES): Add cycle-check.h.
69785         * modules/d-ino: New module.
69786         * modules/d-type: New module.
69787         * modules/error (Files): Remove m4/strerror_r.m4.
69788         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69789         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69790         m4/inttypes_h.m4, m4/uintmax_t.m4.
69791         (Depends-on): Add stdint.
69792         (lib_SOURCES): Add fsusage.h.
69793         * modules/getcwd (Files): Remove d-ino.m4.
69794         (Depends-on): Add d-ino.
69795         * modules/getndelim2 (Depends-on): Add stdint.
69796         * modules/glob (Files): Remove m4/d-type.m4.
69797         (Depends-on): Add d-type.
69798         * modules/host-os: New module.
69799         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69800         m4/inttypes_h.m4, m4/uintmax_t.m4.
69801         * Depends-on: Add stdint.
69802         (lib_SOURCES): Add human.h.
69803         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69804         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69805         m4/uintmax_t.m4, m4/ulonglong.m4.
69806         (Depends-on): Add stdint.
69807         (EXTRA_DIST): Add inttostr.h.
69808         * modules/lchmod: New module.
69809         * modules/link-follow: New module.
69810         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69811         (Depends-on): Add lchmod.
69812         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69813         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69814         (Depends-on): Add stdint.
69815         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69816         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69817         (Depends-on): Add stdint.
69818         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69819         * modules/perl: New module.
69820         * modules/regex (Depends-on): Add stdint.
69821         * modules/rmdir-errno: New module.
69822         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69823         m4/intmax_t.m4.
69824         (Depends-on): Add stdint.
69825         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69826         m4/uintmax_t.m4.
69827         (Depends-on): Add stdint.
69828         * modules/unlink-busy: New module.
69829         * modules/utimecmp (Depends-on): Add stdint.
69830         * modules/uptime: New module.
69831         * modules/winsz-ioctl: New module.
69832         * modules/winsz-termios: New module.
69833         * modules/xnanosleep (Depends-on): Add nanosleep.
69834         * modules/ullong_max: Remove.
69835         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69836         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69837         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69838         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69839         (Depends-on): Add inttypes.
69840         (lib_SOURCES): Add xstrtol.h.
69841         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69842         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69843         * MODULES.html.sh: Move 'assert' into the assert section.
69844         Move 'dummy' into the linking section.
69845         Remove ullong_max.
69846         Add section for compatibility checks for POSIX:2001 functions,
69847         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69848         winsz-ioctl, and winsz-termios into it.
69849         Add lchmod.
69850         Add top-level Misc section and put host-os, perl, and uptime
69851         into it.
69852
69853 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69854
69855         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69856         now assume the stdint module.  Do not include inttypes.h.
69857         * lib/fsusage.h: Likewise.
69858         * lib/getndelim2.c: Likewise.
69859         * lib/human.h: Likewise.
69860         * lib/inttostr.h: Likewise.
69861         * lib/obstack.c: Likewise.
69862         * lib/regex_internal.h: Likewise.
69863         * lib/tempname.c: Likewise.
69864         * lib/utimecmp.c: Likewise.
69865         * lib/xstrtol.h: Likewise.
69866
69867         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69868
69869         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69870         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69871         * lib/xtime.h: Likewise.
69872
69873 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69874
69875         * modules/openat (Files): Add lib/fchmodat.c.
69876         Fixes problem reported by Jay Youngman.
69877
69878 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69879
69880         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69881         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69882
69883 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69884             Bruno Haible  <bruno@clisp.org>
69885
69886         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69887         and is a script that invokes bison. Tighten the code. Add comments.
69888
69889 2006-08-18  Jim Meyering  <jim@meyering.net>
69890
69891         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69892         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69893         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69894         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69895
69896 2006-08-18  Bruno Haible  <bruno@clisp.org>
69897
69898         * modules/bison-i18n: New file.
69899         * MODULES.html.sh (Internationalization functions): Add it.
69900
69901 2006-08-18  Bruno Haible  <bruno@clisp.org>
69902
69903         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69904         sys/statvfs.h. When getmntinfo was found, check its declaration and
69905         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69906
69907 2006-08-18  Bruno Haible  <bruno@clisp.org>
69908
69909         * m4/bison-i18n.m4: New file, from bison.
69910
69911 2006-08-18  Bruno Haible  <bruno@clisp.org>
69912
69913         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69914         (ME_DUMMY): Treat "kernfs" as a dummy.
69915         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69916
69917 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69918
69919         Update from coreutils.
69920
69921         2006-08-15  Jim Meyering  <jim@meyering.net>
69922
69923         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69924
69925         2006-01-17  Jim Meyering  <jim@meyering.net>
69926
69927         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69928
69929         2006-01-11  Jim Meyering  <jim@meyering.net>
69930
69931         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69932         Check for the lchmod function.
69933
69934 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69935
69936         Update from coreutils.
69937
69938         * lib/__fpending.h: Add copyright notice.
69939         * lib/fprintftime.h: Likewise.
69940         * lib/savedir.c: Use (C) in copyright notice.
69941         * lib/savedir.h: Likewise.
69942
69943         2006-08-15  Jim Meyering  <jim@meyering.net>
69944
69945         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69946         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69947         in support of the EXPECTED_ERRNO macro.
69948         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69949         definitions.  Instead, define the appropriate symbols and include
69950         "at-func.c".
69951         * lib/mkdirat.c (mkdirat): Likewise.
69952         * lib/fchmodat.c (fchmodat): Likewise.
69953         (ENOSYS): Remove definition.
69954         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69955         it.  Don't include "unistd--.h" -- it wasn't ever used.
69956
69957         2006-01-17  Jim Meyering  <jim@meyering.net>
69958
69959         Rewrite fts.c not to change the current working directory,
69960         by using openat, fstatat, fdopendir, etc..
69961
69962         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69963         (HAVE_OPENAT_SUPPORT): Define.
69964         [_LIBC] (fchdir): Don't undef or define; no longer used.
69965         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69966         Now, this `function' always succeeds, and consumes its file descriptor
69967         parameter -- so callers must not close such FDs.  Update callers.
69968         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69969         (diropen): Add parameter, SP.  Adjust all callers.
69970         Implement using diropen_fd, rather than open.
69971         (fts_open): Initialize new member, fts_cwd_fd.
69972         Remove fts_rft-setting code.
69973         (fts_close): Close fts_cwd_fd, if necessary.
69974         (__opendir2): Define in terms of opendir or opendirat,
69975         depending on whether the FST_NOCHDIR flag is set.
69976         (fts_build): Since fts_safe_changedir consumes its FD, and since
69977         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69978         and close the dup'd file descriptor upon failure.
69979         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69980         (fts_safe_changedir): Tweak semantics to reflect that this function
69981         now calls cwd_advance_fd and hence consumes its FD argument.
69982         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69983         [struct FTS] (fts_rft): Remove now-unused member.
69984         [struct FTS] (fts_cycle.state): Improve comment.
69985
69986         * lib/openat.c (openat_needs_fchdir): New function.
69987         * lib/openat.h (openat_needs_fchdir): Declare it.
69988
69989 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69990
69991         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69992         Problem and fix reported by Pádraig Brady in
69993         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69994
69995 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69996
69997         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69998
69999 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70000
70001         * lib/memcoll.c (memcoll): Optimize for the common case where the
70002         arguments are bytewise equal.
70003
70004 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70005
70006         * doc/regexprops-generic.texi: Add a copyright notice.
70007
70008 2006-08-15  Bruno Haible  <bruno@clisp.org>
70009
70010         * modules/tmpdir (License): Change to LGPL.
70011
70012 2006-08-15  Bruno Haible  <bruno@clisp.org>
70013
70014         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
70015         module.
70016
70017 2006-08-14  Simon Josefsson  <jas@extundo.com>
70018
70019         * config/srclist.txt: Add gnupload.
70020
70021 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70022
70023         Change copyright notice from LGPL 2 to GPL 2, since that's the
70024         standard form used in the gnulib repository.
70025         * tests/test-lock.c: Likewise.
70026         * tests/test-stdint.c: Likewise.
70027         * tests/test-tls.c: Likewise.
70028
70029         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
70030         prelude-manager.  User shorter URLs for GNU projects, without '?'.
70031         Add copyright notice.
70032
70033         * check-module: Add copyright notice.  Output a copyright
70034         notice if "--version" is specified.
70035         * modules/COPYING: New file.
70036         * tests/test-getaddrinfo.c: Add copyright notice.
70037         * tests/test-verify.c: Likewise.
70038
70039 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70040
70041         Change copyright notice from LGPL 2 to GPL 2, since that's the
70042         standard form used in the gnulib repository.
70043         * lib/lock.c: LGPL -> GPL.
70044         * lib/lock.h: Likewise.
70045         * lib/strnlen1.c: Likewise.
70046         * lib/strnlen1.h: Likewise.
70047         * lib/tls.c: Likewise.
70048         * lib/tls.h: Likewise.
70049         * lib/tmpdir.c: Likewise.
70050
70051         * lib/TODO: Remove; this belongs only in coreutils.
70052
70053 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70054
70055         Add copyright notices to long-enough files that lack them, since
70056         otherwise the files aren't clearly free.  Use the same notice that
70057         getdate.texi already uses.
70058         * doc/alloca-opt.texi: Add copyright notice.
70059         * doc/alloca.texi: Likewise.
70060         * doc/ctime.texi: Likewise.
70061         * doc/functions.texi: Likewise.
70062         * doc/gcd.texi: Likewise.
70063         * doc/gnulib-tool.texi: Likewise.
70064         * doc/inet_ntoa.texi: Likewise.
70065         * doc/visibility.texi: Likewise.
70066
70067         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
70068         * doc/quote.texi: Add copyright notice.
70069
70070         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
70071         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
70072         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
70073         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
70074         is now obsolete, and give a pointer to the Sun list.
70075         Add copyright notice.
70076
70077 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70078
70079         * config/srclistvars.sh: Add copyright notice.
70080
70081 2006-08-14  Eric Blake  <ebb9@byu.net>
70082
70083         Import the following change from libc:
70084
70085         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
70086
70087         Upstream bug 2997.
70088         * lib/misc/error.c: Add space between program name and message if file
70089         name is missing.
70090
70091 2006-08-12  Karl Berry  <karl@gnu.org>
70092
70093         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
70094         remove, these originate in gnulib now.
70095
70096 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70097
70098         * doc/Makefile (standards.info standards.html standards.dvi):
70099         Also depend on make-stds.texi.
70100
70101 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70102
70103         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
70104         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
70105
70106         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
70107         in wchar_t.  Problem reported by Eric Blake.
70108
70109         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
70110         LEN is smaller than SIZE.  Suggested by Bruno Haible.
70111         Also, help the compiler to keep LEN in a register.
70112
70113 2006-08-11  Eric Blake  <ebb9@byu.net>
70114
70115         * users.txt: Sort.  Add tar.
70116
70117 2006-08-11  Bruno Haible  <bruno@clisp.org>
70118
70119         * users.txt: New file.
70120
70121 2006-08-11  Bruno Haible  <bruno@clisp.org>
70122
70123         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
70124         before <wchar.h>. Needed for OSF/1 and BSD/OS.
70125
70126 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70127
70128         * modules/snprintf (Depends-on): Remove minmax.
70129         (Maintainer): Add self and Bruno.
70130
70131 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70132
70133         * lib/.cppi-disable: Add snprintf.h, socket_.h.
70134         * lib/snprintf.c: Include <errno.h> and <limits.h>.
70135         (EOVERFLOW): Define if the system does not.
70136         Do not include "minmax.h"; it wasn't used.
70137         (snprintf): Don't assume size_t promotes to an unsigned type.
70138         Fix bug when generated string was too long for the buffer: the
70139         buffer's contents are supposed to be the initial prefix of the
70140         output.  Don't assume vasnprintf returns EOVERFLOW if the size
70141         exceeds INT_MAX; do the check ourselves.
70142
70143         Import the following changes from libc:
70144
70145         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
70146
70147         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
70148         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
70149         set wc to the byte which couldn't be converted.
70150         (re_string_reconstruct): Don't clear valid_raw_len before calling
70151         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
70152         tip_context using re_string_context_at.
70153
70154         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
70155
70156         * lib/posix/regex.h: g++ still cannot handled [restrict].
70157
70158         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
70159
70160         * lib/posix/regex.h: Remove special handling for VMS.
70161
70162 2006-08-10  Jim Meyering  <jim@meyering.net>
70163
70164         * modules/same-inode: New module.
70165         * modules/dev-ino: New module.
70166         * modules/cycle-check: Depend on these modules, rather than simply
70167         including their .h files.
70168         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
70169         required via m4/cycle-check.m4.
70170         * modules/same: Depend on new same-inode module, rather than
70171         including same-inode.h.
70172         * modules/chdir-safer: New file.
70173
70174         * modules/chown (Depends-on): Add stat-macros.
70175
70176 2006-08-10  Jim Meyering  <jim@meyering.net>
70177
70178         * m4/cycle-check.m4: New file.
70179         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
70180         * m4/dev-ino.m4, m4/same-inode.m4: New files.
70181
70182 2006-08-10  Eric Blake  <ebb9@byu.net>
70183
70184         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
70185         in from original proposal.
70186
70187 2006-08-10  Eric Blake  <ebb9@byu.net>
70188         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70189
70190         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
70191         namespace.
70192
70193 2006-08-10  Bruno Haible  <bruno@clisp.org>
70194
70195         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
70196         as well.
70197
70198 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70199
70200         Sync from coreutils.
70201
70202         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
70203
70204         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
70205         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
70206
70207 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70208
70209         * modules/restrict: Remove; no longer needed now that we assume
70210         Autoconf 2.59 or later.
70211         * MODULES.html.sh: Remove 'restrict'.
70212         * modules/argp (Depends-on): Remove 'restrict'.
70213         * modules/base64 (Depends-on): Likewise.
70214         * modules/gc (Depends-on): Likewise.
70215         * modules/getaddrinfo (Depends-on): Likewise.
70216         * modules/glob (Depends-on): Likewise.
70217         * modules/inet_ntop (Depends-on): Likewise.
70218         * modules/inet_pton (Depends-on): Likewise.
70219         * modules/memxor (Depends-on): Likewise.
70220         * modules/regex (Depends-on): Likewise.
70221         * modules/strtok_r (Depends-on): Likewise.
70222         * modules/time_r (Depends-on): Likewise.
70223
70224 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70225
70226         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
70227         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
70228         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70229         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
70230         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
70231         * m4/memxor.m4 (gl_MEMXOR): Likewise.
70232         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
70233         gl_C_RESTRICT replaced by AC_C_RESTRICT.
70234
70235         Merge from coreutils.
70236         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
70237         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
70238         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70239         * m4/time_r.m4 (gl_TIME_R): Likewise.
70240
70241 2006-08-09  Karl Berry  <karl@gnu.org>
70242
70243         * config/srclist.txt: no more gettext-tools, per Bruno.
70244
70245 2006-08-08  Eric Blake  <ebb9@byu.net>
70246
70247         * modules/verror: New module.
70248         * MODULES.html.sh: Document it.
70249
70250 2006-08-08  Eric Blake  <ebb9@byu.net>
70251
70252         * lib/verror.h, lib/verror.c: New files.
70253
70254 2006-08-08  Eric Blake  <ebb9@byu.net>
70255
70256         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
70257         verror_at_line output complies with GNU Coding Standards even when
70258         file is NULL.
70259
70260 2006-08-07  Bruno Haible  <bruno@clisp.org>
70261
70262         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
70263         versions of AIX.
70264         Reported by Ralf Wildenhues.
70265
70266 2006-08-07  Bruno Haible  <bruno@clisp.org>
70267
70268         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
70269         in an AC_DEFUN. Needed so that the autoconf snippets can use
70270         AC_REQUIRE.
70271
70272 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70273
70274         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70275         Initialize pkgdata_DATA.
70276         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
70277         overriding it.
70278
70279 2006-08-06  Eric Blake  <ebb9@byu.net>
70280
70281         * lib/error.h: Fold in some upstream changes from glibc.
70282         * lib/error.c: Likewise.
70283
70284 2006-08-04  Bruno Haible  <bruno@clisp.org>
70285
70286         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70287         Make the mostlyclean-local rule depend on mostlyclean-generic.
70288         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
70289
70290 2006-07-31  Bruno Haible  <bruno@clisp.org>
70291
70292         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
70293         <stdlib.h>, <string.h>.
70294
70295 2006-07-30  Bruno Haible  <bruno@clisp.org>
70296
70297         * modules/readlink (License): Change to LGPL.
70298
70299 2006-07-30  Bruno Haible  <bruno@clisp.org>
70300
70301         * modules/javaversion (Makefile.am): Distribute javaversion.java and
70302         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
70303         set PKGDATADIR to point to it.
70304
70305 2006-07-30  Bruno Haible  <bruno@clisp.org>
70306
70307         * modules/csharpexec (configure.ac): Comment out macro invocation.
70308         * modules/javaexec (configure.ac): Likewise.
70309         * modules/javacomp-script (configure.ac): Likewise.
70310
70311         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
70312
70313 2006-07-30  Bruno Haible  <bruno@clisp.org>
70314
70315         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
70316         linked-list.
70317
70318 2006-07-30  Bruno Haible  <bruno@clisp.org>
70319
70320         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
70321
70322 2006-07-30  Bruno Haible  <bruno@clisp.org>
70323
70324         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70325         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
70326         get removed.
70327
70328 2006-07-29  Bruno Haible  <bruno@clisp.org>
70329
70330         Make it possible for gnulib-tool to work with locally modified or
70331         augmented gnulib repositories.
70332         * gnulib-tool (func_usage): Document --local-dir option.
70333         (local_gnulib_dir): New variable.
70334         Handle --local-dir option.
70335         (func_lookup_file): New function.
70336         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
70337         (func_get_description, func_get_filelist, func_get_description,
70338         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
70339         func_get_automake_snippet, func_get_include_directive,
70340         func_get_license, func_get_maintainer): Use func_lookup_file.
70341         (func_import, func_create_testdir): Use func_lookup_file.
70342
70343 2006-07-29  Bruno Haible  <bruno@clisp.org>
70344
70345         * modules/setenv (Depends-on): Add unistd.
70346
70347 2006-07-29  Bruno Haible  <bruno@clisp.org>
70348
70349         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
70350
70351 2006-07-29  Bruno Haible  <bruno@clisp.org>
70352
70353         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
70354
70355 2006-07-29  Bruno Haible  <bruno@clisp.org>
70356
70357         * gnulib-tool (import, update): If there is no Makefile.am, look at
70358         aclocal.m4, instead of bailing out.
70359
70360 2006-07-29  Bruno Haible  <bruno@clisp.org>
70361
70362         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70363         Categorize the options by when they are useful.
70364
70365 2006-07-29  Bruno Haible  <bruno@clisp.org>
70366
70367         * gnulib-tool (func_usage): Document option --no-libtool.
70368         Handle option --no-libtool.
70369         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70370         for changed semantics of $libtool variable.
70371         (func_import): Likewise. If libtool is not used, show this through
70372         an option --no-libtool.
70373         (func_create_testdir): Update.
70374
70375 2006-07-29  Bruno Haible  <bruno@clisp.org>
70376
70377         * gnulib-tool (func_import): Extend error message about missing
70378         --doc-base.
70379
70380 2006-07-29  Bruno Haible  <bruno@clisp.org>
70381
70382         * gnulib-tool (func_import): Don't create the $docbase directory if
70383         there is no file to store there.
70384
70385 2006-07-29  Bruno Haible  <bruno@clisp.org>
70386
70387         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70388         relevant, look for configure.ac there, not in the current directory.
70389         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70390
70391 2006-07-29  Bruno Haible  <bruno@clisp.org>
70392
70393         * gnulib-tool (SORT): New variable.
70394         (func_usage): Undocument --assume-autoconf option.
70395         Remove --assume-autoconf option handling.
70396         (autoconf_minversion): Determine from the contents of configure.ac.
70397         (func_import): Remove autoconf_minversion handling.
70398         Suggested by Eric Blake.
70399
70400 2006-07-29  Bruno Haible  <bruno@clisp.org>
70401
70402         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
70403
70404 2006-07-29  Bruno Haible  <bruno@clisp.org>
70405
70406         * config/srclist.txt (*setenv.[ch]): Remove rules.
70407
70408 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70409
70410         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
70411
70412 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70413
70414         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
70415         arpa/inet.h.
70416
70417 2006-07-28  Simon Josefsson  <jas@extundo.com>
70418
70419         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
70420         * modules/inet_pton (Depends-on): Likewise.
70421
70422 2006-07-28  Simon Josefsson  <jas@extundo.com>
70423
70424         * m4/netinet_in_h.m4: New file.
70425
70426 2006-07-28  Simon Josefsson  <jas@extundo.com>
70427
70428         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
70429         #include's.
70430
70431 2006-07-28  Simon Josefsson  <jas@extundo.com>
70432
70433         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
70434         #include's.
70435
70436 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
70437
70438         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
70439         setgid on directories only if they set these bits.
70440         * lib/modechange.h: Remove obsolete comment about masks.
70441
70442 2006-07-28  Eric Blake  <ebb9@byu.net>
70443
70444         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
70445         macro expansion.
70446
70447 2006-07-28  Bruno Haible  <bruno@clisp.org>
70448
70449         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
70450
70451 2006-07-28  Bruno Haible  <bruno@clisp.org>
70452
70453         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
70454
70455 2006-07-28  Bruno Haible  <bruno@clisp.org>
70456
70457         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70458         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70459         Define fallbacks.
70460         Avoids link error on FreeBSD 4.x.
70461         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70462
70463         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
70464         encoding.
70465         * lib/mbswidth.c (iswcntrl): Likewise.
70466
70467 2006-07-27  Bruno Haible  <bruno@clisp.org>
70468
70469         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
70470         test.
70471
70472 2006-07-27  Bruno Haible  <bruno@clisp.org>
70473
70474         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70475         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70476         defined.
70477
70478 2006-07-26  Eric Blake  <ebb9@byu.net>
70479
70480         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70481
70482 2006-07-26  Eric Blake  <ebb9@byu.net>
70483
70484         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70485         like mingw that lack mkstemp.
70486         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70487         avoid compilation warning on mingw.
70488
70489 2006-07-26  Bruno Haible  <bruno@clisp.org>
70490
70491         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70492         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70493         INT_FAST*_MIN, INTPTR_MIN.
70494
70495 2006-07-25  Bruno Haible  <bruno@clisp.org>
70496
70497         * modules/version-etc (Depends-on): Add stdarg.
70498
70499 2006-07-25  Bruno Haible  <bruno@clisp.org>
70500
70501         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70502         complex commands.
70503
70504 2006-07-25  Bruno Haible  <bruno@clisp.org>
70505
70506         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70507         defined in <stdarg.h> or config.h.
70508
70509 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70510
70511         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70512         (gl_STDIO_SAFER): Remove.
70513
70514 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70515
70516         * MODULES.html.sh (File stream based Input/Output):
70517         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70518         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70519         * modules/fopen-safer, modules/tmpfile-safer: New files.
70520         * modules/stdio-safer: Remove.
70521
70522 2006-07-24  Bruno Haible  <bruno@clisp.org>
70523
70524         * modules/tmpdir: New file.
70525         * MODULES.html.sh (File system functions): Add it.
70526
70527 2006-07-24  Bruno Haible  <bruno@clisp.org>
70528
70529         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70530         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70531
70532 2006-07-24  Bruno Haible  <bruno@clisp.org>
70533
70534         * modules/clean-temp: New file.
70535
70536 2006-07-24  Bruno Haible  <bruno@clisp.org>
70537
70538         * m4/tmpdir.m4: New file, from GNU gettext.
70539
70540 2006-07-24  Bruno Haible  <bruno@clisp.org>
70541
70542         * lib/tmpdir.h: New file, from GNU gettext.
70543         * lib/tmpdir.c: New file, from GNU gettext.
70544
70545 2006-07-24  Bruno Haible  <bruno@clisp.org>
70546
70547         * lib/clean-temp.h: New file, from GNU gettext.
70548         * lib/clean-temp.c: New file, from GNU gettext.
70549
70550 2006-07-23  Eric Blake  <ebb9@byu.net>
70551
70552         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70553         (Depends-on): Add binary-io.
70554
70555 2006-07-23  Eric Blake  <ebb9@byu.net>
70556
70557         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70558
70559 2006-07-23  Eric Blake  <ebb9@byu.net>
70560
70561         * lib/tmpfile-safer.c: New file.
70562         * lib/stdio-safer.h (fopen_safer): Add prototype.
70563         * lib/stdio--.h (tmpfile): Make safer.
70564
70565 2006-07-23  Bruno Haible  <bruno@clisp.org>
70566
70567         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70568         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70569         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70570         gl_linked_remove_at): Use it.
70571
70572 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70573         and Simon Josefsson <jas@extundo.com>
70574
70575         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70576
70577         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70578
70579 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70580
70581         * modules/close-stream: New file.
70582         * modules/closeout (Description): Make it clear that it exits
70583         with a diagnostic on error.
70584         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70585         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70586
70587 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70588
70589         * m4/close-stream.m4: New file.
70590
70591 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70592
70593         * lib/close-stream.c, lib/close-stream.h: New files.
70594
70595 2006-07-22  Bruno Haible  <bruno@clisp.org>
70596
70597         Merge from GNU gettext 0.15.
70598
70599         2006-05-01  Bruno Haible  <bruno@clisp.org>
70600
70601                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70602
70603         2006-07-22  Bruno Haible  <bruno@clisp.org>
70604
70605                 * modules/javaversion: New file.
70606                 * MODULES.html.sh (Java): Add javaversion.
70607
70608         2006-03-12  Bruno Haible  <bruno@clisp.org>
70609
70610                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70611
70612         2005-12-04  Bruno Haible  <bruno@clisp.org>
70613
70614                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70615                 (untested).
70616
70617         2006-06-21  Bruno Haible  <bruno@clisp.org>
70618
70619                 Avoid warnings from recent versions of mcs.
70620                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70621                 -o, -L, -r any more. Use options documented since mcs-1.0
70622                 instead. Similarly for -g.
70623
70624         2005-12-04  Bruno Haible  <bruno@clisp.org>
70625
70626                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70627                 .resources, not .resource.
70628
70629         2005-07-09  Bruno Haible  <bruno@clisp.org>
70630
70631                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70632                 add a .dll suffix.
70633                 Reported by Mark Junker <mjscod@gmx.de>.
70634
70635         2006-07-22  Bruno Haible  <bruno@clisp.org>
70636
70637                 * modules/gettext: Upgrade to gettext-0.15.
70638                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70639                 m4/visibility.m4.
70640                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70641
70642 2006-07-22  Bruno Haible  <bruno@clisp.org>
70643
70644         Merge from GNU gettext 0.15.
70645
70646         2006-03-25  Bruno Haible  <bruno@clisp.org>
70647
70648                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70649
70650         2006-07-21  Bruno Haible  <bruno@clisp.org>
70651
70652                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70653                 "1.1".
70654
70655         2006-05-09  Bruno Haible  <bruno@clisp.org>
70656
70657                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70658                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70659                 for the conftestver execution.
70660
70661         2006-05-01  Bruno Haible  <bruno@clisp.org>
70662
70663                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70664                 optional target-version argument. Verify that the compiler
70665                 groks source of the specified source-version, or add -source
70666                 option as necessary. Verify that the compiler produces
70667                 bytecode in the specified target-version, or add -target and
70668                 -source options as necessary. Make the result of the test
70669                 available as variable CONF_JAVAC. Also log error output in
70670                 config.log.
70671
70672         2006-03-11  Bruno Haible  <bruno@clisp.org>
70673
70674                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70675
70676         2006-05-09  Bruno Haible  <bruno@clisp.org>
70677
70678                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70679                 CLASSPATH_SEPARATOR to a semicolon.
70680
70681         2006-03-12  Bruno Haible  <bruno@clisp.org>
70682
70683                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70684                 available as variable CONF_JAVA, for subsequent autoconf
70685                 tests. Also log error output in config.log.
70686
70687         2006-07-19  Bruno Haible  <bruno@clisp.org>
70688
70689                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70690                 that getline works on glibc2 systems. Needed to avoid trouble
70691                 in relocatable.c.
70692                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70693
70694         2005-12-04  Bruno Haible  <bruno@clisp.org>
70695
70696                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70697                 launcher (untested).
70698
70699         2005-12-04  Bruno Haible  <bruno@clisp.org>
70700
70701                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70702
70703         2006-07-22  Bruno Haible  <bruno@clisp.org>
70704
70705                 * gettext.m4: Update from GNU gettext-0.15.
70706                 * nls.m4: Likewise.
70707                 * po.m4: Likewise.
70708                 * inttypes-pri.m4: Likewise.
70709                 * inttypes-h.m4: Renamed from inttypes.m4.
70710                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70711
70712 2006-07-22  Bruno Haible  <bruno@clisp.org>
70713
70714         Merge from GNU gettext 0.15.
70715
70716         2005-07-05  Bruno Haible  <bruno@clisp.org>
70717
70718                 * printf-args.c (printf_fetchargs): Work around broken
70719                 definition of wint_t on mingw.
70720
70721         2005-02-12  Bruno Haible  <bruno@clisp.org>
70722
70723                 * xallocsa.h: Add extern "C" for C++.
70724
70725         2006-05-17  Bruno Haible  <bruno@clisp.org>
70726
70727                 Cygwin portability.
70728                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70729
70730         2006-04-30  Bruno Haible  <bruno@clisp.org>
70731
70732                 * progreloc.c: Include <mach-o/dyld.h> if available.
70733                 (find_executable): Use _NSGetExecutablePath when possible.
70734
70735         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70736
70737                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70738                 function.
70739
70740         2005-12-29  Bruno Haible  <bruno@clisp.org>
70741
70742                 * progreloc.c (set_program_name_and_installdir): Fix
70743                 compilation error.
70744
70745         2005-12-04  Bruno Haible  <bruno@clisp.org>
70746
70747                 Cygwin portability.
70748                 * progreloc.c: Include <windows.h> also on Cygwin.
70749                 (find_executable): Add support for Cygwin.
70750                 (set_program_name_and_installdir): Handle also platforms with
70751                 nonempty EXEEXT.
70752
70753         2006-07-11  Bruno Haible  <bruno@clisp.org>
70754
70755                 * javacomp.c: Fix a comment.
70756                 Reported by Jim Meyering.
70757
70758         2006-04-30  Bruno Haible  <bruno@clisp.org>
70759
70760                 * javacomp.h (compile_java_class): Add source_version,
70761                 target_version arguments.
70762                 * javacomp.c: Rewritten to choose only a compiler that
70763                 respects the specified source_version and target_version.
70764
70765         2006-06-27  Bruno Haible  <bruno@clisp.org>
70766
70767                 Assume correct S_ISDIR macro.
70768                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70769
70770         2006-07-22  Bruno Haible  <bruno@clisp.org>
70771
70772                 * javaversion.h: New file, from GNU gettext.
70773                 * javaversion.c: New file, from GNU gettext.
70774                 * javaversion.java: New file, from GNU gettext.
70775                 * javaversion.class: New file, from GNU gettext.
70776
70777         2006-05-17  Bruno Haible  <bruno@clisp.org>
70778
70779                 Cygwin portability.
70780                 * javaexec.c (execute_java_class): Test for jview program
70781                 also on Cygwin.
70782
70783         2006-04-09  Bruno Haible  <bruno@clisp.org>
70784
70785                 * fatal-signal.c: Don't include string.h.
70786                 (at_fatal_signal): Use a copying loop instead of memcpy.
70787
70788         2005-12-04  Bruno Haible  <bruno@clisp.org>
70789
70790                 * csharpexec.c: Add support for 'clix' launcher (untested).
70791                 (execute_csharp_using_sscli): New function.
70792                 (execute_csharp_program): Call it.
70793
70794         2006-06-21  Bruno Haible  <bruno@clisp.org>
70795
70796                 Avoid warnings from recent versions of mcs.
70797                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70798                 -o, -L, -r any more. Use options documented since mcs-1.0
70799                 instead. Similarly for -g.
70800
70801         2005-07-09  Bruno Haible  <bruno@clisp.org>
70802
70803                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70804                 add a .dll suffix.
70805                 Reported by Mark Junker <mjscod@gmx.de>.
70806
70807         2006-06-17  Bruno Haible  <bruno@clisp.org>
70808
70809                 * config.charset: Update for NetBSD 3.0.
70810
70811         2006-05-17  Bruno Haible  <bruno@clisp.org>
70812
70813                 Cygwin portability.
70814                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70815
70816         2006-05-16  Bruno Haible  <bruno@clisp.org>
70817
70818                 * localcharset.c [CYGWIN]: Include <windows.h>.
70819                 (get_charset_aliases): For Cygwin, return the same CPxxx
70820                 aliases list as under WIN32.
70821                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70822                 the environment variables. Fall back to GetACP().
70823
70824         2006-04-05  Bruno Haible  <bruno@clisp.org>
70825
70826                 * config.charset: Update Juan Manuel Guerrero's address.
70827
70828         2005-02-12  Bruno Haible  <bruno@clisp.org>
70829
70830                 * allocsa.h: Add extern "C" for C++.
70831
70832         2005-02-10  Bruno Haible  <bruno@clisp.org>
70833
70834                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70835                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70836
70837         2006-07-22  Bruno Haible  <bruno@clisp.org>
70838
70839                 * gettext.h: Update to GNU gettext-0.15.
70840
70841 2006-07-22  Bruno Haible  <bruno@clisp.org>
70842
70843         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70844         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70845         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70846
70847 2006-07-21  Eric Blake  <ebb9@byu.net>
70848
70849         * modules/stdlib-safer: New file.
70850         * MODULES.html.sh (File stream based Input/Output): Add
70851         stdlib-safer.
70852
70853 2006-07-21  Eric Blake  <ebb9@byu.net>
70854
70855         * lib/stdlib-safer.h: New file from coreutils, required by
70856         stdlib--.h.
70857
70858 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70859
70860         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70861
70862 2006-07-20  Bruno Haible  <bruno@clisp.org>
70863
70864         * gnulib-tool: Recognize new option --assume-autoconf.
70865         (autoconf_minversion): New variable.
70866         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70867
70868 2006-07-20  Bruno Haible  <bruno@clisp.org>
70869
70870         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70871
70872 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70873
70874         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70875         Reindent and repaginate.
70876
70877 2006-07-19  Derek Price  <derek@ximbiot.com>
70878
70879         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70880         Correct grammar.
70881
70882 2006-07-17  Bruno Haible  <bruno@clisp.org>
70883
70884         * modules/list: New file.
70885         * modules/array-list: New file.
70886         * modules/carray-list, modules/carray-list-tests: New files.
70887         * modules/linked-list, modules/linked-list-tests: New files.
70888         * modules/avltree-list, modules/avltree-list-tests: New files.
70889         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70890         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70891         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70892         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70893         * modules/oset: New file.
70894         * modules/array-oset: New file.
70895         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70896         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70897         * tests/test-carray_list.c: New file.
70898         * tests/test-linked_list.c: New file.
70899         * tests/test-avltree_list.c: New file.
70900         * tests/test-rbtree_list.c: New file.
70901         * tests/test-linkedhash_list.c: New file.
70902         * tests/test-avltreehash_list.c: New file.
70903         * tests/test-rbtreehash_list.c: New file.
70904         * tests/test-avltree_oset.c: New file.
70905         * tests/test-rbtree_oset.c: New file.
70906         * MODULES.html.sh (Container data structures): New section.
70907
70908 2006-07-17  Bruno Haible  <bruno@clisp.org>
70909
70910         * m4/gl_list.m4: New file.
70911
70912 2006-07-17  Bruno Haible  <bruno@clisp.org>
70913
70914         * lib/gl_list.h: New file.
70915         * lib/gl_list.c: New file.
70916         * lib/gl_array_list.h: New file.
70917         * lib/gl_array_list.c: New file.
70918         * lib/gl_carray_list.h: New file.
70919         * lib/gl_carray_list.c: New file.
70920         * lib/gl_linked_list.h: New file.
70921         * lib/gl_linked_list.c: New file.
70922         * lib/gl_anylinked_list1.h: New file.
70923         * lib/gl_anylinked_list2.h: New file.
70924         * lib/gl_avltree_list.h: New file.
70925         * lib/gl_avltree_list.c: New file.
70926         * lib/gl_anyavltree_list1.h: New file.
70927         * lib/gl_anyavltree_list2.h: New file.
70928         * lib/gl_rbtree_list.h: New file.
70929         * lib/gl_rbtree_list.c: New file.
70930         * lib/gl_anyrbtree_list1.h: New file.
70931         * lib/gl_anyrbtree_list2.h: New file.
70932         * lib/gl_anytree_list1.h: New file.
70933         * lib/gl_anytree_list2.h: New file.
70934         * lib/gl_linkedhash_list.h: New file.
70935         * lib/gl_linkedhash_list.c: New file.
70936         * lib/gl_anyhash_list1.h: New file.
70937         * lib/gl_anyhash_list2.h: New file.
70938         * lib/gl_avltreehash_list.h: New file.
70939         * lib/gl_avltreehash_list.c: New file.
70940         * lib/gl_rbtreehash_list.h: New file.
70941         * lib/gl_rbtreehash_list.c: New file.
70942         * lib/gl_anytreehash_list1.h: New file.
70943         * lib/gl_anytreehash_list2.h: New file.
70944
70945         * lib/gl_oset.h: New file.
70946         * lib/gl_oset.c: New file.
70947         * lib/gl_array_oset.h: New file.
70948         * lib/gl_array_oset.c: New file.
70949         * lib/gl_avltree_oset.h: New file.
70950         * lib/gl_avltree_oset.c: New file.
70951         * lib/gl_rbtree_oset.h: New file.
70952         * lib/gl_rbtree_oset.c: New file.
70953         * lib/gl_anytree_oset.h: New file.
70954
70955 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70956
70957         * m4/mkancesdirs.m4: New file.
70958         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70959         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70960         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70961         it.
70962
70963 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70964
70965         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70966         * lib/mkancesdirs.h: New files.
70967         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70968         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70969         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70970         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70971         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70972         callers changed.  Revamp internals significantly, by not
70973         attempting to create directories that are temporarily more
70974         permissive than the final results.  Do not attempt to use
70975         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70976         This removes some race conditions, fixes some bugs, and simplifies
70977         things.  Use new dirchownmod function to do owner and mode changes.
70978         * lib/mkdir-p.h: Likewise.
70979         * lib/modechange.c (octal_to_mode): New function.
70980         (struct mode_change): New member mentioned.
70981         (make_node_op_equals): New arg mentioned.  All callers changed.
70982         (mode_compile): Keep track of which mode bits the user has explicitly
70983         mentioned.
70984         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70985         New arg PMODE_BITS, to keep track of which mode bits the user
70986         mentioned; it treats S_ISUID and S_ISGID speciall.
70987         All callers changed.
70988         * lib/modechange.h: Likewise.
70989
70990 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70991
70992         * MODULES.html.sh: Add mkancestors.
70993         * modules/mkancesdirs: New module.
70994         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70995         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70996         The chdir-safer and afs files are now orphans; I'll remove them
70997         unless someone speaks up.
70998         Add lib/dirchownmod.c, lib/dirchownmod.h.
70999         (Depends-on): Remove alloca, chown, save-cwd, dirname.
71000         Add lchown, mkancesdirs.
71001         (Maintainer): Add self.
71002
71003 2006-07-15  Karl Berry  <karl@gnu.org>
71004
71005         * gnulib-tool: help message wording/arrangement.
71006
71007 2006-07-14  Simon Josefsson  <jas@extundo.com>
71008
71009         * doc/gnulib.texi (Libtool and Windows): New section.
71010
71011 2006-07-12  Simon Josefsson  <jas@extundo.com>
71012
71013         * modules/gendocs (License): Fix license, approved by Karl.
71014
71015 2006-07-12  Eric Blake  <ebb9@byu.net>
71016
71017         * MODULES.html.sh: Add gendocs.
71018
71019 2006-07-11  Eric Blake  <ebb9@byu.net>
71020
71021         * modules/fdl: New module, to install doc/fdl.texi.
71022         * MODULES.html.sh: Add new section for documentation modules.
71023         * gnulib-tool: Avoid space-tab.
71024         (--doc-base): New option, to manage files from doc.
71025
71026 2006-07-11  Eric Blake  <ebb9@byu.net>
71027
71028         * m4/absolute-header.m4: Fix comments to match recent change.
71029
71030 2006-07-11  Eric Blake  <ebb9@byu.net>
71031
71032         * gnulib-tool: List --doc-base before --tests-base.
71033
71034 2006-07-11  Derek R. Price  <derek@ximbiot.com>
71035
71036         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
71037
71038 2006-07-11  Bruno Haible  <bruno@clisp.org>
71039
71040         * README: Mention where to put documentation.
71041
71042 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71043
71044         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
71045
71046 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71047
71048         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
71049         to stdint.m4.
71050
71051 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71052
71053         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
71054         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
71055         "no/such/file/stdint.h" when there is no such file, so that
71056         the resulting C code can be parsed by dodgy compilers.
71057         Problems reported by Bob Proulx.
71058
71059 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71060
71061         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
71062         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71063         macros into the GNU _D_EXACT_NAMLEN.
71064         * lib/savedir.c:  Likewise.
71065         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
71066
71067 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71068         and Paul Eggert  <eggert@cs.ucla.edu>
71069
71070         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
71071         * m4/savedir.m4:
71072         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71073         macros into the GNU _D_EXACT_NAMLEN.
71074
71075 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71076
71077         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
71078         around the absolute name, to work around a problem with the HP-UX
71079         11.23 native C compiler, reported by Bob Proulx.
71080
71081 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71082
71083         * doc/maintain.texi, make-stds.texi: Sync from
71084         <http://savannah.gnu.org/projects/gnustandards>.
71085
71086 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71087
71088         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
71089
71090 2006-07-09  Jim Meyering  <jim@meyering.net>
71091
71092         * m4/glob.m4: Remove a doubled word in a comment.
71093
71094 2006-07-09  Jim Meyering  <jim@meyering.net>
71095
71096         * lib/argp-pv.c: Remove a doubled word in a comment.
71097         * lib/check-version.c (check_version): Likewise.
71098         * lib/javacomp.c (compile_java_class): Likewise.
71099
71100 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71101
71102         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
71103         for the benefit of people using Autoconf 2.60.  If you want to
71104         support older Autoconf versions you can copy m4/onceonly_2_57.m4
71105         (or m4/onceonly.m4, if pre-2.57) manually.
71106
71107 2006-07-08  Jim Meyering  <jim@meyering.net>
71108
71109         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
71110         comment.
71111         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
71112         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
71113         comment.
71114
71115 2006-07-08  Jim Meyering  <jim@meyering.net>
71116
71117         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
71118
71119 2006-07-07  Simon Josefsson  <jas@extundo.com>
71120
71121         * tests/test-crc.c: Change expected crc value, the test vector
71122         were probably computed using the old broken crc.c?
71123
71124 2006-07-06  Simon Josefsson  <jas@extundo.com>
71125
71126         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
71127         now the canonical place for the M4 file).
71128
71129         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
71130         from the sys_socket dependency now.
71131
71132         * modules/inet_pton (Files): Ditto.
71133
71134         * modules/inet_ntop (Files): Ditto.
71135
71136 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71137
71138         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
71139         not gl_PREREQ_GETUSERSHELL.
71140
71141 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71142
71143         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
71144         with only one argument, for Autoconf 2.60.
71145         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
71146         expand to nothing, so add a shell command to avoid syntax error.
71147         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71148
71149 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71150
71151         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
71152
71153 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71154
71155         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
71156         no longer needed.  Check for isblank decl.
71157         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
71158         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
71159         of existence.
71160
71161 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71162
71163         * lib/getloadavg.c: Use __VMS, not VMS.
71164         * lib/getopt.c: Likewise.
71165         * lib/getpagesize.h: Likewise.
71166         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
71167         and probably does not work.
71168
71169 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71170
71171         * lib/.cppi-disable: Add wcwidth.
71172         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
71173         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
71174         (ISGRAPH): Remove.  All uses changed to isgraph.
71175         (FOLD) [!defined _LIBC]: Remove special case.
71176         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
71177         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
71178         HAVE_ISBLANK.
71179         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
71180         case.
71181
71182 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71183
71184         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
71185         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
71186         brackets.  Other minor changes to suppress some compiler
71187         warnings.
71188
71189 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71190         and Paul Eggert  <eggert@cs.ucla.edu>
71191
71192         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
71193         of invoking obsolescent AC_HEADER_DIRENT macro.
71194         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
71195         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
71196         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
71197         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71198         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
71199         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71200         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
71201         * m4/readdir.m4: Remove; no longer needed.
71202
71203 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71204         and Paul Eggert  <eggert@cs.ucla.edu>
71205
71206         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
71207         Don't worry about this obsolete case any more.
71208         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
71209         directories.
71210         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
71211         worry about this obsolete case any more.
71212         * lib/fts.c: Likewise.
71213         * lib/getcwd.c: Likewise.
71214         * lib/glob.h: Likewise.
71215         * lib/savedir.c: Likewise.
71216
71217 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71218
71219         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
71220         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
71221         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
71222         needed.
71223         All uses removed.
71224         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71225         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71226         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
71227         needed.
71228         * m4/getdate.m4 (gl_GETDATE): Likewise.
71229         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71230         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71231         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71232         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71233         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71234         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71235         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
71236         needed.
71237
71238 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71239
71240         * lib/memcasecmp.c: Include <limits.h>.
71241         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
71242         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
71243         Don't assume isdigit succeeds only on '0' through '9'.
71244
71245 2006-07-05  Eric Blake  <ebb9@byu.net>
71246
71247         * modules/getaddrinfo (Depends-on): Add snprintf.
71248
71249 2006-07-05  Eric Blake  <ebb9@byu.net>
71250
71251         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
71252         to avoid 'header present but could not be compiled' on cygwin.
71253
71254 2006-07-05  Eric Blake  <ebb9@byu.net>
71255
71256         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
71257         missing from netdb.h.
71258         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
71259
71260 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71261
71262         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
71263         no longer needed.
71264         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
71265         * m4/getdate.m4 (gl_GETDATE): Likewise.
71266         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71267         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71268         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71269         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71270         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71271
71272 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71273
71274         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
71275         All uses of is_space replaced by isspace.
71276         * lib/exit.h: Don't talk about STDC_HEADERS.
71277         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
71278         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
71279         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
71280         replaced by isprint etc.
71281         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
71282         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71283         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
71284         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
71285         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
71286         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71287
71288 2006-07-05  Bruno Haible  <bruno@clisp.org>
71289
71290         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
71291         the function exists, before testing against AIX.
71292         Reported by Martin Lambers <marlam@marlam.de>.
71293
71294 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71295
71296         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
71297         From Mark D. Baushke.
71298
71299 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71300
71301         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
71302         to the absolute name, not just one, to bypass Sun C 5.8's
71303         "warning: #include of /usr/include/... may be non-portable".
71304
71305 2006-07-04  Eric Blake  <ebb9@byu.net>
71306
71307         * modules/dirname-tests: New test module.
71308         * tests/test-dirname.c: New file, replacing dirname.c
71309         TEST_DIRNAME section that was recently deleted.
71310
71311 2006-07-04  Bruno Haible  <bruno@clisp.org>
71312
71313         Assume ANSI C header files and <ctype.h> functions.
71314         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
71315         (mbsnwidth): Use isprint, iscntrl instead.
71316
71317 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71318
71319         Merge from coreutils.
71320         * MODULES.html.sh: Add xstrtold.
71321         * modules/xstrtold: New file.
71322         * modules/cycle-check (Files): Add lib/same-inode.h.
71323         * modules/dirname (Files): Add m4/double-slash-root.m4.
71324         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
71325         * modules/mkdir-p (Files): Add lib/same-inode.h.
71326         * modules/same (Files): Add lib/same-inode.h.
71327
71328 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71329
71330         * m4/absolute-header.m4: Renamed from full-header-path.m4.
71331         This is to keep the terminology clean; POSIX talks about
71332         "absolute pathnames", not "full pathnames", but the GNU
71333         Coding Standards say to use "path" for something else;
71334         so use "absolute" to keep both sides happy.
71335         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
71336         Set gl_absolute_header, not gl_full_header_path.
71337         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
71338         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
71339         All uses changed.
71340
71341         Merge from coreutils.
71342
71343         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71344
71345         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
71346         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
71347         want to require the building of c-strtod.o.
71348         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
71349         needs -lm directly.
71350         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
71351
71352         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71353
71354         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
71355         --as-needed option if available.  Problem reported by Albert Chin in
71356         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
71357         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71358         cc merely issues a bunch of annoying warnings for --as-needed
71359         (this problem was reported by Bob Proulx).  Also, try linking with
71360         -lm to detect a bug in binutils 2.16 (this problem was reported
71361         by Ralf Wildenhues).
71362
71363         2006-06-18  Jim Meyering  <jim@meyering.net>
71364
71365         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71366         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71367         macro.
71368         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71369         also check for glibc-2.4's abort-inducing bug.
71370
71371         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71372         Low-probability clean-up should be to use rmdir to get rid of
71373         the just-created directory, not unlink.
71374
71375         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71376         configure fail, and request a bug report to inform us about it.
71377         Add a comment that, barring reports to the contrary, in 2007 we'll
71378         assume ftruncate is universally available.
71379
71380         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71381
71382         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71383
71384         2006-03-12  Jim Meyering  <jim@meyering.net>
71385
71386         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
71387         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71388         * m4/same.m4 (gl_SAME): Likewise.
71389         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71390
71391         2006-03-11  Eric Blake  <ebb9@byu.net>
71392
71393         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
71394         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
71395         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
71396         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
71397
71398 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71399
71400         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
71401         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
71402         reported by Mark D. Baushke, one in
71403         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
71404
71405         Merge from coreutils.
71406
71407         * lib/.cppi-disable: Add stdint_.h.
71408         * lib/.cvsignore: Add stdint.h.
71409
71410         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71411
71412         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
71413         both double and long double versions.
71414         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
71415         * lib/xstrtold.c: New file.
71416         * lib/xstrtod.h (xstrtold): New decl.
71417
71418         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71419
71420         * lib/filemode.c (setst): Remove.
71421         (strmode): Rewrite to avoid setst.  This makes the code shorter,
71422         (arguably) clearer, and the generated code is a bit smaller on my
71423         Debian GNU/Linux stable x86 host.
71424
71425         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71426
71427         * lib/filemode.c: Include "filemode.h" first, to test the interface.
71428         Assume that filemode.h includes sys/types.h and sys/stat.h.
71429         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
71430         (ftypelet): Reorder to put common cases first, for efficiency.
71431         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
71432         to do 'M'.
71433         (strmode): Renamed from mode_string, and now stores 12 bytes instead
71434         of 10, for compatibility with FreeBSD.  All callers changed.
71435         (filemodestring): Now stores 12 bytes instead of 10, and sets file
71436         types that can't be deduced solely from st_mode.  First arg is now a
71437         const pointer.
71438         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
71439         (strmode): Renamed from mode_string.
71440         (filemodestring): New decl.
71441         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
71442         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
71443         needed.
71444         (S_ISPORT, S_ISWHT): New macros, if not already defined.
71445
71446         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71447
71448         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
71449         fsusage.h now does that.  Include fsusage.h first, to test interface.
71450         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
71451         at most one method (the old code could have generated decls that
71452         didn't conform to C89, not that this was ever exercised).
71453         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
71454
71455         2006-03-19  Jim Meyering  <jim@meyering.net>
71456
71457         Work even in a chroot where d_ino values for entries in "/"
71458         don't match the stat.st_ino values for the same names.
71459         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
71460         number, iterate through all entries again, using lstat instead.
71461         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
71462         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
71463
71464         * lib/getcwd.c (__getcwd): Clarify a comment.
71465         Use memcpy in place of a call to strcpy.
71466
71467         2006-03-12  Jim Meyering  <jim@meyering.net>
71468
71469         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
71470         matches that of the current directory (which we're about to chdir ".."
71471         out of), then save the dev-ino of the parent, instead.
71472
71473         * lib/same-inode.h (SAME_INODE): New file/macro.
71474         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71475         Include "same-inode.h", instead.
71476         * lib/same.c: Likewise.
71477         * lib/cycle-check.h: Include "same-inode.h".
71478         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71479         * lib/cycle-check.c (SAME_INODE): Remove definition.
71480         * lib/root-dev-ino.h: Include "same-inode.h".
71481
71482         2006-03-11  Eric Blake  <ebb9@byu.net>
71483
71484         * lib/same.c (same_name): s/base_name/last_component/
71485         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71486         * lib/filenamecat.c (file_name_concat): Likewise.
71487
71488         2006-03-11  Eric Blake  <ebb9@byu.net>,
71489                     Paul Eggert  <eggert@cs.ucla.edu>
71490
71491         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71492         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71493         drive prefix.
71494         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71495         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71496         (last_component): New method.
71497         * lib/dirname.c (dir_len): Determine when drive letters need a
71498         subsequent slash.  Preserve // when it is special.
71499         (dir_name): Don't append dot when drive letter is absolute.
71500         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71501         * lib/basename.c (base_name): New semantics - malloc the result.
71502         Preserve // when it is special.  Preserve relative files that look
71503         like drive letters.
71504         (base_len): Preserve // when it is special.
71505         (last_component): New method, similar to old base_name semantics.
71506         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71507         base_name.  Strip redundant slashes from ///.
71508
71509 2006-07-03  Jim Meyering  <jim@meyering.net>
71510
71511         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71512         macro is used before the first cycle_check call.
71513
71514 2006-07-03  Eric Blake  <ebb9@byu.net>
71515
71516         * modules/dirname (Depends-on): Add xstrndup.
71517
71518 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71519
71520         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71521         test cases, so that config.log is a bit easier to follow.
71522
71523 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71524
71525         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71526         both are 64 bits, since this seems to be the tradition, and this
71527         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71528         we ever run into a host that prefers long long to long in this
71529         case, we'll need another configure-time test.  Problem reported by
71530         Jim Meyering.
71531
71532 2006-07-02  Eric Blake  <ebb9@byu.net>
71533
71534         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71535
71536 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71537
71538         * modules/inttypes (Depends-on): No longer depends on stdint.
71539         * modules/stdint (Description): Say more about assumptions.
71540         Say that the fast types might differ.  Say macros are used.
71541         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71542         (Makefile.am): Revise list of substituted symbols to match
71543         new stdint.m4.
71544         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71545         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71546         * tests/test-stdint.c (verify_same_types)
71547         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71548         the code conforms to C99/C89.
71549         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71550         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71551
71552 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71553
71554         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71555         but fix a bug, by requiring at least 64 bits.
71556         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71557         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71558         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71559         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71560
71561         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71562         changes.  Make 2.59 a prerequisite.  Check and substitute for
71563         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71564         inttypes.h.  Do not use special include files; just use the
71565         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71566         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71567         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71568         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71569         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71570         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71571         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71572         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71573         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71574         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71575         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71576         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71577         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71578         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71579         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71580         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71581         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71582         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71583         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71584         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71585         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71586         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71587         not check for things that C99 does not require, e.g., int8_t.  If
71588         a test isn't needed unless <stdint.h> isn't working, and is
71589         unlikely to be needed for any other reason, then don't do it
71590         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71591         size_t, since we assume C89 freestanding at least.  Do not check
71592         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71593         the right thing even if the types are not defined.  Instead use:
71594         (gl_STDINT_TYPE_PROPERTIES): New macro.
71595         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71596         testing whether <sys/types.h> clashes, as Autoconf does this for
71597         us now.  All uses removed.
71598         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71599         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71600         (gl_CHECK_TYPE_SAME):
71601         Remove; no longer needed.
71602         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71603         exists, since we'll return 0 anyway in that case.
71604         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71605
71606 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71607
71608         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71609         possible collision with system files.
71610         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71611         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71612         WCHAR_MIN and WCHAR_MAX in this case.
71613         (<stddef.h>): Do not include; no longer needed.
71614         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71615         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71616         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71617         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71618         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71619         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71620         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71621         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71622         !defined(__c99))]: Include in this case too, since it's harmless
71623         now.
71624         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71625         dangerous to do so.
71626         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71627         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71628         (_STDINT_MIN, _STDINT_MAX): New macros.
71629         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71630         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71631         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71632         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71633         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71634         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71635         macros, not typedefs; this simplifies things quite a bit.
71636         Use long int for all types narrower than int64_t.
71637         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71638         Define in terms of long long int or int64_t or long int,
71639         not int64_t or int32_t.  This saves some compile-time testing.
71640         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71641         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71642         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71643         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71644         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71645         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71646         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71647         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71648         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71649         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71650         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71651         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71652         undef any previous version and define our own version, for
71653         simplicity and consistency with the new macros for types.
71654         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71655         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71656         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71657         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71658         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71659         @WINT_T_SUFFIX@ to keep things simple here.
71660         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71661         Simplify by assuming typical 8/16/32/64 host, since we're
71662         already doing that elsewhere anyway.
71663         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71664         and assume long long int is 64 bits if available.  This
71665         speeds up 'configure'.
71666
71667 2006-07-01  Eric Blake  <ebb9@byu.net>
71668
71669         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71670         Reported by Andreas Buening.
71671
71672 2006-07-01  Eric Blake  <ebb9@byu.net>
71673
71674         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71675
71676 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71677
71678         * lib/getaddrinfo.c: fixed typo
71679
71680 2006-06-29  Jim Meyering  <jim@meyering.net>
71681
71682         * modules/strftime (Maintainer): Add my name, since with the
71683         FPRINTFTIME changes strftime.c has forked from glibc.
71684
71685 2006-06-29  Eric Blake  <ebb9@byu.net>
71686
71687         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71688
71689 2006-06-29  Eric Blake  <ebb9@byu.net>
71690
71691         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71692
71693 2006-06-29  Eric Blake  <ebb9@byu.net>
71694
71695         * lib/stat_.h: New file.
71696
71697 2006-06-29  Eric Blake  <ebb9@byu.net>
71698
71699         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71700         unused static function.
71701
71702 2006-06-29  Eric Blake  <ebb9@byu.net>
71703
71704         * doc/functions.texi (Function Portability): Document missing lstat
71705         on mingw.
71706
71707 2006-06-29  Eric Blake  <ebb9@byu.net>
71708
71709         * MODULES.html.sh: Add sys_stat.
71710         * modules/sys_stat: New module.
71711         * modules/mkstemp (Depends-on): Add sys_stat.
71712
71713 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71714
71715         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71716
71717 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71718
71719         * m4/c-bs-a.m4: Removed.
71720
71721 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71722
71723         * lib/strftime.c: Assume strftime() exists.
71724
71725 2006-06-29  Derek Price  <derek@ximbiot.com>
71726
71727         * modules/c-bs-a: Removed - \a is C89.
71728         * MODULES.html.sh: Remove c-bs-a.
71729
71730 2006-06-29  Bruno Haible  <bruno@clisp.org>
71731
71732         * modules/wcwidth (License): Change to LGPL.
71733
71734 2006-06-28  Simon Josefsson  <jas@extundo.com>
71735
71736         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71737         on _WIN32.
71738
71739         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71740         getnameinfo.
71741
71742 2006-06-28  Simon Josefsson  <jas@extundo.com>
71743
71744         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71745
71746 2006-06-28  Simon Josefsson  <jas@extundo.com>
71747
71748         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71749         functions there.  It will succeed on Windows XP, but on Windows
71750         2000 and (presumably) earlier, it will fail, and use the internal
71751         re-implementation.
71752         (use_win32_p): New function.
71753         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71754         Support AI_NUMERICSERV to disable getservbyname.
71755         (getnameinfo): New function, only supports
71756         NI_NUMERICHOST|NI_NUMERICSERV for now.
71757
71758         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71759         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71760         getnameinfo.
71761
71762 2006-06-28  Eric Blake  <ebb9@byu.net>
71763
71764         * modules/wcwidth: New file.
71765         * modules/mbchar (Depends-on): Add wcwidth.
71766         * modules/mbswidth (Depends-on): Add wcwidth.
71767         * MODULES.html.sh: Add wcwidth.
71768
71769 2006-06-28  Eric Blake  <ebb9@byu.net>
71770
71771         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71772         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71773
71774 2006-06-28  Eric Blake  <ebb9@byu.net>
71775
71776         * lib/xvasprintf.h: Fix comments.
71777
71778 2006-06-28  Eric Blake  <ebb9@byu.net>
71779
71780         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71781         * lib/mbswidth.c (wcwidth): Move from here...
71782         * lib/wcwidth.h: ...to this new file.
71783
71784 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71785
71786         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71787
71788         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71789         it's obsolete.
71790         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71791
71792 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71793
71794         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71795         Autoconf 2.60 says this stuff was obsolete.
71796
71797 2006-06-28  Bruno Haible  <bruno@clisp.org>
71798
71799         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71800
71801 2006-06-28  Bruno Haible  <bruno@clisp.org>
71802
71803         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71804         gt_TYPE_WCHAR_T.
71805
71806 2006-06-28  Bruno Haible  <bruno@clisp.org>
71807
71808         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71809         declaration for wcwidth.
71810         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71811
71812 2006-06-28  Bruno Haible  <bruno@clisp.org>
71813
71814         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71815         (mkdir): Define using _mkdir.
71816
71817 2006-06-28  Bruno Haible  <bruno@clisp.org>
71818
71819         * lib/getaddrinfo.h: Fix POSIX URL.
71820         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71821         _WIN32.
71822         (use_win32_p): Make static.
71823         (getaddrinfo): Reject service name if it is empty or does not consist
71824         solely of decimal digits, or if its value is > 65535.
71825         (getnameinfo): Remove useless casts.
71826
71827 2006-06-27  Simon Josefsson  <jas@extundo.com>
71828
71829         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71830         Eggert and Martin Lambers.
71831
71832 2006-06-27  Simon Josefsson  <jas@extundo.com>
71833
71834         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71835         Eggert and Martin Lambers.
71836
71837 2006-06-27  Bruno Haible  <bruno@clisp.org>
71838
71839         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71840         result to 0, not to empty.
71841         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71842
71843 2006-06-27  Bruno Haible  <bruno@clisp.org>
71844
71845         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71846
71847 2006-06-26  Simon Josefsson  <jas@extundo.com>
71848
71849         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71850         present.
71851
71852 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71853
71854         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71855         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71856         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71857
71858 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71859
71860         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71861
71862 2006-06-26  Bruno Haible  <bruno@clisp.org>
71863
71864         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71865
71866 2006-06-26  Bruno Haible  <bruno@clisp.org>
71867
71868         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71869
71870 2006-06-26  Bruno Haible  <bruno@clisp.org>
71871
71872         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71873         SGI C compiler in pre-C99 mode.
71874         Suggested by Mark D. Baushke and Larry Jones.
71875
71876 2006-06-26  Bruno Haible  <bruno@clisp.org>
71877
71878         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71879         WCHAR_MAX.
71880         Reported by Mark D. Baushke and Larry Jones.
71881
71882 2006-06-26  Bruno Haible  <bruno@clisp.org>
71883
71884         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71885         in pre-C99 mode.
71886         Suggested by Mark D. Baushke and Larry Jones.
71887
71888 2006-06-23  Simon Josefsson  <jas@extundo.com>
71889             Bruno Haible  <bruno@clisp.org>
71890
71891         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71892         Emit mostlyclean-local rule.
71893         (func_emit_tests_Makefile_am): Likewise.
71894         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71895
71896 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71897
71898         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71899
71900 2006-06-23  Bruno Haible  <bruno@clisp.org>
71901
71902         * tests/test-stdint.c: Update to match ISO C 99 Technical
71903         Corrigendum 1.
71904
71905 2006-06-23  Bruno Haible  <bruno@clisp.org>
71906
71907         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71908
71909 2006-06-23  Bruno Haible  <bruno@clisp.org>
71910
71911         * lib/stdint_.h: Treat IRIX like OpenBSD.
71912
71913 2006-06-23  Bruno Haible  <bruno@clisp.org>
71914
71915         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71916         ISO C 99 Technical Corrigendum 1.
71917
71918 2006-06-22  Simon Josefsson  <jas@extundo.com>
71919
71920         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71921         MinGW.
71922
71923 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71924
71925         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71926         needed.  Some compiler complained about some of them.  Problem reported
71927         by Larry Jones in
71928         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71929
71930 2006-06-21  Simon Josefsson  <jas@extundo.com>
71931
71932         * tests/test-getaddrinfo.c: New file.
71933
71934         * modules/getaddrinfo-tests: New file.
71935
71936         * MODULES.html.sh: Add inet_pton.
71937
71938         * modules/inet_pton: New file.
71939
71940 2006-06-21  Simon Josefsson  <jas@extundo.com>
71941
71942         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71943         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71944         of using the (limited) gnulib implementation on Windows XP.
71945
71946         * m4/inet_pton.m4: New file.
71947
71948 2006-06-21  Simon Josefsson  <jas@extundo.com>
71949
71950         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71951         variable.
71952
71953         * lib/socket_.h: Don't define WINVER.
71954
71955         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71956         slightly modified to work in gnulib.
71957
71958 2006-06-21  Simon Josefsson  <jas@extundo.com>
71959
71960         * doc/gnulib.texi (Windows sockets): Add.
71961
71962 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71963
71964         * lib/read-file.c (fread_file): Start with buffer allocation of
71965         0 bytes rather than 1 byte; this simplifies the code.
71966         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71967         code to free buffer and save/restore errno.
71968         (internal_read_file): Remove unused local.
71969
71970 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71971
71972         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71973         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71974         Problem reported by Denis Excoffier in
71975         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71976
71977 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71978
71979         * modules/sys_socket, modules/socklen: Include sys/types since
71980         FreeBSD 4.x's sys/socket.h needs it.
71981
71982 2006-06-19  Simon Josefsson  <jas@extundo.com>
71983
71984         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71985
71986 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71987
71988         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71989
71990 2006-06-19  Bruno Haible  <bruno@clisp.org>
71991
71992         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71993         and FULL_PATH_INTTYPES_H in angle brackets.
71994         Reported by Mark D. Baushke <mdb@gnu.org>.
71995
71996 2006-06-17  Eric Blake  <ebb9@byu.net>
71997
71998         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71999         errno.
72000
72001 2006-06-17  Bruno Haible  <bruno@clisp.org>
72002
72003         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
72004         <sys/inttypes.h>.
72005
72006 2006-06-17  Bruno Haible  <bruno@clisp.org>
72007
72008         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
72009         whether errno is declared. Assume <errno.h> declares errno.
72010
72011 2006-06-17  Bruno Haible  <bruno@clisp.org>
72012
72013         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
72014
72015 2006-06-17  Bruno Haible  <bruno@clisp.org>
72016
72017         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
72018         problem on Solaris 2.5.1.
72019
72020 2006-06-16  Eric Blake  <ebb9@byu.net>
72021
72022         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
72023         * lib/unicodeio.c [!defined errno]: Likewise.
72024         * lib/strtol.c [!defined errno]: Likewise.
72025         * lib/strtod.c [!defined errno]: Likewise.
72026
72027 2006-06-15  Eric Blake  <ebb9@byu.net>
72028
72029         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
72030
72031 2006-06-15  Eric Blake  <ebb9@byu.net>
72032
72033         * config/srclist.txt (ssize_t.m4): Lose sync.
72034
72035 2006-06-15  Bruno Haible  <bruno@clisp.org>
72036
72037         * modules/stdint (Files): Include m4/full-header-path.m4,
72038         m4/size_max.m4, m4/wchar_t.m4.
72039         (Makefile.am): Many more substitutions.
72040         * modules/stdint-tests: New file.
72041         * tests/test-stdint.c: New file.
72042
72043 2006-06-15  Bruno Haible  <bruno@clisp.org>
72044
72045         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
72046         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
72047         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
72048         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
72049         gl_CHECK_TYPE_SAME): New macros.
72050
72051 2006-06-15  Bruno Haible  <bruno@clisp.org>
72052
72053         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
72054
72055 2006-06-15  Bruno Haible  <bruno@clisp.org>
72056
72057         * lib/stdint_.h: Rewritten to be fully auto-configured.
72058         Fixes bug on HP-UX/IA64.
72059
72060 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
72061
72062         * lib/getdate.y (__attribute__): Don't define if already defined.
72063         Problem reported by Larry Jones.
72064         * lib/utimens.c (__attribute__): Likewise.
72065
72066 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
72067
72068         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
72069         reported by Andreas Schwab.
72070
72071 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72072             Bruno Haible  <bruno@clisp.org>
72073
72074         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
72075         check for the declaration of strnlen and a run test that exposes the
72076         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
72077         rpl_strndup.
72078
72079 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72080             Bruno Haible  <bruno@clisp.org>
72081
72082         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
72083
72084 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72085
72086         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
72087         compile test, for Tru64 4.0D.
72088
72089 2006-05-28  Karl Berry  <karl@gnu.org>
72090
72091         * config/srclist.txt (printf-args.c): lose sync.
72092
72093 2006-05-26  Martin Lambers  <marlam@marlam.de>
72094
72095         * lib/getpass.c: Updates the test for the native W32 API, and adds
72096         missing includes, thus fixing compilation warnings.
72097
72098 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72099
72100         * lib/exclude.c (exclude_fnmatch): New function.
72101         (excluded_file_name): Call exclude_fnmatch.
72102         * lib/exclude.h (excluded_file_name): New prototype
72103
72104 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
72105
72106         * lib/tempname.c (small_open, large_open): New macros.
72107         (__open, __open64) [!_LIBC]: Remove.
72108         (__gen_tempname): Use small_open and large_open instead of __open
72109         and __open64.  This fixes a portability bug on HP-UX 11.11i
72110         reported by Simon Wing-Tang in
72111         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
72112
72113 2006-05-24  Bruno Haible  <bruno@clisp.org>
72114
72115         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
72116         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
72117         Reported by Thorsten Maerz <torte@netztorte.de> via
72118         Aaron Stone <aaron@serendipity.cx>.
72119
72120 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72121
72122         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
72123         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
72124         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
72125         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
72126         not really conditional on the cache.
72127         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
72128
72129 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72130
72131         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
72132         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
72133         (my_usleep): Don't mishandle maximum value.
72134
72135 2006-05-19  Jim Meyering  <jim@meyering.net>
72136
72137         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
72138
72139 2006-05-17  Bruno Haible  <bruno@clisp.org>
72140
72141         Cygwin portability.
72142         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
72143
72144 2006-05-17  Bruno Haible  <bruno@clisp.org>
72145
72146         * lib/stdint_.h: Fix recognition of Cygwin.
72147
72148 2006-05-15  Bruno Haible  <bruno@clisp.org>
72149
72150         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
72151         on libtool patch by Ralf Wildenhues.
72152
72153 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72154
72155         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
72156         test for C99 conformance; (bool) 0.5 is an integer constant
72157         expression, but (bool) -0.5 is not.  Problem reported by Fedor
72158         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
72159
72160 2006-05-11  Simon Josefsson  <jas@extundo.com>
72161
72162         * m4/xvasprintf.m4: Fix obvious typo.
72163
72164 2006-05-11  Jim Meyering  <jim@meyering.net>
72165
72166         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
72167         James Lemley.
72168
72169 2006-05-10  Simon Josefsson  <jas@extundo.com>
72170
72171         * lib/md4.c: Typo fix, update copyright years.
72172         (K1, K2): Don't use L because it turn computations into 64-bit on
72173         64-bit platforms.
72174
72175 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
72176
72177         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
72178         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
72179         unwanted sign propagation, e.g., on hosts with 64-bit int.
72180         There still are some problems with reeelly weird theoretical hosts
72181         (e.g., 33-bit int) but it's not worth worrying about now.
72182         * lib/sha1.c (rol): Likewise.
72183         (K1, K2, K3, K4): Remove unnecessary L suffix.
72184
72185 2006-05-10  Bruno Haible  <bruno@clisp.org>
72186
72187         * lib/des.c: Cast to avoid warnings.
72188
72189 2006-05-09  Bruno Haible  <bruno@clisp.org>
72190
72191         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
72192         (Depends-on): Depend also on xsize, stdarg.
72193         (configure.ac): Add gl_XVASPRINTF.
72194
72195 2006-05-09  Bruno Haible  <bruno@clisp.org>
72196
72197         * m4/xvasprintf.m4: New file.
72198
72199 2006-05-09  Bruno Haible  <bruno@clisp.org>
72200
72201         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
72202         (EOVERFLOW): Define fallback value.
72203         (xstrcat): New function.
72204         (xvasprintf): Recognize the special case of a string concatenation.
72205
72206 2006-05-08  Eric Blake  <ebb9@byu.net>
72207
72208         * gnulib-tool (func_version): Base copyright year on CVS date.
72209         (func_emit_copyright_notice): New function.
72210         (func_emit_lib_Makefile_am): Use it.
72211         (func_emit_tests_Makefile_am): Likewise.
72212         (func_import): Likewise.
72213
72214 2006-05-08  Bruno Haible  <bruno@clisp.org>
72215
72216         * modules/stdarg: New file.
72217         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
72218
72219 2006-05-08  Bruno Haible  <bruno@clisp.org>
72220
72221         * m4/stdarg.m4: New file, from GNU gettext.
72222
72223 2006-05-08  Bruno Haible  <bruno@clisp.org>
72224
72225         * config/srclist.txt (build-aux/config.rpath): different from latest
72226         release.
72227
72228 2006-05-08  Bruno Haible  <bruno@clisp.org>
72229
72230         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
72231
72232 2006-05-05  Jim Meyering  <jim@meyering.net>
72233
72234         * m4/warning.m4: New file, derived from bison's file by the same name.
72235
72236 2006-05-03  Bruno Haible  <bruno@clisp.org>
72237
72238         * lib/stdint_.h: Shorter URL.
72239         * lib/inttypes.h: Likewise.
72240
72241 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72242
72243         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
72244
72245 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72246
72247         * lib/verify.h: Document the internals better.  Most of this change
72248         was written by Bruno Haible.
72249
72250 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72251
72252         * doc/verify.texi: New file, partly based on a proposal by
72253         Bruno Haible.
72254
72255 2006-05-02  Bruno Haible  <bruno@clisp.org>
72256
72257         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
72258         test from here...
72259         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
72260
72261 2006-04-29  Bruno Haible  <bruno@clisp.org>
72262
72263         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
72264         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
72265
72266 2006-04-29  Bruno Haible  <bruno@clisp.org>
72267
72268         * gnulib-tool: Make --update option actually work.
72269
72270 2006-04-29  Bruno Haible  <bruno@clisp.org>
72271
72272         * doc/gcd.texi: New file.
72273         * doc/gnulib.texi: Include it.
72274
72275 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
72276
72277         * lib/getdate.y (get_date): When adding relative date, start with the
72278         initial time, not with the result of the first mktime call.
72279
72280 2006-04-25  Bruno Haible  <bruno@clisp.org>
72281
72282         * gnulib-tool (func_import): Output the include directives in three
72283         blocks, sorted separately.
72284         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72285
72286 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72287
72288         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
72289         to define main with arguments, for C++.  Reported by Eric Blake.
72290         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
72291         Prefer 'int main ()' to 'int main (void)', for C++.
72292         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
72293         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
72294         for 'main', for C99 and C++.
72295
72296 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72297
72298         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
72299         Don't assume that exit status -1 is valid.
72300         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72301         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
72302         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
72303         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
72304         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
72305         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
72306         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
72307         functions can be used without declaring them, or that you can
72308         exit with status -1.
72309         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
72310
72311 2006-04-24  Karl Berry  <karl@gnu.org>
72312
72313         * config/srclist.txt (longdouble.m4): sync lost.
72314
72315 2006-04-24  Eric Blake  <ebb9@byu.net>
72316
72317         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
72318
72319 2006-04-24  Bruno Haible  <bruno@clisp.org>
72320
72321         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
72322         poll() implementation in AIX.
72323         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72324
72325 2006-04-24  Bruno Haible  <bruno@clisp.org>
72326
72327         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
72328         assigned exactly once.
72329
72330 2006-04-23  Claudio Fontana  <claudio@gnu.org>
72331             Bruno Haible  <bruno@clisp.org>
72332
72333         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
72334         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
72335         for AM_CPPFLAGS.
72336
72337 2006-04-23  Bruno Haible  <bruno@clisp.org>
72338
72339         * modules/copy-file: Depend on unistd.
72340         * modules/execute: Likewise.
72341         * modules/fatal-signal: Likewise.
72342         * modules/findprog: Likewise.
72343         * modules/mkdtemp : Likewise.
72344         * modules/pipe: Likewise.
72345         * modules/wait-process: Likewise.
72346
72347 2006-04-23  Bruno Haible  <bruno@clisp.org>
72348
72349         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
72350         condition was already detected.
72351         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72352
72353 2006-04-23  Bruno Haible  <bruno@clisp.org>
72354
72355         * lib/copy-file.c: Include <unistd.h> unconditionally.
72356         * lib/execute.c: Likewise.
72357         * lib/fatal-signal.c: Likewise.
72358         * lib/findprog.c: Likewise.
72359         * lib/mkdtemp.c: Likewise.
72360         * lib/pipe.h: Likewise.
72361         * lib/pipe.c: Likewise.
72362         * lib/wait-process.h: Likewise.
72363
72364 2006-04-23  Bruno Haible  <bruno@clisp.org>
72365
72366         * gnulib-tool (func_usage): Fix --import description. Document
72367         --update.
72368         (func_import): Create temporary file in a temporary directory, if
72369         --dry-run is specified. Silence errors from 'grep' when there are no
72370         m4 files in $m4dir.
72371         (func_create_testdir): Silence errors from 'grep' when there are no
72372         m4 files in $m4dir.
72373         Reported by Karl Berry <karl@freefriends.org>.
72374
72375 2006-04-20  Bruno Haible  <bruno@clisp.org>
72376
72377         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72378         one argument, so that the code will be portable to Autoconf 2.60.
72379         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
72380         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72381         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72382
72383 2006-04-19  Derek Price  <derek@ximbiot.com>
72384             Eric Blake  <ebb9@byu.net>
72385
72386         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
72387         rather than "/full/path.h".  Update comment to match.  Shorten &
72388         generalize m4_translit call via AS_TR_CPP.
72389
72390 2006-04-19  Derek Price  <derek@ximbiot.com>
72391             Eric Blake  <ebb9@byu.net>
72392
72393         * lib/inttypes.h: Correct grammar in comment.
72394
72395 2006-04-18  Derek Price  <derek@ximbiot.com>
72396             Paul Eggert  <eggert@cs.ucla.edu>
72397
72398         * modules/inttypes: New file.
72399         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
72400
72401 2006-04-18  Derek Price  <derek@ximbiot.com>
72402             Paul Eggert  <eggert@cs.ucla.edu>
72403
72404         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
72405         New files.
72406
72407 2006-04-18  Derek Price  <derek@ximbiot.com>
72408             Paul Eggert  <eggert@cs.ucla.edu>
72409
72410         * lib/inttypes.h: New file.
72411         * lib/strtoimax.c: Assume <inttypes.h>.
72412
72413 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
72414
72415         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
72416         isn't mounted.  Problem reported by Kir Kolyshkin.
72417
72418 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72419
72420         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
72421         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
72422         Derek R. Price.
72423         * lib/regex.h (RE_DUP_MAX): Update comment to match current
72424         implementation.
72425
72426 2006-04-12  Eric Blake  <ebb9@byu.net>
72427
72428         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
72429         is now done automatically by the corresponding Autoconf macro.
72430
72431 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
72432
72433         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
72434         time_r.h.
72435
72436 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72437
72438         Merge regex changes from libc, removing some of our
72439         POSIX-conformance changes that were rejected and redoing them in a
72440         less-intrusive way.
72441
72442         * lib/regcomp.c (re_compile_internal, init_dfa):
72443         Length arg is now size_t, not Idx.  All uses changed.
72444         (peek_token): Forward decl now says internal_function.
72445         (__re_error_msgid, __re_error_msgid_idx):
72446         Now static rather than extern with attribute_hidden.
72447         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
72448         For some reason libc prefers K&R style defns for external functions.
72449         (regerror) [!defined _LIBC]: Likewise.
72450         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
72451         (seek_collating_symbol_entry, lookup_collation_sequence_value):
72452         (build_range_exp, build_collating_symbol):
72453         Use K&R-style defn.
72454         (re_compile_fastmap): Use '\0' to memset, not 0.
72455         (utf8_sb_map): Make the calculations more obvious.
72456         (init_dfa, parse_bracket_exp, build_charclass_op):
72457         Call calloc and cast result, as glibc does.
72458         (init_word_char, fetch_token, peek_token, peek_token_bracket):
72459         (build_range_exp, build_collating_symbol):
72460         Now internal functions.
72461
72462         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
72463
72464         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
72465         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
72466         Don't depend on VMS; depend on __VMS instead, for POSIX
72467         namespace cleanness.
72468         (regoff_t): Define to ssize_t, not long int.
72469
72470         Remove the REG_ macros named below.  Instead, make the old names
72471         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72472         __USE_GNU_REGEX.
72473         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72474         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72475         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72476         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72477         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72478         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72479         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72480         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72481         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72482         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72483         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72484         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72485         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72486         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72487         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72488         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72489         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72490         (REG_NREGS):
72491         Remove.  All uses replaced by the old RE_* names.
72492         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72493         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72494         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72495         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72496         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72497         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72498         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72499         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72500         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72501         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72502         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72503         Don't bother having these macros be independent of each others'
72504         values, since they no longer exist in the POSIX name space.
72505
72506         Rename the following member names back to their old names,
72507         unless !__USE_GNU_REGEX.  All uses changed back.
72508         (buffer): Renamed from re_buffer.
72509         (allocated): Renamed from re_allocated.
72510         (used): Renamed from re_used.
72511         (syntax): Renamed from re_syntax.
72512         (fastmap): Renamed from re_fastmap.
72513         (translate): Renamed from re_translate.
72514         (can_be_null): Renamed from re_can_be_null.
72515         (regs_allocated): Renamed from re_regs_allocated.
72516         (fastmap_accurate): Renamed from re_fastmap_accurate.
72517         (no_sub): Renamed from re_no_sub.
72518         (not_bol): Renamed from re_not_bol.
72519         (not_eol): Renamed from re_not_eol.
72520         (newline_anchor): Renamed from re_newline_anchor.
72521         (num_regs): Renamed from rm_num_regs.
72522         (start): Renamed from rm_start.
72523         (end): Renamed from rm_end.
72524
72525         (free_state): Move up a bit.
72526
72527         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72528         #define to be empty.
72529         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72530         when that is what is intended.
72531         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72532         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72533         (MAX): New macro.
72534         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72535         All uses changed back to re_malloc, etc.  It's now the caller's
72536         responsibility to check for overflow; all callers changed.
72537         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72538         (re_x2nrealloc): Remove.
72539         (free_state): Remove decl.
72540
72541         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72542         (re_set_registers, re_exec):
72543         Use K&R-style defn.
72544
72545         2006-01-31  Roland McGrath  <roland@redhat.com>
72546
72547         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72548         Reported by Mike Frysinger <vapier@gentoo.org>.
72549
72550         2006-01-15  Andreas Jaeger  <aj@suse.de>
72551
72552         [BZ #1950]
72553         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72554         build_wcs_upper_buffer change.
72555         (build_wcs_upper_buffer): Change return type.
72556
72557         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72558
72559         * lib/regex_internal.h: Include <stdint.h> if available.
72560
72561         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72562
72563         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72564
72565         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72566
72567         * lib/regcomp.c: Adjust for changed secondary hash function.
72568
72569         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72570
72571         * lib/regex.h: Pretty printing.
72572         Clean up namespace a bit.
72573
72574         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72575
72576         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72577         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72578
72579         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72580                     Ulrich Drepper  <drepper@redhat.com>
72581
72582         [BZ #1302]
72583         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72584         changed.
72585         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72586
72587         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72588
72589         [BZ #281]
72590         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72591         * lib/regcomp.c: Remove unnecessary uses of
72592         unsigned RE_TRANSLATE_TYPE.
72593         * lib/regex_internal.h: Likewise.
72594         * lib/regex_internal.c: Likewise.
72595         * lib/regexec.c: Likewise.
72596         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72597
72598         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72599
72600         * lib/regexec.c (find_recover_state): Remove unnecessary
72601         initialization.
72602         (transit_state_bkref): Make DFA a const pointer.
72603         (get_subexp): Likewise.
72604         (check_arrival): Likewise.
72605         (update_cur_sifted_state): Likewise.
72606         (re_search_internal): Likewise.
72607         (prune_impossible_nodes): Likewise.
72608         (acquire_init_state_context): Likewise.
72609         (proceed_next_node): Likewise.
72610         (set_regs): Likewise.
72611         (free_fail_stack_return): Likewise.
72612         (check_arrival_expand_ecl): Mark DFA parameter as const.
72613         (check_arrival_expand_ecl_sub): Likewise.
72614         (check_subexp_limits): Likewise.
72615         (sub_epsilon_src_nodes):  Likewise.
72616         (add_epsilon_src_nodes):  Likewise.
72617         (merge_state_array): Likewise.
72618         (update_regs): Likewise.
72619         (build_trtable): Likewise.
72620         (sift_states_backward): Mark MCTX parameter as const.
72621         (build_sifted_states): Likewise.
72622         (update_cur_sifted_state): Likewise.
72623         (sift_states_mkref): Likewise.
72624         (check_arrival_expand_ecl): Mark eclosure as const.
72625         (check_dst_limits_calc_pos_1): Likewise.
72626         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72627         pointer.
72628
72629         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72630
72631         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72632         (transit_state_sb): Likewise.
72633         (transit_state_mb): Likewise.
72634         (sift_states_iter_mb): Likewise.
72635         (check_arrival_add_next_nodes): Likewise.
72636         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72637         [_LIBC] (re_search_2_stub): Use mempcpy.
72638
72639         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72640         mbrtowc for very simple UTF-8 case.
72641
72642         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72643         a pointer-to-const.
72644         (re_acquire_state_context): Likewise.
72645         * lib/regex_internal.h: Adjust prototypes.
72646
72647         * lib/regex.c: Prevent using C++ compilers.
72648
72649         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72650         (re_acquire_state_context): Likewise.
72651
72652 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72653
72654         * modules/regex (Depends-on): Add ssize_t.
72655
72656 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72657
72658         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72659         translation table.
72660
72661 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72662
72663         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72664
72665 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72666             Bruno Haible  <bruno@clisp.org>
72667
72668         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72669         <sys/types.h> and <inttypes.h>.
72670
72671 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72672
72673         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72674         `__error_t_defined', so argp.h will not typedef the former.
72675
72676 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72677
72678         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72679         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72680         glibc names.  Even if glibc is changed to conform to POSIX, the
72681         traditional names will be available anyway, since regex depends on
72682         the extensions module.  Also, fix a longstanding typo in the
72683         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72684         reported by Emanuele Giaquinta.  Also, change sense of cached
72685         variable, so that the message makes sense.
72686
72687 2006-03-24  Simon Josefsson  <jas@extundo.com>
72688
72689         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72690         including some doc fixes.
72691         (base64_encode_alloc): Fix +1 bug on allocation failures.
72692
72693 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72694
72695         * lib/base64.c (base64_encode): Do not read past end of array with
72696         unsanitized input on systems with CHAR_BIT > 8.
72697
72698 2006-03-24  Eric Blake  <ebb9@byu.net>
72699
72700         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72701
72702 2006-03-22  Karl Berry  <karl@gnu.org>
72703
72704         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72705         * config/srclistvars.sh (COREUTILS): new var.
72706
72707 2006-03-17  Jim Meyering  <jim@meyering.net>
72708
72709         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72710         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72711
72712 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72713
72714         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72715         no longer needs it.  Instead, check that regoff_t is as least
72716         as wide as ptrdiff_t.
72717
72718         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72719         so that our regex.h stays compatible with the installed regex.
72720         This is helpful for installers who configure --without-included-regex.
72721         Problem reported by Emanuele Giaquinta.
72722
72723 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72724
72725         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72726         Typedef to long int, not to off_, as POSIX will likely change
72727         in that direction.
72728
72729 2006-03-15  Eric Blake  <ebb9@byu.net>
72730
72731         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72732
72733 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72734
72735         * lib/argp-help.c (validate_uparams): Fix typo
72736         * lib/argp-parse.c (argp_default_options): Consistently begin help
72737         messages with a lowercase letter.
72738
72739 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72740
72741         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72742         overrun buffers and shouldn't be used (much as gets shouldn't be
72743         used).
72744         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72745
72746 2006-03-08  Simon Josefsson  <jas@extundo.com>
72747
72748         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72749         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72750
72751 2006-03-08  Simon Josefsson  <jas@extundo.com>
72752
72753         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72754         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72755
72756 2006-03-08  Simon Josefsson  <jas@extundo.com>
72757
72758         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72759         signal that configure disabled the device.
72760
72761 2006-03-08  Simon Josefsson  <jas@extundo.com>
72762
72763         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72764         languages.
72765
72766 2006-03-07  Simon Josefsson  <jas@extundo.com>
72767
72768         * modules/getopt (Depends-on): Add unistd.
72769
72770         * modules/unistd: New file.
72771
72772 2006-03-07  Simon Josefsson  <jas@extundo.com>
72773
72774         * modules/gc-random: New file.
72775
72776 2006-03-07  Simon Josefsson  <jas@extundo.com>
72777
72778         * m4/unistd_h.m4: New file.
72779
72780 2006-03-07  Simon Josefsson  <jas@extundo.com>
72781
72782         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72783         test to be side-effect free by storing the result in the cache
72784         variable gl_cv_lib_readline, and moving the assignment of
72785         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72786         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72787
72788 2006-03-07  Simon Josefsson  <jas@extundo.com>
72789
72790         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72791         error on missing devices (the functions will return an error).
72792
72793         * m4/gc.m4: Move random stuff to gc-random.m4
72794
72795 2006-03-07  Simon Josefsson  <jas@extundo.com>
72796
72797         * lib/unistd_.h: New file.
72798
72799 2006-03-07  Simon Josefsson  <jas@extundo.com>
72800
72801         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72802
72803 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72804
72805         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72806         Problem reported by Juan Manuel Guerrero.
72807
72808 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72809
72810         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72811         the unistd module.
72812         * lib/getlogin_r.c: Likewise.
72813         * lib/getlogin_r.h: Likewise.
72814         * lib/glob.c: Likewise.
72815         * lib/pagealign_alloc.c: Likewise.
72816         * lib/unistd_.h: Remove; no longer needed.
72817
72818 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72819
72820         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72821         Add unistd.
72822         * modules/c-stack (Depends-on): Add unistd.
72823         * modules/getlogin_r: Likewise.
72824         * modules/glob: Likewise.
72825         * modules/pagealign_alloc: Likewise.
72826         * modules/unistd (Files): Remove lib/unistd_.h.
72827         (EXTRA_DIST): Remove.
72828         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72829         need unistd_.h.
72830         (MOSTLYCLEANFILES): Remove unistd.h-t.
72831
72832 2006-03-03  Simon Josefsson  <jas@extundo.com>
72833
72834         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72835
72836 2006-03-03  Simon Josefsson  <jas@extundo.com>
72837
72838         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72839         libidn and bison.
72840
72841 2006-03-03  Simon Josefsson  <jas@extundo.com>
72842
72843         * build-aux/maint.mk: Add indent target.
72844
72845 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72846
72847         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72848         our replacement poll.h in any case, to avoid a differing
72849         declaration from a system header.  Seen on AIX.
72850
72851 2006-03-01  Simon Josefsson  <jas@extundo.com>
72852
72853         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72854         <kasal@ucw.cz>.
72855
72856 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72857
72858         * modules/gettime (Depends-on): Add extensions module.
72859         * modules/nanosleep (Depends-on): Likewise.
72860         * modules/settime (Depends-on): Likewise.
72861
72862 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72863
72864         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72865         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72866         pedantically.
72867         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72868         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72869
72870         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72871         not "==".  Reported by Ralf Wildenhues.
72872
72873 2006-03-01  Karl Berry  <karl@gnu.org>
72874
72875         * doc/Copyright/request-*: new files, synced from gnuorg.
72876
72877 2006-03-01  Karl Berry  <karl@gnu.org>
72878
72879         * config/srclist.txt (Copyright/*): new entries.
72880
72881 2006-02-28  Simon Josefsson  <jas@extundo.com>
72882
72883         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72884
72885 2006-02-27  Simon Josefsson  <jas@extundo.com>
72886
72887         * lib/base64.h: Indent #define's.  From Jim Meyering
72888         <jim@meyering.net>.
72889
72890 2006-02-27  Jim Meyering  <jim@meyering.net>
72891
72892         Revert the change of 2006-02-24, so these files can continue
72893         to be sync'd from gettext.
72894         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72895         of `config.h'.
72896
72897 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72898
72899         * modules/intprops: New file.
72900         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72901         Add intprops.
72902         * modules/getloadavg (Files): Remove lib/intprops.h.
72903         (Depends-on): Add intprops.
72904         * modules/human: Likewise.
72905         * modules/inttostr: Likewise.
72906         * modules/openat: Likewise.
72907         * modules/sig2str: Likewise.
72908         * modules/userspec: Likewise.
72909         * modules/utimecmp: Likewise.
72910         * modules/xnanosleep: Likewise.
72911         * modules/xstrtol: Likewise.
72912
72913 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72914
72915         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72916         * modules/lock-tests (TESTS): Use $(EXEEXT).
72917         * modules/tls-tests: Likewise.
72918         * modules/argp-tests: Likewise.
72919         (check_PROGRAMS): New var, replacing...
72920         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72921
72922 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72923
72924         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72925         `config.h'.
72926
72927 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72928
72929         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72930
72931 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72932
72933         Sync from coreutils.
72934         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72935         gl_CHDIR_SAFER.
72936
72937 2006-02-22  Jim Meyering  <jim@meyering.net>
72938
72939         Sync from coreutils.
72940         * m4/chdir-safer.m4: New file.
72941
72942 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72943
72944         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72945         AT_FDCWD exceeds INT_MAX.
72946         * lib/openat.h (AT_FDCWD): Likewise.
72947
72948 2006-02-17  Eric Blake  <address@hidden>
72949
72950         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72951
72952 2006-02-16  Simon Josefsson  <jas@extundo.com>
72953
72954         * modules/getaddrinfo (Depends-on): Add sys_socket.
72955
72956 2006-02-15  Simon Josefsson  <jas@extundo.com>
72957
72958         * build-aux/maint.mk: Add dsyntax-check rule.
72959
72960 2006-02-15  Eric Blake  <ebb9@byu.net>
72961
72962         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72963         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72964         'present but cannot compile' warnings on cygwin.
72965         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72966         use ws2tcpip.h if sys/socket.h works.
72967         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72968         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72969
72970 2006-02-14  Simon Josefsson  <jas@extundo.com>
72971
72972         * modules/maintainer-makefile (Files): Rename.
72973
72974         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72975         and (the local) Makefile.cfg to maint-cfg.mk.
72976
72977         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72978         to the latter.
72979
72980         * modules/maintainer-makefile: New module.
72981
72982         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72983         severaly stripped to make it possible to build it up from scratch
72984         with reliable tests.
72985
72986         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72987         fixes to permit overriding the default actions when configure and
72988         makefile are not available.
72989
72990 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72991
72992         Sync from coreutils.
72993         * modules/lstat (Depends-on): Don't depend on xalloc.
72994         (License): Change from GPL to LGPL, since this is now simply a
72995         replacement for a libc function.
72996
72997 2006-02-14  Jim Meyering  <jim@meyering.net>
72998
72999         Sync from coreutils.
73000
73001         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
73002         failure on deficient systems, and simplify gnulib lgpl dependencies.
73003         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
73004         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
73005
73006         * lib/xalloc-die.c: Remove unused definition of N_.
73007
73008 2006-02-14  Jim Meyering  <jim@meyering.net>
73009
73010         Sync from coreutils.
73011         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
73012         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
73013         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
73014         double-quote uses of that variable, to accommodate the rare case in
73015         which getmntent is available in none of the libraries checked.  This
73016         happens at least on FreeBSD 5.0.
73017
73018 2006-02-13  Simon Josefsson  <jas@extundo.com>
73019
73020         * gnulib-tool (Usage): Fix --import, from
73021         karl@freefriends.org (Karl Berry).
73022
73023 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73024
73025         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
73026
73027 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
73028
73029         * lib/argp-namefrob.h: Restore changes accidentally lost during the
73030         "autoupdate" on 2005-12-12.
73031
73032 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73033
73034         * modules/closeout (Depends-on): Remove atexit.
73035
73036 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73037
73038         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
73039         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
73040
73041 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73042
73043         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
73044         __EXTENSIONS__ if this causes compilation to fail.  Problem
73045         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
73046         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
73047
73048 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
73049
73050         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
73051         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
73052         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
73053         All uses changed.
73054
73055 2006-01-26  Simon Josefsson  <jas@extundo.com>
73056
73057         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
73058         prototype is visible on mingw32.
73059
73060         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
73061         for mingw32.
73062
73063         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
73064         mingw32).
73065
73066 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73067
73068         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
73069         attempt to open for write; this always fails, at least on POSIX
73070         hosts.  This reinstates the 2006-01-09 change, which was
73071         inadvertently removed.
73072
73073 2006-01-26  Bruno Haible  <bruno@clisp.org>
73074
73075         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
73076         Reported by Paul Eggert.
73077
73078 2006-01-26  Bruno Haible  <bruno@clisp.org>
73079             Paul Eggert  <eggert@cs.ucla.edu>
73080
73081         * lib/stdbool_.h (_Bool)
73082         [(! (defined __cplusplus || defined __BEOS__)
73083           && !defined __GNUC__
73084           && !(defined __HP_cc || defined __xlc__
73085                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
73086                || defined __sgi))]:
73087         #define to signed char in these cases too; this simplifies
73088         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
73089         etc., separately) and makes it more conservative.
73090
73091 2006-01-25  Simon Josefsson  <jas@extundo.com>
73092
73093         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
73094         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
73095         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
73096
73097 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73098
73099         * lib/argp-namefrob.h: Bugfix. Remove stray #
73100
73101 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
73102
73103         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
73104         so that we test the test.
73105         Check for yet another HP-UX cc bug involving *bool |= bool.
73106
73107 2006-01-25  Karl Berry  <karl@gnu.org>
73108
73109         * config/srclist.txt (vasnprintf.c): sync lost.
73110
73111 2006-01-25  Jim Meyering  <jim@meyering.net>
73112
73113         Sync from the stable (b5) branch of coreutils:
73114
73115         * lib/fts.c (fts_children): Don't let close() clobber errno from
73116         failed fchdir().
73117
73118         * lib/fts.c (fts_stat): When following a symlink-to-directory,
73119         don't necessarily interpret stat-fails+lstat-succeeds as indicating
73120         a dangling symlink.  That can also happen at least for ELOOP.
73121         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
73122         FYI, this bug predates the inclusion of fts.c in coreutils.
73123
73124         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
73125         in their own block, so pre-c99 compilers don't object.
73126
73127         Avoid the double-free (first in fts_read, second in fts_close) that
73128         would occur when an `active' directory is made inaccessible (e.g.,
73129         via chmod a-x) during a traversal.
73130         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73131         before returning.  Reproduce this failure by
73132         mkdir -p a/b; cd a; chmod a-x . b
73133         Reported by Stavros Passas.
73134
73135 2006-01-25  Jim Meyering  <jim@meyering.net>
73136
73137         * lib/fileblocks.c: Remove more useless parentheses.
73138         * lib/readutmp.h: Likewise.
73139
73140 2006-01-25  Bruno Haible  <bruno@clisp.org>
73141
73142         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
73143         warnings.
73144         Reported by Paul Eggert.
73145
73146 2006-01-25  Bruno Haible  <bruno@clisp.org>
73147
73148         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
73149         rid of a trap command. For Solaris sh.
73150         Reported by Mark D. Baushke <mdb@gnu.org>.
73151
73152 2006-01-24  Simon Josefsson  <jas@extundo.com>
73153
73154         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
73155         Bruno.
73156
73157 2006-01-24  Karl Berry  <karl@gnu.org>
73158
73159         * config/srclist.txt (argp-namefrob.h): sync lost.
73160
73161 2006-01-24  Jim Meyering  <jim@meyering.net>
73162
73163         * modules/openat (Files): Add lib/intprops.h.
73164         From Mark D. Baushke.
73165
73166 2006-01-24  Jim Meyering  <jim@meyering.net>
73167
73168         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
73169         Reported by Mark D. Baushke.
73170
73171 2006-01-24  Jim Meyering  <jim@meyering.net>
73172
73173         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
73174
73175 2006-01-24  Bruno Haible  <bruno@clisp.org>
73176
73177         * modules/strnlen (Maintainer): Change from glibc to all.
73178
73179 2006-01-24  Bruno Haible  <bruno@clisp.org>
73180
73181         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
73182         Patch by Paul Eggert.
73183
73184 2006-01-24  Bruno Haible  <bruno@clisp.org>
73185
73186         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
73187         already has it.
73188         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
73189         2005-11-26.
73190
73191         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
73192         'signed char' to avoid problems with the built-in _Bool type.
73193         Reported by Paul Eggert on 2005-11-26.
73194
73195 2006-01-24  Bruno Haible  <bruno@clisp.org>
73196
73197         * gnulib-tool (func_import): Avoid constructing complicated sed
73198         expressions inside backquote.
73199         Report and solution by Mark D. Baushke <mdb@gnu.org>.
73200
73201 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
73202
73203         These changes imported from libc.
73204         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
73205         test and two separate function calls.
73206         * lib/strndup.c (__strndup): Add libc_hidden_def.
73207
73208 2006-01-23  Simon Josefsson  <jas@extundo.com>
73209
73210         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
73211         Remove the test_*_SOURCES variable: automake infers it by default.
73212         * modules/tls-tests: Likewise.
73213
73214 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73215
73216         Work around porting bugs reported by Dieter in
73217         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
73218         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
73219         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
73220         Include "getopt.h" first, to check interface.
73221         (getenv): Declare only if defined HAVE_DECL_GETENV &&
73222         !HAVE_DECL_GETENV.
73223         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
73224         (__strndup): Revert to K&R-style function dfns, the glibc style.
73225         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
73226         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
73227         Include strnlen.h first, to get prototype properly.
73228         (strnlen): Renamed from __strnlen.
73229         Remove weak alias.
73230
73231 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73232
73233         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
73234
73235 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73236
73237         * config/srclist.txt: Adjust to reflect glibc reorganization.
73238         This affects only comments.
73239
73240 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73241
73242          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
73243          Reported by Bruce Korb <bkorb@gnu.org>.
73244
73245 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73246
73247         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
73248         to pacify gcc -Wswitch-default.
73249
73250 2006-01-22  Bruno Haible  <bruno@clisp.org>
73251
73252         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
73253         temporary buffer for sprintf, take into account the precision also
73254         for 'd', 'i', 'u', 'o', 'x', 'X'.
73255
73256 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73257
73258         * modules/argp-tests: New module
73259         * tests/test-argp.c: New file
73260         * tests/test-argp-2.sh: New file
73261
73262 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73263
73264         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
73265         (__argp_base_name): Removed
73266         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
73267         typo.
73268         (__argp_base_name): Provide macro definition or extern declaration
73269         depending on the configuration
73270
73271 2006-01-20  Simon Josefsson  <jas@extundo.com>
73272
73273         * modules/inet_ntop (Depends-on): Depend on sys_socket.
73274
73275 2006-01-20  Simon Josefsson  <jas@extundo.com>
73276
73277         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
73278
73279 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73280
73281         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
73282         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
73283         Suggested by Bruno Haible.
73284
73285 2006-01-20  Karl Berry  <karl@gnu.org>
73286
73287         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
73288         until changes propagate, I guess.
73289
73290 2006-01-19  Simon Josefsson  <jas@extundo.com>
73291
73292         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
73293
73294 2006-01-19  Simon Josefsson  <jas@extundo.com>
73295
73296         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
73297
73298 2006-01-19  Simon Josefsson  <jas@extundo.com>
73299
73300         * gnulib-tool: Set check_PROGRAMS.
73301
73302         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73303         modules/des-tests, modules/gc-arcfour-tests,
73304         modules/gc-arctwo-tests, modules/gc-des-tests,
73305         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73306         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73307         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73308         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73309         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73310         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
73311         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
73312         test_*_SOURCES.
73313
73314 2006-01-18  Simon Josefsson  <jas@extundo.com>
73315
73316         * modules/socklen (Depends-on): Depend on sys_socket.
73317
73318 2006-01-18  Simon Josefsson  <jas@extundo.com>
73319
73320         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73321         modules/des-tests, modules/gc-arcfour-tests,
73322         modules/gc-arctwo-tests, modules/gc-des-tests,
73323         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73324         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73325         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73326         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73327         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73328         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
73329         $(EXEEXT) to automake TESTS variable, for mingw32.
73330
73331 2006-01-17  Simon Josefsson  <jas@extundo.com>
73332
73333         * modules/socklen (Include): Need sys/socket.h.
73334
73335 2006-01-17  Bruno Haible  <bruno@clisp.org>
73336
73337         * modules/ssize_t (Include): Add <sys/types.h>.
73338
73339 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
73340
73341         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
73342         it's not portable and it doesn't work with cross-compiles.
73343         Problem reported by Bruno Haible.  Fix missing-$ typo in
73344         'test "gl_cv_ignore_unused_libraries" ...' that prevented
73345         -zignore from being used with Sun's C compiler.
73346
73347 2006-01-12  Simon Josefsson  <jas@extundo.com>
73348
73349         * lib/base64.c: Fix warning, reported by Bruno Haible
73350         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
73351
73352 2006-01-12  Bruno Haible  <bruno@clisp.org>
73353
73354         * modules/ldd: New file.
73355         * build-aux/ldd.sh.in: New file.
73356         * MODULES.html.sh (Support for building libraries and executables): Add
73357         ldd.
73358
73359 2006-01-12  Bruno Haible  <bruno@clisp.org>
73360
73361         * m4/ldd.m4: New file.
73362
73363 2006-01-12  Bruno Haible  <bruno@clisp.org>
73364
73365         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73366         endless loop while replacing $auxdir with build-aux.
73367
73368 2006-01-11  Simon Josefsson  <jas@extundo.com>
73369
73370         * lib/stdint_.h (SIZE_MAX): Add missing (.
73371
73372 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73373
73374         Sync from coreutils.
73375         * lib/md5.c: Fix commentary typos.
73376         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73377         * lib/md5.h (__attribute__): Remove; unused.
73378         * lib/sha1.c: Fix commentary to match md5 better.
73379         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
73380         so that we don't need to worry about alignment.  All uses changed.
73381         This merges the 2005-10-28 md5 change into sha1.
73382
73383 2006-01-11  Jim Meyering  <jim@meyering.net>
73384
73385         Sync from coreutils.
73386         * lib/md5.c (OP): Fix spacing.
73387
73388 2006-01-11  Bruno Haible  <bruno@clisp.org>
73389
73390         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73391         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
73392         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
73393
73394 2006-01-11  Bruno Haible  <bruno@clisp.org>
73395
73396         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73397         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
73398         the "early" section as well.
73399
73400 2006-01-11  Bruno Haible  <bruno@clisp.org>
73401
73402         Avoid "ar: no archive members specified" error on MacOS X.
73403         * gnulib-tool (func_modules_add_dummy): New function.
73404         (func_import, func_create_testdir): Invoke it.
73405
73406 2006-01-11  Bruno Haible  <bruno@clisp.org>
73407
73408         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
73409         with $auxdir in AC_CONFIG_FILES statements.
73410
73411 2006-01-11  Bruno Haible  <bruno@clisp.org>
73412
73413         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73414         Initialize also noinst_HEADERS to empty.
73415
73416 2006-01-11  Bruno Haible  <bruno@clisp.org>
73417
73418         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
73419         variables.
73420         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
73421         autoreconf.
73422
73423 2006-01-11  Bruno Haible  <bruno@clisp.org>
73424
73425         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
73426         overridable by the user.
73427         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73428
73429 2006-01-10  Simon Josefsson  <jas@extundo.com>
73430
73431         * modules/sys_socket: New file.
73432
73433 2006-01-10  Simon Josefsson  <jas@extundo.com>
73434
73435         * m4/sys_socket_h.m4: New file.
73436
73437 2006-01-10  Simon Josefsson  <jas@extundo.com>
73438
73439         * lib/socket_.h: New file.
73440
73441 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73442
73443         * modules/readutmp (Maintainer): Add myself.
73444
73445 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73446
73447         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
73448         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
73449         People who are still concerned with buggy memcmp implementations
73450         can invoke gl_FUNC_MEMCMP themselves.
73451
73452 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73453
73454         * lib/regex_internal.h (BITSET_WORD_BITS):
73455         Work around a bug in 64-bit PGC (before version 6.1-2), where the
73456         preprocessor mishandles large unsigned values as if they were signed.
73457         Problem reported by Claudio Fontana in
73458         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
73459
73460 2006-01-10  Jim Meyering  <jim@meyering.net>
73461
73462         Avoid the double-free (first in fts_read, second in fts_close) that
73463         would occur when an `active' directory is made inaccessible (e.g.,
73464         via chmod a-x) during a traversal.
73465         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73466         before returning.  Reproduce this failure by
73467         mkdir -p a/b; cd a; chmod a-x . b
73468         Reported by Stavros Passas.
73469
73470         Sync from coreutils.
73471         * lib/sha1.c: Tweak grammar in a comment.
73472
73473 2006-01-10  Jim Meyering  <jim@meyering.net>
73474
73475         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73476         Patch by Joerg Sonnenberger.
73477
73478 2006-01-10  Bruno Haible  <bruno@clisp.org>
73479
73480         * modules/readutmp: Depend on module free.
73481         * modules/strtok_r: Depend on module restrict.
73482
73483 2006-01-10  Bruno Haible  <bruno@clisp.org>
73484
73485         * modules/gettext (configure.ac): Add an invocation of
73486         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73487
73488 2006-01-10  Bruno Haible  <bruno@clisp.org>
73489
73490         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73491         Reported by Werner Lemberg <wl@gnu.org>.
73492
73493 2006-01-10  Bruno Haible  <bruno@clisp.org>
73494
73495         * lib/localcharset.c: Update from GNU gettext.
73496
73497 2006-01-10  Bruno Haible  <bruno@clisp.org>
73498
73499         * lib/argp.h (__const): Remove macro. Use const instead.
73500         * lib/argp-fmtstream.h (__const): Likewise.
73501         * lib/glob_.h (__const): Remove macro.
73502         * lib/glob-libc.h: Use const instead of __const.
73503
73504 2006-01-10  Bruno Haible  <bruno@clisp.org>
73505
73506         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73507         variable.
73508         Needed to avoid an automake error regarding the 'gettext' module.
73509
73510 2006-01-09  Simon Josefsson  <jas@extundo.com>
73511
73512         * modules/inet_ntop (Depends-on): Add restrict.
73513
73514 2006-01-09  Simon Josefsson  <jas@extundo.com>
73515
73516         * modules/gc-rijndael-tests (License): Put under LGPL.
73517
73518         * modules/gc-des-tests (License): Likewise.
73519
73520         * modules/gc-arcfour-tests (License): Likewise.
73521
73522         * modules/gc-arctwo-tests (License): Likewise.
73523
73524         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73525
73526         * modules/gc-hmac-sha1-tests (Files): Likewise.
73527
73528         * modules/gc-hmac-md5-tests (License): Likewise.
73529
73530         * modules/gc-sha1-tests (License): Likewise.
73531
73532         * modules/gc-md5-tests (License): Likewise.
73533
73534         * modules/gc-md4-tests (License): Likewise.
73535
73536         * modules/gc-md2-tests (License): Likewise.
73537
73538         * modules/gc-tests (License): Likewise.
73539
73540         * modules/des-tests (License): Likewise.
73541
73542         * modules/md4-tests (License): Likewise.
73543
73544         * modules/md2-tests (License): Likewise.
73545
73546 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73547
73548         Sync from coreutils:
73549
73550         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73551         * modules/lib-ignore: New file.
73552         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73553         chdir-safer.m4, lchmod.m4.
73554         * modules/openat: Add mkdirat.c, openat-priv.h.
73555
73556 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73557
73558         Sync from coreutils.
73559         * m4/lib-ignore.m4: New file.
73560         * m4/lchmod.m4: New file.
73561
73562 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73563
73564         Sync from coreutils.
73565         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73566         for write access: POSIX says that must fail.
73567         * lib/fts.c (diropen): Likewise.
73568         * lib/save-cwd.c (save_cwd): Likewise.
73569         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73570         well, for minor improvements on hosts that lack O_DIRECTORY.
73571         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73572         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73573         Fall back on chown if open failed with EACCES.
73574
73575         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73576         Report an error at compile-time if only a 1-second nominal clock
73577         resolution is found.
73578
73579         * lib/lchmod.h: New file.
73580         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73581         (make_dir_parents): Use lchown rather than chown, and
73582         lchmod rather than chmod.
73583
73584         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73585         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73586         "proc" reported by n0dalus.
73587
73588         * lib/mountlist.c: Include <limits.h>.
73589         (dev_from_mount_options)
73590         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73591         New function.  It no longer assumes "dev=" has the System V meaning
73592         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73593         (read_file_system_list)
73594         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73595         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73596         dev= in that case.
73597
73598         * lib/posixtm.h (PDS_PRE_2000): New macro.
73599         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73600         allow_century.  All usages changed.  Reject dates outside the range
73601         1969-1999 if PDS_PRE_2000 is used.
73602
73603 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73604
73605         Sync from coreutils.
73606         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73607         (Time of day items): Mention the possibility of leap seconds.
73608         Problem reported by Dr. David Alan Gilbert.
73609
73610 2006-01-09  Jim Meyering  <jim@meyering.net>
73611
73612         Sync from coreutils.
73613
73614         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73615
73616         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73617
73618         * lib/modechange.c (mode_compile): Reject an invalid mode string
73619         that starts with an octal digit.  From Andreas Gruenbacher.
73620
73621         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73622         and dup to open_safer and dup_safer, respectively.
73623         (openat_permissive): Fix typo in comment.
73624
73625         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73626         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73627         (_): Remove; no longer needed.
73628         (openat): Renamed from rpl_openat; no need for rpl_openat
73629         since openat.h renames openat for us.
73630         Replace most of the body with a call to openat_permissive,
73631         to avoid duplicate code.
73632         Port to (probably hypothetical) environments were mode_t is
73633         wider than int.
73634         (openat_permissive): Require mode arg, so that we can check
73635         types better.  Put it just after flags.  Change cwd failure
73636         indicator from pointer-to-bool to pointer-to-errno-value.
73637         All callers changed.
73638         Invoke openat_save_fail and/or openat_restore_fail if
73639         cwd_errno is null, so that openat can call us.
73640         (openat_permissive, fdopendir, fstatat, unlinkat):
73641         Simplify errno handling to avoid some duplicate code,
73642         as it's OK to set errno on success.
73643         * lib/openat.h: Revamp code so that function macros depend on
73644         __OPENAT_PREFIX only, not also on AT_FDCWD.
73645         (openat_ro): Remove.  Caller changed to use openat_permissive.
73646         (openat_permissive): Now a macro, if not a function.
73647         (openat_restore_fail, openat_save_fail): Now always functions,
73648         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73649
73650         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73651         and openat.c.
73652         * lib/mkdirat.c: Include openat-priv.h.
73653         Remove definitions of macros defined therein.
73654         * lib/openat.c: Likewise.
73655
73656         * lib/mkdirat.c (mkdirat): New file and function.
73657         * lib/openat.h (mkdirat): Declare.
73658
73659         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73660
73661         * lib/openat.h (openat_permissive): Declare.
73662         (openat_ro): Define.
73663
73664         * lib/openat.c (EXPECTED_ERRNO): New macro.
73665         (openat_permissive): New function -- used in remove.c rewrite.
73666         (all functions): Set errno just before returning, only if there
73667         was an actual failure.
73668         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73669
73670         Emulate openat-family functions using Linux's procfs, if possible.
73671         Idea and some code based on Ulrich Drepper's glibc changes.
73672
73673         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73674         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73675         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73676         before falling back on save_cwd and restore_cwd.
73677         (fdopendir, fstatat, unlinkat): Likewise.
73678
73679         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73680         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73681
73682         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73683         as second argument to va_arg.  Otherwise, some versions of gcc
73684         warn that `if this code is reached, the program will abort'.
73685
73686 2006-01-09  Jim Meyering  <jim@meyering.net>
73687
73688         Sync from coreutils.
73689         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73690         Require openat-priv.h.
73691
73692 2006-01-09  Bruno Haible  <bruno@clisp.org>
73693
73694         * modules/strnlen (Include): Use strnlen.h.
73695
73696 2006-01-09  Bruno Haible  <bruno@clisp.org>
73697
73698         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73699
73700 2006-01-09  Bruno Haible  <bruno@clisp.org>
73701
73702         * lib/sysexit_.h (EX_OK): New macro.
73703         Suggested by Martin Lambers <marlam@marlam.de>.
73704
73705 2006-01-09  Bruno Haible  <bruno@clisp.org>
73706
73707         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73708         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73709
73710 2006-01-09  Bruno Haible  <bruno@clisp.org>
73711
73712         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73713         numbers.
73714
73715 2006-01-09  Bruno Haible  <bruno@clisp.org>
73716
73717         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73718         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73719         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73720         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73721
73722 2006-01-09  Bruno Haible  <bruno@clisp.org>
73723
73724         * build-aux/javacomp.sh.in: New file, moved from lib/.
73725         * modules/javacomp-script (Files): Update.
73726         (configure.ac): Add AC_CONFIG_FILES invocation.
73727         (EXTRA_DIST): Remove variable.
73728
73729         * build-aux/javaexec.sh.in: New file, moved from lib/.
73730         * modules/javaexec (Files): Update.
73731         (configure.ac): Add AC_CONFIG_FILES invocation.
73732         (EXTRA_DIST): Remove javaexec.sh.in.
73733
73734         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73735         * modules/csharpcomp-script (Files): Update.
73736         (configure.ac): Add AC_CONFIG_FILES invocation.
73737         (EXTRA_DIST): Remove variable.
73738
73739         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73740         * modules/csharpexec (Files): Update.
73741         (configure.ac): Add AC_CONFIG_FILES invocation.
73742         (EXTRA_DIST): Remove csharpexec.sh.in.
73743
73744 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73745
73746         Sync from coreutils.
73747
73748         Add POSIX ACL support
73749         * lib/acl.h (copy_acl, set_acl): Add declarations.
73750         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73751         systems other than Linux.
73752         (chmod_or_fchmod): New function: use fchmod when possible,
73753         and chmod otherwise.
73754         (file_has_acl): Add a POSIX ACL implementation, with a
73755         Linux-specific subcase.
73756         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73757         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73758         acls are unsupported.
73759         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73760         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73761         are unsupported.
73762
73763 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73764
73765         Sync from coreutils.
73766         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73767
73768 2006-01-07  Bruno Haible  <bruno@clisp.org>
73769
73770         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73771         gl_EARLY.
73772
73773 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73774
73775         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73776         Problem reported for Mingw by Mark Junker.
73777
73778 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73779
73780         * README: Gnulib normally doesn't generate a tarball.
73781
73782 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73783
73784         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73785         long int, not int, for nanosecond counts, so that people who are
73786         used to POSIX struct timespec won't be surprised.  Reported by Jim
73787         Meyering.
73788
73789 2005-12-28  Bruno Haible  <bruno@clisp.org>
73790
73791         * build-aux/config.rpath: Update from GNU gettext.
73792
73793 2005-12-16  Jim Meyering  <jim@meyering.net>
73794
73795         * modules/fprintftime: New module.
73796         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73797
73798 2005-12-16  Jim Meyering  <jim@meyering.net>
73799
73800         * m4/fprintftime.m4: New file.
73801
73802 2005-12-16  Jim Meyering  <jim@meyering.net>
73803
73804         * lib/fprintftime.c, lib/fprintftime.h: New files.
73805
73806 2005-12-15  Simon Josefsson  <jas@extundo.com>
73807
73808         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73809         new m4/socklen.m4.
73810
73811 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73812
73813         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73814         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73815
73816 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73817
73818         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73819         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73820         struct uparams is valid. Fall back to the default values if it is
73821         not.
73822
73823 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73824
73825         * modules/argp (Files): Add argp-pin.c
73826         (Depends-on): dirname
73827         (lib_SOURCES): Add argp-pin.c
73828
73829 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73830
73831         * m4/argp.m4:  Check if program_invocation_name and
73832         program_invocation_short_name are declared and define appropriate
73833         macros if they are not.
73834
73835 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73836
73837         * lib/argp-help.c (__argp_base_name): New function
73838         (__argp_short_program_name): Rewrite using __argp_base_name
73839         * lib/argp-namefrob.h: Define program_invocation_name and
73840         program_invocation_short_name if requested
73841         (__argp_base_name): Add prototype
73842         * lib/argp-parse.c (argp_def): Use gettext wrappers
73843         (argp_default_parser): Use __argp_base_name
73844         * lib/argp-pin.c: New file. Defines program_invocation_name and
73845         program_invocation_short_name on systems that lack them.
73846
73847 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73848
73849         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73850         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73851         porting problem reported by Georg Schwarz in
73852         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73853
73854 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73855
73856         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73857         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73858         porting problem reported by Georg Schwarz in
73859         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73860
73861 2005-12-05  Bruno Haible  <bruno@clisp.org>
73862
73863         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73864         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73865         Reported by Mark Junker <mjscod@gmx.de>.
73866
73867 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73868
73869         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73870         Use implementation from Albert Chin, with some
73871         comments/corrections by Stepan Kasal and myself.
73872
73873 2005-12-02  Bruno Haible  <bruno@clisp.org>
73874
73875         * gnulib-tool (func_import): Accept GPLed build tool modules when
73876         --lgpl is given.
73877         * modules/csharpcomp-script: New file.
73878         * modules/csharpcomp: Depend on it.
73879         * modules/javacomp-script: New file.
73880         * modules/javacomp: Depend on it.
73881         Suggested by Simon Josefsson.
73882
73883 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73884
73885         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73886         statement, to work around an HP-UX 10.20 compiler bug reported by
73887         Peter O'Gorman.
73888
73889 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73890
73891         * modules/savedir (Depends-on): Add openat.
73892
73893 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73894
73895         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73896         (uintmax_t) [defined uintmax_t]: Do not declare.
73897         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73898         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73899         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73900         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73901         sake of portability to weird hosts that C allows (though we don't
73902         know of any practical examples).
73903
73904         * lib/savedir.h (fdsavedir): New decl.
73905         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73906         contains most of the former guts of savedir.
73907         (savedir): Use savedirstream.
73908         Include "openat.h".
73909
73910 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73911
73912         * modules/obstack (Files): Add m4/ulonglong.m4.
73913         Problem reported by Davide Angelocola.
73914
73915 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73916
73917         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73918         coreutils no longer futzes with rounding modes.
73919
73920 2005-11-14  Jim Meyering  <jim@meyering.net>
73921
73922         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73923         replacement of mkstemp.
73924
73925 2005-11-10  Simon Josefsson  <jas@extundo.com>
73926
73927         * lib/readline.c: Remove EOL.
73928
73929 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73930
73931         * modules/gethrxtime (Depends-on): Add gettime.
73932
73933 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73934
73935         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73936         or gettimeofday; no longer needed.
73937
73938 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73939
73940         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73941         time business.
73942         (gethrxtime) [! (HAVE_NANOUPTIME
73943         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73944         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73945         our own approximation.
73946
73947 2005-11-08  Eric Blake  <ebb9@byu.net>
73948
73949         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73950
73951 2005-11-08  Eric Blake  <ebb9@byu.net>
73952
73953         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73954
73955 2005-11-04  Bruno Haible  <bruno@clisp.org>
73956
73957         * gnulib-tool: Implement --update mode.
73958
73959 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73960
73961         Fix porting problem reported by Theodoros V. Kalamatianos.
73962         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73963         Don't assume that futimes failing means we must fail.
73964
73965 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73966
73967         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73968         variables to suggest the intended function of the PATH_MAX check.
73969
73970 2005-10-30  Kean Johnston  <jkj@sco.com>
73971
73972         Trivial changes to support SCO systems.
73973         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73974         as PATH_MAX.
73975         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73976         where __ptr is null when no I/O is pending.
73977
73978 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73979
73980         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73981         leave errno alone.  Problem reported by Dmitry V. Levin.
73982
73983 2005-10-28  Simon Josefsson  <jas@extundo.com>
73984
73985         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73986         Test more.
73987
73988         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73989
73990         * modules/md2, modules/md2-tests: New files.
73991
73992 2005-10-28  Simon Josefsson  <jas@extundo.com>
73993
73994         * m4/inet_ntop.m4: More tests.
73995
73996         * m4/gc-md2.m4, md2.m4: New file.
73997
73998 2005-10-28  Simon Josefsson  <jas@extundo.com>
73999
74000         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
74001         "restrict" keywords, as per POSIX.  Protect the function
74002         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
74003         Don't use K&R prototypes.  Check the sprintf return values.
74004         Re-define EAFNOSUPPORT if not present.  Indent.
74005
74006         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
74007         suggested by Bruno Haible <bruno@clisp.org>.
74008
74009         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
74010
74011         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
74012
74013         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
74014         libgcrypt).
74015
74016         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
74017
74018         * lib/md2.h, lib/md2.c: New files.
74019
74020 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
74021
74022         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
74023         errno alone.  Problem reported by Frederic Jolliton.
74024
74025 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74026
74027         * modules/verify (License): Change from GPL to LGPL.  This is a
74028         tiny module and there are apparently near-equivalents that are
74029         under the BSD license.
74030
74031 2005-10-24  Simon Josefsson  <jas@extundo.com>
74032
74033         * modules/sha1: Relicense to LGPL.
74034
74035 2005-10-24  Simon Josefsson  <jas@extundo.com>
74036
74037         * lib/md4.h: Shrink buffer size, now that we changed the type.
74038
74039 2005-10-23  Simon Josefsson  <jas@extundo.com>
74040
74041         * gnulib-tool (func_import): Fix --tests-base.
74042
74043 2005-10-22  Simon Josefsson  <jas@extundo.com>
74044
74045         * modules/arcfour (Depends-on): Need stdint.
74046
74047 2005-10-22  Simon Josefsson  <jas@extundo.com>
74048
74049         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
74050         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
74051
74052 2005-10-22  Simon Josefsson  <jas@extundo.com>
74053
74054         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
74055         suggested by Bruno Haible <bruno@clisp.org>.
74056
74057 2005-10-22  Simon Josefsson  <jas@extundo.com>
74058
74059         * lib/crc.h: Include stddef.h, for size_t.
74060
74061 2005-10-22  Simon Josefsson  <jas@extundo.com>
74062
74063         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
74064         arcfour_context struct (simplify test vector testing in GNU
74065         Shishi).
74066
74067 2005-10-21  Simon Josefsson  <jas@extundo.com>
74068
74069         * modules/des, modules/des-tests: New files.
74070
74071         * modules/gc-des, modules/gc-des-tests: New files.
74072
74073         * tests/test-des.c, tests/test-gc-des.c: New file.
74074
74075 2005-10-21  Simon Josefsson  <jas@extundo.com>
74076
74077         * modules/arctwo, modules/arctwo-tests: New files.
74078
74079         * tests/test-arctwo.c: New file.
74080
74081         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
74082
74083         * tests/test-gc-arctwo.c: New file.
74084
74085 2005-10-21  Simon Josefsson  <jas@extundo.com>
74086
74087         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
74088         Bruno Haible <bruno@clisp.org>.
74089
74090         * m4/gc-des.m4: New file.
74091
74092 2005-10-21  Simon Josefsson  <jas@extundo.com>
74093
74094         * m4/arctwo.m4: New file.
74095
74096         * m4/gc-arctwo.m4: New file.
74097
74098 2005-10-21  Simon Josefsson  <jas@extundo.com>
74099
74100         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
74101         block.
74102
74103 2005-10-21  Simon Josefsson  <jas@extundo.com>
74104
74105         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
74106         <bruno@clisp.org>.
74107
74108         * lib/hmac-sha1.c (hmac_sha1): Likewise.
74109
74110         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
74111         Bruno Haible <bruno@clisp.org>.
74112
74113         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
74114         <bruno@clisp.org>.
74115
74116 2005-10-21  Simon Josefsson  <jas@extundo.com>
74117
74118         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
74119
74120 2005-10-21  Simon Josefsson  <jas@extundo.com>
74121
74122         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
74123
74124 2005-10-21  Simon Josefsson  <jas@extundo.com>
74125
74126         * lib/des.h, lib/des.c: New files.
74127
74128         * lib/gc-gnulib.c: Support DES.c
74129
74130 2005-10-21  Simon Josefsson  <jas@extundo.com>
74131
74132         * lib/arctwo.h, lib/arctwo.c: New files.
74133
74134         * lib/gc-gnulib.c: Support ARCTWO.
74135
74136 2005-10-21  Simon Josefsson  <jas@extundo.com>
74137
74138         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
74139         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74140
74141 2005-10-21  Simon Josefsson  <jas@extundo.com>
74142
74143         * gnulib-tool (func_import, func_create_testdir): Define automake
74144         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
74145         Makefile.am snippet),
74146         suggested by Bruno Haible <bruno@clisp.org>.
74147
74148         * modules/gc (Makefile.am): Use it.
74149
74150 2005-10-21  Bruno Haible  <bruno@clisp.org>
74151
74152         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
74153         patch.
74154
74155 2005-10-19  Simon Josefsson  <jas@extundo.com>
74156
74157         * tests/test-gc-rijndael.c: New file.
74158
74159         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
74160
74161 2005-10-19  Simon Josefsson  <jas@extundo.com>
74162
74163         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
74164         interface too.
74165
74166 2005-10-19  Simon Josefsson  <jas@extundo.com>
74167
74168         * tests/test-gc-arcfour.c: New file.
74169
74170         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
74171
74172 2005-10-19  Simon Josefsson  <jas@extundo.com>
74173
74174         * modules/gc-md4, modules/gc-md4-tests: New file.
74175
74176         * tests/test-gc-md4.c: New file.
74177
74178 2005-10-19  Simon Josefsson  <jas@extundo.com>
74179
74180         * m4/gc-md4.m4: New file.
74181
74182 2005-10-19  Simon Josefsson  <jas@extundo.com>
74183
74184         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
74185         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
74186         <kasal@ucw.cz>.
74187
74188 2005-10-19  Simon Josefsson  <jas@extundo.com>
74189
74190         * m4/gc-arcfour.m4: New file.
74191
74192         * m4/gc-rijndael.m4: New file.
74193
74194 2005-10-19  Simon Josefsson  <jas@extundo.com>
74195
74196         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
74197
74198 2005-10-19  Simon Josefsson  <jas@extundo.com>
74199
74200         * lib/gc-gnulib.c: Support ARCFOUR.
74201
74202 2005-10-19  Simon Josefsson  <jas@extundo.com>
74203
74204         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
74205         support.
74206
74207         * lib/gc.h: Add ECB enum type.
74208
74209         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
74210
74211 2005-10-18  Simon Josefsson  <jas@extundo.com>
74212
74213         * tests/test-md5.c: New file.
74214
74215         * modules/md5-tests: New file.
74216
74217 2005-10-18  Simon Josefsson  <jas@extundo.com>
74218
74219         * tests/test-md4.c: New file.
74220
74221         * modules/md4, modules/md4-tests: New files.
74222
74223 2005-10-18  Simon Josefsson  <jas@extundo.com>
74224
74225         * m4/md4.m4: New file.
74226
74227 2005-10-18  Simon Josefsson  <jas@extundo.com>
74228
74229         * lib/md4.h, lib/md4.c: New files, based on md5.?.
74230
74231 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
74232
74233         * gnulib-tool (func_create_testdir): Omit the second check whether
74234         BUILT_SOURCES in nonempty.
74235
74236 2005-10-17  Simon Josefsson  <jas@extundo.com>
74237
74238         * tests/test-rijndael.c: New file.
74239
74240 2005-10-17  Simon Josefsson  <jas@extundo.com>
74241
74242         * modules/sha1: Depend on stdint instead of md5.
74243
74244         * modules/md5: Depend on stdint, remove uint32_t.
74245
74246 2005-10-17  Simon Josefsson  <jas@extundo.com>
74247
74248         * modules/gc-sha1-tests: New file.
74249
74250         * tests/test-gc-sha1.c: New file.
74251
74252 2005-10-17  Simon Josefsson  <jas@extundo.com>
74253
74254         * m4/md5.m4: Remove call to uint32_t.m4.
74255
74256 2005-10-17  Simon Josefsson  <jas@extundo.com>
74257
74258         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
74259
74260         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
74261         md5.h.
74262
74263         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
74264
74265         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
74266
74267 2005-10-17  Simon Josefsson  <jas@extundo.com>
74268
74269         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
74270
74271 2005-10-17  Simon Josefsson  <jas@extundo.com>
74272
74273         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
74274
74275 2005-10-17  Simon Josefsson  <jas@extundo.com>
74276
74277         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
74278
74279         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
74280
74281 2005-10-17  Bruno Haible  <bruno@clisp.org>
74282
74283         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
74284         that it can also be used in a test.
74285
74286 2005-10-16  Bruno Haible  <bruno@clisp.org>
74287
74288         * gnulib-tool (func_emit_tests_Makefile_am): Also define
74289         TESTS_ENVIRONMENT, so that individual tests can augment it.
74290
74291         * gnulib-tool (func_create_testdir): Use an intermediate target for
74292         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
74293         macros, like $(ALLOCA_H), which cannot be passed through the command
74294         line.
74295
74296 2005-10-15  Simon Josefsson  <jas@extundo.com>
74297
74298         * modules/rijndael-tests: New file.
74299
74300         * modules/rijndael: New file.
74301
74302 2005-10-15  Simon Josefsson  <jas@extundo.com>
74303
74304         * m4/rijndael.m4: New file.
74305
74306 2005-10-15  Simon Josefsson  <jas@extundo.com>
74307
74308         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
74309
74310         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
74311
74312 2005-10-14  Simon Josefsson  <jas@extundo.com>
74313
74314         * tests/test-arcfour.c: New file.
74315
74316         * modules/arcfour, modules/arcfour-tests: New files.
74317
74318 2005-10-14  Simon Josefsson  <jas@extundo.com>
74319
74320         * m4/arcfour.m4: New file.
74321
74322 2005-10-14  Simon Josefsson  <jas@extundo.com>
74323
74324         * lib/arcfour.h, lib/arcfour.c: New files.
74325
74326 2005-10-14  Roland McGrath  <roland@redhat.com>
74327
74328         Import from libc.  [BZ #1331]
74329         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
74330         macro argument.
74331         Reported by Matej Vela <vela@debian.org>.
74332
74333 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74334
74335         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
74336         include <wchar.h>; no longer needed.
74337
74338 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74339
74340         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
74341
74342 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
74343         and  Ulrich Drepper  <drepper@redhat.com>
74344
74345         Import from libc.
74346         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
74347         instead of inline stream orientation test and two separate
74348         function calls.  Pay no attention to USE_IN_LIBIO.
74349
74350 2005-10-13  Simon Josefsson  <jas@extundo.com>
74351
74352         * modules/gc-hmac-md5-tests: New file.
74353
74354         * tests/test-gc-hmac-sha1.c: New file.
74355
74356         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
74357
74358         * modules/gc-hmac-md5-tests: New file.
74359
74360         * tests/test-gc-md5.c: New file.
74361
74362         * modules/gc-md5-tests: New file.
74363
74364 2005-10-13  Simon Josefsson  <jas@extundo.com>
74365
74366         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74367         Move memory allocation outside of loop.
74368
74369 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74370
74371         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74372         intermediate directory is in a read-only file system.  Problem
74373         reported by Eric Blake.
74374
74375 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74376
74377         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74378
74379 2005-10-12  Simon Josefsson  <jas@extundo.com>
74380
74381         * tests/test-hmac-sha1.c: New file.
74382
74383         * modules/hmac-sha1-tests: New file.
74384
74385         * modules/hmac-sha1: New file.
74386
74387 2005-10-12  Simon Josefsson  <jas@extundo.com>
74388
74389         * modules/gc-sha1: New file.
74390
74391 2005-10-12  Simon Josefsson  <jas@extundo.com>
74392
74393         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
74394
74395         * tests/test-gc-pbkdf2-sha1.c: New file.
74396
74397 2005-10-12  Simon Josefsson  <jas@extundo.com>
74398
74399         * modules/gc-md5, modules/gc-hmac-md5: New files.
74400
74401         * modules/gc (Files): Remove md5, memxor and hmac files.
74402
74403 2005-10-12  Simon Josefsson  <jas@extundo.com>
74404
74405         * m4/gc-pbkdf2-sha1.m4: New file.
74406
74407         * m4/gc-hmac-sha1.m4: New file.
74408
74409         * m4/gc-sha1: New file.
74410
74411         * m4/hmac-sha1.m4: New file.
74412
74413 2005-10-12  Simon Josefsson  <jas@extundo.com>
74414
74415         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
74416
74417         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
74418
74419 2005-10-12  Simon Josefsson  <jas@extundo.com>
74420
74421         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
74422         suggested by Bruno Haible <bruno@clisp.org>.
74423
74424 2005-10-12  Simon Josefsson  <jas@extundo.com>
74425
74426         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
74427
74428 2005-10-12  Simon Josefsson  <jas@extundo.com>
74429
74430         * lib/gc-pbkdf2-sha1.c: New file.
74431
74432         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
74433
74434 2005-10-12  Simon Josefsson  <jas@extundo.com>
74435
74436         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
74437
74438         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
74439
74440 2005-10-12  Simon Josefsson  <jas@extundo.com>
74441
74442         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
74443         GC_USE_HMAC_MD5, respectively.
74444
74445         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
74446         (gc_md5): Fix typo.
74447
74448         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
74449
74450         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
74451
74452         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
74453
74454 2005-10-12  Bruno Haible  <bruno@clisp.org>
74455
74456         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
74457         Reported by Stepan Kasal <kasal@ucw.cz>.
74458
74459 2005-10-11  Simon Josefsson  <jas@extundo.com>
74460
74461         * tests/test-crc.c: New file.
74462
74463         * modules/crc, modules/crc-tests: New files.
74464
74465 2005-10-11  Simon Josefsson  <jas@extundo.com>
74466
74467         * m4/crc.m4: New file.
74468
74469 2005-10-11  Simon Josefsson  <jas@extundo.com>
74470
74471         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74472
74473         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74474
74475         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74476
74477 2005-10-11  Simon Josefsson  <jas@extundo.com>
74478
74479         * lib/crc.h, lib/crc.c: New files.
74480
74481         * lib/gc.h (gc_hash_buffer): Add doc.
74482
74483 2005-10-11  Bruno Haible  <bruno@clisp.org>
74484
74485         * modules/c-strcasestr: New file.
74486         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74487
74488 2005-10-11  Bruno Haible  <bruno@clisp.org>
74489
74490         * modules/c-strcase: New file.
74491         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74492
74493 2005-10-11  Bruno Haible  <bruno@clisp.org>
74494
74495         * lib/strcasecmp.c: Include limits.h.
74496         (strcasecmp): Avoid integer overflow on exotic platforms.
74497         * lib/strncasecmp.c: Include limits.h.
74498         (strncasecmp): Avoid integer overflow on exotic platforms.
74499         Reported by Paul Eggert.
74500
74501 2005-10-11  Bruno Haible  <bruno@clisp.org>
74502
74503         * lib/c-strcasestr.h: New file, from GNU gettext.
74504         * lib/c-strcasestr.c: New file, from GNU gettext.
74505
74506 2005-10-11  Bruno Haible  <bruno@clisp.org>
74507
74508         * lib/c-strcase.h: New file, from GNU gettext.
74509         * lib/c-strcasecmp.c: New file, from GNU gettext.
74510         * lib/c-strncasecmp.c: New file, from GNU gettext.
74511
74512 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74513
74514         * modules/mempcpy (License): GPL -> LGPL.
74515         * modules/strchrnul (License): Likewise.
74516         * modules/sysexits (License): Likewise.
74517
74518 2005-10-08  Simon Josefsson  <jas@extundo.com>
74519
74520         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74521
74522 2005-10-07  Simon Josefsson  <jas@extundo.com>
74523
74524         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74525
74526 2005-10-06  Simon Josefsson  <jas@extundo.com>
74527
74528         * tests/test-hmac-md5.c: New file.
74529
74530         * modules/hmac-md5-tests: New file.
74531
74532         * modules/hmac-md5: New file.
74533
74534 2005-10-06  Simon Josefsson  <jas@extundo.com>
74535
74536         * m4/hmac-md5.m4: New file.
74537
74538         * m4/memxor.m4: Require gl_C_RESTRICT.
74539
74540 2005-10-06  Simon Josefsson  <jas@extundo.com>
74541
74542         * lib/memxor.c (memxor): Avoid casts and warnings.
74543
74544 2005-10-06  Simon Josefsson  <jas@extundo.com>
74545
74546         * lib/hmac-md5.c: New file.
74547
74548         * lib/hmac.h: New file.
74549
74550 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74551
74552         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74553         promotes to int, not unsigned int, to catch the AIX 5.3
74554         compiler bug.
74555
74556 2005-10-05  Simon Josefsson  <jas@extundo.com>
74557
74558         * modules/memxor: New file.
74559
74560         * modules/iconv (Files): Move config.rpath to havelib, it is used
74561         there.
74562
74563         * modules/havelib (Files): Add config.rpath.
74564
74565 2005-10-05  Simon Josefsson  <jas@extundo.com>
74566
74567         * m4/memxor.m4: New file.
74568
74569 2005-10-05  Simon Josefsson  <jas@extundo.com>
74570
74571         * lib/memxor.c (memxor): Fix compiler error.
74572
74573         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74574         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74575
74576         * lib/memxor.h, lib/memxor.c: New files.
74577
74578         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74579         we assume all systems have it, suggested by Jim Meyering
74580         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74581         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74582         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74583         same reasons.
74584
74585 2005-10-05  Simon Josefsson  <jas@extundo.com>
74586
74587         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74588
74589 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74590
74591         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74592         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74593         needed, since the source code now assumes these .h files.
74594
74595 2005-10-05  Derek Price  <derek@ximbiot.com>
74596
74597         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74598
74599 2005-10-05  Bruno Haible  <bruno@clisp.org>
74600
74601         * modules/stdint (License): Change to LGPL.
74602
74603 2005-10-04  Simon Josefsson  <jas@extundo.com>
74604
74605         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74606         D. Baushke" <mdb@gnu.org>.
74607
74608 2005-10-04  Bruno Haible  <bruno@clisp.org>
74609
74610         * lib/verify.h (verify_true): Provide alternative definition for C++.
74611
74612 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74613
74614         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74615         (SSIZE_MAX): New macro, if not already defined.
74616         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74617         than 2 GiB.
74618
74619 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74620
74621         Sync from coreutils.
74622         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74623         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74624         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74625         ULLONG_MAX doesn't work with 2.7.2.1.
74626
74627 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74628
74629         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74630         From Ben Pfaff.
74631
74632         * modules/exclude (Depends-on): Depend on verify.
74633         * modules/strtoimax (Depends-on): Likewise.
74634         * modules/utimecmp (Depends-on): Likewise.
74635
74636 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74637
74638         * lib/exclude.c: Include verify.h.
74639         (verify): Remove.  All callers changed to use verify.h's version.
74640         * lib/strtoimax.c: Likewise.
74641         * lib/utimecmp.c: Likewis.e
74642
74643         Sync from coreutils.
74644         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74645         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74646         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74647         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74648         bother returning ENOSYS if settimeofday or stime fails; just let
74649         them return whatever errno they want to return.
74650         * lib/utimens.c: Include unistd.h, for dup2.
74651         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74652         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74653
74654 2005-10-02  Jim Meyering  <jim@meyering.net>
74655
74656         Sync from coreutils.
74657         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74658         from glibc-2.2.5 that fails for read-only files.
74659
74660 2005-10-02  Jim Meyering  <jim@meyering.net>
74661
74662         Sync from coreutils.
74663         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74664         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74665         `#if HAVE_CONFIG_H'.
74666         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74667         Remove AT_FDCWD test.
74668         Do not consume the fd unless successful.
74669         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74670         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74671         block, so that we don't even try to compile it if settimeofday is
74672         available.  This works around a compilation failure on OSF1 V5.1,
74673         due to stime requiring a `long int*' while tv_sec is `int'.
74674
74675 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74676
74677         Sync from coreutils.
74678         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74679         against `yes', rather than just testing for nonempty.
74680
74681 2005-10-01  Simon Josefsson  <jas@extundo.com>
74682
74683         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74684         and Darwin.
74685
74686         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74687         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74688         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74689         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74690         Check if struct addrinfo is declared.
74691
74692 2005-10-01  Simon Josefsson  <jas@extundo.com>
74693
74694         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74695         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74696         AI_* and EAI_* definitions.  Protect function declarations.
74697
74698 2005-10-01  Jim Meyering  <jim@meyering.net>
74699
74700         Sync from coreutils.
74701
74702         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74703         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74704         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74705         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74706         in the inet and nsl libraries.  Required on Solaris 5.7.
74707
74708 2005-10-01  Jim Meyering  <jim@meyering.net>
74709
74710         Sync from coreutils.
74711         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74712         in the inet and nsl libraries.  Required on Solaris 5.7.
74713
74714 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74715
74716         * lib/getdelim.c (getdelim): Remove unused variables.
74717
74718 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74719
74720         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74721         so that the code works even with ancient cpp.  Portability problem
74722         with GCC 2.7.2.1 reported by Thomas M.Ott.
74723
74724 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74725
74726         * modules/regex (Depends-on): Add strcase.
74727
74728         * modules/gethostname (Licence): Change from GPL to LGPL, since
74729         gethostname.c is a trivial implementation of a standard library
74730         function.
74731         * modules/poll (License): Change from GPL to LGPL, since it's
74732         derived from LGPL code.
74733
74734 2005-09-27  Jim Meyering  <jim@meyering.net>
74735
74736         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74737         HAVE_CONFIG_H.
74738
74739         * lib/intprops.h (signed_type_or_expr__): Define.
74740         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74741         for unsigned types.
74742
74743 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74744
74745         * lib/verify.h (verify_expr): Remove, replacing with:
74746         (verify_true): New macro that returns true instead of void.
74747         (verify_type__): Remove.
74748         (verify): Use verify_true rather than verify_type__.
74749
74750 2005-09-26  Bruno Haible  <bruno@clisp.org>
74751
74752         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74753         is necessary.
74754         (lib_SOURCES): Remove mbchar.c.
74755         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74756         (Files): Add m4/mbrtowc.m4.
74757         * modules/mbiter: Likewise.
74758         * modules/mbuiter: Likewise.
74759
74760 2005-09-26  Bruno Haible  <bruno@clisp.org>
74761
74762         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74763         compile mbchar.c if they are not both present.
74764         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74765         * m4/mbiter.m4 (gl_MBITER): Likewise.
74766         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74767         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74768         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74769
74770 2005-09-25  Jim Meyering  <jim@meyering.net>
74771
74772         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74773         also uses socklen_t.
74774
74775 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74776
74777         * lib/utimens.c (ENOSYS): Define if not already defined.
74778         (futimens): Support having a null PATH if the file descriptor
74779         is nonnegative.
74780
74781         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74782         Remove.
74783         (__attribute): Define to empty unless GCC 3.1 or later.
74784         This works around a core dump on OpenBSD 3.4, which has GCC
74785         2.95.3, which dumps core when given __attribute__(()).  It also
74786         simplifies other tests, since we really don't want to bother with
74787         worrying about which ancient version of GCC supported what.
74788         Original problem reported by Yoann Vandoorselaere, with part of
74789         the fix suggested by Derek Price.
74790
74791 2005-09-24  Jim Meyering  <jim@meyering.net>
74792
74793         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74794         so we can once again use a positive bitfield width of 1 -- now we
74795         don't have to explain why we were using a bitfield width of 2.
74796
74797 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74798
74799         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74800         and similarly for the other external symbols.  Problem reported
74801         by James Gallager.
74802
74803         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74804         bug reported by Jim Meyering.
74805
74806         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74807         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74808         not needed, since socklen is a prerequisite module.
74809
74810 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74811
74812         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74813         Problem reported by Eric Blake.
74814         (getaddrinfo): Initialize se so that it's not garbage.
74815         Redo internal storage allocation so that it doesn't make unportable
74816         assumptions about alignment.
74817         Fix a memory leak.
74818
74819         * lib/utimens.c (futimens): Use futimesat if available.
74820         Prefer it to futimes since it doesn't have the futimes bug.
74821
74822         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74823         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74824         Instead, declare a function that returns a pointer to an array,
74825         and use verify_type__ to declare the size of the array.
74826         Problem and germ of a solution reported by Bruno Haible.
74827         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74828         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74829
74830 2005-09-23  Jim Meyering  <jim@meyering.net>
74831
74832         Sync from coreutils.
74833         Correct build failure (socklen_t not defined) on at least
74834         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74835         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74836
74837 2005-09-23  Jim Meyering  <jim@meyering.net>
74838
74839         * modules/getaddrinfo (Depends-on): Add socklen.
74840
74841 2005-09-23  Bruno Haible  <bruno@clisp.org>
74842
74843         * tests/test-verify.c: New file.
74844
74845 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74846
74847         Sync from coreutils.
74848
74849         * modules/argmatch (Depends-on): Add verify.
74850         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74851         unistd-safer.
74852         * modules/save-cwd (Depends-on): Likewise.
74853
74854         * modules/openat (Files): Add lib/openat-die.c.
74855         (Depends-on): Remove error, exitfail.
74856         Add dirname.
74857
74858         * modules/verify: New file.
74859         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74860         with "verify" module.
74861
74862 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74863
74864         Sync from coreutils.
74865
74866         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74867         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74868         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74869         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74870         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74871         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74872         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74873         Don't bother checking for string.h, stdlib.h, unistd.h.
74874         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74875         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74876         module's job.
74877         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74878         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74879
74880         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74881         (gl_GETDATE): Use it.
74882
74883         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74884
74885 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74886
74887         Sync from coreutils.
74888
74889         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74890         stat-time.h.
74891         * lib/argmatch.h: Include verify.h
74892         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74893         (ARGMATCH_ASSERT): Remove; unused.
74894         * lib/canonicalize.c: Assume STDC_HEADERS.
74895         * lib/exclude.c: Include "strcase.h".
74896         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74897         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74898         and stdio-safer.h.
74899         (getusershell): Call fopen, not fopen_safer.
74900         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74901         Do not include unistd-safer.h.
74902         (save_cwd): Don't call fd_safer; no longer needed
74903         now that we include fcntl--.h.
74904
74905         * lib/getdate.y (relative_time): New type.
74906         (RELATIVE_TIME_0): New constant.
74907         (parser_control): Use relative_time instead of doing it ourselves.
74908         (%union): Add new relative_time rel member.
74909         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74910         Now typeless.
74911         (relunit, relunit_snumber): Now of type rel.
74912         (zone, rel, relunit, get_date): Adjust to above changes.
74913
74914         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74915         Do not include unistd-safer.h.
74916         (getloadavg): Don't call fd_safer; no longer needed
74917         now that we include fcntl--.h.
74918
74919         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74920         (make_dir_parents): Treat ENOSYS like EEXIST.
74921
74922         Improve quality of diagnostics on restore_cwd failure.
74923         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74924         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74925         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74926         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74927         each time through the loop.  Do not diagnose restore_cwd failure;
74928         that is the caller's job (and perhaps the caller does not care).
74929
74930         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74931         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74932         If the file already exists but is not a directory, don't bother
74933         to try to make its parents.
74934         Close potential file descriptor leak if we can't chdir("/") (!).
74935         Don't always return true if chdir($PWD) fails; return true only
74936         if the requested action was done successfully (except for the
74937         chdir($PWD)).
74938         Don't log final directory unless we actually made it.
74939         Refactor to avoid duplicate code to fix up permissions.
74940         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74941
74942         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74943         to make it a bit faster and (I hope) clearer.
74944         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74945         Fix bug in formats like %2N.
74946
74947         * lib/verify.h: New file.
74948
74949 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74950
74951         Sync from coreutils.
74952         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74953
74954 2005-09-22  Jim Meyering  <jim@meyering.net>
74955
74956         Sync from coreutils.
74957
74958         * m4/lstat.m4 (gl_FUNC_LSTAT):
74959         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74960         Remove obsolete comment.
74961         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74962         * m4/xstrtod.m4: Likewise.
74963
74964         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74965
74966 2005-09-22  Jim Meyering  <jim@meyering.net>
74967
74968         Sync from coreutils.
74969
74970         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74971
74972         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74973         the .tm_year member, since otherwise gcc-4.0 would now warn about
74974         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74975
74976         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74977         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74978
74979         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74980         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74981         when run in a time zone for which daylight savings time is in effect
74982         for the starting date.
74983
74984         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74985         stop us from restricting permissions of just-created absolute-named
74986         directories.
74987         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74988         to restore initial working directory.
74989         * lib/mkdir-p.c (make_dir_parents): New parameter:
74990         different_working_dir, to tell caller if/when we change the working
74991         directory and are unable to return to the initial one.
74992         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74993         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74994         `return false'.  This fixes a bug introduced on 2004-07-30.
74995
74996         * lib/openat.c (fdopendir): Be sure to close the supplied
74997         file descriptor before returning.  This makes our replacement
74998         implementation a little closer to Solaris's, where fdopendir
74999         ties the file descriptor to the returned DIR* pointer.
75000         * lib/openat.c (unlinkat): New function.
75001         * lib/openat.h (unlinkat): Add prototype.
75002         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
75003         (openat_restore_fail): Rename from openat_restore_die.
75004         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
75005
75006         Provide an alternative to exiting immediately upon save_cwd or
75007         restore_cwd failure.  Now, an application can arrange e.g.,
75008         to perform a longjump in that case.
75009         * lib/openat.c: Include dirname.h.
75010         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
75011         (rpl_openat, fdopendir, fstatat): Call openat_save_die
75012         and openat_restore_die rather than calling error directly.
75013         Don't include "error.h" or "exitfail.h"; they're no longer needed.
75014
75015         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
75016         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
75017         define.
75018
75019         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
75020         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
75021                             int utc, int nanoseconds);
75022         Background:
75023         date should not have to allocate a megabyte of virtual memory to
75024         handle a format argument like +%1048575T.  When implemented with
75025         strftime, it must allocate such a buffer, use strftime to fill it
75026         in, print it, then free it.
75027         With fprintftime, it simply prints everything and exits.
75028         With no need for memory allocation, that's one fewer way to fail.
75029         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
75030         optional field width, not before, so we accept %9:z, not %:9z.
75031         (my_strftime): Be sure to use L_('x') for literals.
75032
75033         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
75034         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
75035         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
75036         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
75037         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
75038         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
75039         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
75040         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
75041         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
75042         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
75043         * lib/xgethostname.c, lib/xreadlink.c:
75044         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
75045
75046         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
75047         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
75048         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
75049         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75050         and don't include <sys/file.h>).
75051
75052 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
75053
75054         Sync from coreutils.
75055
75056         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
75057         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
75058         [!LDAV_DONE]: Avoid unused variable warning.
75059
75060 2005-09-21  Bruno Haible  <bruno@clisp.org>
75061
75062         * lib/unicodeio.h (unicode_to_mb): New declaration.
75063
75064 2005-09-20  Derek Price  <derek@ximbiot.com>
75065
75066         * lib/getaddrinfo.c: Don't include <netdb.h> included from
75067         getaddrinfo.h.
75068
75069 2005-09-20  Bruno Haible  <bruno@clisp.org>
75070
75071         * gnulib-tool: Remove trailing slashes from the values specified for
75072         --source-base, --m4-base, --tests-base, --aux-dir.
75073         Suggested by Simon Josefsson <jas@extundo.com>.
75074
75075 2005-09-20  Bruno Haible  <bruno@clisp.org>
75076
75077         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
75078         func_modules_to_filelist, func_import, func_create_testdir): Make all
75079         sorting results locale-independent, so that gnulib-cache.m4 doesn't
75080         change when gnulib-tool is invoked in a different locale.
75081
75082 2005-09-19  Simon Josefsson  <jas@extundo.com>
75083
75084         * m4/socklen.m4: Fix typo.
75085
75086 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75087
75088         Use a consistent style for including <config.h>.
75089         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
75090         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
75091         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
75092         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
75093         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
75094         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
75095         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
75096         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
75097         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
75098         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
75099         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
75100         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
75101         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
75102         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
75103         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
75104         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
75105         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
75106         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
75107         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
75108         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
75109         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
75110         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
75111         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
75112         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
75113         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
75114         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
75115         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
75116         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
75117         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
75118         lib/xstrtoumax.c, lib/yesno.c:
75119         Standardize inclusion of config.h.
75120         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
75121         lib/inttostr.h:  Removed inclusion of config.h from header files.
75122         * lib/inttostr.c:  Adjusted in-tree users.
75123         * lib/timespec.h: Remove superfluous warning to include config.h.
75124         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
75125         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
75126         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
75127         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
75128         config.h with HAVE_CONFIG_H.
75129
75130 2005-09-19  Jim Meyering  <jim@meyering.net>
75131
75132         * modules/pathmax (License): Change to LGPL.
75133
75134 2005-09-19  Derek Price  <derek@ximbiot.com>
75135
75136         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
75137
75138 2005-09-19  Bruno Haible  <bruno@clisp.org>
75139
75140         * gnulib-tool (import): Provide default for --tests-base.
75141
75142 2005-09-19  Bruno Haible  <bruno@clisp.org>
75143
75144         * doc/quote.texi: New file, extracted from gnulib.texi.
75145         * doc/ctime.texi: New file, extracted from gnulib.texi.
75146         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
75147         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
75148         * doc/gnulib.texi: Include them.
75149
75150 2005-09-18  Bruno Haible  <bruno@clisp.org>
75151
75152         Portability fix.
75153         * gnulib-tool (func_readlink): New function.
75154         (func_ln_if_changed): Use it.
75155
75156 2005-09-18  Bruno Haible  <bruno@clisp.org>
75157
75158         * gnulib-tool: Support --with-tests also with --import.
75159         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
75160         (func_import): Use variables $testsbase and $inctests. Emit a
75161         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
75162         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
75163         SUBDIRS += $testsdir.
75164         (func_create_testdir): Update.
75165
75166 2005-09-18  Bruno Haible  <bruno@clisp.org>
75167
75168         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
75169         instead of $dry_run.
75170         (func_cp_if_changed, func_mv_if_changed): Remove functions.
75171         (func_ln_if_changed): Don't handle dry-run here.
75172         (func_import): In dry-run mode, detect more precisely which actions
75173         would be performed, and don't use "...ing" verbs.
75174
75175 2005-09-18  Bruno Haible  <bruno@clisp.org>
75176
75177         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
75178         (func_import): Use join on two temporary files instead of three nested
75179         loops, in order to determine which files are new or old.
75180
75181 2005-09-18  Bruno Haible  <bruno@clisp.org>
75182
75183         * gnulib-tool (func_import): Comment out code that spits out the
75184         new files with --dry-run.
75185
75186 2005-09-18  Bruno Haible  <bruno@clisp.org>
75187
75188         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
75189
75190 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75191
75192         * lib/stat-time.h: New file.
75193         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
75194         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
75195         in a different way.
75196         (timespec_cmp): New function.
75197         * lib/utimecmp.c: Include stat-time.h.
75198         (SYSCALL_RESOLUTION): Depend on whether various struct stat
75199         members exist, not on the obsolescent ST_MTIM_NSEC.
75200         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
75201
75202 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75203
75204         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
75205
75206 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75207
75208         * MODULES.html.sh (File system functions): Add stat-time.
75209         * modules/stat-time: New file.
75210         * modules/timespec (Files): Remove m4/st_mtim.m4; this
75211         is now done in a different way, by the stat-time module.
75212         * modules/utimecmp (Depends-on): Add stat-time.
75213
75214 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75215
75216         * m4/st_mtim.m4: Remove.  Superseded by...
75217         * m4/stat-time.m4: New file.
75218         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
75219         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
75220
75221 2005-09-15  Derek Price  <derek@ximbiot.com>
75222
75223         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
75224
75225 2005-09-15  Derek Price  <derek@ximbiot.com>
75226
75227         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
75228         * lib/regex_internal.c: Ditto, using this...
75229         (__GNUC_PREREQ): ...new macro.
75230         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
75231         using...
75232         (__GNUC_PREREQ): ...this new macro.
75233
75234         * lib/strstr.h: Include string.h. Define strstr as a macro here.
75235
75236 2005-09-15  Derek Price  <derek@ximbiot.com>
75237             Paul Eggert  <eggert@cs.ucla.edu>
75238
75239         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
75240         changes, consolidating in...
75241         * lib/regex_internal.h: ...this file.
75242
75243 2005-09-13  Jim Meyering  <jim@meyering.net>
75244
75245         * lib/canon-host.c: Filter through gnu indent and reword comments
75246         slightly.
75247         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
75248
75249 2005-09-13  Derek Price  <derek@ximbiot.com>
75250
75251         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
75252         failure.
75253         Reported by Jim Meyering  <jim@meyering.net>.
75254
75255 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75256
75257         * lib/base64.c: Typo.
75258         (base64_encode): Put b64str in initialized data section.
75259
75260 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
75261
75262         Merge glibc and coreutils changes into gnulib, plus a few
75263         extra fixes.
75264         * lib/md5.c: Use #error rather than a string.
75265         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
75266         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
75267         (__attribute__): Define to empty for non recent-GCC.
75268         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
75269         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
75270         Renamed from their non-__ counterparts, with new macros replacing
75271         them if not _LIBC.  Add __THROW attribute.
75272         (rol): Remove.
75273         (struct md5_ctx): Align buffer if using GCC.
75274         * lib/sha1.h (struct sha1_ctx): Likewise.
75275         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
75276         The old name was backwards.
75277         (NOTSWAP): Remove; not used.
75278         (rol): New macro, moved here from md5.h.
75279         (sha1_process_block): Remove a FIXME that doesn't make sense.
75280
75281 2005-09-12  Derek Price  <derek@ximbiot.com>
75282
75283         Return usable errors from canon-host.
75284         * lib/canon-host.h: New file.
75285         * lib/canon-host.c (canon_host): Wrap...
75286         (canon_host_r): ...this new function, which now relies exclusively on
75287         getaddrinfo.
75288         (ch_strerror): New function.
75289         (last_cherror): New global.
75290         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
75291         interface.
75292         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
75293         void *.
75294         (freeaddrinfo): Free ai->ai_canonname when set.
75295
75296 2005-09-12  Derek Price  <derek@ximbiot.com>
75297
75298         Make canon-host require getaddrinfo.
75299         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
75300         AC_LIBSOURCE canon-host.h.  Call...
75301         (gl_PREREQ_CANON_HOST): ...this new function, which requires
75302         gl_GETADDRINFO.
75303         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
75304
75305 2005-09-12  Derek Price  <derek@ximbiot.com>
75306
75307         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
75308         LGPL.
75309         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
75310
75311 2005-09-12  Derek Price  <derek@ximbiot.com>
75312
75313         * lib/gai_strerror.c: Include config.h when available.  Include
75314         getaddrinfo.h before other headers to test interface.
75315         Reported by Larry Jones <lawrence.jones@ugs.com>.
75316
75317 2005-09-12  Derek Price  <derek@ximbiot.com>
75318             Paul Eggert  <eggert@cs.ucla.edu>
75319
75320         * modules/glob (Files): Add glob-libc.h.
75321
75322 2005-09-12  Derek Price  <derek@ximbiot.com>
75323             Paul Eggert  <eggert@cs.ucla.edu>
75324
75325         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
75326         glob_.h, glob-libc.h.
75327         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
75328
75329 2005-09-12  Derek Price  <derek@ximbiot.com>
75330             Paul Eggert  <eggert@cs.ucla.edu>
75331
75332         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
75333         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
75334         protecting things that should be done only in gnulib contexts.
75335         * lib/glob_.h: New file, containing only the glob things needed for
75336         gnulib.
75337         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
75338         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
75339         (glob, globfree, glob_pattern_p): Now defined simply in terms of
75340         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
75341         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
75342         and to respect the namespace rules better.
75343
75344 2005-09-08  Simon Josefsson  <jas@extundo.com>
75345
75346         * modules/socklen: New file.
75347
75348 2005-09-08  Simon Josefsson  <jas@extundo.com>
75349
75350         * m4/socklen.m4: New file.
75351
75352 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75353
75354         * modules/utimens (Files): Add m4/utimbuf.m4, since
75355         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
75356         Reported by Sergey Poznyakoff.
75357
75358 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75359
75360         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75361         definitions, since that's the preferred style in glibc.
75362         Fix a minor spacing issue, and update copyright notice to match
75363         glibc's.
75364
75365 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75366
75367         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75368
75369 2005-09-06  Simon Josefsson  <jas@extundo.com>
75370
75371         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75372         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75373
75374 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75375
75376         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75377         warning.
75378
75379 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75380
75381         * config/srclist.txt: Add glibc bug 1302.
75382
75383 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75384
75385         Change bitset word type from unsigned int to unsigned long int,
75386         as this has better performance on typical 64-bit hosts.
75387         Port bitset code to hosts with unusual word sizes.
75388         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75389         (build_collating_symbol):
75390         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75391         argument is a bitset.  This is merely a style issue, but it makes
75392         it clearer that an entire array is expected.
75393         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
75394         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
75395         Port to the case where bitset_word is not the same as unsigned int.
75396         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75397         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
75398         Likewise.
75399         * lib/regexec.c (check_dst_limits_calc_pos_1,
75400         check_subexp_matching_top):
75401         (build_trtable, group_nodes_into_DFAstates):
75402         Likewise.
75403         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
75404         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
75405         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
75406         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
75407         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
75408         * lib/regcomp.c (optimize_subexps, lower_subexp):
75409         Work even if bitset_word has holes in its bitwise representation.
75410         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
75411         * lib/regexec.c (check_dst_limits_calc_pos_1,
75412         check_subexp_matching_top):
75413         Likewise.
75414         * lib/regex_internal.c (re_string_reconstruct):
75415         Don't assume UCHAR_MAX == 255.
75416         * lib/regex_internal.h (bitset_set_all): Likewise.
75417         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
75418         All uses changed.
75419         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
75420         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
75421         All uses changed.
75422         (BITSET_WORD_MAX): New macro.
75423         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
75424         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
75425         (bitset_empty, bitset_copy):
75426         Prefer sizeof (bitset) to multiplying it out ourselves.
75427         (bitset_not_merge): Remove; unused.
75428         (bitset_contain): Return bool, not unsigned int with one bit on.
75429         All callers changed.
75430         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
75431         alignment than re_node_set; do this by defining a new internal
75432         type struct dests_alloc and using it to allocate memory.
75433
75434 2005-09-05  Bruno Haible  <bruno@clisp.org>
75435
75436         * gnulib-tool (func_import): Fix comparison in handling of symbolic
75437         links.
75438
75439 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
75440
75441         * modules/size_max (Makefile.am): Add size_max.h
75442
75443 2005-09-04  Derek Price  <derek@ximbiot.com>
75444
75445         * gnulib-tool (func_import): Fix reversed $symbolic logic.
75446
75447 2005-09-03  Simon Josefsson  <jas@extundo.com>
75448
75449         * gnulib-tool: Fix typo.
75450
75451 2005-09-03  Simon Josefsson  <jas@extundo.com>
75452
75453         * config/srclist.txt: Add glibc bug 1293.
75454
75455 2005-09-03  Derek Price  <derek@ximbiot.com>
75456
75457         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
75458         From Larry Jones <lawrence.jones@ugs.com>.
75459
75460 2005-09-02  Simon Josefsson  <jas@extundo.com>
75461
75462         * modules/socklen: New file.
75463
75464 2005-09-02  Simon Josefsson  <jas@extundo.com>
75465
75466         * modules/havelib: New module.
75467
75468         * modules/gettext, modules/iconv, modules/lock, modules/readline:
75469         Use havelib.
75470
75471 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75472
75473         Check for arithmetic overflow when calculating sizes, to prevent
75474         some buffer-overflow issues.  These patches are conservative, in the
75475         sense that when I couldn't determine whether an overflow was possible,
75476         I inserted a run-time check.
75477         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75478         macros.
75479         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75480         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75481         (re_xnrealloc, re_x2nrealloc): New inline functions.
75482         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75483         parse_bracket_exp):
75484         (build_equiv_class, build_charclass): Check for arithmetic overflow
75485         in size expression calculations.
75486         * lib/regex_internal.c (re_string_realloc_buffers):
75487         (build_wcs_upper_buffer, re_node_set_add_intersect):
75488         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75489         (re_dfa_add_node, register_state): Likewise.
75490         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75491         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75492         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75493         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75494
75495 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75496
75497         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75498         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75499
75500 2005-09-02  Bruno Haible  <bruno@clisp.org>
75501
75502         Support for lib vs. lib64 distinction on biarch platforms.
75503         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75504         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75505         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75506
75507 2005-09-02  Bruno Haible  <bruno@clisp.org>
75508
75509         * gnulib-tool (import): In the other first-use case, provide defaults
75510         as well.
75511
75512 2005-09-02  Bruno Haible  <bruno@clisp.org>
75513
75514         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75515         patches not yet found in the latest gettext release.
75516
75517 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75518
75519         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75520         to avoid a collision with bits/local_lim.h in glibc.
75521         All uses changed.  Problem reported by Dmitry V. Levin in
75522         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75523
75524         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75525         bugs in int versus size_t comparisons.
75526         (re_string_context_at): Fix bug where the code assumed that
75527         Idx is signed.
75528
75529         Use bool where appropriate.
75530         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75531         All callers changed.
75532         (calc_eclosure_iter): Likewise, for ROOT arg.
75533         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75534         (build_charclass_op): Likewise, for NON_MATCH arg.
75535         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75536         (re_string_construct_common): Likewise, for ICASE arg.
75537         * lib/regexec.c (re_search_2_stub, re_search_stub):
75538         Likewise, for RET_LEN arg.
75539         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75540         (set_regs): Likewise, for FL_BACKTRACK arg.
75541         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75542         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75543         (calc_eclosure_iter, parse_bracket_exp):
75544         Use bool for internal variables that are booleans.
75545         * lib/regexec.c (re_search_internal, check_matching,
75546         proceed_next_node):
75547         (set_regs, build_sifted_states, sift_states_bkref):
75548         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75549         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75550         (find_collation_sequence_value):
75551         Likewise.
75552         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75553         (re_node_set_compare):
75554         Return bool, not int. All callers changed.
75555         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75556         (build_trtable, check_node_accept): Likewise.
75557         * lib/regex_internal.h: Include stdbool.h.
75558
75559         Fix bugs uncovered when converting to bool.
75560         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75561         failure instead of charging ahead blindly.
75562         * lib/regex_internal.c (register_state): Likewise.
75563         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75564         for freeing internal storage.
75565         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75566         bitset pieces used as boolean, to avoid undefined behavior
75567         on hosts that do int overflow checking.
75568
75569 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75570
75571         * config/srclist.txt: Add glibc bugs 1285-1287.
75572
75573 2005-09-01  Jim Meyering  <jim@meyering.net>
75574
75575         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75576         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75577         Require gl_STAT_MACROS, too.
75578
75579 2005-09-01  Bruno Haible  <bruno@clisp.org>
75580
75581         * gnulib-tool (import): In the first-use case, provide defaults.
75582
75583 2005-09-01  Bruno Haible  <bruno@clisp.org>
75584
75585         * gnulib-tool (func_import): Remove the .tmp files.
75586
75587 2005-09-01  Bruno Haible  <bruno@clisp.org>
75588
75589         * gnulib-tool (func_import): Fix handling of symbolic links.
75590
75591 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75592
75593         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75594         old glibc regex code mishandles strings longer than 2**31 bytes.
75595         This patch fixes this when the regex code is used in gnulib
75596         (i.e., outside glibc).
75597
75598         This patch should not affect the use of the regex code inside
75599         glibc.  No doubt this problem also needs to be handled for glibc
75600         as well, but the result will be an incompatible change to the
75601         glibc ABI, and the old ABI will have to be supported too.  That
75602         can be the the subject for another patch.
75603
75604         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75605         governing whether the rest of this patch is active.  By default,
75606         the macro is disabled and the patch has no effect.
75607         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75608         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75609         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75610         (re_match_2, re_set_registers): Use the new types.
75611         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75612         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75613         New macros.
75614         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75615         (re_string_context_at, bin_tree_t, re_dfastate_t):
75616         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75617         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75618         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75619         (re_string_char_size_at, re_string_wchar_at):
75620         (re_string_elem_size_at):
75621         Use the new types and macros to port to 64-bit hosts.
75622         Use unsigned types for internal values, so that the code
75623         mostly works even for arrays larger than SSIZE_MAX.
75624         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75625         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75626         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75627         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75628         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75629         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75630         (calc_inveclosure, parse_dup_op, build_range_exp):
75631         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75632         (fetch_number, create_token_tree, mark_opt_subexp):
75633         Likewise.
75634         * lib/regex_internal.c (re_string_construct_common,
75635         create_ci_newstate):
75636         (create_cd_newstate, re_string_allocate, re_string_construct):
75637         (re_string_realloc_buffers, build_wcs_upper_buffer):
75638         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75639         (re_string_reconstruct, re_string_peek_byte_case):
75640         (re_string_fetch_byte_case, re_string_context_at):
75641         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75642         (re_node_set_init_copy, re_node_set_add_intersect):
75643         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75644         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75645         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75646         (re_acquire_state, re_acquire_state_context, register_state):
75647         Likewise.
75648         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75649         search_cur_bkref_entry):
75650         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75651         (re_search_internal, re_search_2_stub, re_search_stub)
75652         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75653         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75654         (update_cur_sifted_state, check_dst_limits):
75655         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75656         (check_subexp_limits, sift_states_bkref, merge_state_array):
75657         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75658         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75659         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75660         (expand_bkref_cache, check_node_accept_bytes):
75661         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75662         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75663         (acquire_init_state_context, check_halt_node_context):
75664         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75665         (sift_states_backward, clean_state_log_if_needed):
75666         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75667         (find_recover_state, transit_state_sb, transit_state_mb):
75668         (transit_state_bkref, build_trtable, match_ctx_clean):
75669         Likewise.
75670         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75671         to work around an assumption that REG_MISSING is negative.
75672
75673         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75674         (seek_collating_symbol_entry) [defined _LIBC]:
75675         (lookup_collation_sequence_value) [defined _LIBC]:
75676         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75677         Use prototypes rather than old-style function definitions.
75678         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75679         (transit_state_sb) [0]:
75680         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75681
75682         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75683         rm_eo.
75684
75685         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75686         (optimize_subexps, lower_subexp):
75687         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75688         since the signed shift might overflow.  Use 1u<<31 instead.
75689         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75690         Likewise.
75691         * lib/regexec.c (check_dst_limits_calc_pos_1,
75692         check_subexp_matching_top): Likewise.
75693
75694         * lib/regcomp.c (optimize_subexps, lower_subexp):
75695         Use CHAR_BIT rather than 8, for clarity.
75696         * lib/regexec.c (check_dst_limits_calc_pos_1):
75697         (check_subexp_matching_top): Likewise.
75698         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75699         have to worry about portability issues when shifting it left.
75700         Remove no-longer-needed test for table_size > 0.
75701         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75702         in a word, as the resulting behavior is undefined.
75703         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75704         in one case, a <= should have been an <, and in another case the
75705         whole test was missing.
75706         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75707         the standard name CHAR_BIT.
75708         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75709         this is not true on one's complement and signed-magnitude hosts.
75710
75711         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75712         next_last_offset.
75713         (struct re_dfa_t): Remove unused member states_alloc.
75714         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75715
75716 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75717
75718         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75719         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75720         and large-file glibc and in 32-bit large-file Solaris.
75721
75722 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75723
75724         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75725         lengths fit in regoff_t; this isn't true if regoff_t is the same
75726         width as size_t.
75727         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75728         (= START + RANGE) instead of RANGE.  This avoids overflow
75729         problems when regoff_t is the same width as size_t.
75730         All callers changed.
75731         (re_search_2_stub): Check for overflow when adding the
75732         sizes of the two strings.
75733         (re_search_stub): Check for overflow when adding START
75734         to RANGE; if it occurs, substitute the extreme value.
75735
75736 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75737
75738         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75739
75740 2005-08-31  Jim Meyering  <jim@meyering.net>
75741
75742         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75743         a pointer-to-const.
75744         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75745         (register_state): Likewise.
75746         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75747         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75748         (group_nodes_into_DFAstates): Likewise.
75749
75750 2005-08-31  Jim Meyering  <jim@meyering.net>
75751
75752         * check-module: Add a FIXME comment.
75753
75754 2005-08-31  Eric Blake  <ebb9@byu.net>
75755
75756         * modules/unistd-safer (Files): Add unistd--.h.
75757         * modules/stdio-safer (Files): Add stdio--.h.
75758
75759 2005-08-31  Derek Price  <derek@ximbiot.com>
75760
75761         * lib/getdelim.c (getdelim): Return EOF on EOF.
75762         Reported by Larry Jones <lawrence.jones@ugs.com>.
75763
75764 2005-08-31  Bruno Haible  <bruno@clisp.org>
75765
75766         Avoid unnecessary diffs in the generated lib/Makefile.am.
75767         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75768         the generated files.
75769         (func_import): Don't set cmd.
75770
75771 2005-08-31  Bruno Haible  <bruno@clisp.org>
75772
75773         * lib/strstr.c: Include <stddef.h>, for NULL.
75774         * lib/strcasestr.c: Likewise.
75775         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75776
75777 2005-08-31  Bruno Haible  <bruno@clisp.org>
75778
75779         * gnulib-tool: New option --macro-prefix.
75780         (func_import): Use macro_prefix.
75781         (import): Handle option --macro-prefix.
75782
75783 2005-08-31  Bruno Haible  <bruno@clisp.org>
75784
75785         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75786         Also use new variables cached_lgpl, cached_libtool.
75787
75788 2005-08-31  Bruno Haible  <bruno@clisp.org>
75789
75790         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75791         always instantiating them.
75792
75793 2005-08-31  Bruno Haible  <bruno@clisp.org>
75794
75795         * gnulib-tool (func_import): Read the previous cached settings
75796         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75797         earlier added by gnulib but are now dropped. Warn when a gnulib file
75798         overwrites a non-gnulib file.
75799
75800 2005-08-31  Bruno Haible  <bruno@clisp.org>
75801
75802         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75803         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75804         projects that don't keep autogenerated files in CVS. Put into
75805         actioncmd only the specified modules, not the transitive closure.
75806
75807 2005-08-31  Bruno Haible  <bruno@clisp.org>
75808
75809         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75810         Create directories that shall be filled.
75811         (import): Don't look for gl_* macros in configure.ac. Recurse across
75812         all directories containing a gnulib-cache.m4 files, if meaningful.
75813
75814 2005-08-31  Bruno Haible  <bruno@clisp.org>
75815
75816         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75817         (import): Set seen_libtool when we see gl_LIBTOOL.
75818
75819 2005-08-31  Bruno Haible  <bruno@clisp.org>
75820
75821         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75822         declaration macro definitions from generated gnulib.m4.
75823
75824 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75825
75826         * lib/iconvme.h: Add prototype for iconv_alloc.
75827
75828 2005-08-29  Simon Josefsson  <jas@extundo.com>
75829
75830         * lib/iconvme.c: Fix errno.
75831
75832 2005-08-29  Bruno Haible  <bruno@clisp.org>
75833
75834         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75835         that it works when the directory contains spaces.
75836
75837 2005-08-29  Bruno Haible  <bruno@clisp.org>
75838
75839         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75840
75841 2005-08-29  Bruno Haible  <bruno@clisp.org>
75842
75843         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75844         Emit more advice.
75845
75846 2005-08-29  Bruno Haible  <bruno@clisp.org>
75847         and Stepan Kasal  <kasal@ucw.cz>
75848
75849         * check-module: If more parameters are given, check each of them
75850         separately; add more exceptions, as noted by Jim Meyering.
75851         (check_module): New procedure.
75852         (%exempt_header): Now contains all exceptions.
75853
75854 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75855
75856         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75857
75858 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75859
75860         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75861
75862 2005-08-28  Bruno Haible  <bruno@clisp.org>
75863
75864         * m4/gnulib-tool.m4: New file.
75865
75866 2005-08-27  Jim Meyering  <jim@meyering.net>
75867
75868         * modules/unistd-safer (Files): Add pipe-safer.c.
75869         * modules/fcntl-safer (Files): Add creat-safer.c.
75870
75871 2005-08-27  Jim Meyering  <jim@meyering.net>
75872
75873         * m4/stdlib-safer.m4: New file.  From coreutils.
75874         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75875         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75876         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75877         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75878         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75879
75880 2005-08-27  Jim Meyering  <jim@meyering.net>
75881
75882         * lib/fopen-safer.c: Merge minor changes from coreutils.
75883         * lib/dup-safer.c: Likewise.
75884         * lib/fd-safer.c: Likewise.
75885
75886         Merge from coreutils.
75887         * lib/stdio--.h: New file.
75888         * lib/stdlib--.h: New file.
75889         * lib/mkstemp-safer.c: New file.
75890
75891         GNU tar needs these.
75892         * lib/pipe-safer.c: New file.
75893         * lib/creat-safer.c: New file.
75894         * lib/fcntl--.h (creat): Define to creat_safer.
75895         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75896         * lib/unistd--.h (pipe): Define to pipe_safer.
75897         * lib/unistd-safer.h: Declare pipe_safer.
75898
75899 2005-08-26  Simon Josefsson  <jas@extundo.com>
75900
75901         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75902         Haible <bruno@clisp.org>.
75903
75904 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75905
75906         * lib/regex_internal.h: Remove all references to
75907         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75908         or better.
75909         (bitset_not, bitset_merge, bitset_not_merge):
75910         (bitset_mask, re_string_allocate, re_string_construct):
75911         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75912         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75913         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75914         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75915         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75916         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75917         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75918         (re_acquire_state_context):
75919         Remove unnecessary forward decls.
75920         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75921         Put __attribute at function definition,
75922         now that the function decl has been removed.
75923         * lib/regex_internal.c (re_string_peek_byte_case):
75924         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75925         Likewise.
75926
75927 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75928
75929         * m4/regex.m4: Add AC_PREREQ(2.50).
75930         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75931
75932 2005-08-25  Simon Josefsson  <jas@extundo.com>
75933
75934         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75935         __fsetlocking.
75936
75937 2005-08-25  Simon Josefsson  <jas@extundo.com>
75938
75939         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75940         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75941         GLIBC specific code.
75942
75943 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75944
75945         Make regex safe for g++.  This fixes one real bug (an "err"
75946         that should have been "*err").  g++ problem reported by
75947         Sam Steingold.
75948         * lib/regex_internal.h (re_calloc): New macro, consistent with
75949         re_malloc etc.  All callers of calloc changed to use re_calloc.
75950         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75951         not int.  All callers changed.
75952         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75953         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75954         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75955         (find_recover_state): Change "err" to "*err"; this fixes what
75956         appears to be a real bug.
75957         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75958         versus int.
75959
75960 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75961
75962         * modules/regex (Depends-on): Add malloc, since the code
75963         assumes that !malloc(0) means failure.
75964
75965 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75966
75967         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75968
75969         alloca modernization/simplification for regex.
75970         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75971         needs to be at the start of the file, and can be moved into
75972         regex_internal.h and simplified.
75973         * lib/regex_internal.h: Include <alloca.h>.
75974         (__libc_use_alloca) [!defined _LIBC]: New macro.
75975         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75976         now works outside glibc.
75977
75978 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75979
75980         * config/srclist.txt: Add glibc bugs 1241, 1245.
75981
75982 2005-08-25  Jim Meyering  <jim@meyering.net>
75983
75984         * lib/open-safer.c: Include <config.h>.
75985         Otherwise, we'd lose LARGEFILE support in any file using
75986         e.g. "fcntl--.h"
75987
75988 2005-08-25  Bruno Haible  <bruno@clisp.org>
75989
75990         * m4/minmax.m4: Require autoconf 2.52.
75991         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75992         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75993         alternatives of translit over the alphabet.
75994         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75995
75996 2005-08-24  Simon Josefsson  <jas@extundo.com>
75997
75998         * tests/test-getpass.c: New file.
75999
76000 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76001
76002         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
76003         for GNU regex features.
76004
76005 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76006
76007         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
76008         * lib/regex.h (regerror): Likewise.
76009
76010         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
76011         requires this.  (The code never needed it.)
76012
76013         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
76014         All uses of recently-renamed identifiers changed to use the new,
76015         POSIX-compliant names.  The code will build and run just fine
76016         without these changes, but it's better to eat our own dog food
76017         and use the standard-conforming names.
76018
76019         * lib/regex.h: Fix a multitude of POSIX name space violations.
76020         These changes have an effect only for programs that define
76021         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
76022         do not change anything for programs compiled in the normal way.
76023         Also, there is no effect on the ABI.
76024
76025         (_REGEX_SOURCE): New macro.
76026         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
76027         defined and _GNU_SOURCE is not; this fixes a name space violation.
76028
76029         Rename the following macros to obey POSIX requirements.
76030         The old names are still visible as macros if _REGEX_SOURCE is defined.
76031         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
76032         RE_BACKSLASH_ESCAPE_IN_LISTS.
76033         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
76034         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
76035         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
76036         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
76037         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
76038         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
76039         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
76040         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
76041         (REG_INTERVALS): renamed from RE_INTERVALS.
76042         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
76043         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
76044         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
76045         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
76046         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
76047         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
76048         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
76049         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
76050         RE_UNMATCHED_RIGHT_PAREN_ORD.
76051         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
76052         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
76053         (REG_DEBUG): renamed from RE_DEBUG.
76054         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
76055         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
76056         unusual, since we can't clash with the POSIX REG_ICASE.
76057         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
76058         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
76059         (REG_NO_SUB): renamed from RE_NO_SUB.
76060         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
76061         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
76062         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
76063         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
76064         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
76065         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
76066         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
76067         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
76068         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
76069         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
76070         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
76071         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
76072         RE_SYNTAX_POSIX_MINIMAL_BASIC.
76073         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
76074         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
76075         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
76076         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
76077         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
76078         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
76079         (REG_FIXED): Renamed from REGS_FIXED.
76080         (REG_NREGS): Renamed from RE_NREGS.
76081
76082         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
76083         of other REG_* macros, since POSIX says the user is allowed to
76084         #undef these macros selectively.
76085
76086         (reg_errcode_t): Update comment stating what other tables need
76087         to be consistent.
76088
76089         Rename the following enum values to obey POSIX requirements.
76090         The old names are still visible as macros.
76091         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
76092         is not defined, since GNU is supposed to be a superset of POSIX as
76093         much as possible, and since we want reg_errcode_t to be a signed
76094         type for implementation consistency.
76095         (_REG_NOERROR): Renamed from REG_NOERROR.
76096         (_REG_NOMATCH): Renamed from REG_NOMATCH.
76097         (_REG_BADPAT): Renamed from REG_BADPAT.
76098         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
76099         (_REG_ECTYPE): Renamed from REG_ECTYPE.
76100         (_REG_EESCAPE): Renamed from REG_EESCAPE.
76101         (_REG_ESUBREG): Renamed from REG_ESUBREG.
76102         (_REG_EBRACK): Renamed from REG_EBRACK.
76103         (_REG_EPAREN): Renamed from REG_EPAREN.
76104         (_REG_EBRACE): Renamed from REG_EBRACE.
76105         (_REG_BADBR): Renamed from REG_BADBR.
76106         (_REG_ERANGE): Renamed from REG_ERANGE.
76107         (_REG_ESPACE): Renamed from REG_ESPACE.
76108         (_REG_BADRPT): Renamed from REG_BADRPT.
76109         (_REG_EEND): Renamed from REG_EEND.
76110         (_REG_ESIZE): Renamed from REG_ESIZE.
76111         (_REG_ERPAREN): Renamed from REG_ERPAREN.
76112         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
76113         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
76114         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
76115         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
76116
76117         (_REG_RE_NAME, _REG_RM_NAME): New macros.
76118         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
76119         changed.  But support the old name if the new one is not defined
76120         and if _REGEX_SOURCE.
76121
76122         Change the following member names in struct re_pattern_buffer.
76123         The old names are still supported if !_REGEX_SOURCE.
76124         The new names are always supported, regardless of _REGEX_SOURCE.
76125         (re_buffer): Renamed from buffer.
76126         (re_allocated): Renamed from allocated.
76127         (re_used): Renamed from used.
76128         (re_syntax): Renamed from syntax.
76129         (re_fastmap): Renamed from fastmap.
76130         (re_translate): Renamed from translate.
76131         (re_can_be_null): Renamed from can_be_null.
76132         (re_regs_allocated): Renamed from regs_allocated.
76133         (re_fastmap_accurate): Renamed from fastmap_accurate.
76134         (re_no_sub): Renamed from no_sub.
76135         (re_not_bol): Renamed from not_bol.
76136         (re_not_eol): Renamed from not_eol.
76137         (re_newline_anchor): Renamed from newline_anchor.
76138
76139         Change the following member names in struct re_registers.
76140         The old names are still supported if !_REGEX_SOURCE.
76141         The new names are always supported, regardless of _REGEX_SOURCE.
76142         (rm_num_regs): Renamed from num_regs.
76143         (rm_start): Renamed from start.
76144         (rm_end): Renamed from end.
76145
76146         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
76147         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
76148         Prepend __ to parameter names.
76149
76150         Undo yesterday's changes.
76151
76152 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76153
76154         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
76155         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
76156         lib/regex.c.
76157
76158 2005-08-24  Jim Meyering  <jim@meyering.net>
76159
76160         Sync from coreutils.
76161         * m4/fcntl-safer.m4: New file.
76162
76163         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
76164         and object files for this module.
76165
76166 2005-08-24  Jim Meyering  <jim@meyering.net>
76167
76168         Sync from coreutils.
76169         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
76170
76171 2005-08-24  Jim Meyering  <jim@meyering.net>
76172
76173         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
76174         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
76175
76176 2005-08-24  Jim Meyering  <jim@meyering.net>
76177
76178         * modules/fcntl-safer: New module.
76179         * modules/fts (Depends-on): Add fcntl-safer.
76180         * MODULES.html.sh (File descriptor based Input/Output):
76181         Add fcntl-safer.
76182
76183 2005-08-24  Bruno Haible  <bruno@clisp.org>
76184
76185         Support for unit test modules.
76186         * modules/README: Mention tests modules.
76187         * modules/TEMPLATE-TESTS: New file.
76188         * gnulib-tool: New options --extract-tests-module, --with-tests and
76189         --tests-base (unused for the moment).
76190         (testsbase, inctests): New variables.
76191         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
76192         (func_verify_module): Exclude TEMPLATE-TESTS.
76193         (func_verify_nontests_module, func_verify_tests_module): New functions.
76194         (func_get_dependencies): Add implicit dependency for tests modules.
76195         (func_get_tests_module): New function.
76196         (func_modules_transitive_closure): When --with-tests was specified,
76197         include the unit tests as well, unless explicitly avoided.
76198         (func_emit_lib_Makefile_am): Ignore the tests modules here.
76199         (func_emit_tests_Makefile_am): New function.
76200         (func_create_testdir): When --with-tests was specified, emit a
76201         tests/ directory.
76202         * MODULES.html.sh (Future developments): Update.
76203
76204 2005-08-24  Bruno Haible  <bruno@clisp.org>
76205
76206         * modules/tls-tests: New file.
76207         * tests/test-tls.c: New file, from GNU gettext.
76208
76209 2005-08-24  Bruno Haible  <bruno@clisp.org>
76210
76211         * modules/lock-tests: New file.
76212         * tests/test-lock.c: New file, from GNU gettext.
76213
76214 2005-08-24  Bruno Haible  <bruno@clisp.org>
76215
76216         * lib/lock.h: Add multiple inclusion guard.
76217         * lib/tls.h: Add multiple inclusion guard.
76218
76219 2005-08-24  Bruno Haible  <bruno@clisp.org>
76220
76221         * gnulib-tool: Add support for the --aux-dir option to
76222         --create-testdir, --create-megatestdir, --test, --megatest.
76223         (func_create_testdir, func_create_megatestdir): Optionally emit a
76224         AC_CONFIG_AUX_DIR directive.
76225         (create-testdir, create-megatestdir, test, megatest): Provide a
76226         default value for $auxdir.
76227
76228 2005-08-24  Bruno Haible  <bruno@clisp.org>
76229
76230         * gnulib-tool (import): Use compound statement instead of subshell
76231         where possible.
76232
76233 2005-08-24  Bruno Haible  <bruno@clisp.org>
76234
76235         * gnulib-tool (import): Change --aux-dir default to "build-aux".
76236
76237 2005-08-24  Bruno Haible  <bruno@clisp.org>
76238
76239         * gnulib-tool (func_version): Update.
76240
76241 2005-08-24  Bruno Haible  <bruno@clisp.org>
76242
76243         * gnulib-tool (func_import, func_create_testdir,
76244         func_create_megatestdir): Quote all autoconf macro arguments.
76245
76246 2005-08-24  Bruno Haible  <bruno@clisp.org>
76247
76248         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
76249         option --force, because --force causes the aclocal.m4 of each
76250         subdirectory to be newer than the corresponding config.h.in.
76251
76252 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76253
76254         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
76255         All contents moved to gl_REGEX.
76256         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
76257         assume that it does.
76258
76259 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76260
76261         * lib/regex.h (REG_NOSYS)
76262         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
76263         Define, since POSIX requires it as of 2001.
76264         (_REG_ENOSYS)
76265         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
76266         New private symbol, used to keep the enum signed in all cases.
76267         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
76268         Youngman in
76269         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
76270
76271         * lib/regex_internal.c (re_string_skip_chars, register_state):
76272         (calc_state_hash):
76273         Remove forward decls; no longer needed now that we use prototypes.
76274         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
76275         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
76276         (clean_state_log_if_needed): Likewise.
76277
76278 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76279
76280         * config/srclist.txt: Add glibc bugs 1231-1233.
76281
76282 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76283
76284         Fix problems reported by Sam Steingold in
76285         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
76286         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
76287         assumed that reg_errcode_t is a signed type, which is not
76288         necessarily true if _XOPEN_SOURCE is not defined.
76289         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
76290         since some compilers warn about it otherwise.
76291
76292 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76293
76294         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
76295         (init_word_char, create_initial_state, duplicate_node_closure):
76296         (fetch_token, peek_token_bracket, build_range_exp):
76297         (build_collating_symbol): Remove forward decls; no longer needed
76298         now that we use prototypes.
76299
76300         * lib/regcomp.c:
76301         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
76302         (re_compile_fastmap_iter, regcomp, regerror, regfree):
76303         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
76304         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
76305         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
76306         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
76307         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
76308         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
76309         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
76310         (build_range_exp, build_collating_symbol, parse_bracket_exp):
76311         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
76312         (build_charclass, build_charclass_op, fetch_number, create_tree):
76313         (create_token_tree, mark_opt_subexp, duplicate_tree):
76314         Use prototypes rather than old-style definitions.
76315
76316         * lib/regex_internal.c:
76317         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
76318         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
76319         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76320         (re_string_reconstruct, re_string_peek_byte_case):
76321         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
76322         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76323         (re_node_set_init_copy, re_node_set_add_intersect):
76324         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76325         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76326         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76327         (re_acquire_state, re_acquire_state_context, register_state):
76328         (create_ci_newstate, create_cd_newstate, free_state):
76329         Likewise.
76330         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
76331         re_search_2):
76332         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
76333         (re_search_internal, prune_impossible_nodes):
76334         (acquire_init_state_context, check_matching, static):
76335         (check_halt_node_context, check_halt_state_context, proceed_next_node):
76336         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
76337         (update_regs, sift_states_backward, build_sifted_states):
76338         (clean_state_log_if_needed, merge_state_array):
76339         (update_cur_sifted_state, add_epsilon_src_nodes):
76340         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
76341         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
76342         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
76343         (find_recover_state, check_subexp_matching_top, transit_state_mb):
76344         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
76345         (check_arrival, check_arrival_add_next_nodes):
76346         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76347         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76348         (check_node_accept_bytes, check_node_accept, extend_buffers):
76349         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
76350         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
76351         (sift_ctx_init):
76352         Likewise.
76353
76354         * lib/regex_internal.h:
76355         (re_string_allocate, re_string_construct, re_string_reconstruct):
76356         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
76357         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76358         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76359         (re_string_context_at, re_string_peek_byte_case):
76360         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76361         is defined, since we now use prototypes always.
76362
76363         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76364         C89 or better.  All uses removed.
76365
76366 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76367
76368         * config/srclist.txt: Add glibc bugs 1220-1227.
76369
76370 2005-08-20  Jim Meyering  <jim@meyering.net>
76371
76372         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76373         of unused local, dfa.
76374
76375 2005-08-20  Bruno Haible  <bruno@clisp.org>
76376
76377         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76378
76379 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76380
76381         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76382         (re_node_set_insert_last, re_dfa_add_node):
76383         Rename local variables to avoid GCC shadowing warnings.
76384
76385 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76386
76387         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76388         [defined lint]: Suppress bogus uninitialized-variable warnings.
76389
76390         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76391         and let the caller return REG_ESPACE if out of space.  This
76392         removes an uninitialied-variable warning with GCC 4.0.1, and also
76393         avoids taking the address of a local variable.  All callers
76394         changed.
76395
76396 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76397
76398         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
76399         $LIBCSRC/posix/regexec.c.
76400         Add glibc bug 1217 for regcomp.c.
76401
76402 2005-08-19  Jim Meyering  <jim@meyering.net>
76403
76404         * lib/regexec.c (proceed_next_node): Redo local variables to
76405         avoid GCC shadowing warnings.
76406
76407 2005-08-18  Bruno Haible  <bruno@clisp.org>
76408
76409         * lib/strstr.c (strstr): Fix return value in multibyte case.
76410         * lib/strcasestr.c (strcasestr): Likewise.
76411
76412 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76413
76414         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
76415
76416 2005-08-17  Jim Meyering  <jim@meyering.net>
76417
76418         Make the %s format (seconds since the epoch) work for a negative
76419         number and when used with a zero-padded field width, e.g. %015s.
76420
76421         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
76422         label so that it precedes the code to set `digits'.  Otherwise,
76423         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
76424         print `00-22'.  Now, it prints `-0022', as it should.
76425
76426 2005-08-17  Bruno Haible  <bruno@clisp.org>
76427
76428         * modules/strstr (Files): Add m4/mbrtowc.m4.
76429         (Depends-on): Add mbuiter.
76430
76431 2005-08-17  Bruno Haible  <bruno@clisp.org>
76432
76433         * modules/strcasestr: New file.
76434         * MODULES.html.sh (String handling, based on ANSI C 89): Add
76435         strcasestr.
76436
76437 2005-08-17  Bruno Haible  <bruno@clisp.org>
76438
76439         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
76440
76441 2005-08-17  Bruno Haible  <bruno@clisp.org>
76442
76443         * modules/mbuiter: New file.
76444         * MODULES.html.sh (Extended multibyte and wide character utilities):
76445         Add mbuiter.
76446
76447 2005-08-17  Bruno Haible  <bruno@clisp.org>
76448
76449         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
76450         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
76451
76452 2005-08-17  Bruno Haible  <bruno@clisp.org>
76453
76454         * m4/strcasestr.m4: New file.
76455
76456 2005-08-17  Bruno Haible  <bruno@clisp.org>
76457
76458         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
76459         * lib/strstr.c: Completely rewritten, with multibyte locale support.
76460
76461 2005-08-17  Bruno Haible  <bruno@clisp.org>
76462
76463         * lib/strcasestr.h: New file.
76464         * lib/strcasestr.c: New file.
76465
76466 2005-08-17  Bruno Haible  <bruno@clisp.org>
76467
76468         * lib/strcasecmp.c: Use mbuiter.h.
76469
76470 2005-08-17  Bruno Haible  <bruno@clisp.org>
76471
76472         * lib/mbuiter.h: New file.
76473
76474 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76475
76476         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76477         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76478         and gl_GETOPT are both invoked via different paths (as happens
76479         with GNU tar CVS because it uses both argp and getopt), the former
76480         wins.
76481
76482 2005-08-16  Bruno Haible  <bruno@clisp.org>
76483
76484         * modules/tls: New file.
76485         * MODULES.html.sh (Multithreading): Add tls.
76486
76487 2005-08-16  Bruno Haible  <bruno@clisp.org>
76488
76489         * modules/strnlen1: New file.
76490         * MODULES.html.sh (String handling): Add strnlen1.
76491
76492 2005-08-16  Bruno Haible  <bruno@clisp.org>
76493
76494         * modules/strcase (Files): Add m4/mbrtowc.m4.
76495         (Depends-on): Add strnlen1, mbchar.
76496
76497 2005-08-16  Bruno Haible  <bruno@clisp.org>
76498
76499         * modules/mbiter: New file.
76500         * MODULES.html.sh (Extended multibyte and wide character utilities):
76501         Add mbiter.
76502
76503 2005-08-16  Bruno Haible  <bruno@clisp.org>
76504
76505         * modules/mbfile: New file.
76506         * MODULES.html.sh (Extended multibyte and wide character utilities):
76507         Add mbfile.
76508
76509 2005-08-16  Bruno Haible  <bruno@clisp.org>
76510
76511         * modules/mbchar: New file.
76512         * MODULES.html.sh (Extended multibyte and wide character utilities):
76513         New section.
76514
76515 2005-08-16  Bruno Haible  <bruno@clisp.org>
76516
76517         * m4/tls.m4: New file, from GNU gettext.
76518
76519 2005-08-16  Bruno Haible  <bruno@clisp.org>
76520
76521         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76522         always.
76523         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76524
76525 2005-08-16  Bruno Haible  <bruno@clisp.org>
76526
76527         * m4/mbiter.m4: New file.
76528
76529 2005-08-16  Bruno Haible  <bruno@clisp.org>
76530
76531         * m4/mbfile.m4: New file.
76532
76533 2005-08-16  Bruno Haible  <bruno@clisp.org>
76534
76535         * m4/mbchar.m4: New file.
76536
76537 2005-08-16  Bruno Haible  <bruno@clisp.org>
76538
76539         * lib/tls.h: New file, from GNU gettext.
76540         * lib/tls.c: New file, from GNU gettext.
76541
76542 2005-08-16  Bruno Haible  <bruno@clisp.org>
76543
76544         * lib/strnlen1.h: New file.
76545         * lib/strnlen1.c: New file.
76546
76547 2005-08-16  Bruno Haible  <bruno@clisp.org>
76548
76549         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76550         (mbi_init): Update.
76551         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76552         NUL byte, not after it.
76553
76554 2005-08-16  Bruno Haible  <bruno@clisp.org>
76555
76556         * lib/strcase.h (strcasecmp): Add note in comments.
76557         * lib/strncasecmp.c: Use code from strcasecmp.c.
76558         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76559         (strcasecmp): Work correctly in multibyte locales.
76560
76561 2005-08-16  Bruno Haible  <bruno@clisp.org>
76562
76563         * lib/mbiter.h: New file.
76564
76565 2005-08-16  Bruno Haible  <bruno@clisp.org>
76566
76567         * lib/mbfile.h: New file.
76568
76569 2005-08-16  Bruno Haible  <bruno@clisp.org>
76570
76571         * lib/mbchar.h: New file.
76572         * lib/mbchar.c: New file.
76573
76574 2005-08-16  Bruno Haible  <bruno@clisp.org>
76575
76576         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76577         the valid ones. Makes the comparison operations transitive:
76578         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76579         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76580
76581 2005-08-15  Simon Josefsson  <jas@extundo.com>
76582
76583         * modules/ssize_t (License): Change to 'unlimited'.
76584
76585         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76586
76587 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76588
76589         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76590         Add comments for each pending glibc patch.
76591
76592 2005-08-15  Bruno Haible  <bruno@clisp.org>
76593
76594         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76595         __cplusplus is defined.
76596
76597 2005-08-14  Jim Meyering  <jim@meyering.net>
76598
76599         Sync from coreutils.
76600
76601         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76602         Use the hash-table-based cycle-detection code not just when
76603         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76604         Reported by James Youngman in
76605         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76606         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76607         FTS_TIGHT_CYCLE_CHECK.
76608         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76609         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76610         once again.
76611         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76612         * lib/fts.c (fd_safer): Remove decl.
76613         Include fcntl--.h rather than unistd-safer.h
76614         (fts_safe_changedir): Don't call fd_safer; no longer needed
76615         now that we include fcntl--.h.
76616
76617 2005-08-12  Simon Josefsson  <jas@extundo.com>
76618
76619         * modules/getndelim2: Use ssize_t module.
76620         * modules/getnline: Likewise.
76621         * modules/safe-read: Likewise.
76622         * modules/xreadlink: Likewise.
76623
76624         * modules/ssize_t: New file.
76625
76626 2005-08-12  Simon Josefsson  <jas@extundo.com>
76627
76628         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76629
76630 2005-08-12  Simon Josefsson  <jas@extundo.com>
76631
76632         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76633         ssize_t.
76634
76635 2005-08-12  Simon Josefsson  <jas@extundo.com>
76636
76637         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76638         readline, getdelim and check_version.
76639         (Support for systems lacking ISO C 99: Sizes of integer types):
76640         Add size_max.
76641
76642 2005-08-12  Bruno Haible  <bruno@clisp.org>
76643
76644         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76645
76646 2005-08-11  Simon Josefsson  <jas@extundo.com>
76647
76648         * modules/readline: New file.
76649
76650         * modules/strnlen (Files): Add strnlen.h.
76651
76652 2005-08-11  Simon Josefsson  <jas@extundo.com>
76653
76654         * m4/readline.m4: New file.
76655
76656 2005-08-11  Simon Josefsson  <jas@extundo.com>
76657
76658         * lib/readline.h, readline.c: New file.
76659
76660 2005-08-11  Simon Josefsson  <jas@extundo.com>
76661
76662         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76663         gl_AVOID.
76664
76665 2005-08-11  Bruno Haible  <bruno@clisp.org>
76666
76667         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76668
76669 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76670
76671         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76672
76673 2005-08-10  Simon Josefsson  <jas@extundo.com>
76674
76675         * tests/test-iconvme.c: New file.
76676
76677 2005-08-10  Simon Josefsson  <jas@extundo.com>
76678
76679         * m4/strnlen.m4: New file.
76680
76681         * m4/strndup.m4: Don't check for strnlen declaration, done in
76682         strnlen.m4.
76683
76684 2005-08-10  Simon Josefsson  <jas@extundo.com>
76685
76686         * lib/strndup.c: Use strnlen.h.
76687
76688         * lib/strnlen.h: New file.
76689
76690 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76691
76692         * README: Typos.
76693
76694 2005-08-02  Simon Josefsson  <jas@extundo.com>
76695
76696         * modules/readline: New file.
76697
76698 2005-08-02  Simon Josefsson  <jas@extundo.com>
76699
76700         * modules/getdelim: New file.
76701
76702         * modules/getline: Rewrite, don't use getndelim2.
76703
76704 2005-08-02  Simon Josefsson  <jas@extundo.com>
76705
76706         * m4/getline.m4: Separate out getdelim stuff into separate module.
76707
76708         * m4/getdelim.m4: New file.
76709
76710 2005-08-02  Simon Josefsson  <jas@extundo.com>
76711
76712         * lib/getline.h, getline.c: Rewrite.
76713
76714         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76715
76716 2005-07-31  Bruno Haible  <bruno@clisp.org>
76717
76718         * lib/lock.h (gl_lock_initializer): New macro.
76719         (gl_lock_define_initialized): Use it.
76720         (gl_rwlock_initializer): New macro.
76721         (gl_rwlock_define_initialized): Use it.
76722         (gl_recursive_lock_initializer): New macro.
76723         (gl_recursive_lock_define_initialized): Use it.
76724
76725 2005-07-30  Karl Berry  <karl@gnu.org>
76726
76727         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76728         Report from Ben Pfaff, regarding getopt.
76729
76730 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76731
76732         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76733         normal way.
76734         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76735         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76736         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76737         (gl_GETOPT): Use the new macros.  Most of the implementation
76738         is moved to the new macros.  This is for programs like Emacs
76739         that don't want all the functionality of gl_GETOPT.
76740
76741 2005-07-26  Bruno Haible  <bruno@clisp.org>
76742
76743         * m4/lock.m4: Update from GNU gettext.
76744
76745 2005-07-26  Bruno Haible  <bruno@clisp.org>
76746
76747         * lib/lock.h: Update from GNU gettext.
76748         * lib/lock.c: Update from GNU gettext.
76749
76750 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76751
76752         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76753         obsolescent AC_TRY_RUN.  Include the default includes files, for
76754         'exit'.
76755
76756 2005-07-24  Bruno Haible  <bruno@clisp.org>
76757
76758         * modules/visibility: New file.
76759         * MODULES.html.sh (Misc): Add visibility.
76760
76761 2005-07-24  Bruno Haible  <bruno@clisp.org>
76762
76763         * m4/visibility.m4: New file.
76764
76765 2005-07-24  Bruno Haible  <bruno@clisp.org>
76766
76767         * doc/visibility.texi: New file.
76768
76769 2005-07-22  Bruno Haible  <bruno@clisp.org>
76770
76771         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76772         $(ALLOCA_H), redundant through BUILT_SOURCES.
76773         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76774         redundant through BUILT_SOURCES.
76775         * modules/byteswap (Makefile.am): Remove explicit dependency on
76776         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76777         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76778         $(FNMATCH_H), redundant through BUILT_SOURCES.
76779         * modules/getopt (Makefile.am): Remove explicit dependency on
76780         $(GETOPT_H), redundant through BUILT_SOURCES.
76781         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76782         redundant through BUILT_SOURCES.
76783         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76784         redundant through BUILT_SOURCES.
76785         * modules/stdbool (Makefile.am): Remove explicit dependency on
76786         $(STDBOOL_H), redundant through BUILT_SOURCES.
76787         * modules/stdint (Makefile.am): Remove explicit dependency on
76788         $(STDINT_H), redundant through BUILT_SOURCES.
76789         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76790         Remove explicit dependency on $(SYSEXITS_H).
76791         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76792
76793 2005-07-18  Simon Josefsson  <jas@extundo.com>
76794
76795         * lib/check-version.c (check_version): Accept identical versions too.
76796
76797 2005-07-18  Bruno Haible  <bruno@clisp.org>
76798
76799         * modules/lock: New file.
76800         * MODULES.html.sh (Multithreading): New section.
76801
76802 2005-07-18  Bruno Haible  <bruno@clisp.org>
76803
76804         * m4/lock.m4: New file, from GNU gettext.
76805
76806 2005-07-18  Bruno Haible  <bruno@clisp.org>
76807
76808         * lib/lock.h: New file, from GNU gettext.
76809         * lib/lock.c: New file, from GNU gettext.
76810
76811 2005-07-18  Bruno Haible  <bruno@clisp.org>
76812
76813         * lib/lock.h (gl_once_t): New type.
76814         (gl_once_define, gl_once): New macros.
76815         * lib/lock.c (fresh_once): New variable.
76816         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76817         functions.
76818
76819 2005-07-16  Simon Josefsson  <jas@extundo.com>
76820
76821         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76822         workaround, suggested by Bruno.
76823
76824 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76825
76826         * modules/xalloc (Depends-on): Add xalloc-die.
76827         * modules/xvasprintf (Depends-on): Add xalloc-die.
76828
76829 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76830
76831         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76832         with a minor change.
76833
76834 2005-07-15  Bruno Haible  <bruno@clisp.org>
76835
76836         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76837         When using lib/poll.c, define poll as rpl_poll.
76838
76839 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76840
76841         * modules/argp (Depends-on): Remove unlocked-io.
76842
76843 2005-07-14  Derek Price  <derek@ximbiot.com>
76844
76845         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76846         for glob symlink bug.
76847
76848 2005-07-14  Bruno Haible  <bruno@clisp.org>
76849
76850         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76851         Instead, test for *_unlocked function declarations directly.
76852
76853 2005-07-11  Simon Josefsson  <jas@extundo.com>
76854
76855         * modules/size_max: New file.
76856
76857         * modules/xsize: Depend on size_max module for size_max.m4.
76858
76859 2005-07-11  Simon Josefsson  <jas@extundo.com>
76860
76861         * lib/size_max.h: New file.
76862
76863 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76864
76865         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76866         copyright symbol and the year.
76867         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76868         (version_etc_va): Use parameterized copyright notice.
76869         Reword to conform to the current GNU coding standards.
76870
76871 2005-07-11  Karl Berry  <karl@gnu.org>
76872
76873         * doc/gnulib.texi (Quoting): new node.
76874         (Initial import): more info, from Patrice.
76875
76876 2005-07-11  Bruno Haible  <bruno@clisp.org>
76877
76878         * gnulib-tool (func_usage): Document option --avoid.
76879         (Command line options): Handle --avoid.
76880         (func_acceptable): New function.
76881         (func_modules_transitive_closure): Use it.
76882
76883 2005-07-11  Bruno Haible  <bruno@clisp.org>
76884
76885         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76886         Reported by Jim Meyering.
76887
76888 2005-07-10  Bruno Haible  <bruno@clisp.org>
76889
76890         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76891         Needed when size_t is smaller than 'unsigned int'.
76892         Reported by Paul Eggert.
76893
76894 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76895
76896         * modules/argp (Depends-on): Add unlocked-io
76897
76898 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76899
76900         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76901         block of defines.
76902
76903 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76904
76905         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76906         fix now.
76907
76908 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76909         and Paul Eggert  <eggert@cs.ucla.edu>
76910
76911         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76912         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76913
76914 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76915
76916         * modules/regex (Files): Add lib/regex_internal.c,
76917         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76918         (Depends-on): Add extensions.
76919         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76920
76921 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76922
76923         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76924         pathconf.
76925         * m4/same.m4 (gl_SAME): Likewise.
76926         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76927
76928         * m4/regex.m4: Adjust to new libc regex implementation.
76929         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76930         all the .c and .h parts of (the new) regex.
76931         Quote the m4 stuff better.
76932         Check for RE_ICASE bug of old gnulib.
76933         Check for REG_STARTEND of recent libc.
76934         Rename local variables from jm_* to gl_*.
76935         Quote operand of "test -f".
76936         Say "recent enough" version of libc, not "version 2".
76937         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76938         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76939         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76940         Remove check for btowc, isascii.
76941         Require AM_LANGINFO_CODESET.
76942
76943 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76944
76945         * lib/regex.c, regex.h: Sync from libc.
76946         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76947         * lib/regexec.c:
76948         New files, synced from libc, except that regex_internal.h
76949         currently has a small porting fix.
76950
76951 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76952
76953         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76954         regex_internal.c, regexec.c.
76955         Add regex_internal.h too, but as a comment, since the libc version
76956         is currently broken in gnulib mode.
76957
76958 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76959
76960         Support programs like Emacs that use gnulib but not gettext.
76961         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76962         * modules/gettext-h: New file.
76963         * modules/gettext (Files): Remove lib/gettext.h.
76964         (Depends-on): Add gettext-h.
76965         (Makefile.am): Remove lib_SOURCES.
76966         * modules/argmatch, modules/c-stack, modules/closeout:
76967         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76968         * modules/execute, modules/file-type, modules/getaddrinfo:
76969         * modules/getopt, modules/human, modules/javacomp:
76970         * modules/javaexec, modules/mkdir-p, modules/obstack:
76971         * modules/openat, modules/pagealign_alloc, modules/pipe:
76972         * modules/quotearg, modules/regex, modules/rpmatch:
76973         * modules/unicodeio, modules/userspec, modules/version-etc:
76974         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76975         * modules/xsetenv:
76976         Depend on gettext-h, not gettext.
76977
76978 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76979
76980         * gnulib-tool (func_import): Add support for 'public domain' license.
76981         * modules/alloca, modules/atexit, modules/memmove:
76982         Now public domain, not GPL.
76983         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76984         * modules/realloc, modules/strerror, modules/strtod:
76985         Now LGPL, not GPL.
76986
76987 2005-07-05  Bruno Haible  <bruno@clisp.org>
76988
76989         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76990         autoconf CVS. Needed for mingw.
76991
76992 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76993
76994         Remove the dependency of the strftime module on the tzset module.
76995         * modules/strftime (Depends-on): Remove dependency on tzset.
76996
76997 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76998
76999         Remove the dependency of the strftime module on the tzset module.
77000         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
77001         gl_FUNC_TZSET_CLOBBER.
77002
77003 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77004
77005         Remove the dependency of the strftime module on the tzset module.
77006         * lib/strftime.c (my_strftime)
77007         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
77008         Copy the input structure, to work around some of the bug with
77009         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
77010         Solaris releases, you should also use the tzset module, but we won't
77011         require it as a dependency any more since we don't want LGPLed code
77012         to depend on GPLed code.
77013
77014 2005-07-02  Jim Meyering  <jim@meyering.net>
77015
77016         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
77017         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
77018         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
77019         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
77020
77021 2005-07-02  Jim Meyering  <jim@meyering.net>
77022
77023         * lib/backupfile.c (backup_args): Change a `0' to NULL.
77024
77025 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77026
77027         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
77028         declares only 'struct timespec;' (!).
77029
77030 2005-07-01  Jim Meyering  <jim@meyering.net>
77031
77032         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
77033         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
77034         * lib/save-cwd.c, tempname.c:
77035         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77036         and don't include <sys/file.h>).
77037
77038 2005-06-29  Jim Meyering  <jim@meyering.net>
77039
77040         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
77041         type name.  Use the variable name instead.
77042         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
77043         Likewise.
77044
77045 2005-06-28  Simon Josefsson  <jas@extundo.com>
77046
77047         * modules/check-version (Files): Add check-version.m4.
77048
77049 2005-06-28  Simon Josefsson  <jas@extundo.com>
77050
77051         * m4/check-version.m4: New file, suggested by Jim Meyering
77052         <jim@meyering.net>.
77053
77054 2005-06-28  Simon Josefsson  <jas@extundo.com>
77055
77056         * lib/check-version.h, lib/check-version.c: New files.
77057
77058 2005-06-28  Simon Josefsson  <jas@extundo.com>
77059
77060         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
77061         collision with global variable.  Better indentation.  Don't
77062         increment buffer pointer beyond buffer end.  Based on comments
77063         from Paul Eggert <eggert@cs.ucla.edu>.
77064
77065         * lib/base64.h: Indent.
77066
77067 2005-06-28  Simon Josefsson  <jas@extundo.com>
77068
77069         * doc/gnulib.texi (Library version handling): New section.
77070
77071 2005-06-28  Jim Meyering  <jim@meyering.net>
77072
77073         * check-module (find_included_lib_files): Hard-code another
77074         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
77075         but modules/fts-lgpl (correctly) does not list those files.
77076
77077         * modules/canonicalize (Files): Add lib/pathmax.h.
77078
77079 2005-06-25  Simon Josefsson  <jas@extundo.com>
77080
77081         * modules/check-version: New file.
77082
77083 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
77084
77085         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
77086         initializer of struct addrinfo, as an indication that we don't
77087         care how many members the structure has.
77088
77089 2005-06-24  Derek Price  <derek@ximbiot.com>
77090         and Bruno Haible  <bruno@clisp.org>
77091
77092         Remove stat module & update lstat.
77093         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
77094         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77095         * m4/stat.m4: Remove this file.
77096
77097 2005-06-24  Derek Price  <derek@ximbiot.com>
77098         and Bruno Haible  <bruno@clisp.org>
77099
77100         Remove stat module & update lstat.
77101         * lib/stat.c: Remove this file...
77102         (slash_aware_lstat): ...moving this content and its support...
77103         * lib/lstat.c (rpl_lstat): ...into here.
77104         * lib/lstat.h: New file.
77105
77106 2005-06-24  Derek Price  <derek@ximbiot.com>
77107         and Bruno Haible  <bruno@clisp.org>
77108
77109         Remove stat module & update lstat.
77110         * config/srclist.txt (libc sources): Remove stat.
77111
77112 2005-06-24  Derek Price  <derek@ximbiot.com>
77113         and Bruno Haible  <bruno@clisp.org>
77114
77115         Remove stat module & update lstat.
77116         * MODULES.html.sh (stat): Remove.
77117         * MODULES.html: Regenerated.
77118         * modules/lstat (Description): Correct function name.
77119         (Files): Add "lstat.h".
77120         (Depends-on): Remove stat, add xalloc, stat-macros.
77121         * modules/stat: Remove this file.
77122         (Include): Add "lstat.h", remove <sys/stat.h>.
77123
77124 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
77125
77126         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
77127         (ranged_convert): Don't save conversion in a temporary struct.
77128         This causes a warning with GCC 4.0.0, and anyway in the typical
77129         case it's not worth the extra 100 bytes or so of code.
77130         (ranged_convert, __mktime_internal): When calling a function via a
77131         pointer P, use P () rather than (*P) (), as we now assume C89 or
77132         better.
77133
77134 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77135
77136         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
77137         "who -r" failed to give output.  Problem reported by Tim Waugh.
77138
77139         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
77140         (xcalloc): Use it to avoid needless tests.
77141         Problem reported by Jim Meyering.
77142
77143 2005-06-20  Derek Price  <derek@ximbiot.com>
77144
77145         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
77146         unnecessary for Autoconfs > 2.59c.
77147
77148 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77149
77150         * lib/argp.h (__option_is_short): Check upper limit of
77151         __key. Isprint() requires its argument to have the value
77152         of an unsigned char or EOF.
77153
77154 2005-06-16  Jim Meyering  <jim@meyering.net>
77155
77156         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
77157         when either N or S is zero.
77158
77159 2005-06-16  Derek Price  <derek@ximbiot.com>
77160
77161         * m4/bison.m4: Declare YACC & YFLAGS precious.
77162
77163 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
77164
77165         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
77166         multibyte string or pattern, fall back on unibyte matching.
77167         Problem reported by James Youngman.
77168
77169 2005-06-08  Bruno Haible  <bruno@clisp.org>
77170
77171         * modules/csharpcomp: New file.
77172         * MODULES.html.sh (C#): Add csharpcomp.
77173
77174 2005-06-08  Bruno Haible  <bruno@clisp.org>
77175
77176         * m4/csharpcomp.m4: New file, from GNU gettext.
77177
77178 2005-06-08  Bruno Haible  <bruno@clisp.org>
77179
77180         * lib/csharpcomp.h: New file, from GNU gettext.
77181         * lib/csharpcomp.c: New file, from GNU gettext.
77182         * lib/csharpcomp.sh.in: New file, from GNU gettext.
77183
77184 2005-06-08  Bruno Haible  <bruno@clisp.org>
77185
77186         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
77187         warning on mingw.
77188
77189 2005-06-07  Derek Price  <derek@ximbiot.com>
77190
77191         Sync from CVS.
77192         * lib/glob_.h: Indent nested #ifdef.
77193
77194 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77195
77196         Sync from coreutils.
77197         Use "file name" when talking about file names, instead of "filename"
77198         or "path", as per the GNU coding standards.
77199         * lib/mkdir-p.c: Renamed from makepath.c.
77200         (make_dir_parents): Renamed from make_path.  All callers changed.
77201         * lib/mkdir-p.h: Likewise.  All includers changed.
77202         * lib/filenamecat.c: Renamed from path-concat.c.
77203         (file_name_concat): Renamed from path_concat.  All callers changed.
77204         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
77205         * lib/filenamecat.h: Likewise.  All includers changed.
77206         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
77207         in comments or local variable names.
77208         * lib/basename.c: Likewise.
77209         * lib/canonicalize.c, canonicalize.h: Likewise.
77210         * lib/dirname.c, dirname.h: Likewise.
77211         * lib/euidaccess.c: Likewise.
77212         * lib/exclude.c: Likewise
77213         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
77214         * lib/fsusage.c, fsuage.h: Likewise.
77215         * lib/fts.c, fts_.h: Likewise.
77216         * lib/getcwd.c: Likewise.
77217         * lib/getloadavg.c: Likewise.
77218         * lib/mkstemp.c: Likewise.
77219         * lib/mountlist.c, mountlist.h: Likewise.
77220         * lib/openat.c, openat.h: Likewise.
77221         * lib/readlink-stub.c: Likewise.
77222         * lib/readutmp.c, readutmp.h: Likewise.
77223         * lib/rename.c: Likewise.
77224         * lib/rmdir.c: Likewise.
77225         * lib/same.c: Likewise.
77226         * lib/savedir.c: Likewise.
77227         * lib/stripslash.c: Likewise.
77228         * lib/tempname.c: Likewise.
77229         * lib/xreadlink.c: Likewise.
77230         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
77231         All uses changed.
77232         * lib/exclude.h: Likewise.
77233
77234         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
77235         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77236         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
77237         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77238         * lib/pathmax.h: Include <limits.h> unconditionally, since other
77239         files have been getting away with it for years (MORE/BSD 4.3
77240         is extinct now).
77241         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
77242         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77243
77244         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
77245         Define to 256, not 255, as per modern POSIX.
77246
77247 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77248
77249         Sync from coreutils.
77250         Use "file name" when talking about file names, instead of "filename"
77251         or "path", as per the GNU coding standards.
77252         * MODULES.html.sh: mkdir-p renamed from makepath.
77253         filenamecat renamed from path-concat.
77254         * modules/filenamecat: Renamed from modules/path-concat.
77255         (Files): filenamecat.h and filenamecat.c renamed from
77256         path-concat.h and path-concat.c.
77257         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
77258         (Include): filenamecat.h, not path-concat.h.
77259         * modules/mkdir-p: Renamed from modules/makepath.
77260         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
77261         makepath.c.
77262         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
77263         (Include): mkdir-p.h, not makepath.h.
77264
77265 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77266
77267         Sync from coreutils.
77268         * m4/mkdir-p.m4: Renamed from makepath.m4.
77269         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
77270         Rename files from makepath.c to mkdir-p.c, and from
77271         makepath.h to mkdir-p.h.
77272         * m4/filenamecat.m4: Renamed from path-concat.m4.
77273         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
77274         Rename files from path-concat.c to filenamecat.c,
77275         and from path-concat.h to filenamecat.h.
77276         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
77277         "file name" in local variables or comments.
77278         * m4/rename.m4: Likewise.
77279
77280 2005-06-01  Bruno Haible  <bruno@clisp.org>
77281
77282         * modules/csharpexec: New file.
77283         * MODULES.html.sh (C#): New section.
77284
77285 2005-06-01  Bruno Haible  <bruno@clisp.org>
77286
77287         * m4/csharp.m4: New file, from GNU gettext.
77288         * m4/csharpexec.m4: New file, from GNU gettext.
77289
77290 2005-06-01  Bruno Haible  <bruno@clisp.org>
77291
77292         * lib/csharpexec.h: New file, from GNU gettext.
77293         * lib/csharpexec.c: New file, from GNU gettext.
77294         * lib/csharpexec.sh.in: New file, from GNU gettext.
77295
77296 2005-05-31  Derek Price  <derek@ximbiot.com>
77297             Paul Eggert  <eggert@cs.ucla.edu>
77298
77299         Sync from cvs.
77300         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77301
77302 2005-05-31  Derek Price  <derek@ximbiot.com>
77303             Paul Eggert  <eggert@cs.ucla.edu>
77304
77305         Sync from cvs.
77306         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77307
77308 2005-05-29  Derek Price  <derek@ximbiot.com>
77309
77310         * config/srclist.txt (glob_.h, glob.c): Add these files.
77311
77312 2005-05-29  Derek Price  <derek@ximbiot.com>
77313
77314         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
77315         * modules/glob: New file.
77316         * modules/getlogin_r: Add link to POSIX spec in description.
77317
77318 2005-05-29  Derek Price  <derek@ximbiot.com>
77319             Paul Eggert  <eggert@cs.ucla.edu>
77320
77321         * m4/glob.m4: New file.
77322
77323 2005-05-29  Derek Price  <derek@ximbiot.com>
77324             Paul Eggert  <eggert@cs.ucla.edu>
77325
77326         * lib/glob_.h, lib/glob.c: New files.
77327
77328 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77329
77330         * modules/fts (Files): Remove m4/inttypes-pri.m4.
77331         * modules/fts-lgpl (Depends-on): Remove gettext.
77332
77333 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77334
77335         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
77336         and don't require gt_INTTYPES_PRI.
77337
77338 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77339
77340         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
77341
77342         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
77343         the configuration hassle isn't worth it.
77344         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
77345         (LONGEST_MODIFIER, PRIuMAX): Remove.
77346
77347 2005-05-27  Bruno Haible  <bruno@clisp.org>
77348
77349         * lib/getlogin_r.h: Remove second include of <stddef.h>.
77350
77351 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
77352
77353         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
77354         _POSIX_PTHREAD_SEMANTICS for Solaris.
77355
77356 2005-05-25  Derek Price  <derek@ximbiot.com>
77357
77358         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77359
77360 2005-05-25  Derek Price  <derek@ximbiot.com>
77361             Paul Eggert  <eggert@cs.ucla.edu>
77362
77363         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77364         * lib/getlogin_r.c, getlogin_r.h: New files.
77365
77366 2005-05-25  Bruno Haible  <bruno@clisp.org>
77367             Derek Price  <derek@ximbiot.com>
77368
77369         * lib/getlogin_r.h: Simplify API documentation.
77370
77371 2005-05-23  Derek Price  <derek@ximbiot.com>
77372
77373         * modules/minmax (Files): Add m4/minmax.m4.
77374         (configure.ac): Add gl_MINMAX.
77375
77376 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77377
77378         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77379         so that unistd-safer.h (GPL'ed code) need not be included.
77380
77381 2005-05-22  Bruno Haible  <bruno@clisp.org>
77382
77383         * m4/minmax.m4: New file.
77384         Based on a patch by Derek Price <derek@ximbiot.com>.
77385
77386 2005-05-22  Bruno Haible  <bruno@clisp.org>
77387
77388         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77389         (INT64_MIN): Fix definition.
77390         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77391
77392         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
77393         NEED_SIGNED_INT_TYPES.
77394
77395         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
77396         HAVE_SYSTEM_INTTYPES.
77397
77398 2005-05-22  Bruno Haible  <bruno@clisp.org>
77399
77400         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
77401         Also include <sys/param.h> if it defines MIN, MAX.
77402         Based on a patch by Derek Price <derek@ximbiot.com>.
77403
77404 2005-05-21  Jim Meyering  <jim@meyering.net>
77405
77406         * modules/fts (Files): Add m4/inttypes-pri.m4.
77407         (Depends-on): Add lstat and remove gettext.  Alphabetize.
77408
77409 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77410
77411         New fts module.
77412         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
77413         (setup_dir, free_dir): New functions.
77414         (enter_dir, leave_dir): Define trivial
77415         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
77416         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
77417         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
77418         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
77419         Move to fts-cycle.c.
77420         (fts_open): Use setup_dir.
77421         (fts_close): Use free_dir.
77422         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
77423         This adds a label and some gotos, but the alternatives were messier.
77424         Check for memory allocation failure when entering a dir.
77425         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
77426         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
77427         (FTS): New member fts_cycle, that is a union that contains the
77428         old active_dir_ht and cycle_state.  All uses changed to mention
77429         fts_cycle.ht and fts_cycle.state.
77430         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
77431         fts.c, with the following changes:
77432         (setup_dir, free_dir): New functions.
77433         (enter_dir): Now returns bool.  Return true if successful, false
77434         if memory exhausted.  All callers changed.
77435         Do not bother partly cleaning up on
77436         memory allocation failure; that is free_dir's job.
77437         However, free ad if hash_insert fails, to avoid memory leak.
77438         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
77439         fts->fts_options to see which union member to use.
77440
77441 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77442
77443         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
77444         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
77445
77446 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77447
77448         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
77449
77450 2005-05-20  Jim Meyering  <jim@meyering.net>
77451
77452         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
77453         Now a macro, to pacify GCC.
77454
77455 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77456
77457         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
77458         of -1.
77459
77460 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77461
77462         * lib/chown.c (rpl_chown): Return -1 on failure.
77463
77464 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77465
77466         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
77467         Don't check for stddef.h.
77468         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
77469         don't use its results.
77470         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77471         since we include them unconditionally.  Don't require
77472         AM_STDBOOL_H, since stdbool is a prerequisite.
77473         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77474         since we assume C89 or better.
77475         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77476         as we don't use their results.
77477         Don't check for fchdir, memmove, memset, strrchr, as we use
77478         them unconditionally.
77479         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77480         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77481
77482 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77483
77484         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77485         Include <stddef.h> unconditionally, since we assume C89 now.
77486         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77487         * lib/fts.c: Include fts_.h first, to check interface.
77488         Do not include intprops.h; no longer needed.
77489         Include cycle-check.h and hash.h, since fts_.h no longer does.
77490         Remove unnecessary casts of closedir to void.
77491         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77492         decide whether to decrement nlinks.
77493         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77494         (FTS): Use struct hash_table * instead of Hash_table, so that
77495         we no longer need to include hash.h here.
77496
77497 2005-05-18  Jim Meyering  <jim@meyering.net>
77498
77499         * modules/dirfd (License): Change to LGPL.  Most of the code
77500         is already in the public domain.
77501
77502 2005-05-18  Jim Meyering  <jim@meyering.net>
77503
77504         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77505         Reported by Yoann Vandoorselaere.
77506
77507 2005-05-17  Jim Meyering  <jim@meyering.net>
77508
77509         * m4/fts.m4: New file, from coreutils.
77510
77511 2005-05-17  Jim Meyering  <jim@meyering.net>
77512
77513         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77514
77515 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77516
77517         Sync from coreutils.
77518         * m4/unlinkdir.m4: New file.
77519
77520 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77521
77522         Sync from coreutils.
77523         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77524         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77525         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77526         White space changes only.
77527         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77528         special.
77529         * lib/yesno.c: Include getline.h, not ctype.h.
77530         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77531         Use getline to remove arbitrary restriction on response length.
77532
77533 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77534
77535         * config/srclist-update: Spell out "Street" in FSF postal
77536         mail address; this is the style the FSF seems to prefer.
77537
77538         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77539         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77540         this updates FSF postal mail address.
77541
77542         Sync from coreutils.
77543         * modules/unlinkdir: New file.
77544         * modules/yesno (Depends-on): Add getline.
77545         * MODULES.html.sh (File system functions): Add unlinkdir.
77546
77547 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77548
77549         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77550         lib/strsep.h:
77551         Change the initial comment to refer to GPL, not LGPL.
77552         gnulib-tool will change it to LGPL as needed.
77553
77554         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77555         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77556         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77557         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77558         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77559         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77560         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77561         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77562         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77563         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77564         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77565         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77566         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77567         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77568         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77569         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77570         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77571         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77572         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77573         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77574         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77575         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77576         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77577         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77578         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77579         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77580         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77581         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77582         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77583         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77584         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77585         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77586         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77587         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77588         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77589         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77590         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77591         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77592         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77593         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77594         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77595         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77596         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77597         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77598         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77599         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77600         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77601         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77602         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77603         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77604         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77605         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77606         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77607         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77608         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77609         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77610         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77611         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77612         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77613         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77614         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77615         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77616         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77617         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77618         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77619         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77620         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77621         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77622         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77623         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77624         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77625         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77626         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77627         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77628         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77629         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77630         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77631         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77632         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77633         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77634         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77635         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77636         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77637         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77638         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77639         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77640         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77641         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77642         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77643         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77644         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77645         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77646         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77647         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77648         lib/yesno.c, lib/yesno.h:
77649         Update FSF postal mail address.
77650
77651 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77652
77653         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77654         tests/test-memmem.c, tests/test-stpncpy.c:
77655         Update FSF postal mail address.
77656
77657 2005-05-13  Bruno Haible  <bruno@clisp.org>
77658
77659         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77660         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77661         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77662         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77663         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77664         Add support for 64-bit integers in the MSVC compiler.
77665
77666 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77667
77668         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77669
77670 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77671
77672         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77673
77674 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77675
77676         * doc/getdate.texi (General date syntax): Don't say that date
77677         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77678         Problem reported by Nic Ferrier.
77679
77680 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77681
77682         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77683         specified in ai_socktype. Fix invalid ai_protocol
77684         check. ai_protocol is usually set to 0 or depending on
77685         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77686         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77687         ai_socktype / ai_protocol in the returned addrinfo structure.
77688
77689 2005-05-10  Simon Josefsson  <jas@extundo.com>
77690
77691         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77692         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77693
77694 2005-05-10  Karl Berry  <karl@gnu.org>
77695
77696         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77697         (from http://www.gnu.org/licenses).
77698         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77699         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77700         fdl.texi suffices.
77701
77702 2005-05-10  Karl Berry  <karl@gnu.org>
77703
77704         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77705         (COPYING.DOC): remove.
77706
77707         * config/srclist-update: new FSF address.
77708
77709 2005-05-10  Derek Price  <derek@ximbiot.com>
77710
77711         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77712         possible.
77713
77714 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77715             Bruno Haible  <bruno@clisp.org>
77716
77717         * modules/inet_ntop: New file.
77718         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77719         inet_ntop.
77720
77721 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77722             Bruno Haible  <bruno@clisp.org>
77723
77724         * m4/inet_ntop.m4: New file.
77725
77726 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77727             Bruno Haible  <bruno@clisp.org>
77728
77729         * lib/inet_ntop.h: New file.
77730         * lib/inet_ntop.c: New file, from glibc with modifications.
77731
77732 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77733
77734         * modules/time_r (License): Change to LGPL.
77735         * modules/extensions (License): Change to LGPL.  Actually,
77736         the license is more permissive than that, but currently gnulib-tool
77737         doesn't know how to handle more-permissive licenses.
77738
77739         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77740         Problem reported by Dave Love.
77741
77742 2005-05-08  Jim Meyering  <jim@meyering.net>
77743
77744         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77745         blank.
77746
77747 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77748
77749         * modules/argmatch (Depends-on): Add stdbool.
77750         * modules/backupfile (Depends-on): Likewise.
77751         * modules/chdir-long (Depends-on): Likewise.
77752         * modules/closeout (Depends-on): Likewise.
77753         * modules/cycle-check (Depends-on): Likewise.
77754         * modules/dirname (Depends-on): Likewise.
77755         * modules/fnmatch (Depends-on): Likewise.
77756         * modules/fsusage (Depends-on): Likewise.
77757         * modules/fwriteerror (Depends-on): Likewise.
77758         * modules/getcwd (Depends-on): Likewise.
77759         * modules/getloadavg (Depends-on): Likewise.
77760         * modules/hard-locale (Depends-on): Likewise.
77761         * modules/makepath (Depends-on): Likewise.
77762         * modules/mountlist (Depends-on): Likewise.
77763         * modules/nanosleep (Depends-on): Likewise.
77764         * modules/posixtm (Depends-on): Likewise.
77765         * modules/quotearg (Depends-on): Likewise.
77766         * modules/readtokens (Depends-on): Likewise.
77767         * modules/readtokens0 (Depends-on): Likewise.
77768         * modules/readutmp (Depends-on): Likewise.
77769         * modules/save-cwd (Depends-on): Likewise.
77770         * modules/strftime (Depends-on): Likewise.
77771         * modules/userspec (Depends-on): Likewise.
77772         * modules/utimecmp (Depends-on): Likewise.
77773         * modules/xgetcwd (Depends-on): Likewise.
77774         * modules/xnanosleep (Depends-on): Likewise.
77775         * modules/xstrtod (Depends-on): Likewise.
77776         * modules/yesno (Depends-on): Likewise.
77777
77778 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77779
77780         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77781         needless checks.
77782
77783 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77784
77785         Merge from coreutils.  Among other things,
77786         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77787         * lib/fd-safer.c: New file.
77788         * lib/fcntl-safer.h, open-safer.c: Remove.
77789         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77790         * lib/dup-safer.c: Include unistd-safer.h first.
77791         Don't include errno.h.
77792         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77793         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77794         * lib/file-type.c: Rely on file-type.h change.
77795         * lib/getloadavg.c: Include unistd-safer.h.
77796         (getloadavg): Use safer open.
77797         * lib/getusershell.c: Include "stdio-safer.h".
77798         (getusershell): Use safer fopen.
77799         * lib/long-options.c (long_options): Use NULL rather than 0.
77800         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77801         'free'.
77802         * lib/modechange.c: Likewise.
77803         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77804         (MODE_DONE): New constant.
77805         (struct mode_change): Remove 'next' member.
77806         (make_node_op_equals): New function; like the old one of the
77807         same name, except it allocates an array.
77808         (mode_compile, mode_create_from_ref): Use it.
77809         (mode_compile): Allocate result as an array, not a linked list.
77810         Parse octal string ourself, so that we catch mistakes like "+0".
77811         (mode_adjust): Arg is an array, not a linked list.
77812         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77813         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77814         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77815         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77816         Remove.  This is now stat-macros.h's job.
77817         (talloc): Remove.  All callers replaced by xalloc, so that
77818         our invokers don't have to worry about reporting memory failures.
77819         (make_node_op_equals): Remove.
77820         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77821         New constants.
77822         (struct mode_change): Moved here from modechange.h.
77823         (mode_append_entry): Remove.
77824         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77825         apps to have incorrect behavior.  Use simpler algorithm for head
77826         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77827         Detect more invalid usages rather than having somewhat-random behavior.
77828         Don't insert an "a=" action, as that leads to incorrect behavior.
77829         (mode_compile, mode_create_from_ref): Return NULL on error instead
77830         of an enum, since now there's only one way to have an error.  All
77831         callers changed.
77832         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77833         at the correct time.  Simplify calculation of "+u" and its ilk.
77834         Don't mishandle "+X".
77835         (mode_free): Remove "register" and localize decls.
77836         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77837         (struct mode_change): Move to modechange.c; callers don't
77838         need to see this stuff.
77839         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77840         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77841         (mode_change, mode_adjust): Reflect the new signatures noted above.
77842         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77843         that might redefine system include files.
77844         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77845         (my_usleep): Use NULL rather than (void *) 0.
77846         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77847         Use siginterrupt to specify that system calls should be interrupted.
77848         (rpl_nanosleep): Move initialization of suspended closer to call of
77849         my_usleep.
77850         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77851         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77852         (desirable_utmp_entry): New function.
77853         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77854         using x2nrealloc, to simplify logic.
77855         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77856         size calculation.  Do not assume utmp file is a regular file.
77857         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77858         (READ_UTMP_CHECK_PIDS): New constant.
77859         * lib/save-cwd.c: Include unistd-safer.h.
77860         (save_cwd): Use fd_safer.
77861         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77862         [!_LIBC] Include "stat-macros.h" instead.
77863         * lib/unistd-safer.h (fd_safer): New decl.
77864
77865 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77866
77867         * modules/getloadavg (Depends-on): Add unistd-safer.
77868         * modules/getusershell (Depends-on): Add stdio-safer.
77869         * modules/lstat (Depends-on): Remove xalloc.
77870         * modules/mkstemp (Depends-on): Add stat-macros.
77871         * modules/modechange (Depends-on): Remove xstrtol.
77872         Add stat-macros, xalloc.
77873         * modules/save-cwd (Depends-on): Add unistd-safer.
77874         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77875         * modules/unistd-safer (Files): Add lib/fd-safer.c
77876         (Makefile.am): Remove lib_SOURCES.
77877
77878         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77879         Remove fcntl-safer; unistd-safer supersedes it.
77880
77881 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77882
77883         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77884         AC_HEADER_STAT.
77885         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77886         (gl_PREREQ_CHOWN): Remove.
77887         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77888         it.  Don't require AC_HEADER_STAT.
77889         (gl_PREREQ_LSTAT): Remove.
77890         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77891         Don't require AC_HEADER_STAT.
77892         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77893         (gl_PREREQ_RMDIR): Remove.
77894         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77895         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77896         the stat-macros module a prerequisite.
77897         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77898         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77899         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77900         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77901         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77902         variable names.
77903         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77904         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77905         variable prefixes.
77906         * m4/fcntl-safer.m4: Remove.
77907         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77908         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77909         Invoke gl_PREREQ_FD_SAFER.
77910         (gl_PREREQ_FD_SAFER): New macro.
77911         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77912         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77913         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77914         Remove duplicate call to AC_LIBOBJ(readutmp).
77915         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77916
77917         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77918         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77919
77920 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77921
77922         * MODULES.html.sh (Misc): Add byteswap.
77923
77924 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77925
77926         * modules/getcwd (Depends-on): Add extensions.
77927         * modules/openat (Depends-on): Likewise.
77928
77929 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77930
77931         * modules/byteswap: New file.
77932
77933 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77934
77935         * m4/byteswap.m4: New file.
77936
77937 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77938
77939         * lib/byteswap_.h: New file.
77940
77941 2005-04-25  Karl Berry  <karl@gnu.org>
77942
77943         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77944
77945 2005-04-25  Albert Chin  <china@thewrittenword.com>
77946
77947         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77948         Toolkit C bug.
77949
77950 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77951
77952         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77953         (func_ln_if_changed): Remove forcibly for no error message
77954         in case file does not exist.
77955
77956 2005-04-19  Simon Josefsson  <jas@extundo.com>
77957
77958         * gnulib-tool (Options): Make --symlink mean --symbolic.
77959
77960 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77961
77962         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77963
77964 2005-04-16  Simon Josefsson  <jas@extundo.com>
77965
77966         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77967
77968 2005-04-15  Simon Josefsson  <jas@extundo.com>
77969
77970         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77971
77972 2005-04-15  Simon Josefsson  <jas@extundo.com>
77973
77974         * gnulib-tool: Rename --symlink to --symbolic.
77975
77976 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77977
77978         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77979         symbolic links to files instead of copying/moving.  Add --aux-dir,
77980         specifying directory relative --dir where auxiliary build tools
77981         are placed.
77982
77983 2005-04-14  Bruno Haible  <bruno@clisp.org>
77984
77985         * modules/allocsa (License): Change to LGPL.
77986         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77987
77988 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77989
77990         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77991         that "UTC +1 second" continues to work.  Problem reported
77992         by Dmitry V. Levin.
77993         (relunit_snumber): New rule.
77994         (relunit): Use it.
77995
77996 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77997
77998         * lib/getdate.y (universal_time_zone_table): New constant.
77999         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
78000         universal_time_zone_table.
78001         (lookup_zone): Prefer universal_time_zone_table to
78002         local_time_zone_table, so that "GMT" time stamps are allowed in
78003         London during the summer.  Problem reported by Ian Abbott.
78004
78005 2005-04-12  Jim Meyering  <jim@meyering.net>
78006
78007         * lib/human.c (humblock): Set *options even when returning due to
78008         xstrtoumax conversion failure.  Thanks to a used-uninitialized
78009         warning from gcc-4.
78010
78011 2005-04-09  Jim Meyering  <jim@meyering.net>
78012
78013         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
78014         -Wuninitialized: initialize tm0.tm_year.
78015
78016 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
78017
78018         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
78019         count, since there's no maximum.  All uses changed.
78020         Add member dsts_seen.
78021         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
78022         not being INT_MAX.
78023         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
78024         Use pc_rels_seen to decide whther a date is absolute.
78025
78026         * lib/getdate.y (number): Don't overwrite year.
78027         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
78028         check.
78029
78030 2005-04-02  Simon Josefsson  <jas@extundo.com>
78031
78032         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
78033         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
78034
78035 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
78036
78037         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
78038         where no absolute path name can be longer than PATH_MAX.
78039
78040 2005-03-27  Jim Meyering  <jim@meyering.net>
78041
78042         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
78043
78044 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
78045
78046         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
78047         "one's complement" -> "ones' complement" in comment, as per Knuth.
78048         "value of type" -> "type or expression" in comment.
78049         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
78050
78051 2005-03-26  Jim Meyering  <jim@meyering.net>
78052
78053         Comment nits.
78054         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
78055         Correct typos: s/or/of/.
78056
78057 2005-03-26  Jim Meyering  <jim@meyering.net>
78058
78059         * modules/check-include-files: Move to ../ and rename to...
78060         * check-module: ...this.
78061
78062 2005-03-25  Jim Meyering  <jim@meyering.net>
78063
78064         * modules/xvasprintf (Files): Add xalloc.h.
78065
78066 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
78067
78068         * modules/gettext (Files): config/config.rpath ->
78069         build-aux/config.rpath
78070         * modules/iconv (Files): Likewise.
78071         Problem reported by Oskar Liljeblad.
78072
78073 2005-03-23  Jim Meyering  <jim@meyering.net>
78074
78075         * modules/check-include-files: New script to check for
78076         missing dependencies, multiple includes, etc.
78077
78078         * modules/c-strtold (Depends-on): Add xalloc.
78079         * modules/c-strtod (Depends-on): Add xalloc.
78080         * modules/hash (Depends-on): Add xalloc.
78081         (Files): Remove lib/xalloc.h.
78082
78083         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
78084         * modules/userspec (Files): Add lib/inttostr.h.
78085
78086 2005-03-23  Jim Meyering  <jim@meyering.net>
78087
78088         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
78089
78090 2005-03-22  Jim Meyering  <jim@meyering.net>
78091
78092         * modules/stat-macros: New module.
78093         * modules/canonicalize, modules/euidaccess, modules/file-type,
78094         * modules/filemode, modules/lchown, modules/makepath,
78095         * modules/rmdir, modules/stat: Depend on new stat-macros module
78096         rather than listing lib/stat-macros.h manually.
78097         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
78098
78099 2005-03-22  Jim Meyering  <jim@meyering.net>
78100
78101         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
78102
78103 2005-03-22  Bruno Haible  <bruno@clisp.org>
78104
78105         * config/srclist.txt: Replace target directory 'config' with
78106         'build-aux'.
78107         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
78108         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
78109         ../build-aux/.
78110
78111 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
78112
78113         * modules/chdir-long (Depends-on): Add mempcpy.
78114
78115         * modules/acl, modules/backupfile, modules/c-strtod,
78116         modules/c-strtold, modules/canon-host, modules/canonicalize,
78117         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
78118         modules/exclude, modules/exitfail, modules/file-type,
78119         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
78120         modules/getdate, modules/getline, modules/getpagesize,
78121         modules/getpass, modules/getugroups, modules/group-member,
78122         modules/hard-locale, modules/hash, modules/human, modules/idcache,
78123         modules/inttostr, modules/long-options, modules/makepath,
78124         modules/md5, modules/memcasecmp, modules/memcoll,
78125         modules/modechange, modules/mountlist, modules/path-concat,
78126         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
78127         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
78128         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
78129         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
78130         modules/strftime, modules/strndup, modules/strverscmp,
78131         modules/timespec, modules/unlocked-io, modules/userspec,
78132         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
78133         modules/yesno:
78134         Remove lib_SOURCES line from Makefile.am section, as this is now
78135         done automatically by the corresponding Autoconf macro.
78136
78137 2005-03-21  Jim Meyering  <jim@meyering.net>
78138
78139         Changes imported from coreutils.
78140
78141         * lib/cycle-check.c: Don't include xalloc.h.
78142
78143         * lib/path-concat.c: Don't include assert.h.
78144         (path_concat): Remove assertion that would have triggered
78145         for ABASE starting with more than one slash.
78146         Reported by Andreas Schwab.
78147
78148         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
78149         properly when ABASE is an absolute file name.
78150         Correct the description of this function.
78151         Include <assert.h>.
78152         Add an assertion and a test driver.
78153         This fixes a bug introduced on 2004-07-02.
78154         Andreas Schwab reported the resulting failure of cp --parents:
78155         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
78156
78157 2005-03-21  Jim Meyering  <jim@meyering.net>
78158
78159         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
78160         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
78161
78162 2005-03-21  Jim Meyering  <jim@meyering.net>
78163         and  Paul Eggert  <eggert@cs.ucla.edu>
78164
78165         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
78166         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
78167         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
78168         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
78169         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
78170         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
78171         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
78172         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
78173         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
78174         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
78175         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
78176         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
78177         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
78178         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
78179         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
78180         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
78181         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
78182         for these modules.
78183
78184 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
78185
78186         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
78187         (which shouldn't happen), generate nothing instead of returning 0
78188         immediately, so that nstrftime (NULL, ...) doesn't return 0.
78189
78190 2005-03-16  Bruno Haible  <bruno@clisp.org>
78191
78192         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
78193         HAVE_LONGLONG_64BIT.
78194
78195 2005-03-16  Bruno Haible  <bruno@clisp.org>
78196
78197         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
78198         HAVE_LONGLONG_64BIT.
78199
78200 2005-03-16  Bruno Haible  <bruno@clisp.org>
78201
78202         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
78203         HAVE_LONGLONG_64BIT.
78204
78205 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78206
78207         * lib/strftime.c (my_strftime): Prepend space to format so that we can
78208         reliably distinguish strftime failure from empty output on POSIX
78209         hosts.
78210
78211 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78212
78213         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
78214         (iconv_string): Don't guess a size-zero buffer, as that might cause
78215         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
78216         result would be 'too large', where 'too large' is (heuristically)
78217         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
78218         overflow concerns.  This will prevent some unwanted malloc failures
78219         when the inputs are very large.
78220
78221 2005-03-15  Karl Berry  <karl@gnu.org>
78222
78223         * config/srclist.txt (config.rpath): from gettext.
78224         * config/config.rpath: update.
78225
78226 2005-03-15  Bruno Haible  <bruno@clisp.org>
78227
78228         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
78229         to 'negate'.
78230
78231         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
78232         variable.
78233
78234         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
78235         results.
78236
78237 2005-03-14  Simon Josefsson  <jas@extundo.com>
78238
78239         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
78240         <fx@gnu.org>.
78241
78242 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
78243
78244         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
78245         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
78246         intprops.h.
78247         * lib/strtol.c: Likewise.
78248
78249 2005-03-14  Jim Meyering  <jim@meyering.net>
78250
78251         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
78252         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
78253         to be nonzero so that we (and caller) can detect the difference
78254         between a valid zero-length expansion and an error return, even
78255         when the underlying strftime fails before writing anything into
78256         that location.
78257
78258 2005-03-14  Bruno Haible  <bruno@clisp.org>
78259
78260         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
78261         Update from GNU gettext 0.14.3.
78262
78263 2005-03-10  Jim Meyering  <jim@meyering.net>
78264
78265         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
78266
78267 2005-03-10  Jim Meyering  <jim@meyering.net>
78268
78269         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
78270         so that this module works on systems without fchdir.
78271
78272 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
78273
78274         Factor int-properties macros into a single file, except for
78275         glibc-related files.
78276         * lib/intprops.h: New file.
78277         * lib/getloadavg.c: Include it instead of limits.h.
78278         (INT_STRLEN_BOUND): Remove.
78279         * lib/human.c: Include intprops.h.
78280         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
78281         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
78282         302/1000.
78283         * lib/inttostr.h: Include intprops.h instead of limits.h.
78284         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
78285         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
78286         for consistency with intprops.h.
78287         (time_t_is_integer, twos_complement_arithmetic): Use them.
78288         * lib/sig2str.h: Include <signal.h>, intprops.h.
78289         (INT_STRLEN_BOUND): Remove.
78290         * lib/strftime.c (TYPE_SIGNED): Remove.
78291         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
78292         * lib/strtol.c: Adjust comments to match intprops.h.
78293         * lib/userspec.c: Include intprops.h.
78294         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
78295         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
78296         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
78297         instead of rolling our own expressions.
78298         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
78299
78300         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
78301         instead of int.
78302         (my_strftime): Do not mishandle years close to INT_MAX, by doing
78303         the right thing even if adding 1900 would overflow.  Similarly
78304         for tm_mon + 1 and tm_yday + 1.
78305         Make %Y always equivalent to %C%y, and similarly for %G and %g.
78306         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
78307         (DO_SIGNED_NUMBER): New macro.
78308         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
78309
78310 2005-03-07  Bruno Haible  <bruno@clisp.org>
78311
78312         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
78313
78314 2005-03-07  Bruno Haible  <bruno@clisp.org>
78315
78316         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
78317
78318 2005-03-04  Derek R. Price  <derek@ximbiot.com>
78319
78320         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
78321         (func_import): Only replace files via --import when they have actually
78322         changed.
78323
78324 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78325
78326         * m4/mmap-anon.m4: New file.
78327         * m4/pagealign_alloc.m4: New file.
78328
78329 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78330             Bruno Haible  <bruno@clisp.org>
78331
78332         * modules/pagealign_alloc: New file.
78333         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
78334
78335 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78336             Bruno Haible  <bruno@clisp.org>
78337
78338         * lib/pagealign_alloc.h: New file.
78339         * lib/pagealign_alloc.c: New file.
78340
78341 2005-03-03  Bruno Haible  <bruno@clisp.org>
78342
78343         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
78344         Use an all-permissive copyright notice, recommended by RMS.
78345
78346 2005-03-02  Bruno Haible  <bruno@clisp.org>
78347
78348         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
78349         of AIX, the replacement has to be done only after <string.h> is
78350         included, therefore not in config.h. stpncpy.h does the replacement,
78351         and stpncpy.c uses it.
78352
78353 2005-03-02  Bruno Haible  <bruno@clisp.org>
78354
78355         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
78356         stpncpy.c uses it.
78357
78358 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78359
78360         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78361         The workaround isn't strictly needed for POSIX conformance, and
78362         it's too much of a pain to configure and maintain.  We'll ask
78363         people to fix their kernels instead.
78364         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78365         (NANOSLEEP_BUG_WORKAROUND): Remove.
78366         (xnanosleep): Remove the workaround.
78367
78368 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78369
78370         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78371         Reported by Derek Price.
78372         (Include): Add "timespec.h".
78373
78374         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78375
78376 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78377
78378         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78379         to detect nanosleep bug.
78380
78381 2005-03-01  Bruno Haible  <bruno@clisp.org>
78382
78383         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78384
78385 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78386
78387         * modules/gethrxtime: New file.
78388         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78389         (Depends-on): Add gethrxtime.
78390         (configure.ac): Add gl_XNANOSLEEP.
78391         (Makefile.am): Remove lib_SOURCES line.
78392
78393 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78394
78395         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
78396         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
78397
78398 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78399
78400         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
78401         * lib/timespec.h (gettime): Return void, since it always
78402         succeeds now.  All uses changed.
78403         * lib/gettime.c (gettime): Likewise.
78404         [HAVE_NANOTIME]: Prefer nanotime.
78405         Assume gettimeofday succeeds, as POSIX requires.
78406         Assime time () succeeds, since other code already does.
78407         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
78408         (timespec_subtract): Remove.
78409         (NANOSLEEP_BUG_WORKAROUND): New constant.
78410         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
78411         things considerably.  Use it only on GNU/Linux hosts, since the
78412         workaround shouldn't be needed elsewhere.
78413
78414 2005-02-24  Bruno Haible  <bruno@clisp.org>
78415
78416         * modules/gettext (Files): Add m4/glibc2.m4.
78417
78418 2005-02-24  Bruno Haible  <bruno@clisp.org>
78419
78420         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
78421         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
78422         * m4/progtest.m4:
78423         Update from GNU gettext 0.14.2.
78424         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
78425
78426 2005-02-24  Bruno Haible  <bruno@clisp.org>
78427
78428         * lib/localcharset.c: Update from GNU gettext 0.14.2.
78429         * lib/config.charset: Update from GNU gettext 0.14.2.
78430
78431 2005-02-24  Bruno Haible  <bruno@clisp.org>
78432
78433         * lib/gettext.h: Update from GNU gettext 0.14.2.
78434
78435 2005-02-23  Simon Josefsson  <jas@extundo.com>
78436
78437         * m4/iconvme.m4: New file.
78438
78439 2005-02-23  Jim Meyering  <jim@meyering.net>
78440
78441         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
78442         change.
78443         Thanks to Bruno Haible for catching it.
78444
78445 2005-02-22  Simon Josefsson  <jas@extundo.com>
78446
78447         * modules/iconvme: New file.
78448
78449         * MODULES.html.sh: Add iconvme.
78450
78451 2005-02-22  Simon Josefsson  <jas@extundo.com>
78452
78453         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
78454
78455 2005-02-22  Simon Josefsson  <jas@extundo.com>
78456
78457         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
78458
78459 2005-02-22  Jim Meyering  <jim@meyering.net>
78460
78461         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
78462         s/ifndef/ifdef/.
78463
78464 2005-02-20  Neil Conway  <neilc@samurai.com>
78465
78466         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
78467         returned by OSX/Darwin if the specified buffer is not large
78468         enough for the hostname.
78469
78470 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78471
78472         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78473         pass it to _help, otherwise the latter coredumps trying to
78474         dereference state.root_argp.
78475
78476 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78477
78478         * modules/chdir-long (Depends-on): Add memrchr.
78479         * modules/memrchr (Files): Add lib/memrchr.h.
78480         (Include): "memrchr.h".
78481
78482 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78483
78484         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78485
78486 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78487
78488         * lib/memrchr.h: New file.
78489         * lib/chdir-long.c: Include it.
78490         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78491         Don't bother including stddef.h.
78492
78493 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78494
78495         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78496         inclusion.
78497         Include <sys/types.h>, for dev_t.
78498         (ME_DUMMY, ME_REMOTE): Move from here....
78499         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78500         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78501         Dmitry V. Levin.
78502         Include mountlist.h first, to test the interface.
78503
78504 2005-01-29  Bruno Haible  <bruno@clisp.org>
78505
78506         * lib/progname.c (program_name): Initialize.
78507         Needed when linking statically on MacOS X.
78508
78509 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78510
78511         Sync from coreutils.
78512         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78513         (Depends-on): Add c-strtod.
78514         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78515
78516 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78517
78518         Sync from coreutils.
78519         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78520
78521         Remove files that are specific to coreutils.
78522         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78523
78524 2005-01-28  Bruno Haible  <bruno@clisp.org>
78525
78526         * modules/javacomp: New file.
78527         * MODULES.html.sh (Java): Add javacomp.
78528
78529 2005-01-28  Bruno Haible  <bruno@clisp.org>
78530
78531         * m4/javacomp.m4: New file, from GNU gettext.
78532
78533 2005-01-28  Bruno Haible  <bruno@clisp.org>
78534
78535         * lib/javacomp.sh.in: New file, from GNU gettext.
78536         * lib/javacomp.h: New file, from GNU gettext.
78537         * lib/javacomp.c: New file, from GNU gettext.
78538
78539 2005-01-26  Simon Josefsson  <jas@extundo.com>
78540
78541         * lib/gai_strerror.c: Use GPL in header.
78542
78543 2005-01-26  Bruno Haible  <bruno@clisp.org>
78544
78545         * modules/javaexec: New file.
78546         * MODULES.html.sh (Java): Add javaexec.
78547
78548 2005-01-26  Bruno Haible  <bruno@clisp.org>
78549
78550         * m4/javaexec.m4: New file, from GNU gettext.
78551
78552 2005-01-26  Bruno Haible  <bruno@clisp.org>
78553
78554         * lib/javaexec.sh.in: New file, from GNU gettext.
78555         * lib/javaexec.h: New file, from GNU gettext.
78556         * lib/javaexec.c: New file, from GNU gettext.
78557
78558 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78559
78560         * modules/lchown (Depends-on): Remove lchown.h
78561
78562 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78563
78564         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78565         must be defined if the header file was not found, in order
78566         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78567
78568 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78569
78570         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78571         initializers for struct pentry_state.
78572         (__argp_error): Check return value of __asprintf
78573         (__argp_failure): Translate error message
78574
78575         * lib/argp-parse.c: Removed braces around the expansion of N_()
78576
78577 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78578
78579         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78580         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78581         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78582         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78583         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78584         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78585         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78586         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78587         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78588         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78589         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78590         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78591         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78592         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78593         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78594         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78595         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78596         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78597         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78598         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78599         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78600         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78601         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78602         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78603         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78604         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78605         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78606         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78607         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78608         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78609         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78610         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78611         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78612         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78613         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78614         Use an all-permissive copyright notice, recommended by RMS.
78615
78616 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78617
78618         * modules/chdir-long (Depends-on): Remove mempcpy.
78619
78620 2005-01-21  Jim Meyering  <jim@meyering.net>
78621
78622         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78623         same value as for Solaris 9.
78624
78625         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78626         component length.  This included changing the parameter to be
78627         of type `char *' rather than `char const *'.
78628         * lib/chdir-long.h (chdir_long): Update prototype.
78629
78630         * lib/openat.c (fdopendir, fstatat): New functions.
78631         * lib/openat.h: Include headers required for use of DIR and struct
78632         stat.
78633         [AT_SYMLINK_NOFOLLOW]: Define.
78634         (fdopendir, fstatat): Add prototypes.
78635
78636 2005-01-21  Bruno Haible  <bruno@clisp.org>
78637
78638         * modules/classpath: New file.
78639         * MODULES.html.sh (Java): Add classpath.
78640
78641 2005-01-21  Bruno Haible  <bruno@clisp.org>
78642
78643         * lib/classpath.h: New file, from GNU gettext.
78644         * lib/classpath.c: New file, from GNU gettext.
78645
78646 2005-01-20  Simon Josefsson  <jas@extundo.com>
78647
78648         * modules/version-etc-fsf: New file.
78649
78650 2005-01-20  Simon Josefsson  <jas@extundo.com>
78651
78652         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78653         * lib/version-etc.c: Remove version_etc_copyright.
78654         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78655         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78656
78657 2005-01-20  Simon Josefsson  <jas@extundo.com>
78658
78659         * lib/base64.h (isbase64): Add.
78660
78661         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78662         using a unsigned prototype, don't inline.
78663         (base64_decode): Use it.
78664
78665 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78666
78667         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78668         it.
78669
78670 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78671
78672         * lib/save-cwd.c (save_cwd): Remove code to support the case
78673         where fchdir is missing or flaky.
78674
78675 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78676
78677         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78678
78679 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78680
78681         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78682         AC_LIBSOURCES now does this.
78683         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78684         with new ullong_max module.
78685
78686 2005-01-19  Bruno Haible  <bruno@clisp.org>
78687
78688         * modules/sh-quote: New file.
78689         * MODULES.html.sh (Executing programs): Add sh-quote.
78690
78691 2005-01-19  Bruno Haible  <bruno@clisp.org>
78692
78693         * lib/sh-quote.h: New file, from GNU gettext.
78694         * lib/sh-quote.c: New file, from GNU gettext.
78695
78696 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78697
78698         Merge from coreutils.
78699         * m4/ullong_max.m4: New file.
78700         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78701         (gl_MACROS): Assume localeconv exists.
78702
78703 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78704
78705         Merge changes from coreutils, as described below in several
78706         changelogs dated today.
78707
78708         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78709         (O_DIRECTORY): Remove; not needed here, since "." must be
78710         a directory.  All uses removed.
78711         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78712         universal on Suns, and we also need to test for IRIX.
78713         Revamp code to use 'if' rather than '#if'.
78714         Avoid unnecessary comparison of cwd->desc to 0.
78715
78716         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78717         for known valid error numbers rather than observed invalid ones.
78718
78719 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78720
78721         * modules/ullong_max: New file.
78722
78723         * modules/chdir-long, modules/openat: New files.
78724         * modules/save-cwd (Depends-on): Depend on chdir-long.
78725         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78726
78727 2005-01-18  Jim Meyering  <jim@meyering.net>
78728
78729         Merge from coreutils.
78730         * m4/chdir-long.m4, m4/openat.m4: New files.
78731         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78732         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78733         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78734         is sane and DOES follow symlinks.  Besides, testing 20 different
78735         systems found no broken chown implementations.
78736         Prompted by a change in rsync's copy of this macro.
78737         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78738
78739         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78740
78741         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78742         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78743         NULL-means-set-to-current-time semantics.
78744         Remove temporary file immediately, rather than waiting
78745         for configure's at-exit trap code to do it.
78746
78747 2005-01-18  Jim Meyering  <jim@meyering.net>
78748
78749         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78750
78751         * lib/utimens.c (futimens): Account for the fact that futimes
78752         can also fail with errno == ENOSYS or errno == ENOENT.
78753         Patch from Dmitry V. Levin.
78754
78755         Change the name of the robust chdir function from chdir to chdir_long.
78756         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78757         (restore_cwd): Use chdir_long, not chdir.
78758         * lib/chdir-long.c: Renamed from chdir.c.
78759         * lib/chdir-long.h: Renamed from chdir.h.
78760         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78761         Hurd.
78762
78763 2005-01-18  Bruno Haible  <bruno@clisp.org>
78764
78765         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78766         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78767         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78768         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78769         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78770         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78771         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78772         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78773         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78774         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78775         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78776         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78777         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78778         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78779         Use an all-permissive copyright notice, recommended by RMS.
78780
78781 2005-01-18  Bob Proulx  <bob@proulx.com>
78782
78783         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78784         simplify offsetof() macro construct to avoid compile failure with
78785         native HP-UX 11.0 ANSI C compiler.
78786
78787 2005-01-17  Bruno Haible  <bruno@clisp.org>
78788
78789         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78790         redundant because stpncpy.m4 takes care of it.
78791
78792 2005-01-17  Bruno Haible  <bruno@clisp.org>
78793
78794         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78795
78796 2005-01-17  Bruno Haible  <bruno@clisp.org>
78797
78798         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78799         used.
78800
78801 2005-01-17  Bruno Haible  <bruno@clisp.org>
78802
78803         * lib/fwriteerror.h (fwriteerror): Change specification to include
78804         fclose.
78805         * lib/fwriteerror.c: Include <stdbool.h>.
78806         (fwriteerror): At the end, close the file stream. Record whether
78807         stdout was already closed.
78808
78809 2005-01-17  Bruno Haible  <bruno@clisp.org>
78810
78811         * lib/execute.c (environ): Declare if needed.
78812         * lib/pipe.c (environ): Likewise.
78813         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78814
78815 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78816
78817         * modules/argp: Depend on vsnprintf
78818
78819 2005-01-10  Jim Meyering  <jim@meyering.net>
78820
78821         * modules/closeout (Depends-on): Add atexit.
78822
78823 2005-01-06  Bruno Haible  <bruno@clisp.org>
78824
78825         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78826
78827 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78828
78829         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78830         definitions to be after all include files, to avoid collisions.
78831         Problem reported by Bob Proulx.
78832
78833 2005-01-04  Jim Meyering  <jim@meyering.net>
78834
78835         Changes imported from coreutils.
78836         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78837         as the mkstemp template, use a temporary directory and an
78838         8.3-friendly template to avoid trouble on systems like DJGPP.
78839         Reported by Juan M. Guerrero via Stepan Kasal.
78840         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78841         close. Remove the temporary directory right away, rather than waiting
78842         for configure's at-exit trap code to do it.
78843         Suggestion from Stepan Kasal.
78844
78845 2005-01-01  Simon Josefsson  <jas@extundo.com>
78846
78847         * gnulib-tool: Print #include directives when --import'ing.
78848
78849 2004-12-28  Simon Josefsson  <jas@extundo.com>
78850
78851         * tests/test-base64.c: Include required header files.  Remove
78852         unused variables.
78853
78854 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78855
78856         * modules/error (Depends-on): Remove gettext.
78857
78858 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78859
78860         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78861         not needed.  This removes a dependency on the gettext module.
78862         [defined _LIBC]: Do not include <libintl.h>; not needed.
78863
78864 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78865
78866         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78867         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78868
78869 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78870
78871         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78872         HAVE_DECL_STRTOLD.
78873
78874 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78875
78876         * modules/getdate (Depends-on): Remove alloca-opt.
78877
78878 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78879
78880         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78881
78882 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78883
78884         * lib/argp-parse.c: Include <stddef.h>.
78885         (alignof, alignto): New macros.
78886         (parser_init): Don't assume that void * is aligned sufficiently
78887         for struct option.
78888
78889         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78890         need to extend the stack.
78891         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78892         large.
78893
78894 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78895
78896         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78897
78898 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78899
78900         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78901         (2004-10-24) change.  Apparently this was a false alarm.
78902
78903         * modules/getdate: Depend on alloca-opt, not alloca.
78904
78905 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78906
78907         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78908         Remove now-obsolete comment about AIX.
78909         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78910         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78911         (YYMAXDEPTH): New macro.
78912
78913 2004-12-18  Simon Josefsson  <jas@extundo.com>
78914
78915         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78916
78917 2004-12-18  Bruno Haible  <bruno@clisp.org>
78918
78919         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78920
78921 2004-12-18  Bruno Haible  <bruno@clisp.org>
78922
78923         * lib/fatal-signal.c (fatal_signals): Make non-const.
78924         (init_fatal_signals): New function.
78925         (uninstall_handlers, install_handlers): Ignore signals that were set to
78926         SIG_IGN.
78927         (at_fatal_signal): Call init_fatal_signals.
78928         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78929         SIG_IGN.
78930         Reported by Paul Eggert.
78931
78932 2004-12-18  Bruno Haible  <bruno@clisp.org>
78933
78934         * doc/alloca.texi: New file.
78935         * doc/alloca-opt.texi: New file.
78936
78937 2004-12-17  Jim Meyering  <jim@meyering.net>
78938
78939         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78940         Otherwise, install-sh could exit with improper exit status when
78941         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78942
78943 2004-12-16  Simon Josefsson  <jas@extundo.com>
78944
78945         * tests/test-base64.c: Add license.
78946
78947 2004-12-15  Stepan Kasal  <address@hidden>
78948
78949         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78950
78951 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78952
78953         * modules/getcwd (Files): Add m4/d-ino.m4.
78954         Suggested by Mark D. Baushke.
78955
78956 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78957
78958         * lib/getdate.y (textint): New member "negative".
78959         (time_zone_hhmm): New function.
78960         Expect 14 shift-reduce conflicts, not 13.
78961         (o_colon_minutes): New rule.
78962         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78963         (yylex): Set the "negative" member of signed numbers.
78964
78965 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78966
78967         * doc/getdate.texi (Time of day items, Time zone items):
78968         Describe new formats +00:00, UTC+00:00.
78969
78970 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78971
78972         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78973         spurious "-l"s.  Problem reported by Stepan Kasal.
78974
78975 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78976
78977         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78978         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78979
78980 2004-12-04  Simon Josefsson  <jas@extundo.com>
78981
78982         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78983         Vandoorselaere <yoann@prelude-ids.org>.
78984
78985 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78986
78987         Changes imported from coreutils.
78988         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78989         exist.
78990         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78991
78992 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78993
78994         Changes imported from coreutils.
78995         * lib/hard-locale.c: Assume <locale.h> exists.
78996         Include "strdup.h".
78997         (GLIBC_VERSION): New macro.
78998         (hard_locale): Assume setlocale exists.
78999         Rewrite to avoid #ifdef.
79000         Use strdup rather than malloc + strcpy.
79001         * lib/human.c: Assume <locale.h> exists.
79002         (human_readable): Assume localeconv exists.
79003
79004 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79005
79006         * modules/hard-locale (Depends-on): Add strdup.
79007
79008 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
79009
79010         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
79011         convert T2, not T.  (Imported from libc.)
79012
79013 2004-11-30  Simon Josefsson  <jas@extundo.com>
79014
79015         * modules/restrict (License): Change to LGPL.
79016
79017 2004-11-30  Simon Josefsson  <jas@extundo.com>
79018
79019         * m4/restrict.m4: Add copyright and copying conditions.
79020
79021 2004-11-30  Simon Josefsson  <jas@extundo.com>
79022
79023         * m4/base64.m4: New file.
79024
79025 2004-11-30  Simon Josefsson  <jas@extundo.com>
79026
79027         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
79028         base64.
79029
79030         * tests/test-base64.c: New file.
79031
79032         * modules/base64: New file.
79033
79034 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79035
79036         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
79037         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
79038
79039         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
79040
79041 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79042
79043         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
79044         (__getcwd.c): Don't restore errno; glibc doesn't.
79045         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
79046         first, falling back to our code only if its results look suspicious.
79047         Ensure that the resulting buffer is only as large as necessary.
79048
79049         * lib/readutmp.c: Include readutmp.h first.
79050         Include <errno.h>, since readutmp.h no longer does that.
79051         * lib/readutmp.h: Don't include <errno.h>,
79052         <sys/param.h>, <time.h>; not needed to establish interface.
79053         (errno): Remove decl.
79054         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
79055         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
79056         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
79057
79058 2004-11-28  Simon Josefsson  <jas@extundo.com>
79059
79060         * lib/base64.h, base64.c: New file.
79061
79062 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
79063
79064         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
79065
79066 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
79067
79068         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
79069         (Depends-on): Remove pathmax, same.  Add mempcpy.
79070         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
79071         (Makefile.am): Append getcwd.h to lib_SOURCES.
79072         (Include): Add getcwd.h.
79073         (Maintainer): Change from Jim Meyering to "all, glibc",
79074         since getdate now uses intended-for-glibc code.
79075         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
79076         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
79077
79078 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79079
79080         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
79081         HP's ANSI C compiler.
79082         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
79083         Declaring int functions causes warnings on some modern systems and
79084         shouldn't be needed to compile on ancient ones.
79085         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
79086         defined.
79087
79088         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
79089         with the following changes.
79090         (__set_errno): Parenthesize properly.
79091         Include <stdbool.h>.
79092         (MIN, MAX, MATCHING_INO): New macros.
79093         (__getcwd): Define with prototype, not K&R form.
79094         Use heuristics to allocate default buffer on stack if possible.
79095         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
79096         behavior, and to avoid the PATH_MAX limit when computing
79097         ../../../../...
79098         Use MATCHING_INO to compare inode number to file.
79099         Check for arithmetic overflow in size calculations.
79100         Fix bug in reallocation of dot array that caused getcwd to fail
79101         on directories nested deeper than 75.
79102         Be more careful about saving errno on error.
79103         Do not use realloc; use only free+malloc, as this is a bit
79104         more flexible and avoids a needless copy operation.
79105         Do not inspect st_dev and st_ino for symbolic links; POSIX
79106         doesn't specify the latter.
79107         Check for closedir errors.
79108         Avoid needless casts.
79109         Use "#ifdef weak_alias" around weak_alias, to be like other
79110         glibc code.
79111         The following changes to getcwd.c have effect only when used in
79112         gnulib; they have no effect inside glibc proper.
79113         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
79114         as alloca isn't used.
79115         (alloca, __alloca): Likewise.
79116         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
79117         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79118         unconditionally, as gnulib assumes C89 or better.
79119         Do not include <sys/param.h>.
79120         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
79121         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
79122         better.
79123         (NULL) [!defined NULL]: Remove; we assume C89 or better.
79124         Include <dirent.h> in a way that is compatible with modern Autoconf.
79125         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
79126         New macros, if not already defined.
79127         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
79128         Use "_LIBC", not "defined _LIBC", for consistency.
79129         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
79130         a mempcpy module.
79131         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
79132         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
79133         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
79134         credit only to Jim Meyering and adjust the copyright dates.
79135         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
79136         <stdlib.h>, <unistd.h>, "pathmax.h".
79137         Instead, include "xgetcwd.h" (first) and "getcwd.h".
79138         (INITIAL_BUFFER_SIZE): Remove.
79139         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
79140
79141 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79142
79143         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
79144         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
79145         Use the _ONCE methods, for efficiency.
79146         Check for fcntl.h.  In test program, include <errno.h>
79147         and <fcntl.h> if available.  Remove old K&R cruft from
79148         test program.  Check for common errors in GNU/Linux,
79149         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
79150         don't do AC_LIBOBJ, as that's getcwd.m4's job.
79151         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
79152         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
79153         name accordingly.
79154         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
79155         accommodate new getcwd.c.
79156         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
79157         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
79158         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
79159         that's all we need now.
79160
79161 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79162
79163         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
79164         argp-parse.c depends on getopt internals, that means we should
79165         always use our getopt, to be on the safe side.
79166         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
79167         order not to spoil the result of an eventual previous invocation
79168         of gl_GETOPT_SUBSTITUTE.
79169
79170 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79171
79172         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
79173         redefinition warnings. To avoid them, include the defines
79174         in `#if !defined __need_getopt ... #endif'. The only place
79175         where __getopt_argv_const is used is in definitions
79176         of getopt_long and getopt_long_only below, which are as well
79177         protected by `#ifndef __need_getopt'.
79178         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
79179         __need_getopt after including <stdio.h> and <unistd.h> These
79180         headers might have defined it.
79181
79182 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79183
79184         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
79185
79186 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79187
79188         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
79189         (futimens): New function, which uses futimes if available.
79190         (futimens, utimens): Support timespec==NULL, with same semantics
79191         as utime and utimens.
79192         * lib/utimens.h (futimens): New decl.
79193
79194 2004-11-23  Jim Meyering  <jim@meyering.net>
79195
79196         * lib/getopt_.h: Remove trailing blanks.
79197
79198 2004-11-23  Jim Meyering  <jim@meyering.net>
79199
79200         * lib/__fpending.c: Add comment.
79201
79202 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
79203
79204         * modules/canonicalize (Depends-on): Add xreadlink.
79205         Problem reported by James Youngman.
79206
79207 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
79208
79209         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
79210         New macros.
79211         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
79212         optopt): Use them instead of invoking ## directly; otherwise, the
79213         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
79214
79215 2004-11-19  Bruno Haible  <bruno@clisp.org>
79216
79217         * lib/strtok_r.c: Move comments from here...
79218         * lib/strtok_r.h: ... to here.
79219
79220 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79221
79222         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
79223         implementations that mishandle size_t overflow.
79224
79225 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79226
79227         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
79228         might fail.  Problem reported by Yoann Vandoorselaere.
79229         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
79230         implementations that mishandle size_t overflow.
79231
79232 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79233
79234         * modules/canon-host (Depends-on): Add strdup.
79235
79236 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79237
79238         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
79239
79240 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79241
79242         * lib/canon-host.c: Include "strdup.h".
79243         (canon_host): Use getaddrinfo if available, so that IPv6 works.
79244         Use strdup instead of malloc/strcpy to duplicate strings.
79245
79246         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
79247         (human_space_before_unit): New constant.
79248         * lib/human.c (human_readable): Support it.
79249
79250         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
79251         (xgetcwd): Set errno correctly when failing.
79252         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
79253         the failure is actually due to a PATH_MAX problem.
79254
79255         Further getopt changes to make it more likely that glibc will
79256         buy the changes back.
79257         * lib/getopt.c (POSIXLY_CORRECT): New constant.
79258         (getopt): Use it, so to preserve glibc semantic
79259         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
79260         when compiling for libc.
79261         * lib/getopt_.h (__getopt_argv_const): Bring it back.
79262         (getopt_long, getopt_long_only): Use it.
79263
79264         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79265         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
79266         (getopt): Argv is now char * const *, as per standard.
79267         (_getopt_internal_r, _getopt_internal): Argv is now char **,
79268         not char *__getopt_argv_const *.
79269         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79270         _getopt_long_only_r): Likewise.
79271         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
79272         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79273         _getopt_long_r, _getopt_long_only_r): Likewise.
79274         * lib/getopt_.h (__getopt_argv_const): Remove.
79275         (getopt): Argv is now char * const *, as per standard.
79276
79277         * lib/getdate.y (tORDINAL): New token.
79278         (day, relunit): Allow it for relative times.
79279         (relative_time_table): Use tORDINAL for ordinals.
79280
79281 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79282
79283         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
79284         Document that "second" isn't allowed as an ordinal number.
79285
79286 2004-11-16  Jim Meyering  <jim@meyering.net>
79287
79288         * modules/closeout (Depends-on): Add fpending.
79289
79290 2004-11-15  Jim Meyering  <jim@meyering.net>
79291
79292         * lib/closeout.c: Include "__fpending.h" once again.
79293         Include <stdbool.h>.
79294         (close_stdout): Don't fail just because stdout was closed initially,
79295         since some programs don't write to stdout in the normal course of
79296         operation (other than --version and --help), and we don't want this
79297         function to make e.g. `touch file >&-' fail.
79298         But do fail if it was closed and someone has tried to write to it.
79299         E.g., `printf foo >&-' must fail.
79300
79301 2004-11-13  Jim Meyering  <jim@meyering.net>
79302
79303         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
79304
79305 2004-11-12  Simon Josefsson  <jas@extundo.com>
79306
79307         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
79308         small doc fix is still pending.
79309
79310 2004-11-11  Simon Josefsson  <jas@extundo.com>
79311
79312         * modules/strtok_r: New file.
79313
79314         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79315         strtok_r.
79316
79317 2004-11-11  Simon Josefsson  <jas@extundo.com>
79318
79319         * m4/strtok_r.m4: New file.
79320
79321         * m4/getopt.m4: Replace opterr.
79322
79323 2004-11-11  Simon Josefsson  <jas@extundo.com>
79324
79325         * lib/strtok_r.h, strtok_r.c: New file.
79326
79327 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79328
79329         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
79330         of replacing opterr, getopt, etc.  This should handle the
79331         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
79332
79333 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79334
79335         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
79336         we can stop lying to compilers about the constness of argv when we
79337         are compiled outside glibc.
79338         (getopt, getopt_long, getopt_long_only): Use it.
79339         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79340         _getopt_internal, getopt): Likewise.
79341         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79342         _getopt_long_only_r): Likewise.
79343         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79344         _getopt_long_r, _getopt_long_only_r): Likewise.
79345
79346         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
79347         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
79348         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
79349         the other external symbols.
79350         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
79351         declaration, since the above renaming now works around collisions.
79352
79353 2004-11-11  Jim Meyering  <jim@meyering.net>
79354
79355         * lib/linebreak.c: Remove trailing blanks.
79356         * lib/alloca_.h: Likewise.
79357         * lib/acosl.c: Likewise.
79358         * lib/euidaccess.c: Likewise.
79359         * lib/allocsa.h: Likewise.
79360
79361 2004-11-10  Simon Josefsson  <jas@extundo.com>
79362
79363         * m4/getaddrinfo.m4: New file.
79364
79365 2004-11-10  Simon Josefsson  <jas@extundo.com>
79366
79367         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79368
79369 2004-11-10  Simon Josefsson  <jas@extundo.com>
79370
79371         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79372         getaddrinfo.
79373
79374         * modules/getaddrinfo: New file.
79375
79376 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79377
79378         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79379
79380 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79381
79382         * lib/mktime.c (SHR): New macro, which is a portable
79383         substitute for >> that should work even on Crays.
79384         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79385         Problem reported by Mark D. Baushke in
79386         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
79387         * lib/getdate.y (SHR): Likewise.
79388         (tm_diff): Use it.
79389         * lib/strftime.c (SHR): Likewise.
79390         (tm_diff): Use it.
79391         * lib/quotearg.c (struct quoting_options): Use unsigned int for
79392         quote_these_too, so that right shifts are well defined.  All uses
79393         changed.
79394
79395 2004-11-10  Jim Meyering  <jim@meyering.net>
79396
79397         Ensure that no close failure goes unreported.
79398         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
79399         return early when it seems there's nothing to flush.
79400         Don't include __fpending.h.
79401
79402 2004-11-10  Jim Meyering  <jim@meyering.net>
79403
79404         * modules/closeout (Depends-on): Remove fpending.
79405
79406 2004-11-10  Jim Meyering  <jim@meyering.net>
79407
79408         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
79409
79410 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79411
79412         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
79413         gl_FUNC_STRFTIME.
79414         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
79415         and AC_REQUIRE when possible, to avoid duplicate checks.
79416         Check for <wchar.h>.
79417
79418 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79419
79420         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
79421
79422 2004-11-09  Bruno Haible  <bruno@clisp.org>
79423
79424         * m4/sockpfaf.m4: New file.
79425
79426 2004-11-05  Bruno Haible  <bruno@clisp.org>
79427
79428         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
79429         Reported by Mark D. Baushke <mdb@cvshome.org>.
79430
79431 2004-11-04  Bruno Haible  <bruno@clisp.org>
79432
79433         2004-09-11  Bruno Haible  <bruno@clisp.org>
79434                 * allocsa.valgrind: New file.
79435         2004-02-06  Bruno Haible  <bruno@clisp.org>
79436                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
79437                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
79438                 Reported by Christopher Seip <chris.seip@hp.com>.
79439
79440 2004-11-04  Bruno Haible  <bruno@clisp.org>
79441
79442         * modules/allocsa (Files): Add lib/allocsa.valgrind.
79443         (Makefile.am): Distribute it.
79444
79445 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
79446
79447         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
79448         with errno == ERANGE if the buffer is too small.
79449         Problem reported by Mark D. Baushke.
79450
79451 2004-11-03  Albert Chin  <china@thewrittenword.com>
79452             Paul Eggert  <eggert@cs.ucla.edu>
79453
79454         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
79455         equivalent, substitute $ac_type for equivalent type rather than
79456         blindly using uint32_t *always* which won't work if uint32_t is not
79457         available.  Define _UINT32_T to work around typedef of uint32_t if
79458         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
79459         2.5.1.
79460
79461 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79462
79463         * m4/jm-macros.m4: Sync from coreutils.
79464         (gl_MACROS): Check for mbrlen, for pathchk.
79465         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
79466
79467 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79468
79469         * lib/xreadlink.c (MAXSIZE): New macro.
79470         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79471         size does not exceed MAXSIZE.  Avoid cast.
79472         As suggested by Mark D. Baushke in
79473         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79474         if readlink fails with buffer size just under MAXSIZE, try again
79475         with MAXSIZE.
79476
79477 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79478
79479         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79480
79481 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79482         and  Paul Eggert  <eggert@cs.ucla.edu>
79483
79484         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79485         (get_date): Overparenthesize to avoid GCC warning.
79486
79487 2004-11-02  Bruno Haible  <bruno@clisp.org>
79488
79489         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79490         returns void.
79491
79492 2004-11-02  Bruno Haible  <bruno@clisp.org>
79493
79494         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79495         function returns void.
79496
79497 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79498
79499         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79500         fflush_unlocked, flockfile, funlockfile, funlockfile,
79501         fputs_unlocked, putc_unlocked.
79502
79503 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79504
79505         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79506         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79507         already declared.
79508
79509 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79510
79511         * modules/getdate (Files): Add doc/getdate.texi.
79512         (Depends-on): Add setenv, xalloc.
79513
79514 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79515
79516         * lib/getdate.y: Add support for TZ="foo" within a date string.
79517         Fix some bugs near time_t boundaries.  Reject dates with
79518         out-of-range components, e.g., "Sept 31".
79519         Include <stdlib.h>, "setenv.h", "xalloc.h".
79520         (ISDIGIT_LOCALE): Remove; unused.
79521         Note that the TZ and time functions used here are not reentrant.
79522         (mktime_ok, get_tz): New functions.
79523         (TZBUFSIZE): New constant.
79524         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79525         This requires that we sometimes generate our own TZ="XXX..." setting.
79526
79527 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79528
79529         * doc/getdate.texi: New file, from coreutils with modifications for
79530         the new TZ parsing.
79531
79532 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79533
79534         * lib/mktime.c (not_equal_tm): Remove redundant check.
79535
79536 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79537
79538         * modules/regex (lib_SOURCES): Add regex.c.
79539         Reported by James Youngman in
79540         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79541
79542 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79543
79544         * lib/getdate.y: Use Bison 1.875 features, and some minor
79545         code cleanups.  This change does not affect semantics.
79546         Don't include <stdlib.h>; no longer needed.
79547         Don't include unlocked-io.h; only the "#if TEST" code uses
79548         stdio, and performance isn't crucial there.
79549         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79550         Bison 1.875 features as described below.
79551         All uses of "PC." replaced by "pc->".
79552         (YYSTYPE): Add a forward declaration.
79553         (yylex, yyerror): Use full prototypes in forward decls.
79554         Use "%pure-parser" rather than obsolescent "%pure_parser".
79555         Use %parse-param and %lex-param instead of obsolescent
79556         YYPARSE_PARAM and YYLEX_PARAM.
79557         (meridian_table, month_and_day_table, time_units_table,
79558         relative_time_table, time_zone_table, military_table,
79559         lookup_zone, lookup_word, get_date):
79560         Use NULL instead of 0 where appropriate.
79561         (to_hour): Avoid abort (), to avoid a dependency on
79562         stdlib.h.
79563         (yyerror, yylex): Now accepts parser_control * arg.
79564         (main) [TEST]: Use '\0' rather than 0 for char.
79565
79566 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79567
79568         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79569
79570 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79571
79572         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79573         It's now the caller's responsibility to handle the case where
79574         !HAVE_GETPAGESIZE && !defined getpagesize.
79575
79576         * lib/mktime.c (leapyear): Arg is long int, not int.
79577
79578 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79579
79580         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79581
79582 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79583
79584         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79585         missing.  Problem reported by James Youngman.
79586
79587 2004-10-16  Simon Josefsson  <jas@extundo.com>
79588
79589         * gnulib-tool: Fix comments.  Fix parse problem.
79590         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79591
79592 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79593
79594         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79595         implementation of getopt_long.  Problem reported by Alexander Taler in:
79596         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79597
79598 2004-10-15  Bruno Haible  <bruno@clisp.org>
79599
79600         * gnulib-tool: Untabify. Initialize supplied_libname.
79601         (func_usage): More homogenous output.
79602         (func_modules_transitive_closure, func_modules_to_filelist,
79603         func_emit_lib_Makefile_am): New functions.
79604         (func_import): New function, extracted from big case statement. Use
79605         func_get_license, func_modules_transitive_closure,
79606         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79607         opt_lgpl. Don't use test -a, as it's not portable.
79608         (func_create_testdir): Use func_modules_transitive_closure,
79609         func_modules_to_filelist, func_emit_lib_Makefile_am.
79610
79611 2004-10-15  Bruno Haible  <bruno@clisp.org>
79612
79613         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79614
79615 2004-10-15  Bruno Haible  <bruno@clisp.org>
79616
79617         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79618         the portions belonging to each module.
79619         Suggested by Derek Robert Price <derek@ximbiot.com>.
79620
79621 2004-10-12  Simon Josefsson  <jas@extundo.com>
79622
79623         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79624         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79625         to real functions.
79626
79627 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79628
79629         * modules/vsnprintf: New file.
79630
79631 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79632
79633         * m4/vsnprintf.m4: New file.
79634
79635 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79636
79637         * lib/vsnprintf.h: New file.
79638         * lib/vsnprintf.c: New file.
79639
79640 2004-10-11  Bruno Haible  <bruno@clisp.org>
79641
79642         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79643         vsnprintf.
79644
79645 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79646
79647         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79648
79649 2004-10-07  Bruno Haible  <bruno@clisp.org>
79650
79651         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79652         fits into the provided buffer.
79653
79654 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79655
79656         * lib/diacrit.c, diacrit.h: Add GPL notice.
79657
79658         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79659         notice.
79660         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79661         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79662         This avoids a potential constant-folding bug.
79663
79664 2004-10-05  Bruno Haible  <bruno@clisp.org>
79665
79666         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79667         for the declaration of strsep.
79668
79669 2004-10-05  Bruno Haible  <bruno@clisp.org>
79670
79671         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79672
79673 2004-10-04  Simon Josefsson  <jas@extundo.com>
79674
79675         * modules/memmem: New file.
79676         * tests/test-memmem.c: New file.
79677         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79678
79679 2004-10-04  Simon Josefsson  <jas@extundo.com>
79680
79681         * m4/memmem.m4: New file.
79682
79683 2004-10-04  Simon Josefsson  <jas@extundo.com>
79684
79685         * lib/memmem.h: New file.
79686         * lib/memmem.c: New file, taken from glibc.
79687
79688 2004-10-04  Simon Josefsson  <jas@extundo.com>
79689
79690         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79691         '#ifdef USE_UNLOCKED_IO'.
79692
79693 2004-10-04  Simon Josefsson  <jas@extundo.com>
79694
79695         * config/srclist.txt: Add memmem from glibc.
79696
79697 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79698
79699         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79700
79701         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79702         modules/exclude, modules/getdate, modules/getline,
79703         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79704         modules/getusershell, modules/linebuffer, modules/md5,
79705         modules/mountlist, modules/posixtm, modules/readtokens,
79706         modules/readutmp, modules/regex, modules/sha1,
79707         modules/version-etc, modules/yesno:
79708         Remove dependency on unlocked-io.
79709
79710 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79711
79712         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79713
79714         * m4/unlocked-io.m4: Add copyright notice.
79715         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79716
79717 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79718
79719         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79720         * lib/xmalloc.c (xmemdup): Likewise.
79721         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79722         XFREE): Remove these long-obsolescent macros.
79723         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79724         * lib/xstrdup.c: Remove.
79725
79726         * lib/regex.c (re_comp): Cast gettext return value to char *,
79727         Problem reported by Martin Neitzel via Mark D. Baushke.
79728
79729 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79730
79731         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79732         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79733         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79734         regex.c, sha1.c, version-etc.c, yesno.c:
79735         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79736         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79737         the includer's responsibility.
79738
79739         Sync from coreutils.
79740
79741         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79742         points to the start of a string, as the C Standard says the
79743         resulting behavior is undefined.
79744
79745         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79746         simple -> simple_backups, numbered_existing ->
79747         numbered_existing_backups, numbered -> numbered_backups
79748         to avoid shadowing problems.  All uses changed.
79749         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79750         * lib/backupfile.c (check_extension, numbered_backup):
79751         Rename locals to avoid shadowing 'basename'.
79752         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79753         once.
79754
79755         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79756         * lib/.cvsignore: Add getopt.h.
79757
79758 2004-10-04  Bruno Haible  <bruno@clisp.org>
79759
79760         * modules/README: New file.
79761         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79762         not a module.
79763
79764 2004-10-02  Jim Meyering  <jim@meyering.net>
79765
79766         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79767
79768 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79769
79770         * modules/strsep: New file.
79771
79772 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79773
79774         * m4/strsep.m4: New file.
79775
79776 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79777
79778         * lib/strsep.h: New file.
79779         * lib/strsep.c: New file.
79780
79781 2004-10-01  Simon Josefsson  <jas@extundo.com>
79782
79783         * lib/snprintf.c (snprintf): Handle size==0.
79784
79785 2004-10-01  Simon Josefsson  <jas@extundo.com>
79786             Bruno Haible  <bruno@clisp.org>
79787
79788         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79789         (snprintf): Declare 'args'.
79790
79791 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79792
79793         * lib/snprintf.c: Remove comments as to why each header is needed.
79794
79795 2004-10-01  Bruno Haible  <bruno@clisp.org>
79796
79797         * MODULES.html.sh: Add strsep.
79798
79799 2004-09-30  Simon Josefsson  <jas@extundo.com>
79800
79801         * modules/snprintf: New file.
79802
79803 2004-09-30  Simon Josefsson  <jas@extundo.com>
79804
79805         * m4/snprintf.m4: New file.
79806
79807 2004-09-30  Simon Josefsson  <jas@extundo.com>
79808
79809         * lib/snprintf.h, lib/snprintf.c: New files.
79810
79811 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79812
79813         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79814         (hol_entry_help): Never translate an empty string.
79815         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79816         * lib/argp.h (OPTION_NO_TRANS): New option.
79817
79818 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79819
79820         * modules/argp (Maintainer): Replace Simon Josefsson
79821         by Sergey Poznyakoff.
79822
79823 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79824
79825         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79826         changes merged back into glibc.
79827
79828 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79829
79830         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79831
79832 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79833
79834         * lib/xvasprintf.c: Include xalloc.h.
79835         (xvasprintf): Use xalloc_die, not xmalloc_die.
79836
79837 2004-09-29  Bruno Haible  <bruno@clisp.org>
79838
79839         * modules/alloca-opt: New file, derived from modules/alloca.
79840         * modules/allocsa: Depend on alloca-opt instead of alloca.
79841         * modules/setenv: Likewise.
79842         * modules/vasnprintf: Likewise.
79843         * MODULES.html.sh: Add alloca-opt.
79844
79845 2004-09-28  Simon Josefsson  <jas@extundo.com>
79846
79847         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79848         LGPL, and to replace license template from GPL to LGPL.
79849
79850 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79851
79852         * modules/dummy: Change license to LGPL.
79853
79854 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79855
79856         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79857
79858 2004-09-24  Simon Josefsson  <jas@extundo.com>
79859
79860         * modules/minmax (License): Change from GPL to LGPL.
79861
79862 2004-09-23  Simon Josefsson  <jas@extundo.com>
79863
79864         * gnulib-tool (--import): Typo.
79865
79866 2004-09-23  Simon Josefsson  <jas@extundo.com>
79867
79868         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79869
79870 2004-09-22  Bruno Haible  <bruno@clisp.org>
79871
79872         * modules/*: Add 'License' field.
79873         * gnulib-tool: Accept --extract-license option.
79874         (func_get_license): New function.
79875
79876 2004-09-21  Bruno Haible  <bruno@clisp.org>
79877
79878         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79879         Reported by Simon Josefsson.
79880
79881 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79882
79883         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79884         gl_AC_TYPE_LONG_LONG.
79885
79886 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79887
79888         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79889
79890 2004-09-18  Simon Josefsson  <jas@extundo.com>
79891         and  Paul Eggert  <eggert@cs.ucla.edu>
79892
79893         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79894         calls with autoreconf.  Define GL_LIB.
79895
79896 2004-09-14  Karl Berry  <karl@gnu.org>
79897
79898         * config/srclist.txt: unsync setenv.c, sigh.
79899
79900 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79901
79902         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79903         Problem reported by Bruno Haible in:
79904         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79905
79906 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79907
79908         * config/srclist.txt: Comment out argp-pvh.c.
79909
79910 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79911
79912         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79913         in case some system header has #define'd it.  Problem reported by
79914         Soeren D. Schulze in
79915         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79916
79917 2004-09-09  Karl Berry  <karl@gnu.org>
79918
79919         * regex.[ch]: delete from the root.  These were supposed to be
79920                 synced with emacs cvs, but this has not happened for about
79921                 a year, and anyway nothing else uses emacs regex.[ch].
79922                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79923                 lib/regex[.ch] is untouched.
79924
79925 2004-09-09  Bruno Haible  <bruno@clisp.org>
79926
79927         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79928
79929 2004-09-09  Bruno Haible  <bruno@clisp.org>
79930
79931         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79932         modifications.
79933         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79934
79935 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79936
79937         * modules/xvasprintf: New file.
79938         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79939
79940 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79941
79942         * lib/xvasprintf.h: New file.
79943         * lib/xvasprintf.c: New file.
79944         * lib/xasprintf.c: New file.
79945
79946 2004-09-08  Bruno Haible  <bruno@clisp.org>
79947
79948         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79949
79950 2004-09-08  Bruno Haible  <bruno@clisp.org>
79951
79952         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79953         length is > INT_MAX.
79954         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79955         more.
79956
79957 2004-09-08  Bruno Haible  <bruno@clisp.org>
79958
79959         * lib/stdint_.h: New file, taken from GNU clisp.
79960
79961 2004-09-08  Bruno Haible  <bruno@clisp.org>
79962             Oskar Liljeblad  <oskar@osk.mine.nu>
79963
79964         * modules/stdint: New file.
79965         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79966
79967 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79968
79969         Import from coreutils.
79970         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79971         strings on unbounded length.  alloca's performance benefits aren't
79972         that important here.
79973         (V_STRDUP): Remove.
79974         (parse_with_separator): New function, with most of the internals
79975         of the old parse_user_spec.  Allow user to omit both user and group,
79976         for compatibility with FreeBSD.
79977         Clone only the user name, not the entire spec.
79978         Do not set *uid, *gid unless entirely successful.
79979         Avoid memory leak in some failing cases.
79980         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79981         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79982         (parse_user_spec): Rewrite to use parse_with_separator.
79983
79984 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79985
79986         * modules/userspec: Don't depend on alloca.
79987
79988 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79989
79990         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79991
79992 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79993
79994         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79995         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79996         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79997
79998 2004-08-16  Simon Josefsson  <jas@extundo.com>
79999
80000         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
80001         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
80002         Add --dry-run for --import.
80003         Let user provided command line parameters override configure.ac
80004         settings.
80005
80006 2004-08-12  Simon Josefsson  <jas@extundo.com>
80007
80008         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
80009         as discussed with Paul Eggert in threads rooted at
80010         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
80011         and
80012         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
80013         Before, the test was empty, and relied on ELIDE_CODE in source
80014         code.)
80015         (gl_PREREQ_GETOPT): New macro.
80016         (gl_GETOPT): Use them.
80017
80018 2004-08-12  Simon Josefsson  <jas@extundo.com>
80019
80020         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
80021         * lib/getopt_.h: Renamed from getopt.h.
80022
80023 2004-08-12  Simon Josefsson  <jas@extundo.com>
80024
80025         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
80026         Change default library name from libfoo to libgnu.
80027         Now, if you have a configure.ac that says:
80028                 gl_SOURCE_BASE(gl)
80029                 gl_M4_BASE(gl/m4)
80030                 gl_MODULES(error getopt etcetera)
80031                 gl_INIT
80032         you can import all you need by running:
80033                 ../gnulib/gnulib-tool --import
80034
80035         * modules/getopt (Files): Rename getopt.h to getopt_.h.
80036         (Makefile.am): Rewrite, use logic from argz.
80037         (Include): Use <getopt.h> instead of "getopt.h".
80038
80039 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80040
80041         * modules/argp (Files): Add m4/unlocked-io.m4.
80042         (Depends-on): Add extensions.
80043
80044 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80045
80046         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
80047         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
80048         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
80049         Check for program_invocation_name, program_invocation_short_name,
80050         flockfile, funlockfile, features.h, _getopt_long_only_r.
80051
80052 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80053
80054         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
80055         its complicated substitute.
80056         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
80057         and program_invocation_name.
80058         (__argp_basename) [!_LIBC]: Remove; the only use was
80059         replaced by its body.
80060         (__argp_short_program_name): Change condition from
80061         !defined __argp_short_program_name to
80062         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
80063         to match argp-namefrob.h.
80064         (__argp_failure): Don't assume strerror_r returns char *.
80065         * lib/argp-parse.c (N_): Define unconditionally.
80066         (argp_default_options): Fill out initializers with 0 to avoid
80067         gcc warnings.
80068
80069 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80070
80071         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
80072         getopt1.c.
80073
80074 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80075
80076         Merge from coreutils.
80077
80078         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
80079
80080         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
80081         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
80082
80083 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80084
80085         Merge from coreutils.
80086
80087         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
80088         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
80089         for Reliant Unix 5.43.
80090
80091         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
80092         (union fooround): Use uintmax_t, not long int.
80093         The rest is a merge from libc:
80094         [defined _LIBC]: Include <shlib-compat.h>.
80095         (_obstack) [defined _LIBC]: Remove after 2.3.4.
80096
80097         * lib/settime.c (settime): Recode to avoid warning with
80098         Sun Forte C 6U2.
80099
80100         * lib/strverscmp.c: Convert to UTF-8.
80101
80102 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80103
80104         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80105         m4/uintmax_t.m4.
80106
80107 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80108
80109         * modules/xalloc-die: New file.
80110         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
80111
80112         * modules/md5 (Files): Add m4/uint32_t.m4.
80113         * modules/sha1: Renamed from modules/sha.
80114         (Files):
80115         Rename lib/sha.h to lib/sha1.h.
80116         Rename lib/sha.c to lib/sha1.c.
80117         Rename m4/sha.m4 to m4/sha1.m4.
80118         (lib_SOURCES): Likewise.
80119         (configure.ac): Rename gl_SHA to gl_SHA1.
80120         (Include): sha.h -> sha1.h.
80121
80122 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80123
80124         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
80125         * m4/sha1.m4: Renamed from sha.m4.
80126         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
80127
80128 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80129
80130         * lib/obstack.h (obstack_empty_p):
80131         Don't assume that chunk->contents is suitably aligned.
80132         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
80133         Likewise. Problem reported by Benno in
80134         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
80135
80136         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
80137         readable.  This could be improved further but it'd take some work.
80138
80139 2004-08-08  Simon Josefsson  <jas@extundo.com>
80140
80141         * modules/xgethostname (Depends-on): Remove exit and error (not
80142         used).
80143
80144         * modules/getpass-gnu: Add getpass.h.
80145         (Depends-on): Add stdbool.
80146         * modules/getpass: Add getpass.h.
80147
80148 2004-08-08  Simon Josefsson  <jas@extundo.com>
80149
80150         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
80151         Check getpass declaration.
80152
80153 2004-08-08  Simon Josefsson  <jas@extundo.com>
80154
80155         * lib/xgethostname.c: Don't include error.h (not used).
80156
80157         * lib/getpass.h: Add.
80158         * lib/getpass.c: Include getpass.h first.
80159
80160 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
80161
80162         * lib/xalloc-die.c: New file.
80163         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
80164         All uses removed.
80165         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
80166         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
80167         xalloc-die.c.
80168         (_, N_, xalloc_die): Move to xalloc-die.c.
80169         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
80170         so that we needn't mess with xalloc_msg_memory_exhausted.
80171
80172         * lib/sha1.h: Renamed from sha.h.
80173         (SHA1_H): Renamed from _SHA_H.
80174         (sha1_ctx): Renamed from sha_ctx.
80175         (sha1_init_ctx): Renamed from sha_init_ctx.
80176         (sha1_process_block): Renamed from sha_process_block.
80177         (sha1_process_bytes): Renamed from sha_process_bytes.
80178         (sha1_finish_ctx): Renamed from sha_finish_ctx.
80179         (sha1_read_ctx): Renamed from sha_read_ctx.
80180         (sha1_stream): Renamed from sha_stream.
80181         (sha1_buffer): Renamed from sha_buffer.
80182         * lib/sha1.c: Likewise; renamed from sha.c.
80183         Do not include <sys/types.h>.
80184         Include <stddef.h> rather than <stdlib.h>.
80185
80186 2004-08-08  Bruno Haible  <bruno@clisp.org>
80187
80188         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
80189         FILESYSTEM_PREFIX_LEN.
80190         * lib/progreloc.c: Likewise.
80191         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
80192
80193 2004-08-06  Simon Josefsson  <jas@extundo.com>
80194
80195         * modules/progname (Depends-on): Don't depend on stdbool.
80196
80197 2004-08-06  Simon Josefsson  <jas@extundo.com>
80198
80199         * modules/getsubopt: New file.
80200         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80201         getsubopt.
80202
80203 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80204
80205         More merge from coreutils.
80206
80207         * m4/utimens.m4, m4/utimecmp.m4: New files.
80208         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
80209         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
80210         prereq.m4, sha.m4: Import changes from coreutils.
80211
80212 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80213
80214         More merge from coreutils.
80215         * modules/raise, modules/readtokens0, modules/utimens:
80216         * modules/utimecmp, module/xnanosleep: New files.
80217         * modules/strftime: Add lib/strftime.h.
80218         Change include from <time.h> to "strftime.h".
80219         * modules/yesno: Add lib/yesno.h.
80220         * modules/backupfile: Remove lib/addext.c.
80221         * modules/euidaccess: Add stat-macros.h.
80222         * modules/canonicalize, modules/euidaccess,
80223         modules/filemode, modules/lchown, modules/makepath,
80224         modules/rmdir, modules/stat: Likewise.
80225
80226 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80227
80228         Merge from tar.
80229         * lib/argp-help.c (make_hol, hol_append): Don't assume that
80230         SIZE_MAX is a valid preprocessor constant.
80231         (__argp_basename): Change from "#ifndef _LIBC"
80232         to "#ifndef __argp_short_program_name", so that
80233         we don't compile these functions for tar.
80234
80235         More merges from coreutils.
80236         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
80237         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
80238         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
80239         * lib/addext.c: Remove; no longer needed.
80240         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
80241         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
80242         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
80243         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
80244         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
80245         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
80246         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
80247         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
80248         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
80249         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80250         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
80251         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
80252         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
80253         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
80254         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
80255         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
80256         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
80257         Import changes from coreutils.
80258
80259 2004-08-05  Simon Josefsson  <jas@extundo.com>
80260
80261         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
80262
80263 2004-08-05  Simon Josefsson  <jas@extundo.com>
80264
80265         * m4/getsubopt.m4: New file.
80266
80267 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80268
80269         Merge from coreutils.
80270
80271         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
80272         * m4/getcwd-path-max.m4: New files.
80273
80274         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
80275         FILESYSTEM_PREFIX_LEN ->
80276         FILE_SYSTEM_PREFIX_LEN.
80277         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
80278         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
80279         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
80280         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
80281
80282         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
80283         prerequisite modules now handle the DOS stuff.
80284         Don't check for unistd.h.
80285
80286 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80287
80288         Merge from coreutils.
80289
80290         * lib/.gdb-history: Remove; this doesn't belong here.
80291
80292         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
80293         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
80294         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
80295         * lib/getcwd.c: New files.
80296
80297         * lib/dirname.h: Include <stdbool.h>.
80298         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
80299         for consistency with POSIX terminology.  All uses changed.
80300         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
80301         (strip_trailing_slashes): Use bool for booleans.
80302         * lib/stripslash.c (strip_trailing_slashes): Likewise.
80303
80304         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
80305         sometimes returns a positive errno value even when it succeeds.
80306         (print_errno_message) [!LIBC]: Fall back on strerror if
80307         __strerror_r fails.
80308
80309         * lib/path-concat.c (mempcpy): Don't define if a system header defines
80310         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
80311         (longest_relative_suffix): New function.
80312         (path_concat): Use it.  Assume first argument is not NULL.
80313         Port to DOS.  Omit redundant separators.
80314         Report an error instead of returning NULL.
80315         Use mempcpy instead of memcpy.
80316         (xpath_concat): Remove: not declared or used.
80317
80318         * lib/same.h: Include <stdbool.h>
80319         (same_name): Return bool, not int.
80320         * lib/same.c (same_name): Likewise.
80321         (errno): Don't declare; we assume C89 or better now.
80322
80323         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
80324         if not already defined.
80325
80326         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
80327         * lib/dup-safer.c (errno): Likewise.
80328
80329 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80330
80331         Merge from coreutils.
80332         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
80333         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
80334         * modules/path-concat: Don't depend on strdup.
80335
80336 2004-08-03  Simon Josefsson  <jas@extundo.com>
80337
80338         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
80339         * lib/progname.h: Don't include stdbool.h.
80340
80341 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80342
80343         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
80344         * MODULES.html.sh (func_all_modules): Remove fatal.
80345
80346 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80347
80348         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
80349
80350 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80351
80352         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
80353         working.
80354
80355 2004-08-02  Simon Josefsson  <jas@extundo.com>
80356
80357         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80358         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80359         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80360
80361 2004-08-01  Simon Josefsson  <jas@extundo.com>
80362
80363         * lib/xgetdomainname.c: Include stdlib.h, for free().
80364
80365 2004-07-19  Bruno Haible  <bruno@clisp.org>
80366
80367         * MODULES.html.sh (func_all_modules): Add dummy.
80368
80369 2004-07-16  Simon Josefsson  <jas@extundo.com>
80370
80371         * modules/dummy: New file.
80372
80373 2004-07-16  Simon Josefsson  <jas@extundo.com>
80374
80375         * lib/dummy.c: New file.
80376
80377 2004-07-16  Bruno Haible  <bruno@clisp.org>
80378
80379         * lib/backupfile.h: Add extern "C" for C++.
80380         * lib/closeout.h: Likewise.
80381         * lib/copy-file.h: Likewise.
80382         * lib/findprog.h: Likewise.
80383         * lib/full-write.h: Likewise.
80384         * lib/pathname.h: Likewise.
80385         * lib/progname.h: Likewise.
80386         * lib/stpcpy.h: Likewise.
80387         * lib/stpncpy.h: Likewise.
80388         * lib/strcase.h: Likewise.
80389         * lib/strstr.h: Likewise.
80390         * lib/xalloc.h: Likewise.
80391
80392         * lib/mbswidth.h: Add extern "C" for C++.
80393         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
80394
80395 2004-07-13  Robert Millan  <robertmh@gnu.org>
80396
80397         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
80398
80399 2004-07-09  Simon Josefsson  <jas@extundo.com>
80400
80401         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
80402         failed without this.)
80403
80404 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80405
80406         * modules/chown (Files): Add lib/fchown-stub.c, since
80407         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
80408
80409 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80410
80411         * lib/fchown-stub.c: New file.
80412
80413 2004-06-24  Jim Meyering  <jim@meyering.net>
80414
80415         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
80416
80417 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80418
80419         * modules/argz: Omit "#include".
80420
80421         * MODULES.html.sh (func_all_modules): Add calloc, to match
80422         2004-06-01 addition of calloc module.
80423
80424 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80425
80426         * m4/argz.m4: New file, which is autoupdated from libtool.
80427
80428 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80429
80430         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
80431         libtool.
80432
80433 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80434
80435         * config/srclist-update: Don't insist on "USA." before the
80436         close-comment, as libtool omits the period and puts the */ on a
80437         separate line.
80438         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
80439         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
80440
80441 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
80442
80443         * modules/argz: New file.
80444         * MODULES.html.sh (func_all_modules): Add argz.
80445
80446 2004-06-12  Jim Meyering  <jim@meyering.net>
80447         and  Paul Eggert  <eggert@cs.ucla.edu>
80448
80449         * modules/hash (Files): Add lib/xalloc.h.
80450         * modules/pipe (Depends-on): Add wait-process.
80451         * modules/stat (Depends-on): Add xalloc.
80452         * modules/userspec (Files): Add lib/userspec.h.
80453         * modules/xstrto
80454
80455         Upgrade from gettext-0.13.
80456         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
80457         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
80458         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
80459
80460 2004-06-10  Jim Meyering  <jim@meyering.net>
80461
80462         * lib/calloc.c: New file.
80463
80464 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80465
80466         * lib/getdate.y (yylex): Allow space between sign and number.
80467         Problem reported by Dan Jacobson.
80468
80469 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80470
80471         Merge from coreutils CVS.
80472
80473         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80474         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80475         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80476         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80477         xstrtol.m4: Fix copyright date and/or serial number.
80478
80479         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80480         See if we need an fchown replacement.
80481         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80482         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80483         and use the replacement function if we detect either defect.
80484
80485         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80486         gl_UTIMECMP.
80487
80488 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80489         and  Jim Meyering  <jim@meyering.net>
80490
80491         Merge from coreutils CVS.
80492
80493         * lib/stat-macros.h: New file, with contents from file-type.h
80494         and coreutils' system.h.
80495         * lib/file-type.c: Include "stat-macros.h".
80496         * lib/file-type.h (file_type): Move all macro definitions to new file,
80497         stat-macros.h.
80498
80499         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80500         Wrap old code with this conditional.
80501         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80502         function that does not dereference symlinks.
80503         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80504
80505         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80506         dependency problems.
80507         (xreadlink): Accept new arg SIZE, for efficiency.
80508         All decls and uses changed.
80509         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80510
80511         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80512         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80513
80514         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80515         sysexits.h.
80516
80517 2004-06-01  Jim Meyering  <jim@meyering.net>
80518
80519         * m4/calloc.m4: New file.
80520
80521 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80522
80523         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80524         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80525         Also, fix a typo in a diagnostic.
80526
80527 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80528
80529         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80530         or AC_FUNC_REALLOC.
80531
80532 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80533
80534         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80535         macros to be defined.
80536         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80537         the allocator returns NULL because the requested size is zero.
80538
80539 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80540
80541         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80542         var.  Add comment explaining why libc still defines it.  This
80543         merges the following patch from glibc:
80544         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80545
80546 2004-05-20  Andreas Schwab  <schwab@suse.de>
80547
80548         * m4/free.m4: Replace free if it not known to work, not the other
80549         way round.
80550
80551 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80552
80553         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80554         present in glibc since revision 1.1 of this file.
80555         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80556         obstack_alignment_mask, obstack_alloc, obstack_base,
80557         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80558         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80559         obstack_grow0, obstack_init, obstack_int_grow,
80560         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80561         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80562         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80563         nonexistent functions.
80564
80565 2004-05-18  Karl Berry  <karl@gnu.org>
80566
80567         * config/srclist.txt: break link for vasnprintf.c.
80568
80569 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80570
80571         Port obstack to the AS/400, where pointers are 16 bytes wide and
80572         you cannot cast an integer to a valid pointer.  This patch is
80573         currently waiting to be integrated into glibc; see
80574         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80575
80576         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80577         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80578         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80579         (struct obstack): temp member is now a union of a pointer and
80580         an integer, instead of an integer.  All integer uses changed.
80581         This does not affect the physical layout of struct obstack,
80582         except on hosts (like the AS/400) where the size or alignment of
80583         void * is greater than that of ptrdiff_t.
80584         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80585         __STDC__)]: Store temporary in pointer member of union, not
80586         integer member.
80587         * lib/obstack.c: Include <stddef.h>, for offsetof.
80588         (struct fooalign): Remove; it doesn't need a name.
80589         (union fooround): Change double to long double, and add void *.
80590         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80591         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80592         not a macro.  Hence the values are always int; so remove all
80593         casts-to-int in uses.
80594
80595 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80596
80597         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80598         we can get this patch merged into glibc.
80599
80600 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80601             Paul Eggert  <eggert@cs.ucla.edu>
80602
80603         * m4/argp: Depend on alloca.
80604
80605 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80606             Paul Eggert  <eggert@cs.ucla.edu>
80607
80608         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80609         freecoding.
80610
80611 2004-05-17  Bruno Haible  <bruno@clisp.org>
80612
80613         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80614         precision that consists of a '.' followed by an empty digit string.
80615         Patch by Tor Lillqvist <tml@iki.fi>.
80616
80617 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80618
80619         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80620         for backward compatibility with older code.  We need our own
80621         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80622         it under some other name, and our alloca.h will define it.
80623
80624 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80625             Derek Price  <derek@ximbiot.com>
80626
80627         * lib/alloca.c: Include <alloca.h>, to get our interface.
80628         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80629         include <alloca.h> first.  Use C89 prototype for alloca; this
80630         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80631         Use #elif for simplicity, since we can assume C89 now.
80632         Don't try to source the system alloca.h since it will not be found
80633         and to prevent recursively including its replacement.
80634         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80635         * lib/regex.c: Likewise.
80636
80637 2004-05-16  Derek Price  <derek@ximbiot.com>
80638             Paul Eggert  <eggert@cs.ucla.edu>
80639
80640         getline cleanup.  This changes the getndelim2 API: both order of
80641         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80642         no delimiter).
80643
80644         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80645         interface does that.
80646         (getline): Always use getdelim, so that we don't have two
80647         copies of this code.
80648         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80649         if available.
80650         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80651         (GETNDELIM2_MAXIMUM): New macro.
80652         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80653         instead of the old practice of delim2==0.  All callers changed.
80654         Return -1 on overflow, instead of returning junk.
80655         Do not set *linesize unless allocation succeeds.
80656         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80657         that we include sys/types.h.
80658         * lib/getnline.h: Likewise.
80659         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80660         (getndelim2): Reorder arguments.
80661         * lib/getnline.c (getnline, getndelim):
80662         Don't discard the NMAX argument.
80663         (getnline): Invoke getndelim, to avoid code duplication.
80664         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80665         of (size_t) -1 by callers of the getnline family.
80666
80667 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80668
80669         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80670         Check for gettimeofday.
80671         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80672         Check for settimeofday, stime.
80673
80674 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80675
80676         * lib/nanosleep.c (suspended): Change its type from int to
80677         sig_atomic_t volatile.
80678         (first_call): Make it private to rpl_nanosleep, and have it
80679         be zero initially as that's a bit faster.
80680         (my_usleep): Round up fractional times instead of truncating them,
80681         as this is the usual meaning for 'sleep'.
80682
80683         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80684         doesn't work.
80685         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80686         (ENOSYS): Define if not defined.
80687         (settime): Fall back on stime if it exists and settimeofday fails.
80688         But don't bother with fallbacks if a method fails with errno == EPERM.
80689
80690 2004-05-11  Jim Meyering  <jim@meyering.net>
80691
80692         Prior to this change, the save_cwd caller required read access to the
80693         current directory on most systems (ones with the fchdir function).
80694
80695         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80696         fails, try write-only, and finally, resort to using xgetcwd.
80697
80698 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80699
80700         * lib/obstack.c, obstack.h: Import changes from libc.
80701
80702 2004-04-28  Bruno Haible  <bruno@clisp.org>
80703
80704         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80705         also implicitly appends .exe to executables.
80706         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80707         accepts Windows pathnames.
80708         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80709         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80710         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80711         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80712         Reported by Derek Robert Price <derek@ximbiot.com>.
80713
80714 2004-04-21  Karl Berry  <karl@gnu.org>
80715
80716         * config/srclist.txt (localcharset.c): break sync.
80717
80718 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80719
80720         * m4/host-os.m4: Add a copyright notice.
80721
80722 2004-04-20  Jim Meyering  <jim@meyering.net>
80723
80724         Change UTILS_ to gl_ in AC_DEFINE'd names.
80725         Change utils_- and jm_-prefixed variables, too.
80726         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80727         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80728         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80729
80730         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80731         Don't emit trailing blanks.
80732         Also rename jm_-prefixed variables to have gl_ prefix.
80733
80734         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80735         Also rename jm_-prefixed variables to have gl_ prefix.
80736
80737         * m4/jm-macros.m4: Reflect the renamings.
80738         * m4/prereq.m4: Likewise.
80739
80740 2004-04-20  Jim Meyering  <jim@meyering.net>
80741
80742         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80743         memory.
80744
80745 2004-04-20  Jim Meyering  <jim@meyering.net>
80746             Bruno Haible  <bruno@clisp.org>
80747
80748         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80749         memory when realloc fails.
80750
80751 2004-04-19  Jim Meyering  <jim@meyering.net>
80752
80753         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80754         now that readutmp.c may call `free (0)'.
80755
80756 2004-04-19  Bruno Haible  <bruno@clisp.org>
80757
80758         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80759         * m4/inttypes_h.m4: Likewise.
80760         * m4/stdint_h.m4: Likewise.
80761         * m4/intmax_t.m4: Likewise.
80762         * m4/uintmax_t.m4: Likewise.
80763
80764 2004-04-18  Jim Meyering  <jim@meyering.net>
80765
80766         * m4/prereq.m4: Don't forbid jm_ prefix.
80767
80768         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80769         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80770         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80771         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80772         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80773         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80774         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80775         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80776         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80777         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80778         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80779         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80780         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80781         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80782         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80783         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80784         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80785         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80786         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80787
80788 2004-04-18  Jim Meyering  <jim@meyering.net>
80789
80790         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80791         failure, don't leak memory and do call END_UTMP_ENT.
80792
80793 2004-04-16  Jim Meyering  <jim@meyering.net>
80794
80795         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80796         coreutils' stat program.
80797         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80798
80799 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80800
80801         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80802         C89.
80803         (CHAR_BIT): Remove, since we assume C89.
80804         Include <stdint.h> if available, as per current Autoconf CVS advice.
80805
80806 2004-03-31  Jim Meyering  <jim@meyering.net>
80807
80808         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80809         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80810         * m4/xalloc.m4: Likewise.
80811
80812 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80813
80814         Merge from coreutils.
80815
80816         * m4/inttostr.m4: New file.
80817         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80818         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80819         Require gl_CLOCK_TIME.
80820         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80821
80822 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80823
80824         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80825         not bool, to be more consistent with Unix conventions.
80826         Suggested by Bruno Haible.
80827
80828         Merge from coreutils.
80829
80830         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80831         * lib/umaxtostr.c: New files.
80832
80833         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80834         the usual <time.h> dance.
80835         (get_date): Change signature to support fractional time stamps.
80836         All callers changed.
80837         * lib/getdate.y: Include "getdate.h" first, as we can now
80838         assume C89 and don't need to worry about 'const'.
80839         Similarly, include "unlocked-io.h" near start, not in middle.
80840         Include <limits.h>.
80841         (textint.value): Use long int rather than int.
80842         (textint.digits): Use size_t rather than int.
80843         (BILLION, LOG10_BILLION): New constants.
80844         (parser_control): New member rel_ns.  Members day_ordinal,
80845         time_zone, month, day, hour, minutes, rel_year, rel_month,
80846         rel_day, rel_hour, rel_minutes, rel_seconds
80847         are now long int, not int.  Member seconds is now struct timespec,
80848         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80849         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80850         not int.
80851         (%union.intval): Now long int, not int.
80852         New member timespec.
80853         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80854         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80855         (spec): Now is a timespec or an item list.
80856         (timespec, items): New nonterminals.
80857         (time, rel, relunit, number, get_date):
80858         Add support for fractional seconds.
80859         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80860         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80861         (to_hour): First arg is now long int, not int.
80862         (to_year): Returns long int, not int.
80863         Don't treat year -70 like 70.
80864         (tm_diff): Returns long int, not int.
80865         (lookup_word): Use bool instead of int when appropriate.
80866         (yylex): Use size_t for count, not int.
80867         Detect overflow when parsing large integer constants.
80868         Add support for fractions.
80869         (get_date): Make pointers 'const' if possible.
80870         Use more-portable code to detect integer overflow.
80871         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80872         Don't use ctime; it's not reliable if the year has >4 digits.
80873
80874         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80875         This is for compatibility with BSD.
80876
80877         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80878         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80879         From coreutils' system.h.
80880
80881         * lib/userspec.c: Don't include "posixver.h".
80882         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80883         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80884         compatible extension.  Simplify code by removing a boolean int
80885         that was always nonzero if a string was nonnull.
80886
80887 2004-03-30  Jim Meyering  <jim@meyering.net>
80888
80889         Merge from coreutils.
80890
80891         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80892         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80893         on some systems one must include <grp.h> before it.
80894         Reported by Christian Krackowizer.
80895
80896 2004-03-30  Jim Meyering  <jim@meyering.net>
80897
80898         Merge from coreutils.
80899
80900         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80901
80902         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80903         an empty input stream.
80904
80905         * lib/readtokens.c: Include <stdbool.h>.
80906         (readtoken): Use `size_t' rather than int/long.
80907         All callers adjusted.
80908         Use `bool' rather than `int' where appropriate.
80909         Use memset rather than an explicit loop.
80910         Use x2nrealloc rather than xrealloc.
80911         Allow the use of `\0' as a delimiter.
80912         (readtokens): Likewise.
80913         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80914
80915 2004-03-30  Jim Meyering  <jim@meyering.net>
80916
80917         * m4/realloc.m4: Remove file, since now it does no more than
80918         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80919         the `configure.ac' section of module/realloc.
80920         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80921
80922 2004-03-30  Bruno Haible  <bruno@clisp.org>
80923
80924         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80925         nonnull.
80926
80927 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80928
80929         Merge changes to getloadavg.c from coreutils and Emacs.
80930
80931         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80932         Define to an expression, not to the empty string.
80933         Include cloexec.h and xalloc.h.
80934         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80935         Use set_cloexec_flag rather than rolling our own.
80936         * lib/cloexec.c, lib/cloexec.h: New files.
80937
80938 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80939
80940         * m4/cloexec.m4: New file.
80941
80942 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80943
80944         * lib/getopt.h: Sync with libc CVS.
80945
80946 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80947             Bruno Haible  <bruno@clisp.org>
80948
80949         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80950         mbswidth.
80951
80952 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80953             Bruno Haible  <bruno@clisp.org>
80954
80955         * lib/mbswidth.h: Include <wchar.h> only if
80956         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80957         <wchar.h>.
80958         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80959
80960 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80961
80962         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80963         Sync with libc CVS.
80964         * lib/getopt_int.h: New file, also synced from libc.
80965
80966 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80967
80968         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80969         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80970         Bring back getopt.c, getopt.h, getopt1.c.
80971
80972 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80973
80974         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80975         All uses changed.  Check for sa_sigaction member; this fixes
80976         a bug first reported by Jason Andrade in
80977         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80978
80979 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80980
80981         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80982         '#if' expressions.  Unlike the code it replaces, it does not
80983         depend on (defined _SC_PAGESIZE).  However, it does depend on
80984         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80985         first reported by Jason Andrade in
80986         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80987
80988 2004-02-25  Simon Josefsson  <jas@extundo.com>
80989
80990         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80991
80992 2004-02-25  Simon Josefsson  <jas@extundo.com>
80993
80994         * lib/strdup.h: New file.
80995         * lib/strdup.c: Include it.
80996         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80997         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80998
80999 2004-02-23  Karl Berry  <karl@gnu.org>
81000
81001         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
81002         (from fencepost.gnu.org:/gd/gnuorg).
81003
81004 2004-02-23  Karl Berry  <karl@gnu.org>
81005
81006         * config/srclistvars.sh (GNUORG) [karl]: redefine.
81007         * config/srclist.txt: add maintain/standards documents.
81008
81009 2004-02-18  Bruno Haible  <bruno@clisp.org>
81010
81011         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
81012         Reported by Derek Robert Price <derek@ximbiot.com>.
81013
81014 2004-02-16  Karl Berry  <karl@gnu.org>
81015
81016         * config/mkinstalldirs, install-sh: update from automake.
81017
81018 2004-02-06  Karl Berry  <karl@gnu.org>
81019
81020         * m4/po.m4: update from gettext 0.14.1.
81021
81022 2004-02-06  Karl Berry  <karl@gnu.org>
81023
81024         * lib/config.charset: update from gettext 0.14.1.
81025
81026 2004-02-05  Paul Eggert  <eggert@twinsun.com>
81027
81028         Add comments and code, prompted by suggestions from Bruno Haible
81029         for sh-quote.
81030         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
81031         describing the enum quoting_style values.
81032         * lib/quotearg.c (quotearg_alloc): New function.
81033         (quotearg_buffer_restyled): Treat lone { and } as special.
81034         Treat = as special.  Work around bug with older shells
81035         that "see" a '\' that is really the 2nd byte of a multibyte char.
81036         Quote empty string with shell_quoting_style.
81037
81038 2004-02-03  Bruno Haible  <bruno@clisp.org>
81039
81040         * m4/pipe.m4: New file, from GNU gettext.
81041
81042 2004-02-03  Bruno Haible  <bruno@clisp.org>
81043
81044         * lib/pipe.h: New file, from GNU gettext.
81045         * lib/pipe.c: New file, from GNU gettext.
81046
81047 2004-01-27  Bruno Haible  <bruno@clisp.org>
81048
81049         * m4/execute.m4: New file, from GNU gettext.
81050
81051 2004-01-27  Bruno Haible  <bruno@clisp.org>
81052
81053         * lib/execute.h: New file, from GNU gettext.
81054         * lib/execute.c: New file, from GNU gettext.
81055         * lib/w32spawn.h: New file, from GNU gettext.
81056
81057 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81058
81059         Merge from diffutils.
81060
81061         * lib/file-type.c (file_type): Add typed memory objects.
81062         * lib/file-type.h (S_TYPEISTMO): New macro.
81063
81064         * lib/c-stack.h (c_stack_action): Remove argv argument.
81065         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
81066         (die): Don't calculate message unless segv_action returns.
81067         (get_stack_location, min_address_from_argv, max_address_from_argv,
81068         volatile stack_base, volatile_stack_size): Remove.
81069         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
81070         that every segmentation violation is a stack overflow.  (Ouch!)
81071         See Debian bug 136249 (still outstanding) for more info about why
81072         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
81073
81074 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81075
81076         Exit-status fix from coreutils.
81077
81078         Use exit_failure consistently in place of EXIT_FAILURE,
81079         so that program exit statuses are consistent on failure.
81080
81081         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
81082         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
81083         * lib/argmatch.h: Comment fix to match the above.
81084         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
81085         Now a macro referring to exit_failure, instead of a separate
81086         variable.  Include "exitfail.h" to get it.
81087         * lib/xstrtol.h: Include "exitfail.h".
81088         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
81089
81090         * lib/long-options.c (parse_long_options): Use prototype
81091         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
81092         for clarity.
81093
81094 2004-01-21  Jim Meyering  <jim@meyering.net>
81095
81096         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
81097         so as not to conflict with a different-sized __mktime_internal
81098         function in GNU libc.
81099         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
81100         Problem building statically-linked `ls' reported by Michael Brunnbauer.
81101
81102 2004-01-20  Karl Berry  <karl@gnu.org>
81103
81104         * config/config.guess: update from config.
81105
81106         * config/srclistvars.sh: GNUWWWLICENSES for karl.
81107
81108 2004-01-20  Bruno Haible  <bruno@clisp.org>
81109
81110         Safer stack allocation.
81111         * lib/setenv.c: Include allocsa.h.
81112         (alloca): Remove fallback definition.
81113         (freea): Remove macro.
81114         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
81115         instead of freea.
81116
81117 2004-01-20  Bruno Haible  <bruno@clisp.org>
81118
81119         * m4/eealloc.m4: New file, from GNU gettext.
81120
81121 2004-01-20  Bruno Haible  <bruno@clisp.org>
81122
81123         * m4/allocsa.m4: New file, from GNU gettext.
81124
81125 2004-01-20  Bruno Haible  <bruno@clisp.org>
81126
81127         * lib/xallocsa.h: New file, from GNU gettext.
81128         * lib/xallocsa.c: New file, from GNU gettext.
81129
81130 2004-01-20  Bruno Haible  <bruno@clisp.org>
81131
81132         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
81133
81134 2004-01-20  Bruno Haible  <bruno@clisp.org>
81135
81136         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
81137         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
81138         specially.
81139
81140 2004-01-20  Bruno Haible  <bruno@clisp.org>
81141
81142         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
81143         patch.
81144
81145 2004-01-20  Bruno Haible  <bruno@clisp.org>
81146
81147         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
81148
81149 2004-01-20  Bruno Haible  <bruno@clisp.org>
81150
81151         * lib/eealloc.h: New file.
81152
81153 2004-01-20  Bruno Haible  <bruno@clisp.org>
81154
81155         * lib/binary-io.h: Avoid warnings on Cygwin.
81156
81157 2004-01-20  Bruno Haible  <bruno@clisp.org>
81158
81159         * lib/allocsa.h: New file, from GNU gettext.
81160         * lib/allocsa.c: New file, from GNU gettext.
81161
81162 2004-01-18  Karl Berry  <karl@gnu.org>
81163
81164         * doc/gpl.texi, doc/lgpl.texi: new files.
81165
81166 2004-01-18  Karl Berry  <karl@gnu.org>
81167
81168         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
81169         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
81170
81171 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81172
81173         Merge from coreutils.
81174
81175         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
81176         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
81177         (gl_DEFAULT_POSIX2_VERSION): Move
81178         the documentation from 'configure' into 'config.hin',
81179         so that 'configure --help' isn't burdened by it and
81180         we don't have to worry about its formatting there.
81181         Reword the documentation so that it's more succinct
81182         and can be run together into a single paragraph.
81183         * m4/same.m4 (gl_SAME): Check for pathconf.
81184
81185 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81186
81187         Merge from coreutils.
81188
81189         * lib/posixver.c: Include posixver.h.
81190
81191         * lib/same.c: Include <stdbool.h>, <limits.h>.
81192         (_POSIX_NAME_MAX): Define if not defined.
81193         (MIN): New macro.
81194         (same_name): If file names are silently truncated, report
81195         that the file names are the same if they are the same after
81196         the silent truncation.
81197
81198         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
81199         conversion function.
81200         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
81201         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
81202         longer needed.
81203
81204 2004-01-15  Jim Meyering  <jim@meyering.net>
81205
81206         Merge from coreutils.
81207
81208         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
81209         if no library is required.
81210         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
81211         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
81212         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
81213         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
81214         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
81215         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
81216         value, $ac_cv_search_crypt, if it's "none required".
81217         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
81218         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
81219         not gl_FUNC_GETLOADAVG.
81220         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
81221         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
81222
81223 2004-01-15  Jim Meyering  <jim@meyering.net>
81224
81225         Merge from coreutils.
81226
81227         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
81228         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
81229         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
81230
81231         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
81232         optional configure-time default.
81233
81234         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81235
81236         * lib/xreadlink.c (xreadlink): Correct outdated comment.
81237
81238 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
81239
81240         Merge from coreutils.
81241
81242         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
81243         value, $ac_cv_search_nanosleep, if it's "none required".
81244
81245 2004-01-14  Paul Eggert  <eggert@twinsun.com>
81246
81247         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
81248         with like-named macro in fnmatch.c.
81249         (EXT): Use an internal constant instead.
81250
81251         Merge fnmatch patches from glibc.
81252         * lib/fnmatch.c (mbsinit): Remove define.
81253         Add libc_hidden_ver (__fnmatch, fnmatch).
81254         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
81255         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
81256
81257 2004-01-14  Karl Berry  <karl@gnu.org>
81258
81259         * config/install-sh: update from automake.
81260
81261 2004-01-13  Karl Berry  <karl@gnu.org>
81262
81263         * config/install-sh: update from automake.
81264
81265 2004-01-09  Karl Berry  <karl@gnu.org>
81266
81267         * config/install-sh: update from automake.
81268
81269 2004-01-05  Karl Berry  <karl@gnu.org>
81270
81271         * config/config.{sub,guess}: update from config.
81272
81273 2003-12-31  Karl Berry  <karl@gnu.org>
81274
81275         * config/depcomp: update from automake.
81276
81277 2003-12-14  Karl Berry  <karl@gnu.org>
81278
81279         * lib/config.charset: update from gettext-runtime.
81280
81281 2003-12-03  Paul Eggert  <eggert@twinsun.com>
81282
81283         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
81284         Bug reported by Alfred M. Szmidt.
81285
81286 2003-12-03  Bruno Haible  <bruno@clisp.org>
81287
81288         * m4/gettext.m4: Upgrade from gettext-0.13.
81289         * m4/po.m4: Upgrade from gettext-0.13.
81290         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
81291         * m4/intmax.m4: New file, from gettext-0.13.
81292         * m4/printf-posix.m4: New file, from gettext-0.13.
81293
81294 2003-11-29  Karl Berry  <karl@gnu.org>
81295
81296         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
81297
81298 2003-11-25  Paul Eggert  <eggert@twinsun.com>
81299             Bruno Haible  <bruno@clisp.org>
81300
81301         * lib/printf-parse.h: Don't include sys/types.h.
81302         (ARG_NONE): New macro.
81303         (char_directive): Change type of *arg_index fields to size_t.
81304         * lib/printf-parse.c: Don't include sys/types.h.
81305         (SSIZE_MAX): Remove macro.
81306         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
81307         Remove unnecessary overflow check.
81308         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
81309         fields.
81310
81311 2003-11-25  Bruno Haible  <bruno@clisp.org>
81312
81313         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
81314
81315 2003-11-25  Bruno Haible  <bruno@clisp.org>
81316
81317         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
81318         gt_TYPE_SSIZE_T.
81319
81320 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81321
81322         * modules/alloca: Remove dependency on xalloc.
81323
81324 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81325
81326         * lib/alloca.c: Remove dependency on xalloc module.
81327         (xalloc_die): Remove.
81328         (memory_full) [!defined emacs]: New macro.
81329         [!defined emacs]: Don't include xalloc.h.
81330         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
81331         address arithmetic overflows.  Change datatypes a bit to avoid
81332         unnecessary casts.
81333
81334 2003-11-22  Jim Meyering  <jim@meyering.net>
81335
81336         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
81337         s/size/size_t/.
81338
81339 2003-11-21  Karl Berry  <karl@gnu.org>
81340
81341         * config/config.{sub,guess}: update from config.
81342
81343 2003-11-18  Karl Berry  <karl@gnu.org>
81344
81345         * config/config.{sub,guess}: update from config.
81346
81347         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
81348
81349 2003-11-17  Paul Eggert  <eggert@twinsun.com>
81350
81351         * README: Mention that S+T cannot overflow if S is the size of
81352         an existing object and T is sufficiently small.
81353
81354 2003-11-17  Jim Meyering  <jim@meyering.net>
81355
81356         On systems without utime and without a utimes function capable of
81357         dealing with a NULL struct utimbuf* argument, this utime replacement
81358         could -- in unusual circumstances -- leak a file descriptor.
81359         * lib/utime.c: Include <unistd.h> and <errno.h>.
81360         (utime_null): Be sure to close `fd' and to preserve errno.
81361         Reported by Geoff Collyer via Arnold Robbins.
81362
81363 2003-11-17  Bruno Haible  <bruno@clisp.org>
81364
81365         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81366         (Depends-on): Add xsize.
81367
81368 2003-11-17  Bruno Haible  <bruno@clisp.org>
81369
81370         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81371
81372 2003-11-17  Bruno Haible  <bruno@clisp.org>
81373
81374         * lib/vasnprintf.c (alloca): Remove fallback definition.
81375         (freea): Remove definition.
81376         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81377         Reported by Paul Eggert.
81378
81379 2003-11-16  Paul Eggert  <eggert@twinsun.com>
81380             Bruno Haible  <bruno@clisp.org>
81381
81382         Protect against address arithmetic overflow.
81383         * lib/printf-args.h: Include stddef.h.
81384         (arguments): Change type of field 'count' to size_t.
81385         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81386         'unsigned int' where appropriate.
81387         * lib/printf-parse.h: Include sys/types.h.
81388         (char_directive): Change type of *arg_index fields to ssize_t.
81389         (char_directives): Change type of fields 'count', max_*_length to
81390         size_t.
81391         * lib/printf-parse.c: Include sys/types.h and xsize.h.
81392         (SSIZE_MAX): Define fallback value.
81393         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
81394         instead of 'int' where appropriate. Check a_allocated, d_allocated
81395         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
81396         * lib/vasnprintf.c: Include xsize.h.
81397         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
81398         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
81399         overflow. Avoid wraparound when converting a width or precision from
81400         decimal to binary.
81401
81402 2003-11-16  Bruno Haible  <bruno@clisp.org>
81403
81404         Update from GNU gettext.
81405         * lib/printf-parse.c: Generalize to it can be compiled for wide
81406         strings.
81407         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
81408         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
81409         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
81410         SNPRINTF): New macros.
81411         Don't include <alloca.h> if the file is used inside libintl.
81412         (local_wcslen): New function, for Solaris 2.5.1.
81413         (VASNPRINTF): Use it instead of wcslen.
81414
81415 2003-11-16  Bruno Haible  <bruno@clisp.org>
81416
81417         * lib/xsize.h (xmax): New function.
81418         (xsum, xsum3, xsum4): Declare as "pure" functions.
81419
81420 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81421
81422         * modules/xalloc (Files): Undo latest change, since xalloc.h
81423         no longer needs SIZE_MAX or PTRDIFF_MAX.
81424
81425 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81426
81427         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
81428         gl_PTRDIFF_MAX.
81429
81430 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81431
81432         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
81433         "return", to pacify some unknown compiler.  Problem reported
81434         by Joerg Schilling.
81435
81436 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81437
81438         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
81439         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
81440         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
81441         heuristic is just as accurate as far as we know, and it removes a
81442         dependency on size_max.m4 and ptrdiff_max.m4.
81443
81444 2003-11-11  Bruno Haible  <bruno@clisp.org>
81445
81446         * modules/xsize (Files): Add m4/size_max.m4.
81447         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
81448
81449 2003-11-11  Bruno Haible  <bruno@clisp.org>
81450
81451         * m4/size_max.m4: New file.
81452         * m4/ptrdiff_max.m4: New file.
81453         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
81454         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
81455         (gl_XALLOC): Invoke it.
81456
81457 2003-11-11  Bruno Haible  <bruno@clisp.org>
81458
81459         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
81460         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
81461         defined.
81462
81463 2003-11-10  Paul Eggert  <eggert@twinsun.com>
81464
81465         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
81466         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
81467         rejected some allocations of exactly SIZE_MAX - 2 bytes.
81468         From Bruno Haible.
81469         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
81470         not (size_t) -1, since it's defined here.
81471
81472 2003-11-09  Karl Berry  <karl@gnu.org>
81473
81474         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81475
81476 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81477
81478         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81479         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81480         Reject sizes of exactly SIZE_MAX bytes.
81481         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81482         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81483
81484 2003-11-05  Bruno Haible  <bruno@clisp.org>
81485
81486         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81487         SIZE_MAX defined in <limits.h> on Solaris.
81488
81489 2003-11-04  Jim Meyering  <jim@meyering.net>
81490
81491         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81492         variable names, rather than @VAR@.
81493         * modules/poll: Likewise.
81494
81495 2003-11-04  Bruno Haible  <bruno@clisp.org>
81496
81497         * modules/xsize: New file.
81498         * modules/linebreak: Depend on xsize.
81499         * MODULES.html.sh (func_all_modules): Add xsize.
81500
81501 2003-11-04  Bruno Haible  <bruno@clisp.org>
81502
81503         * m4/xsize.m4: New file.
81504
81505 2003-11-04  Bruno Haible  <bruno@clisp.org>
81506
81507         * lib/xsize.h: New file.
81508         * lib/linebreak.c: Include xsize.h.
81509         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81510         argument for overflow.
81511         Suggested by Paul Eggert.
81512
81513 2003-11-03  Karl Berry  <karl@gnu.org>
81514
81515         * config/config.{guess,sub}: update from config.
81516
81517 2003-11-03  Jim Meyering  <jim@meyering.net>
81518
81519         * modules/userspec (lib_SOURCES): Add userspec.h.
81520         (Include): Add "userspec.h".
81521         Improve description.
81522
81523 2003-11-03  Jim Meyering  <jim@meyering.net>
81524
81525         * lib/userspec.c: Include "userspec.h".
81526         * lib/userspec.h: New file.
81527
81528 2003-11-03  Bruno Haible  <bruno@clisp.org>
81529
81530         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81531
81532 2003-11-03  Bruno Haible  <bruno@clisp.org>
81533
81534         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81535         available, to avoid (extremely rare) race condition.
81536         Suggested by Paul Eggert.
81537
81538 2003-11-02  Karl Berry  <karl@gnu.org>
81539
81540         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81541
81542 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81543
81544         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81545         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81546         (read_filesystem_list): Set and use me_type_malloced.
81547         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81548         whatever the type happens to be), for brevity and consistency.
81549         Check for size calculation overflow on Alphas running OSF/1.
81550
81551 2003-10-31  Jim Meyering  <jim@meyering.net>
81552
81553         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81554
81555         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81556
81557 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81558             Bruno Haible  <bruno@clisp.org>
81559
81560         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81561         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81562
81563 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81564
81565         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81566         netbsd*-gnu*.  Suggested by Robert Millan.
81567
81568 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81569
81570         * modules/group-member: Depend on stdbool.
81571
81572 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81573
81574         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81575
81576 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81577
81578         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81579         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81580         after the 'gnu' in these cases.  This fixes some bugs in the
81581         previous change, and is based on suggestions by Robert Millan.
81582
81583 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81584
81585         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81586         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81587         no longer needed.
81588         * lib/quotearg.c (quotearg_n_options): Use it.
81589         * lib/group-member.c: Include <stdbool.h>.
81590         (free_group_info): Arg is now const *; don't free arg.
81591         (get_group_info): Now returns bool and accepts struct group_info *,
81592         rather than returning a malloc'ed struct group_info *.
81593         All uses changed.  Check for overflow in internal size calculation.
81594
81595         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81596         rather than xmalloc/xrealloc.
81597         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81598         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81599         conformance bug: the old code used a pointer after freeing the
81600         storage that it addressed.
81601         * lib/hash.c (hash_initialize): Simplify the code by using
81602         xalloc_oversized rather than doing it by hand.
81603         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81604         the buffer preserved.  Use free and xmalloc instead.
81605         * lib/quotearg.c (quotearg_n_options): Likewise.
81606         Use a simpler test for size overflow.  Don't use xalloc_oversized
81607         because unsigned int might be wider than size_t (!); this suggests
81608         that we should switch from unsigned int to size_t for slot numbers.
81609
81610 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81611
81612         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81613         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81614         NetBSD kernels.  Requested by Richard Stallman.
81615
81616 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81617
81618         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81619         to allocate the returned structure.  Do not allocate a subarray,
81620         as x2nrealloc will do that.
81621         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81622         instead of xnrealloc.
81623         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81624
81625 2003-10-27  Bruno Haible  <bruno@clisp.org>
81626
81627         * lib/stdbool_.h: Better support for BeOS.
81628
81629 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81630
81631         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81632         now uses inline.
81633
81634 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81635
81636         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81637         callers that want to do their own size-overflow checking.  Include
81638         <stdbool.h>, since xalloc_oversized returns bool.
81639         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81640         to use xalloc_oversized.
81641
81642         Add two functions x2realloc, x2nrealloc, for programs that grow
81643         arrays dynamically by doubling their sizes.
81644         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81645         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81646         New functions.
81647
81648         Port to C99 semantics for 'inline' of external functions.
81649         Bug reported by Bruno Haible.
81650         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81651         with the old contents of xnmalloc.
81652         (xnmalloc, xmalloc): Use it.
81653         (xnrealloc_inline): New static inline function,
81654         with the old contents of xnrealloc.
81655         (xnrealloc, xrealloc): Use it.
81656
81657         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81658         that.
81659
81660 2003-10-26  Karl Berry  <karl@gnu.org>
81661
81662         * config/srclist.txt (COPYING.DOC): no longer available from
81663         /gd/gnuorg; don't know where the ultimate source is.
81664
81665 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81666
81667         Fix several address-calculation bugs in the hash modules,
81668         plus some minor code cleanup.
81669
81670         * lib/hash.h: Include <stdbool.h>, for bool.
81671         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81672         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81673         hash_get_n_entries, hash_get_max_bucket_length,
81674         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81675         hash_rehash): Use size_t rather than unsigned.
81676         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81677         hash_get_n_buckets_used, hash_get_n_entries,
81678         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81679         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81680         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81681         Likewise.
81682         (SIZE_MAX): Define if not defined.
81683         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81684         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81685         hash_print):
81686         Use const * when possible.
81687         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81688         (check_tuning): Fix bug: if tuning parameters were very close to
81689         0 or 1, rounding errors could have caused subscript violations.
81690         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81691         (hash_initialize): Add 'fail:' label
81692         to free table and return NULL, and use it to simplify code.
81693         Use calloc rather than clearing the storage ourself.
81694         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81695         buffer size calculations.
81696         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81697         Include <stddef.h>, for size_t.
81698         * lib/hash-pjw.c (hash_pjw): Likewise.
81699         Switch to method described by Bruno Haible.
81700         Include <limits.h>, for CHAR_BIT.
81701         (SIZE_BITS): New macro.
81702
81703 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81704
81705         * m4/getline.m4 (AM_FUNC_GETLINE):
81706         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81707         hosts.  Problem reported by Derek Robert Price in
81708         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81709         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81710         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81711
81712 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81713
81714         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81715         ceiling the allocation at NMAX bytes rather than silently
81716         discarding input bytes before NMAX is reached.  This makes
81717         a difference only if NMAX exceeds SIZE_MAX / 2.
81718
81719         * lib/obstack.c: Merge from glibc.
81720         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81721         Add libc_hidden_def (_obstack_newchunk).
81722         (_obstack_free) [! defined _LIBC]: Remove.
81723         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81724         a clone of the function body.
81725         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81726         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81727
81728         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81729         glibc.
81730         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81731         arg to memcpy.
81732
81733         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81734         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81735         Don't use lvalue casts, as GCC plans to remove support for them
81736         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81737         was also present in the non-GCC version, indicating that this
81738         code had always been buggy and had never been widely used.
81739         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81740         Use the fast variant of each macro, rather than copying the
81741         definiens of the fast variant; that way, we'll be more likely to
81742         catch future bugs in the fast variants.
81743
81744 2003-10-20  Bruno Haible  <bruno@clisp.org>
81745
81746         * modules/wait-process: New file.
81747         * MODULES.html.sh (func_all_modules): Add wait-process.
81748
81749 2003-10-20  Bruno Haible  <bruno@clisp.org>
81750
81751         * m4/wait-process.m4: New file.
81752
81753 2003-10-20  Bruno Haible  <bruno@clisp.org>
81754
81755         * lib/wait-process.h: New file, from GNU gettext.
81756         * lib/wait-process.c: New file, from GNU gettext.
81757
81758 2003-10-19  Jim Meyering  <jim@meyering.net>
81759
81760         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81761         HPUX 10.20.
81762
81763 2003-10-18  Karl Berry  <karl@gnu.org>
81764
81765         * config/config.guess: update from config.
81766
81767 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81768
81769         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81770         (getgroups): First arg is int, not size_t.
81771         Don't let 'free' mangle errno.
81772
81773 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81774
81775         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81776
81777 2003-10-16  Karl Berry  <karl@gnu.org>
81778
81779         * config/config.{guess,sub}: update from config.
81780
81781 2003-10-16  Jim Meyering  <jim@meyering.net>
81782
81783         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81784         memcpy.
81785
81786 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81787
81788         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81789         (SIZE_MAX): Remove.
81790         (new_exclude, add_exclude_file): Initial size no longer needs to
81791         be a power of 2.
81792         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81793         our own address arithmetic overflow checking.
81794
81795         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81796         (fnmatch): Do not alloca more than 2000 wide characters;
81797         instead, use malloc for large buffers.
81798         Check for address arithmetic overflow, and return -1
81799         with errno set to ENOMEM in that case.
81800         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81801         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81802         instead, return -1.  Check for address arithmetic overflow.
81803
81804 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81805
81806         Handle invalid suffixes and overflow independently, so that
81807         callers can treat them independently as needed.  Fix some bugs in
81808         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81809         suffix for a human-readable blocksize.  The major caller-visible
81810         change is the addition of a new
81811         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81812         that both overflow and suffix chars were found.
81813
81814         * lib/human.c (humblock): Don't check separately for invalid suffix
81815         char; that is xstrtoumax's job (now that its bug is fixed).
81816         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81817         INTMAX_MAX]: New macros.
81818         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81819         TYPE_MAXIMUM): New macros.
81820         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81821         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81822         if overflow occurs, as it's what __strtol does and it's more useful
81823         in practice.
81824         (__xstrtol): If __strtol reports some error other than ERANGE,
81825         reflect it to the caller as LONGINT_INVALID.  If it reports
81826         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81827         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81828         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81829         value.
81830         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81831         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81832         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81833         [defined UINTMAX_MAX]: New macros.
81834
81835 2003-10-14  Bruno Haible  <bruno@clisp.org>
81836
81837         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81838
81839 2003-10-14  Bruno Haible  <bruno@clisp.org>
81840
81841         * m4/sig_atomic_t: New file, from GNU gettext.
81842         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81843
81844 2003-10-14  Bruno Haible  <bruno@clisp.org>
81845
81846         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81847         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81848         Also use volatile where needed.
81849
81850 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81851
81852         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81853         Change maintainer from Bruno Haible to 'all'.
81854
81855 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81856
81857         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81858
81859 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81860
81861         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81862         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81863         and define in terms of the other primitives.
81864         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81865         (SIZE_MAX): Define if not already defined.
81866         (array_size_overflow): New function.
81867         (xalloc_die): Abort instead of exiting if 'error' returns.
81868         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81869         (xmalloc, xrealloc): Use them.
81870         (xcalloc): Check for address arithmetic overflow.
81871         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81872         a bit faster than strcpy.
81873
81874 2003-10-10  Simon Josefsson  <jas@extundo.com>
81875
81876         * modules/argp (Depends-on): Add restrict and strcase.
81877
81878 2003-10-10  Simon Josefsson  <jas@extundo.com>
81879
81880         * m4/argp.m4: Add AC_C_INLINE.
81881
81882 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81883
81884         Merge getpass from libc, plus a few fixes.
81885
81886         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81887         Include <stdbool.h>.
81888         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81889         __fsetlocking to empty.
81890         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81891         do include <bits/libc-lock.h>.
81892         Do not include <fcntl.h>; not needed.
81893         [_LIBC]: Include <wchar.h>.
81894         (NOTCANCEL_MODE): New macro.
81895         (flockfile, funlockfile) [_LIBC]: New macros.
81896         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81897         [!_LIBC]: New macros.
81898         (call_fclose): New function.
81899         (getpass): Use it.  Save tty stream separately; this simplifies the
81900         code and makes it more reliable if stdin happens to equal stdout.
81901         Invoke __fsetlocking on tty.
81902         Handle thread cancellation if needed.
81903         Namespace cleanup (use __tcgetattr, __getline).
81904         Use bool for Booleans.
81905         [USE_IN_LIBIO]: Handle wide streams.
81906         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81907         stream might go where.
81908
81909         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81910         doesn't have to include <stdio.h> before us.
81911         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81912         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81913         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81914         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81915         if not declared, so that we can use getpass.c code from libc without
81916         rewriting it.
81917         (flockfile, ftrylockfile, funlockfile): New macros.
81918
81919 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81920
81921         * modules/getpass: Depend on stdbool.
81922
81923 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81924
81925         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81926
81927 2003-10-07  Karl Berry  <karl@gnu.org>
81928
81929         * config/config.{guess,sub}: update from config.
81930
81931 2003-10-06  Jim Meyering  <jim@meyering.net>
81932             Bruno Haible  <bruno@clisp.org>
81933
81934         This lets translators provide better translations for the
81935         "Written by ..." part of --version output.
81936         * lib/version-etc.h: Include stdarg.h.
81937         (version_etc_copyright): Declare as readonly.
81938         (version_etc): Make this function variadic with a NULL-terminated list
81939         of author name strings.
81940         (version_etc_va): New declaration.
81941         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81942         (version_etc_copyright): Declare as readonly.
81943         (version_etc_va): New function. Provide a different translatable string
81944         for each possible number of authors < 10. Abbreviate when there are 10
81945         authors or more.
81946         (version_etc): Make this function variadic. Call version_etc_va.
81947         Suggestion from Gary V. Vaughan.
81948
81949         * lib/long-options.h (parse_long_options): Change prototype: the
81950         authors string is moved to the end and becomes variadic.
81951         * lib/long-options.c: Include stdarg.h.
81952         (parse_long_options): Make this function variadic, too.
81953         Call version_etc_va, not version_etc.
81954
81955 2003-10-06  Bruno Haible  <bruno@clisp.org>
81956
81957         * modules/version-etc-2: Remove file.
81958         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81959
81960 2003-10-06  Bruno Haible  <bruno@clisp.org>
81961
81962         * modules/fatal-signal: New file.
81963         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81964
81965 2003-10-06  Bruno Haible  <bruno@clisp.org>
81966
81967         * m4/fatal-signal.m4: New file.
81968         * m4/signalblocking.m4: New file, from GNU gettext.
81969
81970 2003-10-06  Bruno Haible  <bruno@clisp.org>
81971
81972         * lib/version-etc-2.h: Remove file.
81973         * lib/version-etc-2.c: Remove file.
81974
81975 2003-10-06  Bruno Haible  <bruno@clisp.org>
81976
81977         * lib/fatal-signal.h: New file, from GNU gettext.
81978         * lib/fatal-signal.c: New file, from GNU gettext.
81979
81980 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81981
81982         * README: Rework advice for preventing empty .o files.
81983         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81984         not <sys/types.h>.
81985
81986 2003-10-04  Karl Berry  <karl@gnu.org>
81987
81988         * lib/argp*: update from libc.
81989
81990 2003-10-04  Karl Berry  <karl@gnu.org>
81991
81992         * config/config.{guess,sub}: update from config.
81993
81994 2003-10-02  Bruno Haible  <bruno@clisp.org>
81995
81996         * modules/lchown (Include): Add lchown.h.
81997         * modules/time_r (Include): Use "..." syntax.
81998         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81999
82000 2003-10-01  Simon Josefsson  <jas@extundo.com>
82001
82002         * MODULES.html.sh (func_all_modules): Move gethostname from section
82003         'based on' to section 'lacking' POSIX:2001.
82004
82005 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
82006
82007         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
82008         to output mode on the same stream.
82009
82010 2003-09-29  Paul Eggert  <eggert@twinsun.com>
82011
82012         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
82013         Fix arg typo in previous patch.
82014
82015 2003-09-28  Jim Meyering  <jim@meyering.net>
82016
82017         * lib/error.c: Correct cpp indentation.
82018
82019 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82020
82021         * modules/free: New file.
82022
82023 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82024
82025         * m4/free.m4: New file.
82026
82027 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82028
82029         * lib/minmax.h (MIN, MAX)
82030         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
82031         Omit the special code that used __typeof__, since we worry that
82032         it could be more trouble than it's worth.  See:
82033         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
82034         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
82035
82036         * lib/free.c: New file.
82037
82038 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
82039
82040         Trivial fixes to Makefile.am parts of module listings.
82041         * modules/strstr: Append strstr.h to lib_SOURCES.
82042         * modules/strcase: Likewise, for strcase.h.
82043
82044 2003-09-27  Karl Berry  <karl@gnu.org>
82045
82046         * config/mkinstalldirs: update from automake.
82047
82048 2003-09-26  Paul Eggert  <eggert@twinsun.com>
82049
82050         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
82051         (error_tail): Do not loop, reallocating temporary buffer, since
82052         the output cannot contain more wide characters than the input
82053         contains bytes, the size must be big enough already.  This avoids
82054         one potential size overflow calculation.  Check for size overflow
82055         when calculating temporary buffer size.  Free temporary buffer
82056         when done, if it was allocated with malloc; this plugs a memory
82057         leak.  Remove casts from void * to pointers, that are no longer
82058         needed now that we're assuming C89 or better.
82059
82060         Merge error changes from glibc.
82061
82062         * lib/error.c, error.h: Update copyright notice header to match glibc.
82063         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
82064         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
82065         Disable cancellation while printing error.
82066         * lib/error.h: Prepend __ to parameter names.
82067
82068 2003-09-26  Jim Meyering  <jim@meyering.net>
82069
82070         * lib/error.c (error_tail): Move some declarations
82071         into inner scope where the local variables are used.
82072
82073 2003-09-26  Bruno Haible  <bruno@clisp.org>
82074
82075         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
82076         stpncpy().
82077         Don't define stpncpy through config.h; it's now done through stpncpy.h.
82078
82079 2003-09-26  Bruno Haible  <bruno@clisp.org>
82080
82081         * lib/stpncpy.h (gnu_stpncpy): New declaration.
82082         (stpncpy): Define as alias for gnu_stpncpy.
82083         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
82084
82085 2003-09-25  Simon Josefsson  <jas@extundo.com>
82086
82087         * lib/xgetdomainname.h: New file.
82088         * lib/xgetdomainname.c: New file.
82089
82090 2003-09-25  Simon Josefsson  <jas@extundo.com>
82091             Bruno Haible  <bruno@clisp.org>
82092
82093         * modules/getdomainname: New file.
82094         * modules/xgetdomainname: New file.
82095         * MODULES.html.sh (func_all_modules): Add getdomainname,
82096         xgetdomainname.
82097
82098 2003-09-25  Simon Josefsson  <jas@extundo.com>
82099             Bruno Haible  <bruno@clisp.org>
82100
82101         * m4/getdomainname.m4: New file.
82102
82103 2003-09-25  Simon Josefsson  <jas@extundo.com>
82104             Bruno Haible  <bruno@clisp.org>
82105
82106         * lib/getdomainname.h: New file.
82107         * lib/getdomainname.c: New file.
82108
82109 2003-09-25  Karl Berry  <karl@gnu.org>
82110
82111         * lib/argp-fmtstream.c, argp-help.c: update from libc.
82112
82113 2003-09-25  Karl Berry  <karl@gnu.org>
82114
82115         * config/install-sh: update from automake.
82116
82117 2003-09-25  Bruno Haible  <bruno@clisp.org>
82118
82119         * modules/version-etc-2: New file, from modules/version-etc with
82120         modifications.
82121         * MODULES.html.sh (func_all_modules): Add version-etc-2.
82122
82123 2003-09-25  Bruno Haible  <bruno@clisp.org>
82124
82125         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
82126         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
82127
82128 2003-09-24  Simon Josefsson  <jas@extundo.com>
82129
82130         * modules/xgethostname: Add xgethostname.h.
82131
82132 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82133
82134         * lib/linebuffer.c (freebuffer): Don't free the argument, just
82135         the buffer associated with the argument.  Bug reported by
82136         Simon Josefsson.
82137
82138 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82139
82140         * README: Document assumptions that 'int' is at least 32 bits
82141         wide, that integer arithmetic is 2's complement without overflow,
82142         that there are no holes in integer values, that adding sizes of
82143         two nonoverlapping objects can't overflow, and that all-bits-zero
82144         yields scalar zero.  Fix spelling and capitalization typos.
82145
82146 2003-09-19  Karl Berry  <karl@gnu.org>
82147
82148         * lib/argp.h: update from libc.
82149
82150 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82151
82152         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
82153         to avoid spurious warnings like "AC_RUN_IFELSE was called before
82154         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
82155
82156 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82157
82158         * gnulib-tool: Use "test -h", not "test -L", for portability
82159         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
82160         (tags_regexp): Remove, since \| doesn't conform to POSIX.
82161         (sed_extract_prog): Issue s commands one-by-one, rather than
82162         using \| in one s command.
82163
82164 2003-09-16  Paul Eggert  <eggert@twinsun.com>
82165
82166         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
82167         input error, instead of returning NULL the next time we are called
82168         (and therefore losing track of errno).
82169
82170 2003-09-16  Bruno Haible  <bruno@clisp.org>
82171
82172         * gnulib-tool (func_create_testdir): Warn about duplicated
82173         dependencies.
82174
82175 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82176
82177         * modules/argmatch, modules/fatal, modules/obstack,
82178         modules/xalloc, modules/xgethostname: Sort dependencies by
82179         importance, not alphabetically.
82180
82181 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82182
82183         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
82184         fails, so that the caller gets the proper errno.
82185
82186         * lib/readutmp.c (read_utmp): Likewise.
82187         Check for fstat error.  Close stream and free storage
82188         when failing.
82189
82190 2003-09-14  Karl Berry  <karl@gnu.org>
82191
82192         * config/srclist.txt (strdup.c): disable for c89 changes.
82193
82194 2003-09-14  Jim Meyering  <jim@meyering.net>
82195
82196         * lib/getloadavg.c: Correct cpp indentation.
82197         * lib/strdup.c: Likewise.
82198         * lib/vasnprintf.c: Likewise.
82199
82200 2003-09-14  Bruno Haible  <bruno@clisp.org>
82201
82202         * modules/fwriteerror: New file.
82203         * MODULES.html.sh (func_all_modules): Add fwriteerror.
82204
82205 2003-09-14  Bruno Haible  <bruno@clisp.org>
82206
82207         * lib/fwriteerror.h: New file.
82208         * lib/fwriteerror.c: New file.
82209
82210 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82211
82212         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
82213         modules/xgethostname, modules/xalloc: Depend on exit.
82214
82215 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82216
82217         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
82218
82219         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
82220         and AC_MINIX, too, so that their extensions are available.
82221
82222         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
82223         This macro has been superseded by gl_BACKUPFILE.
82224
82225         More patches to assume C89 or better.
82226
82227         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
82228
82229         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
82230         unconditionally.
82231         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
82232         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
82233         Include <string.h>, <stdlib.h> unconditionally.
82234         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
82235         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
82236         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
82237         headers or for string.h.
82238         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
82239         or strtoul.
82240
82241         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
82242         headers.
82243         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
82244         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82245         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
82246         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
82247         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82248         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
82249         memcpy, memset.
82250         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
82251         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
82252         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
82253         strtol.
82254         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
82255         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
82256         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
82257         strtoul.
82258
82259 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82260
82261         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
82262         * lib/obstack.c [!defined _LIBC]: Likewise.
82263         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
82264         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
82265         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
82266
82267         More changes to assume C89 or better.
82268
82269         * lib/error.c (error_tail): Assume vprintf.
82270
82271         * lib/argmatch.c (getenv): Remove decl.
82272         * lib/progreloc.c (get_full_program_name): Define via prototype.
82273         * lib/setenv.c (clearenv): Likewise.
82274         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
82275         needed.
82276         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
82277         (malloc, memcpy): Remove decls.
82278         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
82279         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
82280         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82281         (memcpy): Remove macro.
82282         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
82283         (__P): Remove.  All uses removed.
82284         (PTR): Remove.  All uses changed to void *.
82285         (CHAR_BIT, NULL): Remove.
82286         (spaces, zeros, memset_space, memset_zero)
82287         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
82288         Remove.
82289         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
82290         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
82291         Define with prototype.
82292         Remove now-unnecessary prototype decl.
82293         (extra_args_spec): Assume ANSI C.  All uses changed.
82294         (extra_args_spec_iso): Remove.
82295         (my_strftime, emacs_strftimeu): Define via prototype.
82296         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
82297         unconditionally.
82298         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
82299         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
82300         (strtoul, strtol): Remove decls.
82301         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
82302         LONG_MAX): Remove.
82303         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82304         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
82305         (LOCALE_PARAM_PROTO): New macro.
82306         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
82307         (INTERNAL (strtol), strtol): Define with a prototype.
82308         (PARAMS): Remove.  All uses removed.
82309         * lib/tempname.c: Include <string.h> unconditionally.
82310         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
82311         * lib/xgethostname.c (main): Define with a prototype.
82312         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
82313         Include <stdlib.h> unconditionally.
82314         (calloc, malloc, realloc, free): Remove decls.
82315         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
82316         Include <stdlib.h> unconditionally.  Sort include file names.
82317         (strtod): Remove.
82318         (xstrtod): Define with a prototype.
82319         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
82320         (strtol, strtoul): Remove decls.
82321
82322 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82323
82324         More patches to assume C89 or better.
82325         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
82326         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
82327         string.h, memchr, STDC_HEADERS.
82328
82329 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82330
82331         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
82332         Include <stdlib.h>, <string.h> unconditionally.
82333         Remove now-unnecessary cast to char *.
82334         * lib/strnlen.c: Include <string.h> unconditionally.
82335         * lib/yesno.c (yesno): Define with a prototype.
82336
82337 2003-09-11  Bruno Haible  <bruno@clisp.org>
82338
82339         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
82340
82341 2003-09-10  Jim Meyering  <jim@meyering.net>
82342
82343         * lib/error.c: Correct indentation of cpp directives.
82344
82345 2003-09-10  Bruno Haible  <bruno@clisp.org>
82346
82347         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
82348         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
82349         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
82350         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
82351         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
82352         <stdlib.h> and <string.h> checks.
82353         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
82354         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
82355
82356 2003-09-10  Bruno Haible  <bruno@clisp.org>
82357
82358         * lib/strcspn.c: Include <string.h> unconditionally.
82359         * lib/strpbrk.c: Include <string.h> unconditionally.
82360         * lib/strstr.c: Include <string.h> unconditionally.
82361         * lib/unicodeio.c: Include <string.h> unconditionally.
82362         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82363         * lib/unsetenv.c: Likewise.
82364         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82365         * lib/yesno.c: Include <stdlib.h> unconditionally.
82366         (rpmatch): Add prototype.
82367
82368 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82369
82370         More patches to assume C89 or better.
82371         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82372         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82373         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82374         or for string.h.
82375         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82376         stdlib.h.
82377         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82378         C headers.
82379         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
82380         string.h.
82381         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82382         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82383         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82384         or for string.h.
82385         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82386         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
82387         C headers.
82388         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82389         memcpy.
82390         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82391         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
82392         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
82393         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
82394         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
82395         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
82396         string.h, free.
82397         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
82398         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
82399         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
82400         C headers, or for string.h.
82401         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
82402         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
82403         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
82404         headers, memory.h, stdlib.h, string.h, strings.h.
82405         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
82406         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
82407         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
82408         strchr.
82409         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
82410         headers, memory.h, string.h.
82411         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
82412         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
82413         free.
82414         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
82415         headers.
82416         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
82417         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
82418         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
82419         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
82420         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
82421
82422 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82423
82424         More K&R removal.
82425
82426         * lib/acosl.c (main): Use a prototype.
82427         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
82428         tanl.c: Likewise.
82429
82430         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
82431
82432         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
82433         (getopt, etopt_long, getopt_long_only, _getopt_internal)
82434         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
82435         with a prototype.
82436         * lib/getopt.c (const): Remove macro.
82437         Include <string.h> unconditionally.
82438         (my_index): Remove; all uses changed to strchr.
82439         (strlen): Remove decl.
82440         (exchange): Remove forward decl; no longer needed.
82441         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
82442         Define with prototype.
82443         * lib/getopt1.c (const): Remove macro.
82444         (getopt_long, getopt_long_only, main): Define with prototype.
82445
82446         * lib/getugroups.c: Include <string.h> unconditionally.
82447
82448         * lib/getusershell.c: Include <stdlib.h> unconditionally.
82449         (getusershell, setusershell, endusershell, readname, main):
82450         Define with prototypes.
82451
82452         * lib/group-member.c: Include group-member.h first.
82453         Include <stdlib.h> unconditionally.
82454
82455         * lib/hard-locale.c: Include hard-locale.h first.
82456         Include <stdlib.h>, <string.h> unconditionally.
82457
82458         * lib/hash.c (free, malloc): Remove decls.
82459         Include <stdlib.h> unconditionally.
82460
82461         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
82462         (getenv): Do not declare.
82463
82464         * lib/idcache.c: Include <string.h> unconditionally.
82465
82466         * lib/long-options.c: Include long-options.h first, to test interface.
82467         Include <stdlib.h> unconditionally.
82468
82469         * lib/makepath.c: Include makepath.h first, to test interface.
82470         Include <stdlib.h> and <string.h> unconditionally.
82471
82472         * lib/linebuffer.c: Include <stdlib.h>.
82473         (free): Remove decl.
82474
82475         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82476         stddef.h. rpl_malloc returns void *, not char *.
82477         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82478         prototype.
82479
82480         * lib/md5.h: Include <limits.h> unconditionally.
82481         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82482         (__P): Remove; all uses removed.
82483         * lib/md5.c: Include "md5.h" first.
82484         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82485         md5_buffer, md5_process_bytes, md5_process_block):
82486         Define with prototypes.
82487         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82488         * lib/sha.c: Include "sha.h" first.
82489         Include <stdlib.h>, <string.h> unconditionally.
82490
82491         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82492         * lib/memcmp.c (__ptr_t): Likewise.
82493         * lib/memrchr.c (__ptr_t): Likewise.
82494         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82495         Include <string.h> unconditionally.
82496         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82497         * lib/memchr.c: Include <stdlib.h> unconditionally.
82498         * lib/memchr.c (LONG_MAX): Remove.
82499         * lib/memrchr.c (LONG_MAX): Likewise.
82500         * lib/memchr.c (__memchr): Define via a prototype.
82501         * lib/memrchr.c (__memrchr): Likewise.
82502         * lib/memcmp.c (__P): Remove, and remove all uses.
82503         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82504         Remove forward decls; no longer needed.
82505         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82506         Use types required by C89 in prototype.
82507
82508         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82509         * lib/savedir.c: Likewise.
82510         * lib/mkdir.c (free): Remove decl.
82511         * lib/rmdir.c (rmdir): Define with a prototype.
82512         * lib/savedir.c: Include savedir.h first, to test interface.
82513
82514         * lib/mktime.c (STDC_HEADERS): Remove.
82515         Include <stdlib.h>, <string.h> unconditionally.
82516
82517         * lib/modechange.c: Include <stdlib.h> unconditionally.
82518         (malloc): Remove decl.
82519
82520         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82521         (free): Remove decl.
82522
82523         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82524         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82525         (This type really should be intptr_t, but that's a C99ism.)
82526         (_obstack_memcpy): Remove: all uses changed to memcpy.
82527         Include <string.h> unconditionally.
82528         (struct obstack): Assume __STDC__ for types of members
82529         chunkfun, freefun, extra_arg.
82530         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82531         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82532         obstack_begin, obstack_specify_allocation,
82533         obstack_specify_allocation_with_arg, obstack_chunkfun,
82534         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82535         Remove unprototyped decls and the macros that use them.
82536         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82537         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82538         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82539         (defined __STDC__ && __STDC__)]:
82540         Remove nonprototyped code.
82541         Include <stdlib.h> unconditionally.
82542         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82543         _obstack_allocated_p, _obstack_free, obstack_free,
82544         _obstack_memory_used, print_and_abort):
82545         Define using prototypes.
82546         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82547         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82548         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82549         obstack_next_free, obstack_object_size, obstack_room) [0]:
82550         Remove unused, unprototyped code.
82551
82552         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82553
82554         * lib/physmem.c (physmem_total, physmem_available, main): Define
82555         with prototypes.
82556
82557         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82558         (main): Define with a prototype.
82559
82560         * lib/posixver.c (getenv): Remove decl.
82561
82562         * lib/putenv.c (malloc): Returns void *, not char *.
82563         Include <string.h> unconditionally.
82564         (strchr, memcpy, NULL): Do not define.
82565
82566         * lib/readtokens.c: Include readtokens.h first, to test interface.
82567         Include <stdlib.h>, <string.h> unconditionally.
82568         (init_tokenbuffer): Define with a prototype.
82569
82570         * lib/regex.c (PARAMS): Remove.  All uses removed.
82571         All uses of _RE_ARGS removed, too.
82572         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82573         unconditionally.
82574         (bzero): Assume memset exists.
82575         (memcmp, memcpy, NULL): Remove.
82576         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82577         char, or assignments to local vars of type signed char.
82578         (init_syntax_once, PREFIX(extract_number_and_incr),
82579         PREFIX(print_partial_compiled_pattern),
82580         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82581         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82582         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82583         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82584         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82585         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82586         wcs_compile_range, byte_compile_range, truncate_wchar,
82587         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82588         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82589         count_mbs_length, wcs_re_match_2_internal,
82590         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82591         PREFIX(alt_match_null_string_p),
82592         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82593         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82594         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82595         now-unnecessary declaration, if any.
82596         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82597         regcomp, regexec):
82598         Remove now-unnecessary casts among pointer types.
82599         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82600
82601         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82602         (free): Remove decl.
82603
82604         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82605
82606         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82607         (free): Remove decl.
82608
82609         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82610         * lib/xgetcwd.c: Likewise.
82611
82612         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82613         (free): Remove decl.
82614
82615         * lib/strchrnul.c (strchrnul): Define with a prototype.
82616         Fix bug: c_in was not converted to char before searching.
82617
82618         The following changes are not K&R related:
82619
82620         * lib/group-member.h: Include <sys/types.h>, so that this file is
82621         self-contained.
82622         * lib/makepath.h: Likewise.
82623
82624         * lib/getusershell.c (readname, default_index, line_size, readname):
82625         Use size_t, not int, for sizes.
82626         (readname): If the size overflows, report an error instead of
82627         looping forever.
82628
82629 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82630
82631         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82632         libc.
82633
82634 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82635
82636         * README: New section: portability guidelines.
82637
82638 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82639
82640         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82641         C89 spec.
82642
82643 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82644
82645         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82646
82647 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82648
82649         Assume C89 or better; remove K&R cruft.
82650         A few of these changes were first proposed by Derek Robert Price
82651         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82652
82653         * lib/addext.c: Include <string.h> unconditionally.
82654         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82655         Don't declare getenv or malloc.
82656
82657         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82658         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82659         (NULL): Remove.
82660         (find_stack_direction, alloca): Use prototypes.
82661
82662         * lib/atexit.c (atexit): Define using a prototype.
82663
82664         * lib/basename.c, dirname.c, stripslash.c:
82665         Include <string.h> unconditionally.
82666
82667         * lib/bcopy.c: Include <stddef.h>.
82668         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82669
82670         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82671
82672         * lib/error.h (error, error_at_line, error_print_progname)
82673         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82674         * lib/error.c: Include error.h first, to check interface.
82675         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82676         (VA_START): Remove; all uses changeed to va_start.
82677         (exit, strerror): Remove decls.
82678         (error_print_progname): Prototype uncondionally.
82679         Don't include <errno.h>; no longer needed.
82680         (private_strerror): Remove.
82681         (error_tail): Always define.
82682         (error, error_at_line): Assume C89 or better; always use prototypes.
82683         * lib/fatal.c: Include "fatal.h" first, to test interface.
82684         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82685         (VA_START): Remove; all uses changed to va_start.
82686         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82687         this case.
82688         (exit): Remove decl.
82689         (fatal): Prototype unconditionally.  Assume va_start works.
82690         Abort at end, to pacify gcc.
82691
82692         * lib/euidaccess.c (main): Define with a prototype.
82693
82694         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82695
82696         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82697
82698         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82699         prototypes.
82700         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82701         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82702         (getenv): Remove decl.
82703         (fnmatch): Define using a prototype.
82704         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82705         (FCT): Define using a prototype.
82706
82707         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82708
82709         * lib/gethostname.c: Include <stddef.h>.
82710         (gethostname): Define with prototype.  Length is size_t, not int.
82711
82712 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82713
82714         Assume C89 or better; remove K&R cruft.
82715         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82716         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82717         string.h, getenv, malloc.
82718         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82719         headers.
82720         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82721         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82722         do not check for strerror.
82723         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82724         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82725         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82726         do not check for doprnt or vprintf.
82727         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82728         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82729
82730 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82731
82732         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82733         getversion.c should have been removed then, but was accidentally
82734         preserved.
82735
82736         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82737         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82738
82739 2003-09-08  Karl Berry  <karl@gnu.org>
82740
82741         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82742                 config, forget about prep.
82743
82744         * config/depcomp, missing: update from automake.
82745
82746 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82747
82748         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82749         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82750
82751 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82752
82753         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82754         copy_tm_result.  Bug reported by Simon Josefsson in
82755         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82756
82757 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82758
82759         * m4/time_r.m4: New file.
82760         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82761         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82762         is. Check for timegm declaration.
82763         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82764         Do not check for gmtime_r.
82765         Replace mktime if __mktime_internal does not exist and if mktime
82766         hasn't been replaced already.
82767
82768 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82769
82770         * lib/time_r.c, lib/time_r.h: New files.
82771
82772         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82773         __localtime_r.
82774         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82775         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82776
82777         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82778         __gmtime_r.
82779         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82780         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82781         Include <time_r.h>.
82782
82783         * lib/timegm.c: Switch to glibc implementation, with the following
82784         changes:
82785         [defined HAVE_CONFIG_H]: Include <config.h>.
82786         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82787         (__mktime_internal) [!defined _LIBC]: New decl.
82788         (__gmtime_r) [!defined _LIBC]: New macro and function.
82789         (timegm): Use a prototype, since gnulib assumes C89.
82790         Do not bother declaring tmp to be const, as it's not really usefu.
82791         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82792         (timegm): Declare only if HAVE_DECL_TIMEGM.
82793
82794 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82795
82796         * MODULES.html.sh (func_all_modules): Add time_r.
82797         * modules/time_r: New file.
82798         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82799         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82800
82801 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82802
82803         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82804         Bug reported by Lute Kamstra in
82805         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82806
82807         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82808         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82809         course with correspondingly smaller numbers for tomorrow and
82810         yesterday.  From Tadayoshi Funaba.  Originally installed into
82811         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82812         coreutils merge?).
82813
82814 2003-08-31  Simon Josefsson  <jas@extundo.com>
82815
82816         * modules/timegm: New file.
82817         * MODULES.html.sh (func_all_modules): Add timegm.
82818
82819 2003-08-31  Simon Josefsson  <jas@extundo.com>
82820
82821         * m4/timegm.m4: New file.
82822
82823 2003-08-31  Simon Josefsson  <jas@extundo.com>
82824
82825         * lib/timegm.h: New file.
82826         * lib/timegm.c: New file.  Based on
82827         wget-1.8.2/src/http.c:mktime_from_utc.
82828
82829 2003-08-31  Karl Berry  <karl@gnu.org>
82830
82831         * lib/argp.h: update from libc.
82832
82833 2003-08-28  Bruno Haible  <bruno@clisp.org>
82834
82835         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82836         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82837         followed by '#define fnmatch fnmatch_posix' gives an error.
82838
82839 2003-08-28  Bruno Haible  <bruno@clisp.org>
82840
82841         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82842         warning on QNX, which defines O_BINARY to 000000.
82843
82844 2003-08-27  Jim Meyering  <jim@meyering.net>
82845
82846         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82847         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82848         would fail after 32.  Reported by Danny Levinson.  Details here:
82849         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82850
82851 2003-08-24  Bruno Haible  <bruno@clisp.org>
82852
82853         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82854         MSVC7 <stdio.h> is included later.
82855
82856 2003-08-22  Simon Josefsson  <jas@extundo.com>
82857
82858         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82859
82860 2003-08-20  Karl Berry  <karl@gnu.org>
82861
82862         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82863
82864 2003-08-20  Bruno Haible  <bruno@clisp.org>
82865
82866         * modules/progname: New file.
82867         * MODULES.html.sh (func_all_modules): Add progname.
82868
82869 2003-08-20  Bruno Haible  <bruno@clisp.org>
82870
82871         * lib/progname.h: New file, from GNU gettext.
82872         * lib/progname.c: New file, from GNU gettext.
82873         * lib/progreloc.c: New file, from GNU gettext.
82874
82875 2003-08-19  Jim Meyering  <jim@meyering.net>
82876
82877         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82878         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82879
82880 2003-08-19  Bruno Haible  <bruno@clisp.org>
82881
82882         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82883         more.
82884
82885 2003-08-19  Bruno Haible  <bruno@clisp.org>
82886
82887         * lib/xstrdup.c: Assume <string.h> exists.
82888
82889 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82890
82891         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82892         in makefile rules.
82893
82894 2003-08-18  Jim Meyering  <jim@meyering.net>
82895
82896         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82897         * m4/lib-ld.m4: Likewise.
82898
82899 2003-08-18  Jim Meyering  <jim@meyering.net>
82900
82901         * lib/setenv.h: Indent nested cpp directive.
82902         * lib/vasnprintf.c: Remove trailing blanks.
82903
82904 2003-08-17  Simon Josefsson  <jas@extundo.com>
82905
82906         * modules/xstrndup: New file.
82907         * MODULES.html.sh (func_all_modules): Add xstrndup.
82908
82909 2003-08-17  Simon Josefsson  <jas@extundo.com>
82910
82911         * modules/argp: Fix autoconf macro name. Add more dependencies.
82912
82913 2003-08-17  Simon Josefsson  <jas@extundo.com>
82914
82915         * m4/xstrndup.m4: New file.
82916
82917 2003-08-17  Simon Josefsson  <jas@extundo.com>
82918
82919         * m4/argp.m4: New file.
82920
82921 2003-08-17  Simon Josefsson  <jas@extundo.com>
82922             Bruno Haible  <bruno@clisp.org>
82923
82924         * lib/xstrndup.h: New file.
82925         * lib/xstrndup.c: New file.
82926
82927 2003-08-17  Bruno Haible  <bruno@clisp.org>
82928
82929         * modules/strndup (Files, Include): Add lib/strndup.h.
82930
82931 2003-08-17  Bruno Haible  <bruno@clisp.org>
82932
82933         * modules/euidaccess (Files): Add lib/euidaccess.h.
82934
82935 2003-08-17  Bruno Haible  <bruno@clisp.org>
82936
82937         * lib/strndup.h: New file.
82938
82939 2003-08-17  Bruno Haible  <bruno@clisp.org>
82940
82941         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82942         like AC_GNU_SOURCE.
82943         * modules/extensions (configure.ac): Comment out the invocation of
82944         gl_USE_SYSTEM_EXTENSIONS.
82945
82946 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82947
82948         Merges from coreutils, etc.
82949         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82950         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82951         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82952         fixing a typo.
82953         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82954         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82955
82956 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82957
82958         Document merge from coreutils.
82959         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82960         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82961         * modules/utime: Add m4/utimes-null.m4.
82962
82963 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82964
82965         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82966         space, undoing this 2003-08-12 change:
82967         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82968
82969 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82970
82971         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82972         strtoul.c from libc, undoing this 2003-08-12 change:
82973         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82974
82975 2003-08-16  Jim Meyering  <jim@meyering.net>
82976
82977         Merges from coreutils.
82978         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82979         prefix.  Adjust cache variables similarly.  Create 500 rather than
82980         just 300 files, to exercise bug on Darwin6.5, too.
82981         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82982         $missing_dir.
82983         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82984         AM_SYS_POSIX_TERMIOS.
82985         Reported by mkc@mathdogs.com.
82986         Also change use of $am_cv_sys_posix_termios
82987         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82988         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82989         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82990         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82991         in /proc/mounts until it finds one with matching device number.  This
82992         is unnecessary when the FILE argument *is* a mount point.  No stat call
82993         is necessary in that case.  So, disable the statvfs-testing code on
82994         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82995         as RedHat bug# 84846.
82996         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82997         to 1MB, so as not to render systems with no stack size limit (e.g.,
82998         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82999         Include <unistd.h>.  On some systems,
83000         it is required for the definition of _SC_PAGESIZE.
83001
83002 2003-08-16  Jim Meyering  <jim@meyering.net>
83003
83004         Merge from coreutils.
83005         * lib/xstrtoimax.c: #else #if -> #elif.
83006         * lib/xstrtoumax.c: Likewise.
83007
83008 2003-08-16  Jim Meyering  <jim@meyering.net>
83009
83010         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
83011         * m4/utimes.m4: Removed.
83012         * m4/utimes-null.m4: Renamed from utimes.m4.
83013
83014         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83015         to 1MB, so as not to render systems with no stack size limit (e.g.,
83016         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83017         Include <unistd.h>.  On some systems,
83018         it is required for the definition of _SC_PAGESIZE.
83019
83020 2003-08-16  Jim Meyering  <jim@meyering.net>
83021         and Paul Eggert  <eggert@cs.ucla.edu>
83022
83023         Merges from coreutils, etc.
83024
83025         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
83026         using the latest version from cvs.  This avoids problems with #line
83027         directives using a vendor (Sun) compiler.
83028         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
83029         Don't set GETGROUPS_LIB here; now it's
83030         done via getgroups.m4's wrapper function.
83031         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
83032         rather than just in sh-util/configure.in, so that the
83033         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
83034         same.
83035         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
83036         AC_FUNC_GETLOADAVG where to find getloadavg.c.
83037         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
83038         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
83039         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
83040         Remove code that is now done by the newly-required macros.
83041         Append $(EXEEXT) to DF_PROG.
83042         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
83043         Do not invoke or require the following here,
83044         since prereq.m4 or some gnulib .m4 now does this for us:
83045         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
83046         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
83047         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
83048         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
83049         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
83050         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
83051         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
83052         AC_FUNC_OBSTACK.
83053         Do not replace the following functions, as this is now the job
83054         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
83055         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
83056         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
83057         atexit getpass, strdup, getpagesize.
83058         Replace 'raise'.
83059         Do not check for the following functions, as this is now the job
83060         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
83061         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
83062         setregid.
83063         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
83064         Check for sys/sysctl.h.
83065         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
83066         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
83067         of checking for ssize_t ourselves.
83068
83069         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
83070         Require every macro that gnulib/modules/* suggests for us.
83071         (jm_PREREQ_ADDEXT): New macro.
83072         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
83073         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
83074
83075         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
83076         (gl_PHYSMEM): Use it.
83077         Also check for `table' function.
83078         Check for new headers and functions.
83079         Add check for sys/sysmp.h.
83080         With suggestions from Kaveh Ghazi.
83081         Ignore headers that are present but cannot be compiled.  This
83082         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
83083         C 5.4.
83084
83085 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83086
83087         Document merge from coreutils.
83088         * modules/userspec: Depend on posixver.
83089         * modules/strftime: Depend on tzset.
83090
83091 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83092
83093         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
83094         rather than tab, after '#' in shell-script copyright notices.
83095         Suggested by Bruno Haible.
83096
83097 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83098
83099         * config/srclist-update: Use three spaces, rather than tab, after '#'
83100         in shell-script copyright notices.  Suggested by Bruno Haible.
83101         Remove unnecessary parenthesization in regular expression.
83102
83103 2003-08-15  Jim Meyering  <jim@meyering.net>
83104
83105         Merge from coreutils.
83106         * lib/xgethostname.c: Include <stdlib.h>.
83107         (xghostname): Don't exit for anything other than memory-related
83108         failure; just return NULL.
83109         * lib/userspec.c: Include "posixver.h".
83110         (parse_user_spec): Accept `.' as a separator only
83111         in pre-POSIX-200112 mode.
83112         * lib/strtoimax.c: Use #elif rather than #else #if.
83113         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
83114         Remove function, now that we can rely on a working tzset function.
83115         [!_LIBC]: Ensure that the required autoconf test has been run.
83116         [!defined _NL_CURRENT && HAVE_STRFTIME]:
83117         Use underlying_strftime for %r.
83118         * lib/sha.c: Merge in some clean-up and optimization changes from
83119         glibc.
83120         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
83121         Ensure that it is a multiple of 64.
83122         Rearrange loop exit tests so as to avoid performing an
83123         additional fread after encountering an error or EOF.
83124         * lib/realloc.c: Update copyright date.
83125
83126 2003-08-15  Jim Meyering  <jim@meyering.net>
83127         and Paul Eggert  <eggert@twinsun.com>
83128
83129         Merge from coreutils.
83130         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
83131         member but strut utmpx does not.  Needed for AIX 4.3.3.
83132         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
83133
83134 2003-08-15  Jim Meyering  <jim@meyering.net>
83135         and Paul Eggert  <eggert@cs.ucla.edu>
83136
83137         Merges from coreutils, etc.
83138         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
83139         Require gl_FUNC_TZSET_CLOBBER.
83140         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
83141         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
83142         members.
83143
83144 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83145
83146         Help the merge from coreutils.
83147         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
83148         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
83149         * m4/tzset.m4: Use it too.
83150
83151 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83152
83153         * modules/tzset: New file.
83154
83155 2003-08-14  Jim Meyering  <jim@meyering.net>
83156
83157         Merges from coreutils.
83158         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
83159         variable names, rather than @FNMATCH_H@.
83160         * modules/alloca: Likewise for $(ALLOCA_H).
83161
83162         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
83163         the three copies of the literal target, `fnmatch.h'.
83164         * modules/alloca (alloca.h): Likewise.
83165
83166 2003-08-14  Jim Meyering  <jim@meyering.net>
83167
83168         Merge from coreutils.
83169         * m4/tzset.m4: New file.
83170         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
83171         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
83172         otherwise, AIX 5.1 systems would end up using the latter.
83173         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
83174         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
83175         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
83176         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
83177
83178 2003-08-14  Jim Meyering  <jim@meyering.net>
83179
83180         Merge from coreutils.
83181         * lib/obstack.h: Whitespace changes.
83182         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
83183         and xcalloc return values.
83184         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
83185         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
83186         hang on OSF/1 5.1 for DIR on both local and remote file systems.
83187         Reported by (and fix confirmed by) Nelson H. F. Beebe.
83188         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83189         error from mntctl.
83190         Use mntctl's return value to drive the entry-processing loop, since
83191         we can't rely on the value of the vmt_length member in the last
83192         entry.  On some systems doing so could result in exhausting
83193         virtual memory.  Based in part on a patch from Mike Jetzer.
83194
83195 2003-08-14  Jim Meyering  <jim@meyering.net>
83196         and Paul Eggert  <eggert@twinsun.com>
83197
83198         Merges from coreutils, plus other fixes.
83199         * lib/physmem.c: Merge in portability changes from gcc/libiberty
83200         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
83201         for credits and details.  Thanks to Kaveh Ghazi for helping
83202         to keep these files in sync.
83203         (ARRAY_SIZE): Define it.
83204         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
83205         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
83206         (memcasecmp): Don't assume size_t fits in unsigned int.
83207         Remove casts and duplicate code.
83208         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
83209         (memcpy): Remove definition.
83210         Merge in some clean-up and optimization changes from glibc.
83211         [BLOCKSIZE]: Move definition to top of file.
83212         Ensure that it is a multiple of 64.
83213         Rearrange loop exit tests so as to avoid performing an
83214         additional fread after encountering an error or EOF.
83215         * lib/md5.h (md5_uintptr): Define.
83216         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
83217         return to the initial working directory.  Preserve errno
83218         for caller.
83219         * lib/idcache.c: Include "xalloc.h".
83220         (xmalloc, xrealloc): Remove decls.
83221         (getuser): Remove casts no longer required in C89.
83222         * lib/human.c: Include stdio.h, for sprintf.
83223         * lib/group-member.c: Include "xalloc.h".
83224         (xmalloc, xrealloc): Remove decls.
83225         (get_group_info): Remove casts no longer required in C89.
83226         * lib/getusershell.c (readname): Remove casts no longer required in
83227         C89.
83228         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
83229         * lib/getline.c: Whitespace fix, from coreutils.
83230
83231 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83232
83233         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
83234         Check for isascii.
83235
83236         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83237         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83238         Undo previous (whitespace-only) change.
83239
83240 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83241
83242         * lib/exclude.c: Include <ctype.h>
83243         (IN_CTYPE_DOMAIN): New macro.
83244         (is_space): New fn.
83245         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
83246         and empty lines.
83247
83248         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83249         Undo previous (whitespace-only) change.
83250
83251 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83252
83253         * config/srclist-update: Change update back to the old behavior,
83254         leaving whitespace alone.  Use one 'sed' command rather than a
83255         pipeline.
83256         (fixlicense): Now a variable, not a function.
83257         (remove_trailing_blanks): Remove.
83258         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
83259         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83260         Undo previous (whitespace-only) change.
83261
83262 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83263
83264         Merge from coreutils.
83265         * modules/euidaccess: Add lib_SOURCES, include for new
83266         file euidaccess.h
83267
83268 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83269
83270         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83271         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83272         Normalize leading white space and remove trailing white space.
83273
83274         Merge from coreutils
83275         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
83276
83277         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
83278         0.12.1.  These files are now being upgraded automatically by
83279         ../config/srclist-update.
83280
83281 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83282
83283         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83284         Normalize leading white space and remove trailing white space.
83285         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
83286         notice, as per ../config/srclist-update.
83287
83288         Merge from coreutils.
83289         * lib/euidaccess.h: New file.
83290         * lib/euidaccess.c: Include it.
83291         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
83292         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
83293         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
83294
83295 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83296
83297         * config/srclist-update: Add copyright notice.
83298         (remove_id_lines, remove_trailing_blanks): New constants.
83299         (fixfile): Use them to normalize spacing a bit in copied files.
83300         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83301         Normalize leading white space and remove trailing white space.
83302
83303         * config/texinfo.tex: Sync with texinfo.
83304
83305         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
83306         strtoul.c from libc, to merge coreutils whitespace changes.
83307
83308         * config/srclist.txt: Get the following m4 files from gettext:
83309         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
83310         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
83311         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
83312         wint_t.m4.
83313
83314 2003-08-12  Karl Berry  <karl@gnu.org>
83315
83316         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
83317         been made.
83318
83319 2003-08-11  Paul Eggert  <eggert@twinsun.com>
83320
83321         * modules/gnu-source, m4/gnu-source.m4:
83322         Remove; we're assuming Autoconf 2.54 or later now.
83323         Suggested by Bruno Haible.
83324         * MODULES.html.sh (func_all_modules): Remove gnu-source.
83325
83326 2003-08-11  Bruno Haible  <bruno@clisp.org>
83327
83328         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
83329
83330 2003-08-11  Bruno Haible  <bruno@clisp.org>
83331
83332         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
83333         (vasnprintf): Use it instead of wcslen.
83334
83335 2003-08-11  Bruno Haible  <bruno@clisp.org>
83336
83337         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
83338         value to ensure that _Bool promotes to int. Use #define for _Bool when
83339         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
83340
83341 2003-08-10  Karl Berry  <karl@gnu.org>
83342
83343         * lib/regex.h: update from libc (whitespace fix).
83344
83345 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83346
83347         Merge some files from coreutils.  These changes were
83348         originally made by Jim Meyering.
83349         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
83350         many older Unixes require this.
83351         * lib/alloca.c (alloca): Remove cast to argument of free;
83352         no longer needed in C89.
83353         * lib/alloca_.h, regex.h: Fix white space to match
83354         what GNU indent does.
83355
83356 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83357
83358         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83359         apparently Emacs's Unicode mode got confused before my 2003-08-05
83360         checkin.
83361
83362 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83363
83364         * m4/extensions.m4: New file.
83365         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83366         Require gl_USE_SYSTEM_EXTENSIONS.
83367         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83368         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83369
83370 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83371
83372         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83373         * modules/extensions, modules/gnu-source: New files.
83374         * modules/timespec, modules/unlocked-io: Depend on extensions.
83375
83376 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83377
83378         * modules/restrict: New file.
83379         * MODULES.html.sh (func_all_modules): Add restrict.
83380         * modules/regex: Depend on restrict.
83381
83382 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83383
83384         * m4/restrict.m4: New file.
83385         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83386
83387 2003-08-07  Bruno Haible  <bruno@clisp.org>
83388
83389         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83390         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83391
83392 2003-08-07  Bruno Haible  <bruno@clisp.org>
83393
83394         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
83395         makes the module 'getndelim2' compatible with the module 'getline'.
83396
83397 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83398
83399         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
83400         byte with "\201" to avoid glitches when editing that source file
83401         with multi-gnome-terminal.
83402
83403 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83404
83405         * lib/bumpalloc.h: Remove.
83406
83407 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83408
83409         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
83410         * modules/bumpalloc: Remove.
83411
83412 2003-08-04  Paul Eggert  <eggert@twinsun.com>
83413
83414         * lib/getloadavg.c: Change copyright notice and spacing to conform to
83415         GNU coding style.
83416
83417         Merge from coreutils.
83418         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
83419         1. From glibc.
83420         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
83421         from Karl Berry, implemented by Jim Meyering.
83422         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
83423         from Dmitry V. Levin.
83424         Remove anachronistic cast of xrealloc.
83425         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
83426         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
83427         type. Otherwise, it wouldn't compile with at least /bin/cc on
83428         ymp-cray-unicos9.0.2.X.
83429         Combine two mostly-identical uses of alloca into one.
83430         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
83431
83432 2003-08-04  Dave Love  <d.love@dl.ac.uk>
83433
83434         [From Emacs.]
83435
83436         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
83437         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
83438         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
83439         obsolete NLIST_NAME_UNION.
83440         [__GNU__]: Undef BSD and FSCALE.
83441         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
83442
83443 2003-08-03  Paul Eggert  <eggert@twinsun.com>
83444
83445         * lib/stdbool_.h (_Bool): Make it signed char, instead of
83446         an enum type, so that it's guaranteed to promote to int.  See:
83447         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
83448
83449 2003-08-03  Karl Berry  <karl@gnu.org>
83450
83451         * config/depcomp: update from automake.
83452
83453 2003-07-31  Paul Eggert  <eggert@twinsun.com>
83454
83455         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
83456         (strerror): Don't assume that a printable int fits in 14 bytes.
83457
83458 2003-07-31  Bruno Haible  <bruno@clisp.org>
83459
83460         * modules/getpass-gnu: New file.
83461         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
83462
83463 2003-07-31  Bruno Haible  <bruno@clisp.org>
83464
83465         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
83466
83467 2003-07-24  Karl Berry  <karl@gnu.org>
83468
83469         * config/missing: update from automake.
83470
83471 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83472             Bruno Haible  <bruno@clisp.org>
83473
83474         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83475         * lib/getline.c (getline, getdelim): Likewise.
83476         Remove _GNU_SOURCE define; now it's defined in config.h through
83477         m4/getline.m4.
83478
83479 2003-07-23  Karl Berry  <karl@gnu.org>
83480
83481         * config/config.sub: update from prep.
83482
83483 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83484
83485         * modules/xalloc (Depends-on): Add exitfail.
83486         * modules/xmemcoll: Likewise.
83487
83488 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83489
83490         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83491         over-parenthesization in macros.
83492
83493         Sync with coreutils.
83494
83495         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83496         required by C99.
83497
83498         Use `exit_failure' for xalloc and xmemcoll instead of their own
83499         private exit-failure variables.
83500         * lib/xalloc.h (xalloc_exit_failure): Remove.
83501         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83502         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83503         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83504         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83505         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83506
83507 2003-07-20  Jim Meyering  <jim@meyering.net>
83508
83509         * modules/closeout (Depends-on): Add exitfail.
83510         Suggestion from Bruno Haible.
83511
83512 2003-07-19  Karl Berry  <karl@gnu.org>
83513
83514         * config/config.sub: update from prep.
83515
83516 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83517
83518         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83519         Remove.
83520         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83521         to test that it can stand by itself.  Include "exitfail.h".
83522         Clients should set exit_failure instead.
83523         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83524
83525 2003-07-18  Bruno Haible  <bruno@clisp.org>
83526
83527         * modules/getndelim2: New file.
83528         * modules/getline: Share files with module getndelim2.
83529         * modules/getnline: Depend on getndelim2 instead of sharing files with
83530         it. Add getnline.c to lib_SOURCES.
83531         * MODULES.html.sh (func_all_modules): Add getndelim2.
83532
83533 2003-07-18  Bruno Haible  <bruno@clisp.org>
83534
83535         * m4/getndelim2.m4: New file.
83536         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83537         invoke gl_PREREQ_GETNDELIM2.
83538         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83539         gl_PREREQ_GETNDELIM2.
83540         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83541         gl_GETNDELIM2.
83542
83543 2003-07-18  Bruno Haible  <bruno@clisp.org>
83544
83545         * lib/getndelim2.h: New file.
83546         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83547         getndelim2.h.
83548         (getndelim2): Make non-static. Change return type to ssize_t.
83549         * lib/getline.h: Change argument names.
83550         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83551         * lib/getnline.c: Include getndelim2.h.
83552
83553 2003-07-18  Andreas Schwab  <schwab@suse.de>
83554
83555         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83556
83557 2003-07-17  Karl Berry  <karl@gnu.org>
83558
83559         * config/config.sub: update from prep.
83560
83561 2003-07-17  Bruno Haible  <bruno@clisp.org>
83562
83563         * modules/getnline: New file.
83564         * modules/getline: Add lib/getndelim2.c to source file list.
83565         * MODULES.html.sh (func_all_modules): Add getnline.
83566
83567 2003-07-17  Bruno Haible  <bruno@clisp.org>
83568
83569         * m4/getnline.m4: New file.
83570
83571 2003-07-17  Bruno Haible  <bruno@clisp.org>
83572
83573         * m4/Makefile.am.in: Remove file.
83574         * m4/Makefile.am: Remove file.
83575         * m4/Makefile.in: Remove file.
83576
83577 2003-07-17  Bruno Haible  <bruno@clisp.org>
83578
83579         * lib/getnline.h: New file.
83580         * lib/getnline.c: New file.
83581         * lib/getndelim2.c: New file, extracted from getline.c.
83582         (getndelim2): Renamed from getdelim2, with added nmax argument.
83583         * lib/getline.c: Include getndelim2.c.
83584         (getdelim2): Moved out to getndelim2.c.
83585         (getline, getdelim): Update.
83586
83587 2003-07-17  Bruno Haible  <bruno@clisp.org>
83588
83589         * lib/Makefile.am: Remove file.
83590         * lib/Makefile.in: Remove file.
83591
83592 2003-07-17  Bruno Haible  <bruno@clisp.org>
83593
83594         * configure.in: Remove file.
83595         * Makefile.in: Remove file.
83596
83597 2003-07-17  Bruno Haible  <bruno@clisp.org>
83598
83599         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83600
83601 2003-07-16  Karl Berry  <karl@gnu.org>
83602
83603         * config/srclist-update: was running fixlicense twice, which caused
83604                 texinfo.tex to be nullified for some reason.  Simplify,
83605                 $gplsrc is no longer needed as far as I can see?
83606
83607 2003-07-16  Jim Meyering  <jim@meyering.net>
83608
83609         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83610
83611 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83612
83613         * config/srclist.txt: Get the following files from gettext-runtime/intl
83614         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83615         ref-del.sin.  From Bruno Haible.
83616         * config/srclist-update (fixfile): Change grep pattern again, since the
83617         previous fix didn't work (there was another trailing $).  Use
83618         '[$]' to escape the $s.
83619
83620 2003-07-15  Karl Berry  <karl@gnu.org>
83621
83622         * lib/vasnprintf.c: update from gettext.
83623
83624 2003-07-15  Karl Berry  <karl@gnu.org>
83625
83626         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83627         gets expanded when surrounded by '$'.
83628
83629 2003-07-15  Jim Meyering  <jim@meyering.net>
83630
83631         * modules/save-cwd: Don't depend on error.  From Derek Price.
83632
83633 2003-07-15  Jim Meyering  <jim@meyering.net>
83634
83635         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83636
83637 2003-07-14  Simon Josefsson  <jas@extundo.com>
83638
83639         * modules/mempcpy: New file.
83640         * MODULES.html.sh (func_all_modules): Add mempcpy.
83641
83642 2003-07-14  Simon Josefsson  <jas@extundo.com>
83643
83644         * m4/mempcpy.m4: New file.
83645
83646 2003-07-14  Simon Josefsson  <jas@extundo.com>
83647
83648         * lib/mempcpy.h: New file.
83649         * lib/mempcpy.c: New file.
83650
83651 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83652
83653         * modules/getdate, modules/posixtm: Depend on mktime.
83654
83655 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83656
83657         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83658         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83659         unicodeio.c, unicodeio.h, unlocked-io.h:
83660         Switch from LGPL to GPL.
83661
83662 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83663
83664         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83665         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83666         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83667         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83668         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83669         updated automatically by ../config/srclist-update.  This changes
83670         their license from LPGL to GPL.
83671
83672 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83673
83674         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83675         assumed to refer to the root of the most recent stable gettext version.
83676         * config/srclistvars.sh: Add defaults for eggert.
83677         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83678         Match "This program" as well as "The program".  This is needed
83679         for gettext.
83680
83681 2003-07-14  Jim Meyering  <jim@meyering.net>
83682
83683         Don't emit diagnostics.  Let callers do that.
83684         * lib/save-cwd.c: Don't include "error.h".
83685         (save_cwd): Don't call error.  Ensure that errno is valid
83686         when returning nonzero.
83687
83688         * lib/save-cwd.h (restore_cwd): Update prototype.
83689         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83690         Simplify.  Don't call error upon failure.  Let callers do that.
83691         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83692         when auditing is enabled.  But don't bother updating the #if.
83693
83694 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83695
83696         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83697         it breaks C++ compilation.
83698         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83699
83700 2003-07-10  Simon Josefsson  <jas@extundo.com>
83701
83702         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83703
83704 2003-07-10  Jim Meyering  <jim@meyering.net>
83705
83706         * m4/clock_time.m4: Remove trailing blank.
83707         * m4/intmax_t.m4: Likewise.
83708
83709 2003-07-10  Jim Meyering  <jim@meyering.net>
83710
83711         * lib/vasnprintf.c: Remove trailing blanks.
83712         Make cpp indentation consistent.
83713
83714 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83715
83716         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83717         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83718         Switch from LGPL to GPL.
83719
83720 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83721
83722         * config/srclist.txt: Sort sublists.  Add
83723         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83724         that differ from gnulib for one reason or another; we'd like this list
83725         to be smaller but for now let's document what we have.
83726
83727 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83728
83729         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83730         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83731         and sweeter "eval x=$x".
83732         * config/srclist.txt: Get lib/argp* from glibc.
83733
83734 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83735
83736         * lib/mktime.c: Fix some boundary cases and remove need for floating
83737         point.
83738
83739         Issue a compile-time diagnostic if time_t is floating point, or if
83740         two's complement arithmetic is not in effect, or if arithmetic
83741         right shift does not propagate the sign.  These assumptions were
83742         all in the original code but they weren't checked.
83743
83744         (TIME_T_MIDPOINT, verify): New macros.
83745         (__isleap): Remove; it has integer overflow problems.
83746         (leapyear): New function, without those problems.
83747         (ydhms_tm_diff): Remove; splitting into two parts.
83748         (ydhms_diff): New function, containing the arithmetic part of
83749         the old ydhms_tm_diff function.  Issue a compile-time
83750         diagnostic if we are not using C99 integer division.
83751         Avoid casts when possible.
83752         (guess_time_tm): New function, containing the checking part of
83753         the old ydhms_tm_diff function.  Return the new value, rather than
83754         the difference between it and the old.  Accept a new argument T
83755         so that *T specifies the old value.  Check for overflow in the result.
83756
83757         (__mktime_internal): Use a time_t offset, not a long int offset.
83758         This undoes the 2003-06-04 change, which is no longer needed now
83759         that we have better overflow checking.
83760         (localtime_offset): Likewise.
83761
83762         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83763         and long are 64-bit but int is only 32-bit.
83764         (ydhms_diff): Use long int to store year1 and yday1.
83765         Issue a compile-time diagnostic if long int is not wide enough.
83766
83767         (__mktime_internal): Use long int to store adjusted year and yday.
83768         Use plain C rather than preprocessor commands, if that doesn't
83769         affect efficiency.
83770         Check for overflow (and try to repair) after each probe
83771         rather than checking only at the very end.  This avoids some bugs
83772         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83773         does not equal GMT offset at maximum time).
83774         Use integer to check for overflow rather than floating point; this
83775         is more portable to non-IEEE hosts, and is a tad faster.
83776         When we detect that we are oscillating between two values,
83777         don't check whether tm_isdst has the requested value, since
83778         we already know the answer.  When tm_isdst has the wrong value,
83779         use a different heuristic to find the right one, based on the
83780         extreme values actually observed in practice in tz2003a,
83781         rather than the (overly optimistic) "previous 3 calendar quarters".
83782
83783         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83784         "T const" to accommodate glibc style.
83785         (check_result): Use less-confusing report format.  "long" -> "long int.
83786         (main): Likewise.
83787         Don't loop if the iteration overflows time_t.
83788         Allow a negative step in the iteration.
83789
83790 2003-07-06  Karl Berry  <karl@gnu.org>
83791
83792         * config/depcomp: update from automake.
83793         * config/config.sub: update from prep.
83794
83795 2003-07-03  Karl Berry  <karl@gnu.org>
83796
83797         * config/config.guess: update from prep.
83798
83799 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83800
83801         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83802         xreadlink.c now includes it unconditionally.
83803
83804 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83805
83806         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83807         having it depend on HAVE_SYS_TYPES_H.
83808
83809 2003-07-01  Bruno Haible  <bruno@clisp.org>
83810
83811         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83812         <sys/types.h> should be sufficient.
83813         Reported by Paul Eggert.
83814
83815 2003-06-26  Karl Berry  <karl@gnu.org>
83816
83817         * config/depcomp: update from automake.
83818
83819 2003-06-26  Bruno Haible  <bruno@clisp.org>
83820
83821         * modules/human: Depend on module stdbool.
83822
83823 2003-06-25  Bruno Haible  <bruno@clisp.org>
83824
83825         * modules/readlink: New file.
83826         * modules/xreadlink: Depend on it.
83827         * MODULES.html.sh (func_all_modules): Add readlink.
83828
83829 2003-06-25  Bruno Haible  <bruno@clisp.org>
83830
83831         * m4/readlink.m4: New file.
83832
83833 2003-06-25  Bruno Haible  <bruno@clisp.org>
83834
83835         * lib/readlink.c: New file.
83836
83837 2003-06-22  Karl Berry  <karl@gnu.org>
83838
83839         * config/srclist.txt: update mkinstalldirs from automake.
83840         * config/mkinstalldirs: update.
83841
83842 2003-06-22  Bruno Haible  <bruno@clisp.org>
83843
83844         Portability to mingw32.
83845         * m4/ssize_t.m4: New file, from GNU gettext.
83846         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83847         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83848
83849 2003-06-22  Bruno Haible  <bruno@clisp.org>
83850
83851         * modules/safe-read: Add m4/ssize_t.m4.
83852         * modules/xreadlink: Add m4/ssize_t.m4.
83853
83854 2003-06-20  Bruno Haible  <bruno@clisp.org>
83855
83856         Assume C89, so PARAMS isn't needed.
83857         * lib/unicodeio.h (PARAMS): Remove.
83858         * lib/unicodeio.c: Don't use PARAMS.
83859
83860 2003-06-18  Karl Berry  <karl@gnu.org>
83861
83862         * config/config.{guess,sub}: update from prep.
83863
83864 2003-06-18  Jim Meyering  <jim@meyering.net>
83865
83866         Merge changes from coreutils.
83867         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83868         Remove explicit declarations of xmalloc and realloc.
83869         Include xalloc.h.
83870         (read_utmp): Remove anachronistic cast of xmalloc.
83871
83872 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83873
83874         Assume C89, so PARAMS isn't needed.
83875         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83876         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83877         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83878         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83879         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83880         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83881         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83882         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83883         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83884         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83885         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83886         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83887         no longer needed. Anyway, config.h should always be included before any
83888         other file.
83889
83890 2003-06-11  Simon Josefsson  <jas@extundo.com>
83891
83892         * modules/sysexits: New file.
83893         * MODULES.html.sh (func_all_modules): Add sysexits.
83894
83895 2003-06-11  Simon Josefsson  <jas@extundo.com>
83896
83897         * lib/sysexit_.h: New file.
83898
83899 2003-06-11  Derek Price  <derek@ximbiot.com>
83900
83901         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83902         necessary.
83903
83904 2003-06-11  Bruno Haible  <bruno@clisp.org>
83905
83906         * m4/sysexits.m4: New file.
83907
83908 2003-06-10  Simon Josefsson  <jas@extundo.com>
83909
83910         * lib/argp.h: New file, from glibc.
83911         * lib/argp-ba.c: New file, from glibc.
83912         * lib/argp-eexst.c: New file, from glibc.
83913         * lib/argp-fmtstream.c: New file, from glibc.
83914         * lib/argp-fmtstream.h: New file, from glibc.
83915         * lib/argp-fs-xinl.c: New file, from glibc.
83916         * lib/argp-help.c: New file, from glibc.
83917         * lib/argp-namefrob.h: New file, from glibc.
83918         * lib/argp-parse.c: New file, from glibc.
83919         * lib/argp-pv.c: New file, from glibc.
83920         * lib/argp-pvh.c: New file, from glibc.
83921         * lib/argp-xinl.c: New file, from glibc.
83922
83923 2003-06-10  Simon Josefsson  <jas@extundo.com>
83924
83925         * modules/strchrnul: New file.
83926
83927 2003-06-10  Simon Josefsson  <jas@extundo.com>
83928
83929         * modules/argp: New file.
83930
83931 2003-06-10  Simon Josefsson  <jas@extundo.com>
83932
83933         * m4/strchrnul.m4: New file.
83934
83935 2003-06-10  Simon Josefsson  <jas@extundo.com>
83936
83937         * lib/strchrnul.h: New file.
83938         * lib/strchrnul.c: New file.
83939
83940 2003-06-10  Bruno Haible  <bruno@clisp.org>
83941
83942         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83943
83944 2003-06-07  Karl Berry  <karl@gnu.org>
83945
83946         * config/config.{guess,sub}: update from prep.
83947
83948 2003-06-07  Jim Meyering  <jim@meyering.net>
83949
83950         * modules/strtod: Use $(...) notation, not @...@ for
83951         AC_REPLACE'd variables.
83952         * modules/localcharset: Likewise.
83953
83954 2003-06-07  Jim Meyering  <jim@meyering.net>
83955
83956         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83957         in place of my name in the copyright comment.
83958         Remove definition and uses of __P.
83959
83960         From coreutils.
83961         * lib/stat.c: Don't declare xmalloc explicitly.
83962         Instead, include "xalloc.h".
83963         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83964         xrealloc, and xcalloc return values.
83965         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83966         Improve comment.
83967         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83968
83969 2003-06-07  Bruno Haible  <bruno@clisp.org>
83970
83971         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83972         avoid AC_CONFIG_LINKS.
83973         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83974         fnmatch.h, to avoid AC_CONFIG_LINKS.
83975         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83976
83977 2003-06-07  Bruno Haible  <bruno@clisp.org>
83978
83979         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83980         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83981         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83982         directory.
83983         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83984         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83985         directory.
83986
83987 2003-06-06  Jim Meyering  <jim@meyering.net>
83988
83989         Merge from coreutils.
83990         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83991         Consolidate declarations and initializations of *_base* locals.
83992
83993         Merge from coreutils.
83994         This avoids a core dump on systems without GNU putenv,
83995         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83996         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83997         (unsetenv): New static function, from GNU libc.
83998         (rpl_putenv): Use it.
83999
84000         * lib/modechange.c: Remove trailing blanks.
84001
84002         Merge from coreutils.
84003         * lib/fsusage.c: Remove declaration of statfs.
84004         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
84005
84006         * lib/posixtm.c: Include <stdbool.h> unconditionally.
84007
84008 2003-06-06  Jim Meyering  <jim@meyering.net>
84009
84010         * lib/stdbool_.h: Renamed from stdbool.h.in.
84011
84012 2003-06-06  Jim Meyering  <jim@meyering.net>
84013             Bruno Haible  <bruno@clisp.org>
84014
84015         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
84016         Adjust Makefile.am snippet not to redirect directly to target.
84017         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
84018
84019 2003-06-05  Paul Eggert  <eggert@twinsun.com>
84020
84021         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
84022         mismatch, look in future quarters as well as past.  This fixes a
84023         bug when processing fall-backwards gaps immediately after a long
84024         period of daylight-saving time.
84025
84026         * lib/mktime.c: Assume freestanding C89 or better.
84027         (HAVE_LIMITS_H): Remove.  Assume it's 1.
84028         (__P): Remove; not used.
84029         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
84030         (mktime, not_equal_tm, print_tm, check_result,
84031         main): Use prototypes.  Use const * where appropriate.
84032         (main): Fix typo in testing code that uncovered by above changes.
84033         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
84034
84035 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84036
84037         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
84038         locale.h, localeconv.  This merges changes from coreutils.
84039
84040         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
84041         It can be removed after the next Autoconf is released.
84042         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
84043         needed.
84044
84045 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84046
84047         * lib/mktime.c: Fix Debian bug 177940
84048         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
84049         (localtime_offset): Now long int, not time_t, because we want it
84050         to be guaranteed to be signed.  All uses changed.
84051         (__mktime_internal): If overflow would occur when adding offset,
84052         don't add it.
84053
84054         Merge 'human' changes from coreutils.  Rewrite to support
84055         locale-specific notations like thousands separators.
84056         * lib/human.c: Simplify authorship notice.
84057         Include human.h immediately after config.h.
84058         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
84059         <limits.h>: Do not include, since human.h does.
84060         (SIZE_MAX, UINTMAX_MAX): New macros.
84061         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
84062         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
84063         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
84064         (power_letter): Renamed from suffixes.
84065         (generate_suffix_backwards): Remove.
84066         (adjust_value): Now takes int style (because of human.h changes)
84067         and long double value (for greater precision on some platforms).
84068         (group_number): New function.
84069         (human_readable): Use it.  Use integer options, not enum.
84070         Put the options before the sizes in the arg list.
84071         Support all the new options.
84072         The old human_readable function has been removed;
84073         use inttostr.h instead.
84074         (human_readable, default_block_size, humblock):
84075         Use uintmax_t, not int, for block sizes.
84076         (human_readable_inexact, block_size_types): Remove.
84077         (block_size_opts): New constant.
84078         (human_options): Renamed from human_block_size, with new signature
84079         that allows block sizes up to UINTMAX_MAX.  All callers changed.
84080         * lib/human.h: Add copyright and authorship notice.
84081         Include <limits.h> and <stdbool.h> unconditionally.
84082         (PARAMS): Remove.  All uses removed.
84083         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
84084         (enum human_inexact_style): Remove tag; now a nameless enum.
84085         (human_floor, human_ceiling, human_round_to_even): Now have
84086         values 2, 0, 1 rather than -1, 1, 0.
84087         (human_group_digits, human_suppress_point_zero, human_autoscale,
84088         human_base_1024, human_SI, human_B): New constants.
84089         (human_readable_inexact, human_block_size): Remove.
84090         (human_readable): Size args are now uintmax_t, not int.
84091         (human_options): New decl.
84092
84093         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
84094         unnecessary now that we assume C89 or better.  This change
84095         imported from coreutils.
84096
84097         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84098         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
84099         in the 2003-05-30 sync from glibc.
84100
84101         .h files should stand alone, but we shouldn't include <sys/types.h>
84102         if we can get away with just <stddef.h>.
84103
84104         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
84105         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
84106         rather than <sys/types.h>, as we merely need size_t.
84107         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
84108         to get size_t.
84109         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
84110         Include <stdio.h>, to get FILE.
84111         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
84112         memcasecmp.h has included <stddef.h> and all we need is size_t.
84113         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
84114         our interface, instead of including <sys/types.h>
84115
84116 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84117
84118         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
84119         now, as glibc mktime is buggy on non-glibc systems.
84120
84121 2003-06-03  Karl Berry  <karl@gnu.org>
84122
84123         * config/config.sub: update from prep.
84124
84125 2003-06-02  Paul Eggert  <eggert@twinsun.com>
84126
84127         [from coreutils]
84128         Fix some minor time-related bugs with POSIX time arguments.
84129         Some valid time stamps were being rejected (notably -1, and
84130         time stamps before 1900 on 64-bit hosts).  And some invalid
84131         time stamps were being accepted, e.g. September 31.
84132
84133         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
84134         that we can return (time_t) -1 successfully.
84135         * lib/posixtm.c: Likewise.
84136         [HAVE_STDBOOL_H]: Include <stdbool.h>.
84137         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
84138         (t): Remove static var.
84139         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
84140         of static var.  All uses changed.
84141         (year): Do not reject years before 1900; they can occur with
84142         64-bit time_t.
84143         (posix_time_parse): Do not check for out-of-range components;
84144         that is now the caller's responsibility, since our checks were
84145         only approximations.
84146         (posixtime): Use mktime to check for out-of-range components,
84147         since it knows them exactly.
84148         If mktime returns (time_t) -1, check whether an error actually occurred
84149         by invoking localtime on -1.
84150         (main) [TEST_POSIXTIME]: Check for input data errors, and report
84151         posixtime failures better.
84152         Improve the test data (in comments only).
84153
84154 2003-06-02  Karl Berry  <karl@gnu.org>
84155
84156         * config/mkinstalldirs (version): new variable.
84157         (--version): new option.
84158         (usage): improve message.
84159
84160 2003-05-30  Karl Berry  <karl@gnu.org>
84161
84162         * lib/mktime.c: update from libc.
84163
84164 2003-05-30  Bruno Haible  <bruno@clisp.org>
84165
84166         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
84167         * config/config.rpath: Upgrade to gettext-0.12.1.
84168
84169 2003-05-30  Bruno Haible  <bruno@clisp.org>
84170
84171         * m4/gettext.m4: Upgrade to gettext-0.12.1.
84172         * m4/nls.m4: New file, from gettext-0.12.1.
84173         * m4/po.m4: New file, from gettext-0.12.1.
84174         * m4/progtest.m4: Upgrade to gettext-0.12.1.
84175
84176 2003-05-30  Bruno Haible  <bruno@clisp.org>
84177
84178         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
84179         * lib/localcharset.h: Likewise.
84180         * lib/localcharset.c: Likewise.
84181
84182 2003-05-29  Karl Berry  <karl@gnu.org>
84183
84184         * config/config.rpath: update from gettext.
84185
84186 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84187
84188         Assume the headers required for C89 freestanding compilers.
84189         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
84190         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
84191         * m4/human.m4 (gl_HUMAN): Likewise.
84192         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
84193         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
84194         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84195         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
84196         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84197         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
84198
84199 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84200
84201         Assume the headers required for C89 freestanding compilers.
84202         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
84203         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
84204         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
84205         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
84206         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
84207         define, since <limits.h> is guaranteed to do that.
84208         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
84209         * lib/exclude.c: Include <stdbool.h> unconditionally.
84210         * lib/tempname.c: Include <stddef.h> unconditionally.
84211         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
84212         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
84213         <stddef.h> does that.
84214         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
84215         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
84216         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
84217         needed.
84218         * lib/xstrtol.c: Likewise.
84219         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
84220         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
84221
84222         * lib/addext.c (addext): Use assignment rather than cast, to avoid
84223         warnings on some platforms.
84224
84225         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84226         arbitrarily.
84227
84228 2003-05-26  Jim Meyering  <jim@meyering.net>
84229
84230         Merge in a change from coreutils:
84231         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
84232         that is guaranteed to be `no'.  Use `no_such_member' to indicate
84233         that condition, rather than `-1' which is slightly misleading.
84234         Change the name of the cache variable to have the gl_ prefix.
84235         Prompted by a patch from Richard Dawe for DJGPP.
84236
84237 2003-05-24  Karl Berry  <karl@gnu.org>
84238
84239         * config/config.guess: update from prep.
84240
84241 2003-05-22  Karl Berry  <karl@gnu.org>
84242
84243         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
84244
84245 2003-05-20  Karl Berry  <karl@gnu.org>
84246
84247         * config/config.guess: update from prep.
84248
84249 2003-05-18  Karl Berry  <karl@gnu.org>
84250
84251         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
84252         might actually be set by the user.
84253
84254         * config/depcomp, install-sh, mdate-sh: update from automake.
84255
84256 2003-05-17  Bruno Haible  <bruno@clisp.org>
84257
84258         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
84259         invalid expansion for AC_EGREP_CPP.
84260         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
84261         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
84262         Suggested by Akim Demaille <akim@epita.fr> in
84263         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
84264
84265 2003-05-12  Jim Meyering  <jim@meyering.net>
84266
84267         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
84268         the space-padded-by-default conversion specifiers, %e, %k, %l.
84269
84270 2003-05-12  Bruno Haible  <bruno@clisp.org>
84271
84272         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
84273         the string is longer than 4 KB.
84274
84275 2003-05-11  Karl Berry  <karl@gnu.org>
84276
84277         * config/config.{guess,sub}: update from prep.
84278
84279 2003-05-09  Bruno Haible  <bruno@clisp.org>
84280
84281         * modules/error: Add m4/strerror_r.m4 to file list.
84282
84283 2003-05-03  Bruno Haible  <bruno@clisp.org>
84284
84285         Upgrade to Unicode-4.0.
84286         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
84287         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
84288         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
84289         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
84290         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
84291         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
84292         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
84293         Change width of U+E0100..U+E01EF from 1 to 0.
84294
84295 2003-04-25  Jim Meyering  <jim@meyering.net>
84296
84297         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
84298         of type size_t, not int.
84299
84300 2003-04-25  Bruno Haible  <bruno@clisp.org>
84301
84302         * lib/copy-file.c: Include <stddef.h>, for size_t.
84303
84304 2003-04-21  Paul Eggert  <eggert@twinsun.com>
84305
84306         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
84307         code which expansion is under static control.  Patch imported from
84308         Akim Demaille's patch to Bison; see
84309         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
84310
84311 2003-04-14  Bruno Haible  <bruno@clisp.org>
84312
84313         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
84314
84315 2003-04-11  Jim Meyering  <jim@meyering.net>
84316
84317         Merge changes from Coreutils.
84318
84319         2003-03-22  Jim Meyering  <jim@meyering.net>
84320
84321         * lib/strftime.c (widen): Cast alloca return value to proper type.
84322
84323         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
84324
84325         From GNU libc.
84326         * lib/strftime.c (my_strftime): Handle very large width
84327         specifications for numeric values correctly.  Improve checks for
84328         overflow.
84329
84330         2003-01-19  Jim Meyering  <jim@meyering.net>
84331
84332         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
84333         definitions.
84334         (nl_get_alt_digit) [! defined my_strftime]: Define.
84335         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
84336         _nl_get_alt_digit and _nl_get_walt_digit.
84337
84338         * lib/strftime.c (my_strftime): Merge in locale-related changes from
84339         libc. These changes have no effect outside of _LIBC.
84340
84341 2003-04-10  Bruno Haible  <bruno@clisp.org>
84342
84343         * modules/findprog: New file.
84344         * MODULES.html.sh (func_all_modules): Add it.
84345
84346 2003-04-10  Bruno Haible  <bruno@clisp.org>
84347
84348         * m4/findprog.m4: New file.
84349         * m4/eaccess.m4: New file.
84350
84351 2003-04-10  Bruno Haible  <bruno@clisp.org>
84352
84353         * lib/findprog.h: New file, from GNU gettext.
84354         * lib/findprog.c: New file, from GNU gettext.
84355
84356 2003-04-05  Jim Meyering  <jim@meyering.net>
84357
84358         Merge changes from Coreutils.
84359
84360         * lib/exclude.h (PARAMS): Remove definition and uses.
84361         * lib/exclude.c: Remove uses of `PARAMS'.
84362
84363         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84364         Add test-cases for DOS filenames. Declare program_name.
84365         (main): Set up program_name.  Patch by Rich Dawe.
84366
84367         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84368         error from mntctl.
84369         Use mntctl's return value to drive the entry-processing loop, since
84370         we can't rely on the value of the vmt_length member in the last
84371         entry.  On some systems doing so could result in exhausting
84372         virtual memory.  Based in part on a patch from Mike Jetzer.
84373
84374 2003-04-04  Bruno Haible  <bruno@clisp.org>
84375
84376         * modules/linebreak: New file.
84377         * MODULES.html.sh (func_all_modules): Add it.
84378
84379 2003-04-04  Bruno Haible  <bruno@clisp.org>
84380
84381         * m4/linebreak.m4: New file.
84382
84383 2003-04-04  Bruno Haible  <bruno@clisp.org>
84384
84385         * lib/linebreak.h: New file, from GNU gettext.
84386         * lib/linebreak.c: New file, from GNU gettext with slight
84387         modifications.
84388         * lib/lbrkprop.h: New file, from GNU gettext.
84389
84390 2003-04-03  Bruno Haible  <bruno@clisp.org>
84391
84392         * modules/utf8-ucs4: New file.
84393         * modules/utf16-ucs4: New file.
84394         * modules/ucs4-utf8: New file.
84395         * modules/ucs4-utf16: New file.
84396         * MODULES.html.sh (func_all_modules): Add them.
84397
84398 2003-04-03  Bruno Haible  <bruno@clisp.org>
84399
84400         * m4/utf-ucs4.m4: New file.
84401         * m4/ucs4-utf.m4: New file.
84402
84403 2003-04-03  Bruno Haible  <bruno@clisp.org>
84404
84405         * lib/utf8-ucs4.h: New file, from GNU gettext.
84406         * lib/utf16-ucs4.h: New file, from GNU gettext.
84407         * lib/ucs4-utf8.h: New file, from GNU gettext.
84408         * lib/ucs4-utf16.h: New file, from GNU gettext.
84409
84410 2003-04-02  Bruno Haible  <bruno@clisp.org>
84411
84412         * modules/binary-io: New file.
84413         * MODULES.html.sh (func_all_modules): Add it.
84414
84415 2003-04-02  Bruno Haible  <bruno@clisp.org>
84416
84417         * lib/binary-io.h: New file, from GNU gettext.
84418
84419 2003-04-01  Bruno Haible  <bruno@clisp.org>
84420
84421         * modules/pathname: New file.
84422         * MODULES.html.sh (func_all_modules): Add it.
84423
84424 2003-04-01  Bruno Haible  <bruno@clisp.org>
84425
84426         * lib/pathname.h: New file, from GNU gettext.
84427         * lib/concatpath.c: New file, from GNU gettext.
84428
84429 2003-03-30  Bruno Haible  <bruno@clisp.org>
84430
84431         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
84432
84433 2003-03-30  Bruno Haible  <bruno@clisp.org>
84434
84435         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
84436         function chown() doesn't exist.
84437
84438 2003-03-28  Bruno Haible  <bruno@clisp.org>
84439
84440         * modules/copy-file: New file.
84441         * MODULES.html.sh (func_all_modules): Add it.
84442
84443 2003-03-28  Bruno Haible  <bruno@clisp.org>
84444
84445         * m4/copy-file.m4: New file.
84446
84447 2003-03-28  Bruno Haible  <bruno@clisp.org>
84448
84449         * lib/copy-file.h: New file, from GNU gettext.
84450         * lib/copy-file.c: New file, from GNU gettext.
84451
84452 2003-03-18  Jim Meyering  <jim@meyering.net>
84453
84454         * lib/quote.c (quote_n): Fix typo in comment.
84455
84456 2003-03-18  Bruno Haible  <bruno@clisp.org>
84457
84458         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
84459         checking.
84460         * m4/onceonly_2_57.m4: Likewise.
84461
84462 2003-03-17  Bruno Haible  <bruno@clisp.org>
84463
84464         * m4/onceonly.m4: Require autoconf 2.54 or newer.
84465         (m4_quote): Remove macro.
84466         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
84467
84468 2003-03-14  Jim Meyering  <jim@meyering.net>
84469
84470         Merge changes from Coreutils.
84471         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84472         to be const, in order to avoid warnings.
84473         (obstack_room): Likewise.
84474         (obstack_empty_p): Likewise.
84475
84476 2003-03-14  Bruno Haible  <bruno@clisp.org>
84477
84478         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84479         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84480
84481 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84482
84483         Merge changes from Bison.
84484         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84485         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84486         when compiling Bison 1.875's `bitset bset = obstack_alloc
84487         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84488         * lib/hash.c: Include <stdbool.h> unconditionally.
84489
84490 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84491
84492         * m4/onceonly.m4 (m4_quote): New macro.
84493         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84494         Quote AC_FOREACH variable-expansions properly.
84495
84496 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84497
84498         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84499
84500 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84501
84502         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84503         Reported by Bruce Becker; see:
84504         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84505
84506 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84507             Bruno Haible  <bruno@clisp.org>
84508
84509         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84510         Reported by John Hughes, see
84511         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84512
84513 2003-02-20  Bruno Haible  <bruno@clisp.org>
84514
84515         * MODULES.html.sh (func_all_modules): Add poll.
84516
84517 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84518
84519         * modules/poll: New file.
84520
84521 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84522
84523         * lib/poll_.h: New file.
84524         * lib/poll.c: New file.
84525
84526 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84527
84528         * m4/poll.m4: New file.
84529
84530 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84531
84532         * modules/mathl: New file.
84533
84534 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84535
84536         * lib/mathl.h: New file.
84537         * lib/acosl.c: New file.
84538         * lib/asinl.c: New file.
84539         * lib/atanl.c: New file.
84540         * lib/ceill.c: New file.
84541         * lib/cosl.c: New file.
84542         * lib/expl.c: New file.
84543         * lib/floorl.c: New file.
84544         * lib/frexpl.c: New file.
84545         * lib/ldexpl.c: New file.
84546         * lib/logl.c: New file.
84547         * lib/sincosl.c: New file.
84548         * lib/sinl.c: New file.
84549         * lib/sqrtl.c: New file.
84550         * lib/tanl.c: New file.
84551         * lib/trigl.c: New file.
84552         * lib/trigl.h: New file.
84553
84554 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84555
84556         * m4/mathl.m4: New file.
84557
84558 2003-02-18  Bruno Haible  <bruno@clisp.org>
84559
84560         * MODULES.html.sh (func_all_modules): Add mathl.
84561
84562 2003-02-17  Bruno Haible  <bruno@clisp.org>
84563
84564         * modules/mkdtemp: New module.
84565         * MODULES.html.sh (func_all_modules): Add it.
84566
84567 2003-02-17  Bruno Haible  <bruno@clisp.org>
84568
84569         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84570
84571 2003-02-17  Bruno Haible  <bruno@clisp.org>
84572
84573         * lib/mkdtemp.h: New file, from GNU gettext.
84574         * lib/mkdtemp.c: New file, from GNU gettext.
84575
84576 2003-02-02  Jim Meyering  <jim@meyering.net>
84577
84578         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84579         e.g. glibc-2.2.93.
84580
84581 2003-01-31  Bruno Haible  <bruno@clisp.org>
84582
84583         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84584         'rpl_rename'.
84585         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84586         'rpl_strnlen'.
84587         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84588         'rpl_strtod'.
84589         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84590         'rpl_utime'.
84591
84592 2003-01-31  Bruno Haible  <bruno@clisp.org>
84593
84594         * lib/rename.c: #undef rename before defining rpl_rename.
84595         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84596
84597 2003-01-30  Bruno Haible  <bruno@clisp.org>
84598
84599         * modules/vasnprintf, modules/vasprintf: New modules.
84600         * MODULES.html.sh (func_all_modules): Add them.
84601
84602 2003-01-30  Bruno Haible  <bruno@clisp.org>
84603
84604         * m4/signed.m4: New file, from GNU gettext.
84605         * m4/longdouble.m4: New file, from GNU gettext.
84606         * m4/wchar_t.m4: New file, from GNU gettext.
84607         * m4/wint_t.m4: New file, from GNU gettext.
84608         * m4/vasnprintf.m4: New file.
84609         * m4/vasprintf.m4: New file.
84610
84611 2003-01-30  Bruno Haible  <bruno@clisp.org>
84612
84613         * lib/printf-args.h: New file, from GNU gettext.
84614         * lib/printf-args.c: New file, from GNU gettext.
84615         * lib/printf-parse.h: New file, from GNU gettext.
84616         * lib/printf-parse.c: New file, from GNU gettext.
84617         * lib/vasnprintf.h: New file, from GNU gettext.
84618         * lib/vasnprintf.c: New file, from GNU gettext.
84619         * lib/asnprintf.c: New file, from GNU gettext.
84620         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84621         * lib/vasprintf.c: New file, from GNU gettext.
84622         * lib/asprintf.c: New file, from GNU gettext.
84623
84624 2003-01-29  Bruno Haible  <bruno@clisp.org>
84625
84626         * modules/stpncpy: New module.
84627         * MODULES.html.sh (func_all_modules): Add it.
84628
84629 2003-01-29  Bruno Haible  <bruno@clisp.org>
84630
84631         * m4/stpncpy.m4: New file.
84632
84633 2003-01-29  Bruno Haible  <bruno@clisp.org>
84634
84635         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84636         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84637
84638 2003-01-28  Bruno Haible  <bruno@clisp.org>
84639
84640         * modules/c-ctype: New module.
84641         * MODULES.html.sh (func_all_modules): Add it.
84642
84643 2003-01-28  Bruno Haible  <bruno@clisp.org>
84644
84645         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84646         Paul Eggert.
84647         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84648         Paul Eggert.
84649
84650 2003-01-27  Bruno Haible  <bruno@clisp.org>
84651
84652         * modules/xsetenv: New module.
84653         * MODULES.html.sh (func_all_modules): Add it.
84654
84655 2003-01-27  Bruno Haible  <bruno@clisp.org>
84656
84657         * lib/xsetenv.h: New file, from GNU gettext.
84658         * lib/xsetenv.c: New file, from GNU gettext.
84659
84660 2003-01-23  Jim Meyering  <jim@meyering.net>
84661
84662         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84663         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84664
84665 2003-01-23  Bruno Haible  <bruno@clisp.org>
84666
84667         * modules/minmax: New module.
84668         * MODULES.html.sh (func_all_modules): Add it.
84669
84670 2003-01-23  Bruno Haible  <bruno@clisp.org>
84671
84672         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84673         Eggert.
84674
84675 2003-01-22  Bruno Haible  <bruno@clisp.org>
84676
84677         * modules/exit: New module.
84678         * MODULES.html.sh (func_all_modules): Add it.
84679
84680 2003-01-22  Bruno Haible  <bruno@clisp.org>
84681
84682         * lib/exit.h: New file, from GNU gettext.
84683
84684 2003-01-19  Bruno Haible  <bruno@clisp.org>
84685
84686         * gnulib-tool: Recognize option --extract-maintainer.
84687         (func_get_maintainer): New function.
84688         * modules/*: Add Maintainer entry.
84689
84690 2003-01-16  Jim Meyering  <jim@meyering.net>
84691
84692         * m4/regex.m4: The `regex' struct is both input and output.
84693         Initialize it before each use.  Patch by Tim Waugh.
84694
84695 2003-01-16  Bruno Haible  <bruno@clisp.org>
84696
84697         * MODULES.html.sh: Add a table of contents. Add the module name as
84698         leftmost column. Add hyperlinks.
84699
84700 2003-01-15  Bruno Haible  <bruno@clisp.org>
84701
84702         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84703
84704 2003-01-15  Bruno Haible  <bruno@clisp.org>
84705
84706         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84707         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84708         suffix.
84709
84710 2003-01-15  Bruno Haible  <bruno@clisp.org>
84711
84712         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84713
84714 2003-01-15  Bruno Haible  <bruno@clisp.org>
84715
84716         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84717         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84718
84719 2003-01-14  Jim Meyering  <jim@meyering.net>
84720
84721         * lib/same.c (same_name): Tweak a comment.
84722
84723 2003-01-14  Bruno Haible  <bruno@clisp.org>
84724
84725         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84726         when a string comparison is sufficient.
84727
84728 2003-01-14  Bruno Haible  <bruno@clisp.org>
84729
84730         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84731         'unsigned int'.
84732
84733 2003-01-14  Bruno Haible  <bruno@clisp.org>
84734
84735         * lib/hash-pjw.c: Add comment about low quality of this function.
84736
84737 2003-01-13  Bruno Haible  <bruno@clisp.org>
84738
84739         * modules/stpcpy: Distribute lib/stpcpy.h.
84740         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84741
84742 2003-01-13  Bruno Haible  <bruno@clisp.org>
84743
84744         * modules/*: Add a description.
84745         * modules/strpbrk: Fix Makefile.am snippet.
84746         * modules/strtoimax: Fix dependencies.
84747         * modules/strtoumax: Likewise.
84748
84749 2003-01-13  Bruno Haible  <bruno@clisp.org>
84750
84751         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84752         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84753         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84754
84755 2003-01-13  Bruno Haible  <bruno@clisp.org>
84756
84757         * gnulib-tool (func_create_testdir): Store config/* files in the main
84758         directory.
84759         * config.rpath: Move to ...
84760         * config/config.rpath: ... here.
84761         * modules/gettext: Contains config/config.rpath, not config.rpath.
84762         * modules/iconv: Likewise.
84763
84764 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84765
84766         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84767         to avoid collisions with libcurses and libreadline.
84768
84769         * m4/getstr.m4: Remove.
84770         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84771
84772 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84773
84774         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84775         to avoid collisions with libcurses and libreadline.
84776
84777         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84778         * lib/getstr.h, getstr.c: Remove.
84779         * lib/getline.c: Include "getline.h", to check interface.
84780         Move body of old getstr.c here: this defines MIN_CHUNK and
84781         declares getdelim2, which is renamed from getstr.
84782         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84783
84784         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84785         All uses changed.
84786         * lib/linebuffer.h: Likewise.
84787         (readline): Remove backward-compatibility macro.
84788
84789 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84790
84791         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84792         to avoid collisions with libcurses and libreadline.
84793         * getstr: Remove.
84794         * MODULES.html.sh: Remove getstr.
84795         * modules/getline: Depend on unlocked-io, not getstr.
84796
84797 2003-01-12  Jim Meyering  <jim@meyering.net>
84798
84799         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84800
84801 2003-01-10  Bruno Haible  <bruno@clisp.org>
84802
84803         * modules/alloca: Change Makefile.am requirements. Simplify Include
84804         requirements. Add lib/alloca_.h to file list.
84805
84806 2003-01-10  Bruno Haible  <bruno@clisp.org>
84807
84808         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84809
84810 2003-01-10  Bruno Haible  <bruno@clisp.org>
84811
84812         * lib/alloca_.h: New file.
84813         * lib/getdate.y: Unconditionally include alloca.h.
84814         * lib/makepath.c: Likewise.
84815         * lib/setenv.c: Likewise.
84816         * lib/userspec.c: Likewise.
84817
84818 2003-01-09  Karl Berry  <karl@gnu.org>
84819
84820         * MODULES.html.sh: include `dirname $0` in PATH, to find
84821         gnulib-tool.
84822
84823 2003-01-09  Bruno Haible  <bruno@clisp.org>
84824
84825         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84826         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84827
84828 2003-01-09  Bruno Haible  <bruno@clisp.org>
84829
84830         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84831
84832 2003-01-09  Bruno Haible  <bruno@clisp.org>
84833
84834         * lib/stdbool.h.in: New file.
84835
84836 2003-01-09  Bruno Haible  <bruno@clisp.org>
84837
84838         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84839         * MODULES.html.sh: Likewise.
84840
84841 2003-01-08  Jim Meyering  <jim@meyering.net>
84842
84843         * lib/full-write.c: Undefine and define-away `const' after inclusion
84844         of errno.h, not before.  Suggestion from Bruno Haible.
84845
84846 2003-01-08  Bruno Haible  <bruno@clisp.org>
84847
84848         * modules/full-read: Depend on full-write.
84849
84850 2003-01-08  Bruno Haible  <bruno@clisp.org>
84851
84852         * lib/safe-read.c: Include specification header first, to ensure its
84853         selfcontainedness.
84854         * lib/full-write.c: Likewise.
84855
84856 2003-01-07  Jim Meyering  <jim@meyering.net>
84857
84858         * lib/full-write.c: Rework so that it may serve to define full_read,
84859         too.
84860         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84861
84862 2003-01-07  Bruno Haible  <bruno@clisp.org>
84863
84864         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84865         <inttypes.h>.
84866         * lib/xstrtol.h: Likewise.
84867         * lib/xstrtoimax.c: Likewise.
84868         * lib/xstrtoumax.c: Likewise.
84869         * lib/human.h: Likewise.
84870
84871         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84872         on systems that have <inttypes.h> but not <stdint.h>.
84873
84874 2003-01-07  Bruno Haible  <bruno@clisp.org>
84875
84876         * MODULES.html.sh: Add copyright notice.
84877         (missed_files): Omit CVS directory entries.
84878         (func_module): Make it work with sed-3.02.
84879         * MODULES.txt: Remove file.
84880
84881 2003-01-06  Jim Meyering  <jim@meyering.net>
84882
84883         * lib/version-etc.c: Update year in translatable copyright string.
84884
84885 2003-01-03  Karl Berry  <karl@gnu.org>
84886
84887         * config/config.{guess,sub}: update from prep.
84888
84889 2003-01-02  Karl Berry  <karl@gnu.org>
84890
84891         * doc/COPYING.DOC: belatedly updated to 1.2.
84892
84893 2003-01-01  Karl Berry  <karl@gnu.org>
84894
84895         * gnulib-tool (func_verify_module): report module name $module in
84896         error message, not $1.
84897         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84898         be created, only if it doesn't exist.
84899         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84900
84901 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84902
84903         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84904
84905 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84906
84907         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84908         memcmp if strcoll doesn't work.
84909
84910 2002-12-31  Bruno Haible  <bruno@clisp.org>
84911
84912         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84913         nonempty.
84914
84915 2002-12-31  Bruno Haible  <bruno@clisp.org>
84916
84917         * lib/memcoll.c (STRCOLL): New macro.
84918         (memcoll): Use it.
84919
84920 2002-12-31  Bruno Haible  <bruno@clisp.org>
84921
84922         * lib/localcharset.h: New file.
84923         * lib/localcharset.c: Include it.
84924         * lib/unicodeio.c: Likewise.
84925
84926 2002-12-31  Bruno Haible  <bruno@clisp.org>
84927
84928         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84929         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84930
84931 2002-12-31  Bruno Haible  <bruno@clisp.org>
84932
84933         * lib/getline.h: Include <stddef.h>, for size_t.
84934
84935         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84936         * lib/unicodeio.c: Don't include <stddef.h>.
84937
84938 2002-12-31  Bruno Haible  <bruno@clisp.org>
84939
84940         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84941         HAVE_TM_ZONE.
84942
84943 2002-12-24  Karl Berry  <karl@gnu.org>
84944
84945         * config/config.guess: update from prep.
84946
84947 2002-12-24  Bruno Haible  <bruno@clisp.org>
84948
84949         General infrasructure.
84950         * m4/README: Rewritten.
84951         * m4/onceonly.m4: New file.
84952         * m4/onceonly_2_57.m4: New file.
84953
84954         Module atexit.
84955         * m4/atexit.m4: New file.
84956
84957         Module strtod.
84958         * m4/strtod.m4: New file.
84959
84960         Module strtol.
84961         * m4/strtol.m4: New file.
84962
84963         Module strtoul.
84964         * m4/strtoul.m4: New file.
84965
84966         Module memchr.
84967         * m4/memchr.m4: New file.
84968
84969         Module memcmp.
84970         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84971         (jm_FUNC_MEMCMP): Invoke it.
84972
84973         Module memcpy.
84974         * m4/memcpy.m4: New file.
84975
84976         Module memmove.
84977         * m4/memmove.m4: New file.
84978
84979         Module memset.
84980         * m4/memset.m4: New file.
84981
84982         Module strcspn.
84983         * m4/strcspn.m4: New file.
84984
84985         Module strpbrk.
84986         * m4/strpbrk.m4: New file.
84987
84988         Module strstr.
84989         * m4/strstr.m4: New file.
84990
84991         Module strerror.
84992         * m4/strerror.m4: New file.
84993
84994         Module mktime.
84995         * m4/mktime.m4: Renamed from jm-mktime.m4.
84996         (gl_PREREQ_MKTIME): New macro.
84997         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84998
84999         Module malloc.
85000         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
85001         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
85002         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
85003
85004         Module realloc.
85005         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
85006         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
85007         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
85008
85009         Module strftime.
85010         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
85011         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
85012         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
85013         gl_TM_GMTOFF.
85014         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
85015
85016         Module xalloc.
85017         * m4/xalloc.m4: New file.
85018
85019         Module alloca.
85020         * m4/alloca.m4: New file.
85021
85022         Module putenv.
85023         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
85024         (jm_FUNC_PUTENV): Invoke it.
85025
85026         Module setenv.
85027         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
85028         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
85029         when invoked twice.
85030         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
85031         gt_FUNC_SETENV.
85032
85033         Module memrchr.
85034         * m4/memrchr.m4: New file.
85035
85036         Module stpcpy.
85037         * m4/stpcpy.m4: New file.
85038
85039         Module strcase.
85040         * m4/strcase.m4: New file.
85041
85042         Module strdup.
85043         * m4/strdup.m4: New file.
85044
85045         Module strnlen.
85046         * m4/strnlen.m4: New file.
85047
85048         Module strndup.
85049         * m4/strndup.m4: New file.
85050
85051         Module xstrtod.
85052         * m4/xstrtod.m4: New file.
85053
85054         Module xstrtol.
85055         * m4/xstrtol.m4: New file.
85056
85057         Module getdate.
85058         * m4/getdate.m4: New file.
85059
85060         Module unlocked-io.
85061         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
85062         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
85063         * m4/jm-glibc-io.m4n: Remove file.
85064
85065         Module long-options.
85066         * m4/long-options.m4: New file.
85067
85068         Module md5.
85069         * m4/md5.m4: New file.
85070
85071         Module sha.
85072         * m4/sha.m4: New file.
85073
85074         Module getstr.
85075         * m4/getstr.m4: New file.
85076
85077         Module getline.
85078         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
85079         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
85080         <sys/types.h>, for size_t. Use the function name gnu_getline, not
85081         simply getline. Infoke gl_PREREQ_GETLINE.
85082
85083         Module obstack.
85084         * m4/obstack.m4: New file.
85085
85086         Module hash.
85087         * m4/hash.m4: New file.
85088
85089         Module readtokens.
85090         * m4/readtokens.m4: New file.
85091
85092         Module strverscmp.
85093         * m4/strverscmp.m4: New file.
85094
85095         Module stdbool.
85096         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
85097         OSF/1.
85098
85099         Module strtoll.
85100         * m4/strtoll.m4: New file.
85101
85102         Module strtoull.
85103         * m4/strtoull.m4: New file.
85104
85105         Module strtoimax.
85106         * m4/strtoimax.m4: New file.
85107
85108         Module strtoumax.
85109         * m4/strtoumax.m4: New file.
85110
85111         Module xstrtoimax.
85112         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
85113         jm_AC_PREREQ_XSTRTOIMAX.
85114         Moved the strtol prerequisites to strtol.m4.
85115         Moved the strtoll prerequisites to strtoll.m4.
85116         Moved the strtoimax prerequisites to strtoimax.m4.
85117
85118         Module xstrtoumax.
85119         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
85120         jm_AC_PREREQ_XSTRTOUMAX.
85121         Moved the strtoul prerequisites to strtoul.m4.
85122         Moved the strtoull prerequisites to strtoull.m4.
85123         Moved the strtoumax prerequisites to strtoumax.m4.
85124
85125         Module chown.
85126         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
85127         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
85128
85129         Module dup2.
85130         * m4/dup2.m4: New file.
85131
85132         Module ftruncate.
85133         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
85134         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
85135
85136         Module getgroups.
85137         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
85138         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
85139
85140         Module gettimeofday.
85141         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
85142         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
85143         gl_PREREQ_GETTIMEOFDAY.
85144
85145         Module mkdir.
85146         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
85147         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
85148
85149         Module mkstemp.
85150         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
85151         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
85152         jm_AC_TYPE_UINTMAX_T.
85153         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
85154
85155         Module stat.
85156         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
85157         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
85158
85159         Module lstat.
85160         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
85161         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
85162
85163         Module timespec.
85164         * m4/timespec.m4 (gl_TIMESPEC): New macro.
85165         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
85166         * m4/st_mtim.m4: Indentation.
85167
85168         Module nanosleep.
85169         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
85170         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
85171         gl_PREREQ_NANOSLEEP.
85172
85173         Module regex.
85174         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
85175         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
85176         (gl_REGEX): New macro.
85177
85178         Module rename.
85179         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
85180         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
85181
85182         Module rmdir.
85183         * m4/rmdir.m4: New file.
85184
85185         Module utime.
85186         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
85187         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
85188         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
85189
85190         Module dirname.
85191         * m4/dirname.m4: New file.
85192
85193         Module getopt.
85194         * m4/getopt.m4: New file.
85195
85196         Module unistd-safer.
85197         * m4/unistd-safer.m4: New file.
85198
85199         Module fnmatch.
85200         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
85201         declaration.
85202         (gl_PREREQ_FNMATCH_EXTRA): New macro.
85203         (gl_FUNC_FNMATCH_POSIX): New macro.
85204         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
85205         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
85206         simply fnmatch.
85207
85208         Module exclude.
85209         * m4/exclude.m4: New file.
85210
85211         Module human.
85212         * m4/human.m4: New file.
85213
85214         Module acl.
85215         * m4/acl.m4: Nop.
85216
85217         Module backupfile.
85218         * m4/backupfile.m4: New file.
85219         * m4/d-ino.m4: Indentation.
85220
85221         Module fsusage.
85222         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
85223         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
85224         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
85225
85226         Module dirfd.
85227         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
85228         requirements.
85229
85230         Module euidaccess.
85231         * m4/euidaccess.m4: New file.
85232
85233         Module file-type.
85234         * m4/file-type.m4: New file.
85235
85236         Module fileblocks.
85237         * m4/fileblocks.m4: New file.
85238
85239         Module filemode.
85240         * m4/filemode.m4: New file.
85241
85242         Module isdir.
85243         * m4/isdir.m4: New file.
85244
85245         Module lchown.
85246         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
85247         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
85248
85249         Module makepath.
85250         * m4/makepath.m4: New file.
85251
85252         Module modechange.
85253         * m4/modechange.m4: New file.
85254
85255         Module mountlist.
85256         * m4/mountlist.m4: New file.
85257         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
85258         Indentation.
85259
85260         Module path-concat.
85261         * m4/path-concat.m4: New file.
85262
85263         Module pathmax.
85264         * m4/pathmax.m4: New file.
85265
85266         Module same.
85267         * m4/same.m4: New file.
85268
85269         Module save-cwd.
85270         * m4/save-cwd.m4: New file.
85271
85272         Module savedir.
85273         * m4/savedir.m4: New file.
85274
85275         Module xgetcwd.
85276         * m4/xgetcwd.m4: New file.
85277         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
85278
85279         Module xreadlink.
85280         * m4/xreadlink.m4: New file.
85281
85282         Module safe-read.
85283         * m4/safe-read.m4: New file.
85284
85285         Module safe-write.
85286         * m4/safe-write.m4: New file.
85287
85288         Module closeout.
85289         * m4/closeout.m4: New file.
85290
85291         Module stdio-safer.
85292         * m4/stdio-safer.m4: New file.
85293
85294         Module getpass.
85295         * m4/getpass.m4: New file.
85296
85297         Module getugroups.
85298         * m4/getugroups.m4: New file.
85299
85300         Module group-member.
85301         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
85302         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
85303
85304         Module idcache.
85305         * m4/idcache.m4: New file.
85306
85307         Module userspec.
85308         * m4/userspec.m4: New file.
85309
85310         Module gettime.
85311         * m4/clock_time.m4: New file.
85312         * m4/gettime.m4: New file.
85313
85314         Module settime.
85315         * m4/settime.m4: New file.
85316
85317         Module posixtm.
85318         * m4/posixtm.m4: New file.
85319
85320         Module gethostname.
85321         * m4/gethostname.m4: New file.
85322
85323         Module canon-host.
85324         * m4/canon-host.m4: New file.
85325
85326         Module gettext.
85327         * m4/codeset.m4: New file, from gettext-0.11.5.
85328         * m4/gettext.m4: New file, from gettext-0.11.5.
85329         * m4/glibc21.m4: New file, from gettext-0.11.5.
85330         * m4/iconv.m4: New file, from gettext-0.11.5.
85331         * m4/intdiv0.m4: New file, from gettext-0.11.5.
85332         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
85333         * m4/inttypes.m4: New file, from gettext-0.11.5.
85334         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
85335         * m4/isc-posix.m4: New file, from gettext-0.11.5.
85336         * m4/lcmessage.m4: New file, from gettext-0.11.5.
85337         * m4/lib-ld.m4: New file, from gettext-0.11.5.
85338         * m4/lib-link.m4: New file, from gettext-0.11.5.
85339         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
85340         * m4/progtest.m4: New file, from gettext-0.11.5.
85341         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
85342         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
85343         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
85344
85345         Module localcharset.
85346         * m4/localcharset.m4: New file.
85347
85348         Module hard-locale.
85349         * m4/hard-locale.m4: New file.
85350
85351         Module mbswidth.
85352         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
85353         onceonly macros.
85354         * m4/mbrtowc.m4: Add comment.
85355
85356         Module memcasecmp.
85357         * m4/memcasecmp.m4: New file.
85358
85359         Module memcoll.
85360         * m4/memcoll.m4: New file.
85361
85362         Module unicodeio.
85363         * m4/unicodeio.m4: New file.
85364
85365         Module rpmatch.
85366         * m4/rpmatch.m4: New file.
85367
85368         Module yesno.
85369         * m4/yesno.m4: New file.
85370
85371         Module exitfail.
85372         * m4/exitfail.m4: New file.
85373
85374         Module c-stack.
85375         * m4/c-stack.m4 (gl_C_STACK): New macro.
85376         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85377
85378         Module error.
85379         * m4/error.m4 (gl_ERROR): New macro.
85380         (jm_PREREQ_ERROR): Use onceonly macros.
85381
85382         Module fatal.
85383         * m4/fatal.m4: New file.
85384
85385         Module getloadavg.
85386         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
85387         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85388
85389         Module getpagesize.
85390         * m4/getpagesize.m4: New file.
85391
85392         Module getusershell.
85393         * m4/getusershell.m4: New file.
85394
85395         Module physmem.
85396         * m4/physmem.m4: New file.
85397
85398         Module posixver.
85399         * m4/posixver.m4: New file.
85400
85401         Module quotearg.
85402         * m4/quotearg.m4: New file.
85403
85404         Module quote.
85405         * m4/quote.m4: New file.
85406
85407         Module readutmp.
85408         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
85409
85410         Module sig2str.
85411         * m4/sig2str.m4: New file.
85412
85413         Other.
85414         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
85415         ulonglong.m4.
85416         * m4/intmax_t.m4: New file.
85417         * m4/d-type.m4: Indentation.
85418         * m4/jm-macros.m4: Update.
85419         * m4/prereq.m4 (jm_PREREQ): Update.
85420         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
85421         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
85422         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
85423         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
85424         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
85425         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
85426         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
85427         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
85428         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
85429         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
85430         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
85431         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
85432         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
85433         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
85434         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
85435         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
85436         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
85437         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
85438         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
85439
85440 2002-12-24  Bruno Haible  <bruno@clisp.org>
85441
85442         * MODULES.txt: Update according to m4/ changes.
85443
85444         Module gettext.
85445         * config.rpath: New file, from gettext-0.11.5.
85446
85447         * modules/*: New module descriptions.
85448         * gnulib-tool: New file.
85449         * MODULES.html.sh: New file.
85450
85451 2002-12-21  Karl Berry  <karl@gnu.org>
85452
85453         * doc/fdl.texi: update to version 1.2.
85454
85455 2002-12-19  Karl Berry  <karl@gnu.org>
85456
85457         * config/config.guess: update from prep.
85458
85459 2002-12-18  Bruno Haible  <bruno@clisp.org>
85460
85461         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
85462         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
85463
85464 2002-12-17  Bruno Haible  <bruno@clisp.org>
85465
85466         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
85467         stdlib.h, string.h.
85468
85469 2002-12-17  Bruno Haible  <bruno@clisp.org>
85470
85471         * lib/canon-host.c (strdup): Remove unused declaration.
85472
85473         * lib/fsusage.c: Include full_read.h.
85474         (get_fs_usage): Use full_read instead of safe_read.
85475
85476         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85477
85478 2002-12-12  Karl Berry  <karl@gnu.org>
85479
85480         * config/config.guess: update from prep.
85481
85482 2002-12-11  Bruno Haible  <bruno@clisp.org>
85483
85484         * m4/setenv.m4: New file, from gettext-0.11.5.
85485
85486 2002-12-11  Bruno Haible  <bruno@clisp.org>
85487
85488         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85489         not unsetenv().
85490         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85491         modifications:
85492
85493         2002-12-11  Bruno Haible  <bruno@clisp.org>
85494
85495                 * setenv.c (alloca): Fall back to malloc.
85496                 (freea): New macro.
85497                 (setenv): Use freea() to free memory allocated with alloca().
85498
85499         2002-11-13  Bruno Haible  <bruno@clisp.org>
85500
85501                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85502                 function declarations.
85503                 * unsetenv.c (unsetenv): Likewise.
85504
85505         2002-03-04  Bruno Haible  <bruno@clisp.org>
85506
85507                 Portability to AIX 4.3.3.
85508                 * unsetenv.c: New file, extracted from setenv.c.
85509                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85510
85511         2001-12-20  Bruno Haible  <bruno@clisp.org>
85512
85513                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85514                 use malloc instead. For SunOS 4.
85515
85516         2001-12-11  Bruno Haible  <bruno@clisp.org>
85517
85518                 * setenv.c: Declare alloca.
85519                 (compar_fn_t): New typedef.
85520                 (KNOWN_VALUE, STORE_VALUE): Use it.
85521
85522         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85523         setenv.h.
85524
85525 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85526
85527         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85528         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85529         Choose values that are less likely to collide with system fnmatch
85530         options.
85531         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85532         defined (e.g., a pure POSIX system).
85533         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85534         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85535
85536 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85537
85538         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85539         a pain in practice to deal with generated m4 files.  This change
85540         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85541
85542         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85543         and jm-glibc-io.m4, as they are no longer a special case.
85544         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85545         kludge and the auto-generation stuff.  Check only whether the
85546         functions are declared, not whether they exist, since older hosts
85547         that don't declare the functions can't use the optimization anyway.
85548
85549 2002-12-06  Jim Meyering  <jim@meyering.net>
85550
85551         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85552
85553         Merge in changes from libc's misc/error.c, in preparation
85554         for the merge of gnulib's changes back into libc.
85555
85556         * lib/error.c (_): Define only if not already defined.
85557         Move definition to follow all #include directives.
85558         Include unlocked-io.h only if !_LIBC.
85559         [_LIBC]: Include <libio/libioP.h>.
85560         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85561         (fflush): Tweak definition to use INTUSE.
85562         (putc): Define.
85563
85564 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85565
85566         * lib/alloca.c [defined emacs]: Include "lisp.h".
85567         (xalloc_die) [defined emacs]: New macro.
85568         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85569         [! defined emacs]: Include <xalloc.h>.
85570         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85571         (pointer): Typedef to POINTER_TYPE *.
85572         (malloc): Remove decl; we now always use xmalloc.
85573         (alloca): Use old-style definition, since Emacs needs this.
85574         Check for arithmetic overflow when computing combined size.
85575
85576 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85577
85578         Do not generate unlocked-io.h automatically, since it's easier to
85579         maintain it by hand.
85580
85581         * lib/unlocked-io.h: New file, from GNU diffutils,
85582         but with proper copyright notice and attribution.
85583         * lib/gen-uio: Remove.
85584         * lib/Makefile.am: Add copyright notice.
85585         (libfetish_a_SOURCES): Add unlocked-io.h.
85586         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85587         (DISTCLEANFILES, io_functions): Remove macros.
85588         (EXTRA_DIST): Remove gen_uio.
85589         (unlocked-io.h): Remove rule.
85590
85591 2002-12-04  Jim Meyering  <jim@meyering.net>
85592
85593         Reflect the fact that stat.c and lstat.c are no longer generated.
85594         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85595         (DISTCLEANFILES): Likewise.
85596         (EXTRA_DIST): Likewise.
85597         (all_local): Don't depend on stat.c or lstat.c.
85598         (stat.c, lstat.c): Remove rules.
85599         (EXTRA_DIST): Remove xstat.in.
85600
85601         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85602         * lib/stat.c: New file.  Contents mostly from xstat.in.
85603         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85604         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85605
85606         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85607         too.
85608         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85609
85610 2002-12-03  Jim Meyering  <jim@meyering.net>
85611
85612         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85613         but not semantics, to minimize the differences between these two files.
85614         (safe_read): Change comment to mention SAFE_READ_ERROR.
85615
85616         * lib/safe-read.c (IS_EINTR): Define.
85617         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85618
85619 2002-12-02  Jim Meyering  <jim@meyering.net>
85620
85621         * lib/safe-read.c (EINTR): Define.
85622         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85623         (INT_MAX): Provide fallback.
85624         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85625
85626         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85627
85628 2002-12-02  Bruno Haible  <bruno@clisp.org>
85629
85630         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85631         Define, taken from safe-read.c.
85632         (INT_MAX): Provide fallback.
85633         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85634         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85635
85636         * lib/safe-read.c (EINTR): Remove definition.
85637         (safe_read): Don't use EINTR if it is absent.
85638
85639 2002-12-01  Jim Meyering  <jim@meyering.net>
85640
85641         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85642         zero.
85643         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85644
85645 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85646
85647         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85648         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85649         with `if (! (value < limit)) abort ();', for readability.
85650
85651 2002-11-26  Karl Berry  <karl@gnu.org>
85652
85653         * lib/strdup.c: copy from libc again, with jim's ok.
85654         * lib/.cppi-disable: re-add strdup.c
85655
85656 2002-11-25  Karl Berry  <karl@gnu.org>
85657
85658         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85659         instead of "strtol.c".
85660
85661 2002-11-25  Karl Berry  <karl@gnu.org>
85662
85663         * config/install-sh: update from automake for variable quoting, $0 in
85664         error msgs, etc.
85665
85666         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85667         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85668         entry.
85669
85670 2002-11-25  Jim Meyering  <jim@meyering.net>
85671
85672         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85673
85674 2002-11-24  Karl Berry  <karl@gnu.org>
85675
85676         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85677         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85678
85679 2002-11-24  Jim Meyering  <jim@meyering.net>
85680
85681         Update from coreutils:
85682
85683         * lib/mktime.c: Merge in changes from libc.
85684
85685         Avoid a link-time failure on some Linux systems.
85686         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85687         (otherwise).
85688         (__mon_yday): Declare with the STATIC attribute.
85689         (__mktime_internal): Likewise.
85690         Based on a report from Greg Schafer.
85691
85692 2002-11-23  Jim Meyering  <jim@meyering.net>
85693
85694         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85695         Use `unsigned', not `int', as type of index.
85696
85697         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85698
85699         * lib/fsusage.c: Remove unneeded parentheses around operands of
85700         `defined'.
85701
85702 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85703
85704         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85705         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85706         so that we can be included first.
85707         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85708         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85709         No need to include stddef.h or sys/types.h any more.
85710         Surround local include files with "", not "<>".
85711         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85712         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85713         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85714         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85715         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85716         (ISPRINT): Remove; no longer needed now that we assume C89.
85717
85718         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85719         Preserve errno.
85720
85721         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85722         quotearg_char): Use SIZE_MAX rather than
85723         (size_t) -1 when we are talking about "infinity".
85724
85725         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85726
85727 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85728
85729         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85730         hint that one should use `if (! x) abort ();' rather than `assert
85731         (x);', and anyway it's one less thing to worry about configuring.
85732         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85733         hash_rehash, hash_insert): Use abort rather than assert.
85734
85735 2002-11-22  Bruno Haible  <bruno@clisp.org>
85736
85737         * lib/safe-read.h: Assume C89. Add comments.
85738         (safe_read): Change return type to size_t.
85739         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85740         byte counts > SSIZE_MAX correctly.
85741         * lib/safe-write.h: New file.
85742         * lib/safe-write.c: New file.
85743         * lib/full-read.h: New file.
85744         * lib/full-read.c: New file.
85745         * lib/full-write.h: Assume C89. Add comments.
85746         * lib/full-write.c: Include safe-write.h.
85747         (full_write): Rewritten to use safe_write.
85748         Suggested by Jim Meyering and Paul Eggert.
85749
85750 2002-11-21  Jim Meyering  <jim@meyering.net>
85751
85752         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85753
85754         Merge in changes from the coreutils.
85755
85756         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85757         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85758         <stdint.h>.
85759         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85760         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85761         int.  Work more efficiently if X is the same width as uintmax_t.
85762         Do not compare X to -1, to avoid bogus compiler warning.
85763         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85764         Don't assume that f_frsize and f_bsize are the same type.
85765
85766         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85767         warning on FreeBSD.
85768
85769         * lib/makepath.c (make_path): Restore umask *before* creating the final
85770         component.
85771         (make_path): Minor reformatting.
85772
85773         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85774         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85775         HAVE_MALLOC/HAVE_REALLOC.
85776
85777         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85778         dummy ones.  At least on GNU/Linux systems, `auto' means something
85779         else.
85780         From Michael Stone.
85781
85782 2002-11-21  Bruno Haible  <bruno@clisp.org>
85783
85784         Remove case insensitive option matching.
85785         * lib/argmatch.h (argcasematch): Remove declaration.
85786         (ARGCASEMATCH): Remove macro.
85787         (__xargmatch_internal): Remove case_sensitive argument.
85788         (XARGMATCH): Update.
85789         (XARGCASEMATCH): Remove macro.
85790         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85791         case_sensitive argument.
85792         (argcasematch): Remove function.
85793         (__xargmatch_internal): Remove case_sensitive argument.
85794         (main): Use XARGMATCH instead of XARGCASEMATCH.
85795
85796         * lib/xmalloc.c: Change compile-time error message. Add comment about
85797         required autoconf version.
85798
85799 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85800
85801         Merge argmatch cleanups from Bison.  Assume C89.
85802
85803         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85804         Include stdlib.h, for EXIT_FAILURE.
85805         Always include <string.h>, since we assume C89.
85806         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85807         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85808         Include <stddef.h> instead, since it's all we need for size_t.
85809         (PARAMS): Remove.  All uses removed.
85810         (ARRAY_CARDINALITY): Do not bother to #undef.
85811         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85812         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85813         Remove unnecessary parentheses.
85814         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85815         Insert necessary parentheses.
85816         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85817         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85818
85819 2002-11-19  Bruno Haible  <bruno@clisp.org>
85820
85821         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85822         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85823
85824         * lib/mbswidth.h (PARAMS): Remove macro.
85825         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85826         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85827
85828         * lib/gcd.h (PARAMS): Remove macro.
85829         (gcd): Use ANSI C function declarations.
85830         * lib/gcd.c (gcd): Likewise.
85831
85832 2002-11-15  Bruno Haible  <bruno@clisp.org>
85833
85834         * lib/strcspn.c: Include <stddef.h>.
85835         (strcspn): Use ANSI C function declaration. Change return type to
85836         size_t. Use NULL.
85837         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85838         (strpbrk): Use NULL.
85839         * lib/strpbrk.h (PARAMS): Remove macro.
85840         (strpbrk): Use ANSI C function declaration.
85841         * lib/strstr.c: Don't include <sys/types.h>.
85842         * lib/strstr.h (PARAMS): Remove macro.
85843         (strstr): Use ANSI C function declarations.
85844
85845 2002-11-14  Karl Berry  <karl@gnu.org>
85846
85847         * config/mkinstalldirs: `do' on separate line, instead of
85848         `for var; do'.
85849
85850 2002-11-06  Bruno Haible  <bruno@clisp.org>
85851
85852         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85853         * lib/gcd.c (gcd): Likewise.
85854
85855 2002-11-05  Bruno Haible  <bruno@clisp.org>
85856
85857         * lib/gcd.h: New file, from gettext-0.11.5.
85858         * lib/gcd.c: New file, from gettext-0.11.5.
85859
85860 2002-11-05  Bruno Haible  <bruno@clisp.org>
85861
85862         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85863         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85864         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85865         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85866
85867         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85868         <libintl.h>.
85869         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85870         <libintl.h>.
85871
85872         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85873         * lib/human.c: Include gettext.h instead of <libintl.h>.
85874         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85875         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85876         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85877         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85878         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85879         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85880         (textdomain): Remove definition.
85881         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85882
85883         * lib/long-options.c: Remove include of <libintl.h> and definition of
85884         _.
85885         * lib/same.c: Remove include of <libintl.h> and definition of _.
85886
85887 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85888
85889         * lib/config.charset: A few additions for Solaris.
85890
85891 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85892
85893         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85894         * lib/localcharset.c (locale_charset): Declare as extern "C".
85895
85896 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85897
85898         * lib/config.charset: msdos in uk_UA uses CP1125.
85899
85900 2002-11-04  Bruno Haible  <bruno@clisp.org>
85901
85902         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85903         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85904         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85905         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85906         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85907
85908 2002-11-04  Bruno Haible  <bruno@clisp.org>
85909
85910         * lib/localcharset.c (locale_charset): Don't return an empty string.
85911
85912 2002-11-04  Bruno Haible  <bruno@clisp.org>
85913
85914         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85915         aliases.
85916
85917 2002-11-04  Bruno Haible  <bruno@clisp.org>
85918
85919         * lib/config.charset: Update for newest glibc. Add canonical names
85920         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85921
85922 2002-11-04  Bruno Haible  <bruno@clisp.org>
85923
85924         * lib/config.charset: Add support for NetBSD.
85925
85926 2002-11-04  Bruno Haible  <bruno@clisp.org>
85927
85928         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85929
85930 2002-11-01  Bruno Haible  <bruno@clisp.org>
85931
85932         * configure.in: Add AC_CONFIG_AUX_DIR call.
85933         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85934         test/Makefile.
85935         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85936
85937 2002-09-28  Karl Berry  <karl@gnu.org>
85938
85939         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85940         installed automake until the next release, since changes have been
85941         made.
85942
85943 2002-09-25  Karl Berry  <karl@gnu.org>
85944
85945         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85946         * lib/getopt*: copy from libc/posix.
85947         * lib/gettext.h: copy from gettext.
85948         * lib/.cppi-disable: add strdup.c, gettext.h.
85949
85950 2002-09-25  Karl Berry  <karl@gnu.org>
85951
85952         * config/srclist.txt: enable gettext.h check.
85953         * config/config.{guess,sub}: update from prep.
85954         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85955                 from automake 1.6.3.
85956         See srclist*.
85957
85958 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85959
85960         * regex.c (PATFETCH): Remove the translating fetch.
85961         (PATFETCH_RAW): Rename to PATFETCH.
85962         (set_image_of_range): New fun.
85963         (SET_RANGE_TABLE_WORK_AREA): Use it.
85964         (regex_compile): Don't translate the pattern chars so eagerly.
85965         Only do it when inserting an `exactn' bytecode or when handling
85966         a char-range.
85967         (mutually_exclusive_p): Avoid empty statement.
85968
85969 2002-07-06  Jim Meyering  <meyering@lucent.com>
85970
85971         * m4/README: Don't mention Makefile.am.in.
85972         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85973
85974 2002-07-01  Jim Meyering  <meyering@lucent.com>
85975
85976         * lib/c-stack.c: Include sys/time.h.
85977         From Volker Borchert.
85978
85979 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85980
85981         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85982
85983 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85984
85985         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85986         New macro.  Use it uniformly instead of
85987         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85988         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85989         reported by Vin Shelton.
85990
85991 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85992
85993         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85994         Do not assume SA_SIGINFO behavior.
85995         Bug reported by Jim Meyering on NetBSD 1.5.2.
85996
85997 2002-06-22  Jim Meyering  <meyering@lucent.com>
85998
85999         * m4/c-stack.m4: New file, from diffutils-2.8.2.
86000         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
86001
86002         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
86003         now that configure.ac uses AC_GNU_SOURCE.
86004         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
86005         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
86006
86007         Update to latest tools.  Suggestions from Paul Eggert.
86008         * m4/stdbool.m4: New file, from diffutils-2.8.2.
86009         * m4/gnu-source.m4: Update from diffutils-2.8.2.
86010         * m4/fnmatch.m4: Likewise.
86011         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
86012         to AC_HEADER_STDBOOL
86013
86014 2002-06-22  Jim Meyering  <meyering@lucent.com>
86015
86016         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
86017         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
86018
86019 2002-06-22  Jim Meyering  <meyering@lucent.com>
86020
86021         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
86022
86023         * lib/exitfail.c, exitfail.h: Likewise.
86024         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
86025
86026         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
86027         of fnmatch.h.
86028         (EXTRA_DIST): Add fnmatch_loop.c.
86029         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
86030
86031         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
86032         * lib/fnmatch.c: Update from diffutils-2.8.2.
86033         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
86034         * lib/fnmatch.h: Remove file.
86035
86036 2002-06-21  Jim Meyering  <meyering@lucent.com>
86037
86038         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
86039         * m4/mbrtowc.m4: Likewise.
86040
86041         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
86042         * m4/mbswidth.m4: Reflect name change:
86043         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
86044         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86045
86046         * m4/lib-link.m4: Update from gettext-0.11.2.
86047         * m4/gettext.m4: Likewise.
86048
86049         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
86050         From Alfred M. Szmidt.
86051
86052 2002-06-18  Paul Eggert  <eggert@twinsun.com>
86053
86054         * lib/file-type.h: Report an error if neither S_ISREG nor
86055         S_IFREG is defined, instead of using a test specific to glibc
86056         2.2.  This should be safe, since POSIX requires S_ISREG and
86057         Unix Version 7 had S_IFREG.  We don't need to check for
86058         <sys/types.h> since we don't use any symbols that it defines.
86059
86060 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
86061
86062         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
86063         $@-t, so that each temporary file name is unique and valid in the first
86064         8 characters, for operation under DOS.
86065
86066 2002-06-15  Paul Eggert  <eggert@twinsun.com>
86067
86068         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
86069
86070 2002-06-15  Jim Meyering  <meyering@lucent.com>
86071
86072         Work even with DJGPP 2.03, which lacks support for symlinks.
86073         From Richard Dawe.
86074         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
86075         is defined.
86076         * lib/lchown.c (S_ISLNK): Likewise.
86077
86078 2002-06-15  Jim Meyering  <meyering@lucent.com>
86079
86080         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
86081         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
86082         have been included before this file.
86083
86084 2002-06-14  Jim Meyering  <meyering@lucent.com>
86085
86086         * lib/file-type.h: Use the version from diffutils-2.8.2.
86087         * lib/file-type.c: Likewise.
86088
86089 2002-06-07  Jim Meyering  <meyering@lucent.com>
86090
86091         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
86092         They're needed at least for NetBSD 1.5.2.
86093         ($statxfs_includes): Include those same headers.
86094         ($statxfs_includes): Include sys/vfs.h if available.
86095         ($statxfs_includes): Likewise for sys/statvfs.h.
86096         Check for the following members in both structs statfs and statvfs:
86097         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
86098
86099 2002-06-01  Jim Meyering  <meyering@lucent.com>
86100
86101         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
86102         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
86103
86104 2002-05-28  Jim Meyering  <meyering@lucent.com>
86105
86106         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
86107         Reported by Volker Borchert.
86108
86109 2002-05-27  Jim Meyering  <meyering@lucent.com>
86110
86111         Fix a problem seen only on nonconforming systems whereby ls.c's
86112         use of localtime, and then of gettimeofday would cause trouble:
86113         the localtime call used to initialize rpl_gettimeofday's save
86114         mechanism would clobber ls's current local time information so
86115         that in any long listing the first file would always be listed
86116         with date 1970-01-01.  Analysis by Volker Borchert.
86117
86118         * lib/gettimeofday.c (localtime): Undefine.
86119         (rpl_localtime): New function.
86120
86121 2002-05-27  Jim Meyering  <meyering@lucent.com>
86122
86123         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
86124         localtime.
86125
86126         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
86127         use the replacement function; it wouldn't resolve at link time.
86128         Reported by Volker Borchert.
86129
86130 2002-05-22  Jim Meyering  <meyering@lucent.com>
86131
86132         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
86133         file-type.h.
86134         * lib/file-type.h: New file.
86135         * lib/file-type.c (file_type): New file/function.  Extracted from
86136         diffutils.
86137
86138 2002-04-30  Jim Meyering  <meyering@lucent.com>
86139
86140         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
86141
86142 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86143
86144         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
86145
86146 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86147
86148         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
86149         Do not check for alloca.h (no longer used) or stdbool.h (was never
86150         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
86151
86152 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86153
86154         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
86155
86156 2002-04-29  Jim Meyering  <meyering@lucent.com>
86157
86158         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
86159         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
86160         Use AC_FUNC_STRNLEN here instead.
86161
86162         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
86163         With autoconf-2.53a, it's part of AC_PROG_CC.
86164
86165 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86166
86167         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
86168         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
86169
86170 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86171
86172         * lib/sig2str.h, lib/sig2str.c: New files.
86173         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
86174
86175 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86176
86177         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
86178         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
86179         of 127, since 64 is the largest conceivable number for ancient
86180         nonstandard hosts.
86181         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
86182
86183 2002-04-28  Jim Meyering  <meyering@lucent.com>
86184
86185         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
86186
86187 2002-04-24  Jim Meyering  <meyering@lucent.com>
86188
86189         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
86190         (jm_PREREQ): Use it.
86191
86192         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
86193         mach/mach.h fcntl.h.
86194         Check for this function: setlocale.
86195
86196 2002-04-24  Jim Meyering  <meyering@lucent.com>
86197
86198         * lib/gettext.h: New file, from Gettext.
86199         * lib/Makefile.am (INCLUDES): Remove -I../intl.
86200         (libfetish_a_SOURCES): Add gettext.h.
86201
86202 2002-04-16  Jim Meyering  <meyering@lucent.com>
86203
86204         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
86205         ut_pid, ut_id, ut_exit.
86206
86207 2002-04-16  Jim Meyering  <meyering@lucent.com>
86208
86209         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
86210         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
86211         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
86212
86213 2002-04-12  Jim Meyering  <meyering@lucent.com>
86214
86215         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
86216         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
86217         existence of the getmntinfo function.  Needed for Darwin 5.3.
86218
86219         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
86220         This is necessary at least on Darwin 5.3.
86221
86222         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
86223         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
86224         strnlen.o in the library, and that makes some versions of ranlib
86225         object.
86226
86227 2002-04-12  Jim Meyering  <meyering@lucent.com>
86228
86229         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
86230
86231 2002-04-09  Jim Meyering  <meyering@lucent.com>
86232
86233         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
86234         to be more precise.  Rather than saying we're checking whether the
86235         function `works', say what we're testing.
86236         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
86237         Reported by Bruno Haible.
86238
86239 2002-03-10  Jim Meyering  <meyering@lucent.com>
86240
86241         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
86242         Suggestion from Santiago Vila.
86243
86244 2002-03-08  Jim Meyering  <meyering@lucent.com>
86245
86246         * lib/rename.c: Mention that this wrapper is needed also on
86247         mips-dec-ultrix4.4 systems.
86248
86249 2002-03-02  Jim Meyering  <meyering@lucent.com>
86250
86251         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
86252         not HAVE_CLOCK_SETTIME.
86253
86254 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86255
86256         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
86257         Check for clock_settime.
86258
86259 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86260
86261         * lib/nanosleep.h: Rename to....
86262         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
86263
86264         * lib/gettime.c: New file.
86265         * lib/settime.c: New file.
86266         * lib/stime.c: Remove.
86267
86268         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
86269         timespec.h.  Remove nanosleep.h.
86270
86271 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86272
86273         * m4/acl.m4: New file.
86274         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
86275         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
86276
86277 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86278
86279         * lib/acl.c, lib/acl.h: New files.
86280         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
86281
86282 2002-02-24  Jim Meyering  <meyering@lucent.com>
86283
86284         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
86285         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
86286         cause trouble.  Reported by Nelson Beebe.
86287
86288 2002-02-23  Paul Eggert  <eggert@twinsun.com>
86289
86290         * lib/path-concat.c (xpath_concat): Reorder code to pacify
86291         compilers that don't know that xalloc_die never returns.
86292
86293 2002-02-20  Jim Meyering  <meyering@lucent.com>
86294
86295         * lib/getdate.c: Regenerate using bison-1.33.
86296
86297 2002-02-17  Jim Meyering  <meyering@lucent.com>
86298
86299         * config/config.guess (main): Don't use `head -1'; it's no longer
86300         portable. Use `sed 1q' instead.
86301
86302 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
86303
86304         * m4/codeset.m4: Upgrade to gettext-0.11.
86305         * m4/gettext.m4: Upgrade to gettext-0.11.
86306         * m4/glibc21.m4: Upgrade to gettext-0.11.
86307         * m4/iconv.m4: Upgrade to gettext-0.11.
86308         * m4/isc-posix.m4: Upgrade to gettext-0.11.
86309         * m4/lcmessage.m4: Upgrade to gettext-0.11.
86310         * m4/lib-ld.m4: New file, from gettext-0.11.
86311         * m4/lib-link.m4: New file, from gettext-0.11.
86312         * m4/lib-prefix.m4: New file, from gettext-0.11.
86313         * m4/progtest.m4: Upgrade to gettext-0.11.
86314
86315 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86316
86317         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
86318         (jm_PREREQ): Use it.
86319
86320 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86321
86322         * lib/posixver.c, lib/posixver.h: New files.
86323         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86324
86325 2002-02-02  Paul Eggert  <eggert@twinsun.com>
86326             Bruno Haible  <bruno@clisp.org>
86327
86328         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
86329         (fwrite_success_callback): New declaration.
86330         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
86331         print_unicode_char. Call failure callback instead of error.
86332         (fwrite_success_callback): New function.
86333         (exit_failure_callback): New function.
86334         (fallback_failure_callback): New function.
86335         (print_unicode_char): Call unicode_to_mb.
86336
86337 2002-01-26  Jim Meyering  <meyering@lucent.com>
86338
86339         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
86340         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
86341
86342 2002-01-26  Jim Meyering  <meyering@lucent.com>
86343
86344         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
86345
86346 2002-01-22  Paul Eggert  <eggert@twinsun.com>
86347
86348         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
86349
86350 2002-01-22  Jim Meyering  <meyering@lucent.com>
86351
86352         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
86353         Otherwise, some versions of automake would omit the rule that makes
86354         Makefile from Makefile.in.
86355
86356 2002-01-21  Paul Eggert  <eggert@twinsun.com>
86357
86358         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86359         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86360         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86361         (memcoll): Set errno to zero if there is no error.
86362
86363         * lib/quotearg.c (quotearg_buffer_restyled):
86364         Fix bug with quoting buffers containing NUL when backslashing escapes.
86365         This bug was exposed by the other changes in this patch.
86366         (quotearg_n_options): New arg ARGSIZE.
86367         All callers changed.
86368         (quoting_options_from_style): New function.
86369         (quotearg_n_style): Use it.
86370         (quotearg_n_style_mem): New function.
86371
86372         * lib/quotearg.h (quotearg_n_style_mem): New function.
86373
86374 2002-01-19  Jim Meyering  <meyering@lucent.com>
86375
86376         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86377         Remove useless quotes: DF_PROG="df".
86378         * m4/strnlen.m4: New file.
86379
86380 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86381
86382         * lib/backupfile.c (ISDIGIT): Comment fix.
86383         * lib/getdate.y (ISDIGIT): Likewise.
86384         * lib/posixtm.c (ISDIGIT, year): Likewise.
86385         * lib/strverscmp.c (ISDIGIT): Likewise.
86386         * lib/userspec.c (ISDIGIT): Likewise.
86387
86388 2002-01-16  Jim Meyering  <meyering@lucent.com>
86389
86390         * lib/getdate.y: Add three semicolons, each just before a closing
86391         brace. Bison (as of version 1.31) no longer papers over that mistake.
86392
86393 2002-01-05  Jim Meyering  <meyering@lucent.com>
86394
86395         * lib/version-etc.c (version_etc_copyright): Update copyright year.
86396
86397 2001-12-19  Paul Eggert  <eggert@twinsun.com>
86398
86399         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
86400         not silently exit merely because the output buffer happens to
86401         have nothing pending.
86402
86403 2001-12-18  Paul Eggert  <eggert@twinsun.com>
86404
86405         See the big note in ../ChangeLog.
86406         * lib/human.c (suffixes): Prefer K to k for 1024.
86407         (generate_suffix_backwards): New function.
86408         (human_readable_inexact): Use it.
86409         * lib/xstrtol.c (__xstrtol): If there is no number but there
86410         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
86411         Accept 'K' as well as 'k'.
86412
86413 2001-12-15  Jim Meyering  <meyering@lucent.com>
86414
86415         * lib/regex.h (__restrict_arr): Update from libc.
86416
86417         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
86418         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
86419         (STREQ): Define.
86420
86421 2001-12-14  Jim Meyering  <meyering@lucent.com>
86422
86423         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
86424         Suggestion from Bruno Haible.
86425
86426 2001-12-10  Jim Meyering  <meyering@lucent.com>
86427
86428         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
86429         xrealloc, Instead, include "xalloc.h".
86430         (initbuffer): Don't cast xmalloc return value to char*.
86431         (readline): Reword comment.
86432         Don't cast xrealloc return value to char*
86433         Return NULL, not 0.
86434
86435 2001-12-09  Jim Meyering  <meyering@lucent.com>
86436
86437         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
86438         about `signed and unsigned type in conditional expression'.
86439         * lib/posixtm.c (posix_time_parse): Likewise.
86440
86441         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
86442
86443         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
86444         to avoid a pedantic warning.
86445
86446         * lib/getstr.c: Don't include assert.h.
86447         (getstr): Remove warning-evoking assertions.
86448         Return -1 if offset parameter is out of bounds.
86449         Change the type of a local from int to size_t.
86450
86451         * lib/strftime.c (my_strftime_localtime_r): Include this function
86452         definition in the `#if ! HAVE_TM_GMTOFF' block.
86453
86454         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
86455         Include xalloc.h instead.
86456
86457 2001-12-02  Jim Meyering  <meyering@lucent.com>
86458
86459         * lib/tempname.c: Don't declare getenv, thus reverting the change of
86460         2001-11-18.  It's no longer necessary, now that stdlib.h is always
86461         included.
86462
86463         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
86464         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
86465
86466 2001-11-30  Akim Demaille  <akim@epita.fr>
86467
86468         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
86469         before being defined.
86470
86471 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86472
86473         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86474         First arg is int, not unsigned.
86475         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86476         (SIZE_MAX, UINT_MAX): New macros.
86477         (quotearg_n_options): Abort if N is negative.
86478         Avoid overflow check on hosts where size_t is 64 bits and int
86479         is 32 bits, as overflow is impossible there.
86480         Fix off-by-one typo that caused unnecessary reallocation.
86481
86482 2001-11-27  Jim Meyering  <meyering@lucent.com>
86483
86484         * lib/tempname.c: Merge with version from libc.
86485         * lib/regex.c: Likewise.
86486
86487         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86488         systems for which STDC_HEADERS is 0, it was not included, resulting in
86489         a warning about an integer-to-pointer conversion problem with getenv.
86490         Reported by Volker Borchert.
86491
86492 2001-11-26  Jim Meyering  <meyering@lucent.com>
86493
86494         * lib/gtod.h: Remove file.
86495         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86496         * lib/gettimeofday.c: Don't include gtod.h.
86497         (GTOD_init): Remove function.
86498         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86499         Suggestion from Volker Borchert.
86500
86501 2001-11-23  Jim Meyering  <meyering@lucent.com>
86502
86503         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86504         it.
86505         * lib/hash.c (struct hash_table): Define it here instead.
86506
86507 2001-11-22  Jim Meyering  <meyering@lucent.com>
86508
86509         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86510
86511 2001-11-20  Jim Meyering  <meyering@lucent.com>
86512
86513         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86514         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86515
86516 2001-11-19  Jim Meyering  <meyering@lucent.com>
86517
86518         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86519         directory.  Use "conftestXXXXXX" as the template.
86520         Suggestion from Paul Eggert.
86521
86522         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86523         immediately, so the test doesn't mistakenly hit the max-open-files
86524         limit.
86525
86526 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86527
86528         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86529         (TEMPORARIES): New macro.
86530         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86531         removes an artificial limitation (e.g. HP-UX 10.20, where
86532         TMP_MAX is 17576).
86533
86534 2001-11-18  Jim Meyering  <meyering@lucent.com>
86535
86536         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86537
86538 2001-11-18  Jim Meyering  <meyering@lucent.com>
86539
86540         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86541         on SunOS 4.
86542
86543         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86544         files will be created before anything else.
86545
86546 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86547
86548         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86549         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86550
86551 2001-11-17  Jim Meyering  <meyering@lucent.com>
86552
86553         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86554         Prompted by a report from Bob Proulx.
86555
86556         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86557         Instead, require UTILS_FUNC_MKSTEMP.
86558
86559 2001-11-17  Jim Meyering  <meyering@lucent.com>
86560
86561         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86562         Now, that's done as part of AC_FUNC_STRTOD.
86563
86564 2001-11-17  Jim Meyering  <meyering@lucent.com>
86565
86566         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86567         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86568         rather than group writable.  Patch by Juan F. Codagnone.
86569
86570         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86571         xrealloc, Instead, include "xalloc.h".
86572
86573         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86574         Remove explicit declarations of xmalloc, xrealloc,
86575         and xstrdup.  Instead, include "xalloc.h".
86576
86577         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86578         unlocked-io.h.
86579         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86580         Likewise.
86581         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86582
86583         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86584         Reported by Padraig Brady.
86585
86586         * lib/mkstemp.c: #undef mkstemp.
86587         Include config.h.
86588         (rpl_mkstemp): Rename from mkstemp.
86589         Protoize.
86590
86591 2001-11-16  Jim Meyering  <meyering@lucent.com>
86592
86593         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86594         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86595         determine the amount of total physical memory, use pstat_getstatic.
86596         HPUX-11 doesn't define _SC_PHYS_PAGES.
86597         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86598         If sysconf couldn't be used to determine the amount of available
86599         physical memory, use both pstat_getstatic and pstat_getdynamic.
86600         Based on a patch from Bob Proulx.
86601
86602 2001-11-10  Jim Meyering  <meyering@lucent.com>
86603
86604         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86605         (jm_PREREQ): Use it.
86606
86607 2001-11-09  Jim Meyering  <meyering@lucent.com>
86608
86609         * m4/jm-macros.m4: Require autoconf-2.52f.
86610         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86611         Use these AC_-prefixed names, not the AM_-prefixed ones.
86612
86613         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86614
86615 2001-11-05  Jim Meyering  <meyering@lucent.com>
86616
86617         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86618
86619 2001-11-04  Jim Meyering  <meyering@lucent.com>
86620
86621         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86622         $DEFS.
86623
86624 2001-11-03  Jim Meyering  <meyering@lucent.com>
86625
86626         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86627         of AC_DEFUN.
86628
86629         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86630         know the name of the variable in the macro definition.
86631
86632 2001-11-03  Jim Meyering  <meyering@lucent.com>
86633
86634         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86635         in argmatch_to_argument call.
86636
86637         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86638         argument.
86639
86640         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86641         e.g., a fault due to an attempt to free a NULL pointer.
86642
86643 2001-11-01  Jim Meyering  <meyering@lucent.com>
86644
86645         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86646         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86647
86648 2001-11-01  Jim Meyering  <meyering@lucent.com>
86649
86650         * lib/dirfd.c, lib/dirfd.h: New files.
86651         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86652
86653         * lib/hash.c (hash_print) [TESTING]: Clean up.
86654
86655 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86656
86657         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86658         to avoid a warning if -Wall.
86659
86660 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86661
86662         * README: New file
86663         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86664         (per RMS's instructions, this is now the canonical source)
86665         * lgpl/, gpl/: New directories.
86666
86667 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86668
86669         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86670
86671 2001-10-21  Jim Meyering  <meyering@lucent.com>
86672
86673         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86674         this code would end up calling gettext even in packages built
86675         with --disable-nls.
86676         * lib/getopt.c (_): Likewise.
86677         * lib/regex.c (_): Likewise.
86678
86679 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86680
86681         * m4/error.m4 (jm_PREREQ_ERROR):
86682         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86683         AC_FUNC_STRERROR_R does that.
86684         Check for strerror declaration.
86685
86686         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86687         are supposed to have them these days.
86688         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86689         Merge changes from latest Autoconf CVS.
86690         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86691         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86692         POSIX decided to standardize on the int flavor of strerror_r.
86693
86694 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86695
86696         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86697         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86698         Use strerror_r that is only a macro, even if it is not a function.
86699         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86700         (private_strerror): Use prototypes, not old-style function definition.
86701         (print_errno_message): New function.
86702         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86703         char*-flavored one.
86704         (error_tail, error, error_at_line): Use it.
86705
86706 2001-10-11  Jim Meyering  <meyering@lucent.com>
86707
86708         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86709         and quote_n (1, ... to avoid clobbering a buffer.
86710
86711 2001-10-05  Jim Meyering  <meyering@lucent.com>
86712
86713         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86714         hash-pjw.h.
86715         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86716         * lib/hash-pjw.h: New file.
86717
86718 2001-09-30  Jim Meyering  <meyering@lucent.com>
86719
86720         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86721         `struct fsstat' has the `f_fstypename' member.
86722         Use that to define FS_TYPE, which is now used to make
86723         the getfsstat link test tighter.
86724
86725 2001-09-30  Jim Meyering  <meyering@lucent.com>
86726
86727         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86728         Include <sys/ucred.h>, for Apple Darwin.
86729         Include sys/mount.h and sys/fs_types.h only if available.
86730         (FS_TYPE): Define.
86731         (read_filesystem_list): Use FS_TYPE.
86732
86733 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86734
86735         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86736         a boolean context.
86737
86738 2001-09-29  Jim Meyering  <meyering@lucent.com>
86739
86740         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86741         [one-argument getmntent function]): Include stdio.h before mntent.h.
86742         SunOS 4.1.x needs it for the declaration of `FILE'.
86743         Patch by Volker Borchert.
86744
86745         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86746         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86747         sys/fs_types.h, and make the link-test for getfsstat guard #include
86748         directives with appropriate #if HAVE_*_H tests so that we can
86749         detect getfsstat on Apple Darwin1.3.7 systems.
86750         Reported by Nelson Beebe.
86751         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86752
86753 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86754
86755         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86756         #defines strtoimax.  Also treat the other strto* functions
86757         like strtoimax.
86758
86759         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86760         Check for strtoul and strtoumax,
86761         as those declarations are made even in the signed case.
86762         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86763         Likewise, for strtol and strtoimax.
86764
86765 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86766
86767         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86768         #defines strtoimax.  Also treat the other strto* functions
86769         like strtoimax.
86770
86771         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86772         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86773         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86774
86775 2001-09-26  Jim Meyering  <meyering@lucent.com>
86776
86777         Most macros in unlocked-io.h had the wrong number of arguments.
86778         * lib/gen-uio: New script.
86779         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86780         * lib/unlocked-io.hin: Remove file.
86781         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86782         rather than trying to embed it here.
86783         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86784         Reported by Padraig Brady.
86785
86786 2001-09-25  Volker Borchert  <bt@teknon.de>
86787
86788         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86789         `result'.
86790
86791 2001-09-24  Jim Meyering  <meyering@lucent.com>
86792
86793         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86794
86795 2001-09-23  Jim Meyering  <meyering@lucent.com>
86796
86797         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86798         instead of the mere test for existence of mntent.h.  The latter
86799         would get a false-positive on AIX 3.4 systems.
86800         In the outer getmntent if-block, don't die if neither of the getmntent
86801         tests succeeds.  Instead, just fall through and continue with the
86802         remaining tests.
86803
86804 2001-09-23  Jim Meyering  <meyering@lucent.com>
86805
86806         * lib/mountlist.c: Remove useless parentheses in #if directives.
86807         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86808         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86809
86810 2001-09-22  Jim Meyering  <meyering@lucent.com>
86811
86812         * m4/gettext.m4: New file.  From gettext.
86813         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86814         * m4/progtest.m4: Likewise
86815         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86816         * m4/glibc21.m4: Likewise.
86817
86818         * m4/libintl.m4: Remove.  No longer used.
86819
86820 2001-09-22  Jim Meyering  <meyering@lucent.com>
86821
86822         * lib/localcharset.c: Update from latest gettext.
86823         * lib/config.charset: Likewise.
86824
86825 2001-09-20  Jim Meyering  <meyering@lucent.com>
86826
86827         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86828         strtoimax.
86829         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86830         strtoumax.
86831
86832 2001-09-20  Jim Meyering  <meyering@lucent.com>
86833
86834         * lib/xstrtol.c (strtoimax): Guard declaration with
86835         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86836         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86837         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86838         (strtoumax): Likewise, for completeness (it wasn't necessary).
86839
86840 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86841
86842         * lib/strtoimax.c (HAVE_LONG_LONG):
86843         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86844         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86845         to work around bug in IBM C compiler.
86846
86847 2001-09-17  Jim Meyering  <meyering@lucent.com>
86848
86849         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86850         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86851         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86852         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86853         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86854         whenever the right hand side need not be expanded by the shell.
86855
86856 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86857
86858         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86859         library.  It's not correct, as some older glibcs are buggy.
86860         fnmatch wasn't fixed until glibc 2.2.
86861
86862         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86863         special shell magic here.
86864
86865 2001-09-16  Jim Meyering  <meyering@lucent.com>
86866
86867         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86868         * m4/jm-macros.m4: Require it.
86869
86870 2001-09-16  Jim Meyering  <meyering@lucent.com>
86871
86872         * lib/mkdir.c: New file.
86873
86874 2001-09-15  Jim Meyering  <meyering@lucent.com>
86875
86876         * m4/jm-macros.m4: Check for help2man.
86877
86878 2001-09-11  Jim Meyering  <meyering@lucent.com>
86879
86880         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86881         The body, by Paul Eggert, was moved here from configure.in.
86882         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86883
86884 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86885
86886         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86887         (jm_PREREQ): Use it.
86888
86889 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86890
86891         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86892         Use ssize_t, not int, to store result of readlink.
86893         Check for ssize_t overflow as well as size_t overflow,
86894         as POSIX says the result of readlink is implementation-defined
86895         when ssize_t overflows.
86896         Remove unnecessary cast to char*.
86897         Use free+malloc instead of realloc, as the storage doesn't need
86898         to be preserved and it's clearer and can be more efficient that way.
86899         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86900         * lib/xreadlink.h (xreadlink): Update prototype.
86901
86902 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86903
86904         * lib/xgetcwd.c: Revert some of the previous change; intead,
86905         fix the HAVE_GETCWD_NULL code to behave more like the
86906         !HAVE_GETCWD_NULL code used to.
86907
86908         Include "xalloc.h".
86909         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86910         invoke xalloc_die.
86911
86912 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86913
86914         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86915         sys/param.h, as pathmax.h includes them.
86916
86917 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86918
86919         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86920         (jm_PREREQ_XGETCWD): New macro.
86921
86922         * m4/getcwd.m4: New file.
86923
86924 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86925
86926         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86927         like the HAVE_GETCWD_NULL code.
86928         Include pathmax.h if not HAVE_GETCWD.
86929         Do not include xalloc.h.
86930         (INITIAL_BUFFER_SIZE): New symbol.
86931         Do not use xmalloc / xrealloc, since the caller is responsible for
86932         handling errors.  Preserve errno around `free' during failure.
86933         Do not overrun buffer when using getwd.
86934
86935 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86936
86937         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86938         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86939         getcwd (NULL, 0).
86940
86941 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86942
86943         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86944         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86945         spotted by Jim Meyering.
86946
86947 2001-09-03  Jim Meyering  <meyering@lucent.com>
86948
86949         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86950         failure.
86951
86952 2001-09-02  Jim Meyering  <meyering@lucent.com>
86953
86954         * lib/error.c: Update from GNU libc.
86955
86956 2001-09-01  Jim Meyering  <meyering@lucent.com>
86957
86958         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86959         Used by df.
86960
86961 2001-09-01  Jim Meyering  <meyering@lucent.com>
86962
86963         * lib/xreadlink.c: New file.
86964         * lib/xreadlink.h: New file.
86965         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86966         xreadlink.h.
86967
86968         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86969         doesn't conflict with sparc Solaris 7's definition in
86970         /usr/include/sys/int_types.h.
86971
86972         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86973         files.
86974         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86975         and strncasecmp as r-values.  Unixware didn't have declarations.
86976
86977 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86978
86979         * lib/xstrtol.h: Add copyright notice.
86980         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86981         LONGINT_INVALID_SUFFIX_CHAR.
86982
86983 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86984
86985         * lib/xstrtol.c (strtoimax): New decl.
86986
86987 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86988
86989         * lib/xgetcwd.c: Don't include pathmax.h.
86990         Include stdlib.h and unistd.h if available.
86991         Include xalloc.h.
86992         (xmalloc, xstrdup, free): Remove decls.
86993         (xgetcwd): Don't assume sizes fit in unsigned.
86994         Check for overflow when computing sizes.
86995         Simplify reallocation code.
86996
86997 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86998
86999         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
87000         a directory's st_size can have an arbitrary value, so the old
87001         usage could waste an arbitrary amount of memory.  All uses
87002         changed.
87003         * lib/savedir.h: Update prototype.
87004
87005 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87006
87007         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
87008
87009         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
87010         old strtoimax.c.
87011
87012         Also, make the following further changes to make this file's
87013         configuration more similar to that of strtol.c:
87014         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
87015         (strtoumax, uintmax_t, strtoull, strtol): Remove.
87016         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
87017         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
87018         changed to signed values.
87019
87020         And make the following changes as well:
87021         Fix copyright notice, as 1999 was missing.
87022         (verify): New macro.
87023         (strtoimax): Check sizes at compile-time, not run-time.
87024         Prefer strtol to strtoll if both work.
87025         (main): Remove; it was not that useful and was a pain to maintain.
87026
87027         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
87028
87029 2001-08-31  Jim Meyering  <meyering@lucent.com>
87030
87031         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
87032         Use an initial, malloc'd, buffer of length 128 rather than
87033         a statically allocated one of length 1024.
87034
87035 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87036
87037         Simplify code, partly by assuming autoconf 2.52 semantics.
87038
87039         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
87040
87041         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
87042         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
87043         All uses removed.
87044         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
87045         Move AC_REQUIRE to next-to-top level, to avoid confusion.
87046         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
87047         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
87048         jm_AC_HEADER_INTTYPES_H.
87049         * m4/jm-macros.m4 (jm_MACROS): Likewise.
87050
87051         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
87052
87053         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87054         Quote first arg of AC_DEFUN.
87055         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
87056         since they are needed to parse the include file even if we need
87057         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
87058         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
87059         but with opposite signedness.
87060
87061 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87062
87063         Merge 'exclude' changes from tar 1.13.22.
87064         This fixes one or two unlikely storage allocation overflow bugs,
87065         but doesn't change user-visible behavior otherwise.
87066
87067 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87068
87069         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
87070         (jm_PREREQ_EXCLUDE): New macro.
87071
87072 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87073
87074         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
87075         tm to be declared.
87076
87077 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87078
87079         * lib/hash.c: Remove '2001' from copyright notice.
87080
87081 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87082
87083         * lib/full-write.h: New file.
87084         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
87085         * lib/full-write.c: Correct credits, as cccp.c no longer
87086         exists and anyway it was so heavily changed from the old cccp
87087         code as to be unrecognizable.  Include full-write.h.
87088         (full_write): Return size_t, with short writes meaning failure.
87089         All callers changed.  This fixes a bug with large buffers
87090         on 64-bit hosts.
87091         * lib/utime.c: Include full-write.h.
87092
87093 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87094
87095         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
87096         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
87097         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
87098         Include if available.
87099         (<xalloc.h>): Include
87100         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
87101         (verify): New macro.  Use it to verify that EXCLUDE macros do not
87102         collide with FNM macros.
87103         (struct patopts): New struct.
87104         (struct exclude): Use it, as exclude patterns now come with options.
87105         (new_exclude): Support above changes.
87106         (new_exclude, add_exclude_file):
87107         Initial size must now be a power of two to simplify overflow checking.
87108         (free_exclude, fnmatch_no_wildcards): New function.
87109         (excluded_filename): No longer requires options arg, as the options
87110         are determined by add_exclude.  Now returns bool, not int.
87111         (excluded_filename, add_exclude):
87112         Add support for the fancy new exclusion options.
87113         (add_exclude, add_exclude_file): Now takes int options arg.
87114         Check for arithmetic overflow when computing sizes.
87115         (add_exclude_file): xrealloc might modify errno, so don't
87116         realloc until after errno might be used.
87117
87118         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
87119         New macros.
87120         (free_exclude): New decl.
87121         (add_exclude, add_exclude_file): Now takes int options arg.
87122         (excluded_filename): No longer requires options arg, as the options
87123         are determined by add_exclude.  Now returns bool, not int.
87124
87125 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87126
87127         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
87128
87129 2001-08-27  Jim Meyering  <meyering@lucent.com>
87130
87131         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
87132
87133         * lib/version-etc.c (N_): Remove definition.
87134         Revert most of last change.
87135         Instead, simply don't mark the `Copyright...' string for translation.
87136         Based on advice from Paul Eggert.
87137
87138         * lib/strtoxmax.c: Tweak comment.
87139
87140 2001-08-26  Jim Meyering  <meyering@lucent.com>
87141
87142         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
87143
87144         * m4/xstrtoimax.m4: New file.
87145         * m4/xstrtoumax.m4: Add comments explaining why we
87146         AC_REPLACE_FUNCS(strtol).
87147
87148 2001-08-26  Jim Meyering  <meyering@lucent.com>
87149
87150         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
87151         of copyright with `%s' so translators don't get an untranslated
87152         message in 2002.
87153         (COPYRIGHT_YEAR): Define.
87154         (version_etc): Use fprintf rather than fputs.
87155         Suggestion from Ulrich Drepper.
87156
87157         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
87158
87159         * lib/strtoll.c: New file, from GNU libc.
87160         * lib/xstrtoimax.c: New file.
87161
87162         * lib/xstrtol.h: Add xstrtoimax.
87163         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
87164         * lib/strtoimax.c: New file.  Likewise, but first define
87165         STRTOUXMAX_SIGNED.
87166
87167         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
87168         ...
87169         * lib/strtoxmax.c: ... then renamed to this.
87170
87171 2001-08-18  Paul Eggert  <eggert@twinsun.com>
87172
87173         * m4/inttypes.m4: Add AC_PREREQ(2.13).
87174         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
87175         (jm_AC_TYPE_INTMAX_T): New macro.
87176         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
87177
87178         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
87179
87180         * m4/longlong.m4: Renamed from ulonglong.m4.
87181         * m4/inttypes.m4: Renamed from inttypes_h.m4.
87182         * m4/uintmax_t.m4: Removed.
87183
87184 2001-08-13  Paul Eggert  <eggert@twinsun.com>
87185
87186         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
87187         Port to Solaris 8, where 'sed' requires a space after the 'r'
87188         command, and where sh dislikes "$/".  Clean up the spacing a bit.
87189         Redirect output to $tmp just once.
87190
87191 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
87192
87193         * lib/addext.c (<errno.h>): Include.
87194         (errno): Declare if not defined.
87195         (addext): Work correctly when pathconf returns -1 and leaves
87196         errno alone because there is no limit.  Also, work even if
87197         pathconf returns a value greater than SIZE_MAX.
87198
87199 2001-08-12  Jim Meyering  <meyering@lucent.com>
87200
87201         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
87202         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
87203         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
87204         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
87205         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
87206         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
87207         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
87208         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
87209         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
87210         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
87211         utime.m4, utimes.m4, xstrtoumax.m4:
87212         Quote the first argument in each use of AC_DEFUN.
87213
87214 2001-08-12  Jim Meyering  <meyering@lucent.com>
87215
87216         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
87217         Simply `return getcwd (NULL, 0);'.
87218         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
87219         Use 1300 as initial value for length, not PATH_MAX.
87220
87221         * lib/pathmax.h: Clean up cpp syntax.
87222
87223 2001-08-12  Jim Meyering  <meyering@lucent.com>
87224
87225         * lib/gettimeofday.c: New file.
87226         * lib/gtod.h: New file.
87227         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
87228
87229 2001-08-05  Jim Meyering  <meyering@lucent.com>
87230
87231         * m4/jm-macros.m4: Require autoconf-2.52.
87232
87233 2001-08-04  Jim Meyering  <meyering@lucent.com>
87234
87235         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
87236         stmt, to get in sync with glibc.
87237
87238 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87239
87240         The following changes are from gettext 0.10.39 as maintained by
87241         Bruno Haible.
87242
87243         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
87244         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
87245         with inverted sense.  All uses changed.
87246
87247         * lib/mbswidth.c: Don't include <limits.h>.
87248         Include <stdlib.h> and <string.h> unconditionally.
87249         (iswcntrl, mbsinit, ISCNTRL): New macros.
87250         (mbsnwidth): Use K&R style function declarations.
87251         Don't bother checking for MB_LEN_MAX == 1, since the compiler
87252         can optimize it when MB_CUR_MAX == 1.
87253         The width of control characters is zero, not 1.
87254
87255 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87256
87257         The following changes are from gettext 0.10.39 as maintained by
87258         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
87259
87260         * m4/codeset.m4: Upgrade to serial AM1.
87261         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
87262         all uses changed.  Quote first arg of AC_DEFUN.
87263         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
87264
87265         * m4/iconv.m4: Upgrade to serial AM2.
87266         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
87267         Add --with-libconv-prefix.
87268         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
87269         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
87270         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
87271         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
87272         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
87273
87274         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
87275         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
87276         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
87277         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
87278         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
87279         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
87280         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87281         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
87282         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
87283
87284         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
87285         string.h any more.
87286
87287         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
87288         not the default value.
87289
87290         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
87291         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
87292         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
87293         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
87294         Also check for iswcntrl, used for wcwidth fallback.
87295         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
87296         to Autoconf 2.13.
87297
87298 2001-08-03  Jim Meyering  <meyering@lucent.com>
87299
87300         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
87301         as it was in the original.  Reported by Paul Eggert.
87302
87303 2001-07-16  Jim Meyering  <meyering@lucent.com>
87304
87305         * m4/gettimeofday.m4: New file.
87306         Prompted by a report from Bernhard Baehr.
87307
87308 2001-07-15  Jim Meyering  <meyering@lucent.com>
87309
87310         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
87311         stuff. Now it's in ../Makefile.cfg.
87312
87313 2001-07-15  Jim Meyering  <meyering@lucent.com>
87314
87315         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
87316         (BUILT_SOURCES): Add unlocked-io.h.
87317         (io_functions): Define.
87318         (unlocked-io.h): New rule.
87319         (DISTCLEANFILES): Add unlocked-io.h.
87320         (all-local): Depend on unlocked-io.h, to ensure it is created.
87321
87322         * lib/unlocked-io.hin: New file
87323
87324         * lib/regex.c: Update from glibc.
87325
87326 2001-07-05  Jim Meyering  <meyering@lucent.com>
87327
87328         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
87329         recommendation.
87330         (libfetish_a_SOURCES): Put all .h files here instead.
87331         Remove a thus-exposed (better checks in automake) duplicate and
87332         two unnecessary .h files.
87333
87334 2001-07-04  Jim Meyering  <meyering@lucent.com>
87335
87336         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
87337         that generates jm-glibc-io.m4 so that it doesn't trigger any make
87338         distcheck failure.
87339
87340 2001-07-02  Jim Meyering  <meyering@lucent.com>
87341
87342         The following changes were prompted by suggestions from Bruno Haible.
87343
87344         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
87345         is now generated.
87346         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
87347         definition of EXTRA_DIST.
87348         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
87349         ensure that the generated file is created/updated whenever the list
87350         of $(unlocked_functions) is changed.
87351         (jm-glibc-io.m4): New rule.
87352         (unlocked-io.h): New rule -- currently unused.
87353
87354 2001-06-24  Jim Meyering  <meyering@lucent.com>
87355
87356         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
87357         unmatched right bracket, rather than kludging it with an extra,
87358         falsely-matching quote in a comment.  Patch by Akim Demaille.
87359
87360 2001-06-11  Jim Meyering  <meyering@lucent.com>
87361
87362         * lib/regex.c: Update from GNU libc.
87363
87364 2001-05-27  Jim Meyering  <meyering@lucent.com>
87365
87366         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87367         Check for ut_type in struct utmp.
87368
87369 2001-05-27  Jim Meyering  <meyering@lucent.com>
87370
87371         * lib/readutmp.h (UT_TYPE): Define.
87372
87373 2001-05-24  Jim Meyering  <meyering@lucent.com>
87374
87375         * lib/argmatch.c: Include "quote.h".
87376         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87377         quote function.  Reported by Göran Uddeborg.
87378
87379 2001-05-22  Jim Meyering  <meyering@lucent.com>
87380
87381         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87382         now that we use the package-supplied version unconditionally.
87383         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87384
87385 2001-05-21  Jim Meyering  <meyering@lucent.com>
87386
87387         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87388         shell syntax errors.
87389
87390 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87391
87392         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
87393
87394 2001-05-20  Paul Eggert  <eggert@twinsun.com>
87395
87396         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
87397         Don't bother to check library strftime, since
87398         we'll be using our own my_strftime function anyway.
87399         Define my_strftime instead of strftime.
87400
87401 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
87402
87403         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
87404         which is not yet declared.
87405
87406 2001-05-15  Jim Meyering  <meyering@lucent.com>
87407
87408         * m4/regex.m4: Use proper quoting so brackets appear in the test
87409         program.
87410         Reported by, and with help from, Bruno Haible.
87411
87412 2001-05-13  Jim Meyering  <meyering@lucent.com>
87413
87414         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
87415         undefined.
87416
87417 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87418
87419         dirname code cleanup.  base_name now behaves more compatibly
87420         with POSIX basename when given file names that have trailing
87421         slashes, and similarly for dir_name.  Add new primitives
87422         base_len and dir_len.  Put the directory-name-related decls
87423         into dirname.h.
87424
87425         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
87426         * lib/backupfile.c (base_name): Likewise.
87427         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
87428         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
87429         * lib/makepath.c (strip_trailing_slashes): Likewise.
87430         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
87431         ISSLASH): Likewise.
87432         * lib/rename.c (strip_trailing_slashes): Likewise.
87433         * lib/same.c (base_name): Likewise.
87434         * lib/stripslash.c (ISSLASH): Likewise.
87435
87436         * lib/addext.c: Include <dirname.h> after size_t is defined.
87437         * lib/backupfile.c: Likewise.
87438
87439         * lib/addext.c (addext): Use base_len to trim redundant
87440         trailing slashes instead of doing it ourselves.
87441         But do not trim the last slash if it is not redundant.
87442
87443         * lib/backupfile.c (find_backup_file_name,
87444         max_backup_version): Use base_len instead of rolling it ourselves.
87445         Handle the case of "" and (on DOS) "C:" correctly.
87446
87447         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
87448         needed. Include <string.h>, <dirname.h>.
87449         (base_name): Allow file names ending in slashes, other than names
87450         that are all slashes.  In this case, return the basename followed
87451         by the slashes.  This is more general, and can be used in places
87452         where the original base_name purposely had an assertion failure.
87453         (base_len): New function.
87454
87455         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
87456         Do not include <assert.h>; no longer needed.
87457         Include xalloc.h.
87458         (memrchr): Remove decl.
87459         (dir_name_r): Remove.
87460         (dir_len): Renamed from dirlen.  All callers changed.
87461         Rewrite in terms of base_name, for simplicity and consistency.
87462         (dir_name): Never return NULL.  All callers changed.
87463         Do not include <stdlib.h> in test program; no longer needed.
87464         return 0; is fine for test program.
87465
87466         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
87467         New macros.
87468         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
87469
87470         * lib/path-concat.c (path_concat): Use base_len to compute
87471         base length, not strlen; this means we cannot rely on memcpy
87472         to null-terminate.
87473
87474         * lib/same.c (STREQ): Remove.
87475         (same_name): Handle the case where the basename ends in trailing '/'.
87476
87477         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87478         a slash was stripped.  Do not strip the last slash after a
87479         file system prefix.
87480
87481 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87482
87483         * lib/Makefile.am (libfetish_a_SOURCES):
87484         Add strftime.c, since we now compile it on all hosts.
87485
87486         * lib/strftime.c (my_strftime):
87487         Define to nstrftime if emacs, but only if my_strftime is not defined.
87488         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87489         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87490         Add one more extra argument: a nanoseconds value.
87491         All uses changed.
87492         (ns): New macro.
87493         (my_strftime function): Add %N format.
87494         (emacs_strftimeu): Renamed from emacs_strftime,
87495         with extra ut argument.
87496
87497 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87498
87499         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87500
87501 2001-04-21  Jim Meyering  <meyering@lucent.com>
87502
87503         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87504         doesn't interfere.
87505
87506 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87507
87508         * m4/ftruncate.m4: Check for chsize.
87509         Link with ftruncate.o unconditionally if ftruncate is missing.
87510         This was required when cross-compiling to i586-mingw32msvc.
87511
87512 2001-04-08  Jim Meyering  <meyering@lucent.com>
87513
87514         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87515         recomputed; that's necessary when the offset spans a DST transition.
87516         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87517
87518 2001-04-02  Jim Meyering  <meyering@lucent.com>
87519
87520         * lib/regex.h, regex.c: Update from GNU libc.
87521
87522 2001-03-24  Jim Meyering  <meyering@lucent.com>
87523
87524         * m4/jm-macros.m4: Require autoconf-2.49d.
87525
87526 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87527
87528         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87529
87530 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87531
87532         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87533
87534 2001-03-17  Jim Meyering  <meyering@lucent.com>
87535
87536         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87537         now that the version in autoconf is equivalent.
87538         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87539
87540         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87541         Suggestion from Akim Demaille.
87542
87543         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87544         (jm_PREREQ_TEMPNAME): New function.
87545
87546 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87547
87548         * lib/tempname.c (uint64_t): Define to uintmax_t if
87549         not defined, and if UINT64_MAX is not defined.
87550         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87551         Reported by John David Anglin.
87552
87553 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87554
87555         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87556         resolve alias if codeset is empty.
87557         * lib/config.charset (BeOS): Use wildcard syntax.
87558
87559 2001-03-13  Jim Meyering  <meyering@lucent.com>
87560
87561         * lib/path-concat.c (path_concat)
87562         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87563         concatenating e.g., `C:' and `foo'.
87564         From Bruno Haible.
87565
87566 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87567
87568         * lib/localcharset.c (locale_charset): Don't use
87569         setlocale(LC_CTYPE,NULL). Don't return NULL.
87570         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87571
87572 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87573
87574         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87575         support for DOS/DJGPP.
87576
87577 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87578
87579         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87580         lacks mkstemp.  Compile our own tempname.c if we compile our own
87581         mkstemp.c, as mkstemp relies on tempname.
87582
87583 2001-03-01  Jim Meyering  <meyering@lucent.com>
87584
87585         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87586         AH_VERBATIM really does output its argument verbatim.
87587
87588 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87589
87590         * lib/Makefile.am (libfetish_a_SOURCES):
87591         Add dup-safer.c, fopen-safer.c.
87592         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87593
87594         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87595         * lib/unistd-safer.h: New files.
87596
87597 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87598
87599         The mkstemp replacement is taken from glibc 2.2.2, with some
87600         portability fixes for use outside glibc, as follows:
87601
87602         * lib/tempname.c (struct_stat64): New macro.
87603         (direxists, __gen_tempname): Use it.
87604         This avoids a portability problem with Solaris 8.
87605
87606         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87607         (<stddef.h>, <stdint.h>, <string.h>):
87608         Include only if STDC_HEADERS || _LIBC.
87609         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87610         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87611         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87612         (__set_errno): Define this macro if <errno.h> doesn't.
87613         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87614         Define these macros if <stdio.h> doesn't.
87615         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87616         Define these macros if <sys/stat.h>
87617         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87618         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87619         __xstat64): Define if not _LIBC.
87620         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87621         (__gen_tempname): Invoke gettimeofday only if
87622         HAVE_GETTIMEOFDAY || _LIBC;
87623         otherwise, fall back on plain "time".
87624         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87625
87626         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87627
87628         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87629
87630 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87631
87632         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87633
87634 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87635
87636         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87637         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87638         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87639         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87640
87641 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87642
87643         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87644         Remove workaround macros for hosts that have mbrtowc but not
87645         mbstate_t, as we now insist on proper declarations for both
87646         before using mbrtowc.
87647
87648 2001-02-17  Jim Meyering  <meyering@lucent.com>
87649
87650         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87651         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87652         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87653         UnixWare 7.1.1.
87654
87655         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87656         rather than AC_CACHE_VAL.
87657
87658 2001-02-17  Jim Meyering  <meyering@lucent.com>
87659
87660         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87661         around included file name.
87662
87663         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87664
87665         * lib/strftime.c: Update from GNU libc (the only changes were to
87666         comments).
87667
87668 2001-02-17  Jim Meyering  <meyering@lucent.com>
87669
87670         * lib/regex.c: Update from libc.
87671
87672 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87673
87674         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87675         clash.
87676
87677 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87678
87679         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87680         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87681         Reported by Mark Hounschell via Paul Eggert.
87682
87683 2001-02-07  Jim Meyering  <meyering@lucent.com>
87684
87685         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87686
87687 2001-02-05  Jim Meyering  <meyering@lucent.com>
87688
87689         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87690         it includes the patch required for `large file' support with at least
87691         HP-UX's 10.20 /bin/cc.
87692
87693 2001-02-03  Jim Meyering  <meyering@lucent.com>
87694
87695         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87696         AS_IF, now that it works once again (mysteriously).
87697         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87698
87699 2001-01-30  Jim Meyering  <meyering@lucent.com>
87700
87701         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87702         * m4/chown.m4: Rename conftestchown to conftest.chown.
87703         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87704         s/conftestdir2/conftest.d2/.
87705         * m4/utimes.m4: s/conftestdata/conftest.data/
87706         Inspired by Pavel Roskin's change in autoconf.
87707
87708 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87709
87710         * lib/config.charset: Update for FreeBSD 4.2.
87711
87712 2001-01-27  Jim Meyering  <meyering@lucent.com>
87713
87714         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87715         a use of AS_IF.
87716         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87717
87718 2001-01-26  Jim Meyering  <meyering@lucent.com>
87719
87720         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87721         quotearg.c includes it.
87722
87723 2001-01-26  Jim Meyering  <meyering@lucent.com>
87724
87725         * lib/quotearg.c: Include stddef.h.
87726         * lib/quote.c: Include stddef.h.
87727         Reported by Axel Kittenberger.
87728
87729         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87730         line in double quotes so that it evokes a better diagnostic.
87731         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87732         Reported by Axel Kittenberger.
87733
87734 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87735
87736         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87737         as if it was a `charset'.
87738
87739 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87740
87741         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87742         has const.
87743
87744 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87745
87746         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87747         to avoid a warning.  Add back 'const' to inptr.
87748
87749 2001-01-20  Jim Meyering  <meyering@lucent.com>
87750
87751         Be sure that headers are checked before used in code compiled
87752         for the type checks.
87753         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87754         In place of that, invoke jm_CHECK_ALL_TYPES.
87755         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87756         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87757         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87758         The check for ssize_t was mistakenly run before the test for unistd.h.
87759
87760         The configure-time check for stdbool.h was missing.
87761         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87762         (jm_PREREQ_HASH): New function.
87763
87764 2001-01-17  Jim Meyering  <meyering@lucent.com>
87765
87766         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87767         for autoconf-2.49c.
87768         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87769
87770 2001-01-16  Jim Meyering  <meyering@lucent.com>
87771
87772         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87773         From Bruno Haible.
87774
87775 2001-01-14  Jim Meyering  <meyering@lucent.com>
87776
87777         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87778         foo and bar.  Create conftestdir/ in the script, not in the C code.
87779         Remove directories in the script, not in the C code.
87780         Remove conftestdir{,2} before trying to create the directory.
87781         Make the entire configure script fail if the mkdir fails.
87782
87783 2001-01-14  Jim Meyering  <meyering@lucent.com>
87784
87785         * lib/rename.c: New file.  From Volker Borchert.
87786         Include stdlib.h, string.h or strings.h, and xalloc.h.
87787         Use strip_trailing_slashes rather than open-coding it.
87788
87789 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87790
87791         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87792
87793 2001-01-03  Jim Meyering  <meyering@lucent.com>
87794
87795         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87796         of local `inptr' to avoid warning with some system declarations of
87797         iconv.
87798
87799 2001-01-02  Volker Borchert  <bt@teknon.de>
87800
87801         * m4/rename.m4: New file.
87802         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87803
87804 2001-01-01  Jim Meyering  <meyering@lucent.com>
87805
87806         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87807         even on systems with utmpx.h.  It's necessary for the declaration of
87808         utmp's ut_user member.  Reported by Andreas Jaeger.
87809
87810         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87811         available. They are required for the declarations of getgrgid and
87812         getpwuid resp.
87813         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87814         Reported by Andreas Jaeger.
87815
87816 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87817
87818         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87819         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87820         so `make install' also works in VPATH builds.
87821
87822 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87823
87824         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87825         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87826         can be used in subdirectories.
87827
87828 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87829
87830         * lib/modechange.c: Do not assume that mode_t uses the
87831         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87832         the other-execute bit of FOO even if S_IXOTH != 1.
87833
87834         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87835         WOTH, XOTH, ALLM): New macros.
87836         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87837          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87838         Use them.
87839         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87840         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87841         (mode_compile):
87842         No need to use uintmax_t; unsigned long is long enough.
87843         Don't bother to get suffix since we don't use it.
87844
87845 2000-12-26  Jim Meyering  <meyering@lucent.com>
87846
87847         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87848         better with autoheader.
87849
87850 2000-12-24  Jim Meyering  <meyering@lucent.com>
87851
87852         * lib/hash.c (is_prime): Return explicit boolean values.
87853         (hash_get_first): Return NULL to appease Irix5.6's 89.
87854         Reported by Nelson Beebe.
87855
87856 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87857
87858         * lib/localcharset.c (locale_charset): Add support for Win32.
87859
87860 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87861
87862         * lib/physmem.h, lib/physmem.c: New files.
87863
87864         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87865         (noinst_HEADERS): Add physmem.h.
87866
87867         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87868         't' for compatibility with Solaris 8 sort.
87869
87870 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87871
87872         * lib/config.charset: Add support for BeOS.
87873
87874 2000-12-17  Jim Meyering  <meyering@lucent.com>
87875
87876         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87877         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87878
87879 2000-12-16  Jim Meyering  <meyering@lucent.com>
87880
87881         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87882         N and M) would have treated it like `chown N:N FILE'.
87883
87884         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87885
87886 2000-12-16  Jim Meyering  <meyering@lucent.com>
87887
87888         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87889         SHELLS_FILE to a file name that's useful on djgpp systems.
87890         Include stdlib.h.
87891         (ADDITIONAL_DEFAULT_SHELLS): Define.
87892         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87893         Based mostly on a patch from Prashant TR.
87894
87895 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87896
87897         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87898         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87899         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87900
87901 2000-12-08  Andreas Schwab  <schwab@suse.de>
87902
87903         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87904         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87905
87906 2000-12-07  Jim Meyering  <meyering@lucent.com>
87907
87908         * lib/stripslash.c (ISSLASH): Define.
87909         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87910         `/'.
87911         From Prashant TR.
87912
87913         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87914         (dir_name_r): Declare this function as static.
87915         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87916         manifest itself on a name containing a mix of slashes and
87917         backslashes.
87918         Make this function work with names starting with a DOS-style
87919         drive letter and colon prefix.
87920         (dir_name): Append `.' if necessary.
87921         Based mostly on patches from Prashant TR and Eli Zaretskii.
87922
87923         * lib/dirname.h (dir_name_r): Remove prototype.
87924
87925 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87926
87927         * m4/off_t-format.m4: Remove this file.
87928         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87929
87930 2000-12-06  Jim Meyering  <meyering@lucent.com>
87931
87932         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87933         replacement strtoull, we may well need the replacement strtoul, too.
87934         Check for declarations of strtoul and strtoull.
87935         Check for strtol.  Mainly as a cue to cause automake to include
87936         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87937         Check for limits.h -- strtol.c needs it.
87938
87939 2000-12-05  Jim Meyering  <meyering@lucent.com>
87940
87941         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87942
87943 2000-12-04  Jim Meyering  <meyering@lucent.com>
87944
87945         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87946         Also include memory.h, stdlib.h, unistd.h if appropriate.
87947         Reported by Andreas Jaeger (conflicting declaration of malloc).
87948
87949 2000-12-02  Jim Meyering  <meyering@lucent.com>
87950
87951         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87952         * m4/jm-macros.m4 (jm_MACROS): require it.
87953
87954 2000-12-02  Jim Meyering  <meyering@lucent.com>
87955
87956         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87957
87958 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87959
87960         * lib/memrchr.c: Include <config.h> before any system include file.
87961
87962 2000-11-30  Jim Meyering  <meyering@lucent.com>
87963
87964         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87965
87966 2000-11-30  Jim Meyering  <meyering@lucent.com>
87967
87968         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87969
87970 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87971
87972         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87973
87974 2000-11-26  Jim Meyering  <meyering@lucent.com>
87975
87976         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87977
87978 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87979
87980         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87981         size of (size_t) -1; it's not portable.
87982
87983 2000-11-17  Jim Meyering  <meyering@lucent.com>
87984
87985         * lib/strstr.c: Update from GNU libc.
87986
87987 2000-11-17  Akim Demaille  <akim@epita.fr>
87988
87989         * lib/obstack.h: Formatting changes.
87990         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87991         prevent type checking.
87992         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87993         cast the value to (void *): assigning a `foo *' to a `void *'
87994         variable is valid.
87995         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87996
87997 2000-11-16  Jim Meyering  <meyering@lucent.com>
87998
87999         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
88000
88001 2000-11-11  Jim Meyering  <meyering@lucent.com>
88002
88003         * lib/error.c: Add a couple #includes, merging from GNU libc version.
88004
88005 2000-11-10  Jim Meyering  <meyering@lucent.com>
88006
88007         * lib/obstack.h: Update from GNU libc.
88008         * lib/obstack.c: Likewise.
88009
88010 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
88011
88012         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
88013
88014 2000-11-06  Paul Eggert  <eggert@twinsun.com>
88015
88016         * lib/getusershell.c (setusershell): Use rewind rather than
88017         fseek/fseeko, to avoid configuration hassles with fseeko.
88018         Don't bother opening SHELLS_FILE if shellstream is NULL;
88019         it's not necessary.
88020
88021 2000-11-05  Jim Meyering  <meyering@lucent.com>
88022
88023         * lib/makepath.h (make_dir): Declare.
88024         * lib/makepath.c (make_dir): Remove `static' attribute.
88025         Tweak a comment.
88026
88027 2000-11-04  Jim Meyering  <meyering@lucent.com>
88028
88029         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
88030
88031 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
88032
88033         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
88034         last one in a bucket, advance to the next bucket.
88035
88036 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
88037
88038         * lib/fnmatch.c: Do not comment out all the code if we are using
88039         the GNU C library, because in some cases we are replacing buggy
88040         code in the GNU C library itself.
88041
88042 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
88043
88044         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
88045         (regex_compile): Catch bogus \(\1\).
88046
88047 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88048
88049         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
88050         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
88051         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
88052
88053 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88054
88055         * lib/error.h, getline.h, modechange.h:
88056         Remove "2000" from Copyright line, as the file hasn't been
88057         changed this year other than in the copyright notice.
88058
88059         * lib/xalloc.h: Add "2000" to Copyright line, as this file
88060         was changed this year.
88061
88062 2000-10-29  Jim Meyering  <meyering@lucent.com>
88063
88064         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
88065         renaming.
88066         * m4/ls-mntd-fs.m4: Likewise
88067
88068 2000-10-29  Jim Meyering  <meyering@lucent.com>
88069
88070         * lib/xstat.in: Fix grammar in comment.
88071
88072 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
88073
88074         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
88075         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
88076         doesn't define __restrict_arr.
88077
88078 2000-10-28  Jim Meyering  <meyering@lucent.com>
88079
88080         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
88081         (jm_PREREQ_MEMCHR): New function.
88082
88083 2000-10-28  Jim Meyering  <meyering@lucent.com>
88084
88085         * lib/memchr.c: Update from libc.
88086         Adjust for portability:
88087         [HAVE_STDLIB_H]: Include stdlib.h.
88088         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
88089         Undef __memchr, too.
88090         [!weak_alias]: Define __memchr to memchr.
88091
88092         * lib/regex.c: Update from libc.
88093         * lib/regex.h: Likewise.
88094         * lib/getopt1.c: Likewise.
88095         * lib/memcmp.c: Likewise.
88096
88097         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
88098         Avoid using fseek, when possible -- it's broken by design.
88099         Patch by Ulrich Drepper.
88100
88101 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
88102
88103         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
88104         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
88105         Giving in to popular pressure to shut up the compiler with casts.
88106
88107 2000-10-26  Jim Meyering  <meyering@lucent.com>
88108
88109         * lib/strftime.c: Update from libc.
88110
88111 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
88112
88113         * regex.c: More `unsigned char' -> `re_char' changes.
88114         Also change several `int' into `re_wchar_t'.
88115         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
88116         (PUSH_FAILURE_POINTER): Don't cast any more.
88117         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
88118         We want GCC to complain, since this piece of code makes
88119         re_match non-reentrant, which *should* be fixed.
88120         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
88121         (EXTEND_BUFFER): Use RETALLOC.
88122         (SET_LIST_BIT): Don't cast.
88123         (re_wchar_t): New type.
88124         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
88125         that those two functions will always properly return.
88126         (IMMEDIATE_QUIT_CHECK): Cast to void.
88127         (analyse_first): Use recursion rather than an explicit stack.
88128         (re_compile_fastmap): Can't fail anymore.
88129         (re_search_2): Don't check re_compile_fastmap for failure.
88130         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
88131         Now also sets the new value (passed in a new argument).
88132         (re_match_2_internal): Use it.
88133         Also, use a new var `reg' of type size_t when looping through regs
88134         rather than reuse the inappropriate `mcnt'.
88135
88136 2000-10-25  Jim Meyering  <meyering@lucent.com>
88137
88138         * lib/obstack.c: Update from libc.
88139
88140 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
88141
88142         * regex.c (regex_compile): Change the way of handling a range from
88143         a char less than 256 to a char not less than 256.
88144
88145 2000-10-24  Andrew Innes  <andrewi@gnu.org>
88146
88147         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
88148         NT-Emacs only.
88149         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
88150         so that re_search functions only quit when callers expect them to.
88151
88152 2000-10-23  Jim Meyering  <meyering@lucent.com>
88153
88154         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
88155         wrong.  That set_locale call must not have any side effects.
88156         From Paul Eggert.
88157
88158 2000-10-22  Jim Meyering  <meyering@lucent.com>
88159
88160         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
88161         [CYCLIC]: Remove now-unused definition.
88162
88163         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
88164         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
88165         Suggestion from Ulrich Drepper.
88166
88167 2000-10-21  Jim Meyering  <meyering@lucent.com>
88168
88169         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
88170         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
88171         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
88172
88173 2000-10-21  Jim Meyering  <meyering@lucent.com>
88174
88175         * lib/dirname.c (memrchr): Declare if necessary.
88176         (dir_name): Remove the restriction that there be no
88177         trailing slashes.  Now, this code skips past them, effectively
88178         ignoring them.
88179         [TEST_DIRNAME] (main): New unit tests.
88180
88181         * lib/memrchr.c: New file from GNU libc.
88182         Undef __memrchr, too.
88183         [!weak_alias]: Define __memrchr to memrchr.
88184         Guard weak_alias use with `#ifdef weak_alias'.
88185
88186 2000-10-21  Jim Meyering  <meyering@lucent.com>
88187
88188         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
88189         (dir_name): Use dir_name_r.
88190         * lib/dirname.h (dir_name_r): Declare it.
88191
88192 2000-10-17  Jim Meyering  <meyering@lucent.com>
88193
88194         * lib/quote.h (PARAMS): Define and use.
88195         Reported by Akim Demaille.
88196
88197         * lib/getopt.c: Update from libc.
88198
88199 2000-10-16  Jim Meyering  <meyering@lucent.com>
88200
88201         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
88202         setlocale.
88203         From Jan Fedak.
88204
88205 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
88206
88207         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
88208
88209 2000-09-25  Jim Meyering  <meyering@lucent.com>
88210
88211         * lib/md5.h (rol): Define (from GnuPG).
88212
88213         * lib/sha.c: Give credit (GnuPG) where due.
88214         (M): Use rol rather than open-coding it.
88215         Add a FIXME comment.
88216
88217 2000-09-21  Jim Meyering  <meyering@lucent.com>
88218
88219         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
88220         Reported by Michael Stone.
88221
88222 2000-09-20  Jim Meyering  <meyering@lucent.com>
88223
88224         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
88225         (noinst_HEADERS): Add sha.h.
88226         Based on code from Scott G. Miller and from GnuPG.
88227
88228 2000-09-18  Jim Meyering  <meyering@lucent.com>
88229
88230         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
88231         LIBS. Otherwise, everyone ends up linking with -lelf for some
88232         configurations.
88233         Reported by Mike Stone.
88234
88235 2000-09-15  Jim Meyering  <meyering@lucent.com>
88236
88237         * lib/regex.c: Update from libc.
88238
88239 2000-09-10  Jim Meyering  <meyering@lucent.com>
88240
88241         * lib/getopt.c (_getopt_internal): Update from glibc.
88242
88243 2000-09-09  Jim Meyering  <meyering@lucent.com>
88244
88245         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
88246         think it should be used as a general replacement for isascii.
88247         * lib/fnmatch.c: Likewise.
88248         * lib/mbswidth.c: Likewise
88249         * lib/regex.c: Likewise.
88250
88251         Don't use atoi.
88252         * lib/userspec.c: Include sys/param.h and limits.h.
88253         Include xstrtol.h.
88254         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88255         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
88256         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
88257         UID, GID.  Check range.
88258
88259 2000-09-06  Jim Meyering  <meyering@lucent.com>
88260
88261         * lib/getopt.c (_getopt_internal): Update from glibc.
88262
88263 2000-08-30  Jim Meyering  <meyering@lucent.com>
88264
88265         * lib/strftime.c: Merge in changes from GNU libc.
88266
88267 2000-08-26  Jim Meyering  <meyering@lucent.com>
88268
88269         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
88270         * m4/fpending.m4: New file.
88271
88272 2000-08-26  Jim Meyering  <meyering@lucent.com>
88273
88274         * lib/closeout.c: Include "__fpending.h".
88275         (close_stdout_status): Return right away if there's nothing to flush.
88276
88277         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
88278         * lib/__fpending.c: New file.
88279         * lib/__fpending.h: New file.
88280
88281 2000-08-20  Jim Meyering  <meyering@lucent.com>
88282
88283         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
88284         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
88285         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
88286
88287 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
88288
88289         Improve fileutils installation on systems where running
88290         programs (like install) can't be unlinked.
88291         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
88292         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
88293
88294 2000-08-07  Paul Eggert  <eggert@twinsun.com>
88295
88296         Standardize on "memory exhausted" instead of "Memory exhausted"
88297         or "virtual memory exhausted".
88298         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
88299         "virtual memory exhausted".
88300         * lib/same.c (same_name): Invoke xalloc_die instead of printing
88301         our own message.
88302         * lib/userspec.c (parse_user_spec): Likewise.
88303         * lib/bumpalloc.h: comment fix
88304         * lib/same.c, userspec.c: Include xalloc.h.
88305
88306         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
88307         not char *const and pointing to a constant array.
88308         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
88309         (xrealloc): Comment fix.
88310
88311         * lib/userspec.c (parse_user_spec):
88312         Don't translate a message until just before returning,
88313         to avoid unnecessary translation.
88314
88315 2000-08-07  Jim Meyering  <meyering@lucent.com>
88316
88317         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
88318         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
88319         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
88320         getgroups.c, gethostname.c, getopt.h, group-member.c,
88321         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
88322         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
88323         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
88324         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
88325         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
88326         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
88327         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
88328         yesno.c: Back out Copyright date changes for each file with no change
88329         this year.  This eases coordination with other programs using the same
88330         source code modules.  From Paul Eggert.
88331
88332 2000-08-06  Paul Eggert  <eggert@twinsun.com>
88333
88334         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
88335         not char, for compatibility with glibc 2.1.3 strftime.c.
88336
88337 2000-08-03  Greg McGary  <greg@mcgary.org>
88338
88339         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
88340         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
88341         (EXTEND_BUFFER): Use them.
88342
88343 2000-08-01  Jim Meyering  <meyering@lucent.com>
88344
88345         * lib/dirname.c (ISSLASH): Define.
88346         (BACKSLASH_IS_PATH_SEPARATOR): Define.
88347         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
88348         both `\' and `/' may be use as path separators.
88349         Based on a patch from Prashant TR.
88350
88351 2000-07-31  Paul Eggert  <eggert@twinsun.com>
88352
88353         * lib/quotearg.c (quotearg_n_options): Don't make the initial
88354         slot vector a constant, since it might get modified.
88355
88356 2000-07-31  Jim Meyering  <meyering@lucent.com>
88357
88358         * lib/xmalloc.c: Use `virtual memory exhausted', not
88359         `Memory exhausted'.
88360         * lib/obstack.c (print_and_abort): Likewise.
88361
88362 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88363
88364         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88365         buffer, so that the caller can always quote one small
88366         component of a "memory exhausted" message in slot 0.
88367         From a suggestion by Jim Meyering.
88368
88369 2000-07-30  Jim Meyering  <meyering@lucent.com>
88370
88371         * lib/makepath.c (make_path): Quote the other instance, too.
88372
88373         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88374         (STATIC_BUF_SIZE): Define.
88375         (quotearg_n_options): Use only statically allocated storage when
88376         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88377         than STATIC_BUF_SIZE.
88378
88379 2000-07-29  Jim Meyering  <meyering@lucent.com>
88380
88381         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88382         * lib/dirname.c (dir_name): Likewise.
88383
88384         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88385         `/'.
88386
88387         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88388         (dir_name): Assert that there are no trailing slashes.
88389
88390 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88391
88392         * lib/mbswidth.h (mbswidth): Add a flags argument.
88393         (mbswidth): New declaration.
88394         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
88395         * lib/mbswidth.c (mbswidth): Add a flags argument.
88396         (mbsnwidth): New function.
88397
88398 2000-07-24  Jim Meyering  <meyering@lucent.com>
88399
88400         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
88401
88402 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88403
88404         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
88405
88406 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88407
88408         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
88409         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
88410         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
88411         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
88412         invoke multibyte primitives.
88413
88414 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88415
88416         * lib/quotearg.c:
88417         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
88418         so that mbstate_t is always defined.
88419
88420         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
88421         be 1 in at least one GCC installation, and this configuration
88422         error is likely to be common.  Ignoring MB_LEN_MAX hurts
88423         performance on hosts that have mbrtowc but have only unibyte
88424         locales, but I assume these hosts are rare.
88425
88426 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88427
88428         * lib/mbswidth.c (_XOPEN_SOURCE):
88429         Don't define; this causes problems on Solaris 7.
88430         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
88431
88432 2000-07-23  Jim Meyering  <meyering@lucent.com>
88433
88434         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
88435         too: getgrgid, getpwuid, getuid.
88436
88437 2000-07-23  Jim Meyering  <meyering@lucent.com>
88438
88439         * lib/basename.c (base_name): Add an assertion.
88440
88441 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
88442
88443         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
88444         shadow its mbsinit function.
88445
88446 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88447
88448         * lib/mbswidth.h: New file.
88449         * lib/mbswidth.c: New file.
88450         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
88451         (noinst_HEADERS): Add mbswidth.h.
88452
88453 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88454
88455         * lib/config.charset: Add support for FreeBSD. Improve support for
88456         HP-UX and IRIX 6.
88457
88458 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
88459
88460         * m4/mbswidth.m4: New file.
88461         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
88462
88463 2000-07-15  Jim Meyering  <meyering@lucent.com>
88464
88465         * lib/makepath.c: Include quote.h.
88466         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
88467         corresponding argument in a `quote (...)' call.
88468         Give better diagnostics.
88469
88470         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88471         (noinst_HEADERS): Add quote.h.
88472
88473         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88474         from tar's src/misc.c.
88475         * lib/quote.h: New file.  Prototypes for same.
88476
88477 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88478
88479         From a suggestion by Bruno Haible.
88480         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88481         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88482         to decide whether to define the BeOS workaround macro;
88483         this adjusts to the change to AC_MBSTATE_T.
88484
88485 2000-07-14  Jim Meyering  <meyering@lucent.com>
88486
88487         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88488         jm_AC_TYPE_UINTMAX_T.
88489
88490 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88491
88492         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88493
88494         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88495         quotearg_buffer_restyled): Add support for
88496         clocale_quoting_style.  Undo previous change to
88497         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88498         and "{RIGHT QUOTATION MARK}" msgids.
88499
88500 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88501
88502         From a suggestion by Bruno Haible.
88503         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88504         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88505         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88506         and mbstate_t, to a single-part test that simply defines mbstate_t.
88507         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88508         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88509
88510 2000-07-10  Jim Meyering  <meyering@lucent.com>
88511
88512         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88513
88514         * m4/gnu-source.m4: Output to confdefs.h directly.
88515         Suggestion from Akim Demaille.
88516
88517 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88518
88519         The old behavior of quoting `like this' doesn't look good with
88520         newer, ISO-style fonts.  See:
88521         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88522
88523         Instead, quote "like this" by default.  Let the translator
88524         tailor the locale-specific quoting behavior by providing
88525         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88526
88527         * lib/quotearg.c (N_): New macro.
88528         (gettext_default): New function.
88529         (quotearg_buffer_restyled): Use
88530         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88531         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88532
88533 2000-07-09  Jim Meyering  <meyering@lucent.com>
88534
88535         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88536         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88537
88538         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88539         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88540
88541 2000-07-09  Jim Meyering  <meyering@lucent.com>
88542
88543         * lib/Most files: Update copyright dates to include 2000.
88544
88545 2000-07-08  Jim Meyering  <meyering@lucent.com>
88546
88547         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88548         if not defined.
88549         (xgethostname): Remove now-unnecessary #ifdef.
88550         Move declaration of `err' into loop where it's used.
88551
88552 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88553         and Bruno Haible  <haible@clisp.cons.org>
88554
88555         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88556         only if the test for an object-type mbstate_t fails.  This
88557         prevents us from mistakenly reporting that mbstate_t is a
88558         system object type after we "#define mbstate_t int" to work
88559         around its lack.
88560
88561 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88562         and Bruno Haible  <haible@clisp.cons.org>
88563
88564         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88565
88566 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88567
88568         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88569         to strerror_r.
88570         Include <ctype.h> for use of isalpha.
88571
88572 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88573
88574         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88575         by allocating a larger buffer. Test the gethostname return value for
88576         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88577         returns an error and ENAMETOOLONG isn't defined.
88578
88579 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88580
88581         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88582         dimension.
88583
88584 2000-07-04  Jim Meyering  <meyering@lucent.com>
88585
88586         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88587         of the deprecated AC_CHECKING.
88588
88589 2000-07-04  Jim Meyering  <meyering@lucent.com>
88590
88591         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88592         Reported by Bruno Haible.
88593
88594 2000-07-04  Jim Meyering  <meyering@lucent.com>
88595
88596         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88597         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88598         lacks mbrtowc.
88599
88600 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88601
88602         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88603         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88604
88605 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88606         and Bruno Haible  <haible@clisp.cons.org>
88607
88608         * lib/quotearg.c (mbrtowc):
88609         Assign to *pwc, and return 1 only if result is nonzero.
88610         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88611
88612 2000-07-03  Jim Meyering  <meyering@lucent.com>
88613
88614         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88615
88616 2000-07-03  Jim Meyering  <meyering@lucent.com>
88617
88618         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88619         This is necessary to get a definition of e.g., UTMP_FILE on
88620         HP-UX 10.20.
88621         From Bob Proulx.
88622
88623 2000-07-02  Jim Meyering  <meyering@lucent.com>
88624
88625         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88626
88627         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88628         AC_LIBOBJ(function_name).
88629         * m4/chown.m4: Likewise.
88630         * m4/fnmatch.m4: Likewise.
88631         * m4/ftruncate.m4: Likewise.
88632         * m4/getgroups.m4: Likewise.
88633         * m4/getline.m4: Likewise.
88634         * m4/group-member.m4: Likewise.
88635         * m4/jm-macros.m4: Likewise.
88636         * m4/lstat.m4: Likewise.
88637         * m4/malloc.m4: Likewise.
88638         * m4/memcmp.m4: Likewise.
88639         * m4/nanosleep.m4: Likewise.
88640         * m4/putenv.m4: Likewise.
88641         * m4/realloc.m4: Likewise.
88642         * m4/regex.m4: Likewise.
88643         * m4/stat.m4: Likewise.
88644         * m4/strftime.m4: Likewise.
88645
88646 2000-07-02  Jim Meyering  <meyering@lucent.com>
88647
88648         * lib/quotearg.c (mbstate_t): Don't define here.
88649
88650 2000-07-02  Jim Meyering  <meyering@lucent.com>
88651
88652         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88653
88654 2000-07-01  Jim Meyering  <meyering@lucent.com>
88655
88656         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88657
88658 2000-07-01  Jim Meyering  <meyering@lucent.com>
88659
88660         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88661         problem.
88662
88663 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88664
88665         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88666         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88667
88668 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88669
88670         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88671         per change in ../m4/ls-mntd-fs.m4.
88672         (read_filesystem_list): Ignore symbolic links.
88673
88674 2000-06-29  Jim Meyering  <meyering@lucent.com>
88675
88676         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88677         for declaration of strcmp.
88678
88679         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88680
88681         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88682         Avoid warning by casting result to `char *' to remove `const'.
88683
88684 2000-06-28  Jim Meyering  <meyering@lucent.com>
88685
88686         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88687         included by quotearg.c, for which we perform this test.  From
88688         Bruno Haible.
88689
88690 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88691
88692         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88693         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88694         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88695
88696 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88697
88698         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88699
88700 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88701
88702         savedir now sets errno on failure and invokes xmalloc to get memory.
88703         Fix a couple of other minor bugs while we're at it.
88704
88705         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88706         (NAMLEN): Remove macro.
88707         (malloc, realloc): Remove decls.
88708         (stpcpy): Likewise.
88709         ("xalloc.h"): Include.
88710         (NAME_SIZE_DEFAULT): New macro.
88711         (savedir): Use xmalloc / xrealloc to allocate memory.
88712         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88713         Skip "" directory entries.
88714         Use strlen to calculate directory entry length, since the old method
88715         is rarely used these days and isn't worth supporting.
88716         Don't use a pointer after freeing it.
88717         Check for integer overflow when calculating allocation size.
88718         Use memcpy to copy entries, instead of stpcpy.
88719         Set errno properly when returning NULL.
88720         Check for readdir error.
88721
88722 2000-06-26  Jim Meyering  <meyering@lucent.com>
88723
88724         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88725
88726 2000-06-25  Jim Meyering  <meyering@lucent.com>
88727
88728         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88729         Linux header bug when _XOPEN_SOURCE is defined to 500.
88730
88731 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88732
88733         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88734         deficiency.
88735
88736 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88737
88738         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88739         Include xalloc.h.
88740         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88741
88742 2000-06-24  Jim Meyering  <meyering@lucent.com>
88743
88744         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88745         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88746         for which strerror does return char*, but which lacks a conveniently
88747         accessible declaration of the function.  If the compile-test says
88748         strerror_r doesn't work, then resort to a `run'-test that works on
88749         BeOS and segfaults on DEC Unix.
88750
88751 2000-06-24  Jim Meyering  <meyering@lucent.com>
88752
88753         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88754
88755 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88756
88757         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88758         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88759
88760 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88761
88762         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88763         (mbrtowc, mbstate_t): Define substitutes if
88764         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88765         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88766         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88767
88768 2000-06-23  Jim Meyering  <meyering@lucent.com>
88769
88770         * m4/afs.m4: Add missing AC_MSG_RESULT.
88771         Reported by Bruno Haible.
88772
88773         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88774         Suggestion from Bruno Haible.
88775
88776 2000-06-23  Jim Meyering  <meyering@lucent.com>
88777
88778         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88779
88780 2000-06-21  Jim Meyering  <meyering@lucent.com>
88781
88782         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88783
88784 2000-06-21  Jim Meyering  <meyering@lucent.com>
88785
88786         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88787         (noinst_HEADERS): Add getstr.h.
88788
88789         * lib/getline.c (getstr): Move into a separate file.
88790         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88791         the following changes: new parameter, delim2; both delim[12]
88792         parameters have type `int', not `char'.  The latter would lose
88793         with 8-bit delimiters.
88794         * lib/getstr.h: New file.
88795
88796 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88797
88798         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88799         than 1024, return a memory chunk of least possible size, instead
88800         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88801         Use free/xmalloc instead of xrealloc to avoid copying for very long
88802         paths.
88803
88804 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88805
88806         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88807         the empty string.
88808
88809 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88810
88811         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88812         address, not strdup.  Include <stdlib.h> and don't declare free().
88813
88814 2000-06-19  Jim Meyering  <meyering@lucent.com>
88815
88816         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88817
88818 2000-06-18  Jim Meyering  <meyering@lucent.com>
88819
88820         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88821
88822         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88823         `checking whether...' message to be consistent with that of the
88824         lstat test.
88825
88826 2000-06-18  Jim Meyering  <meyering@lucent.com>
88827
88828         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88829         Besides, these days every porting target provides a mkdir function.
88830
88831         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88832         needed. (this snippet comes from src/system.h).
88833
88834 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88835
88836         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88837
88838 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88839
88840         * lib/human.c (adjust_value): New function.
88841         (human_readable_inexact): Apply rounding style even when
88842         printing approximate values.
88843
88844 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88845
88846         * lib/human.c (human_readable_inexact): Allow an input block
88847         size that is not a multiple of the output block size, and vice versa.
88848         Reported by Piergiorgio Sartor.
88849
88850 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88851
88852         * lib/getdate.y (get_date): Apply relative times after time
88853         zone indicator, not before.  Reported by Todd A. Jacobs.
88854
88855 2000-06-13  Jim Meyering  <meyering@lucent.com>
88856
88857         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88858
88859         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88860
88861 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88862
88863         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88864
88865 2000-06-12  Jim Meyering  <meyering@lucent.com>
88866
88867         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88868         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88869         optional argument.
88870         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88871         the optional argument, `lib'.
88872
88873 2000-06-08  Jim Meyering  <meyering@lucent.com>
88874
88875         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88876
88877 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88878
88879         Rewrite largefile configuration so that we don't need to run
88880         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88881         AC_CANONICAL_HOST in configure.in -- jmm]
88882
88883         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88884         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88885         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88886         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88887         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88888         All uses changed.
88889         Instead of inspecting the output of getconf, try to compile the
88890         test program without and with the macro definition.
88891         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88892         for getconf.  Instead, check for the needed flags by compiling
88893         test programs.
88894
88895 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88896
88897         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88898
88899 2000-06-04  Jim Meyering  <meyering@lucent.com>
88900
88901         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88902         SunOS 4.1.4 for which gid_t is an unsigned type.
88903
88904 2000-06-03  Jim Meyering  <meyering@lucent.com>
88905
88906         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88907         now that autoconf requires that.
88908
88909         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88910         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88911         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88912
88913 2000-06-03  Jim Meyering  <meyering@lucent.com>
88914
88915         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88916
88917 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88918
88919         * m4/glibc21.m4: New file.
88920         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88921
88922 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88923
88924         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88925         newer, don't install charset.alias.
88926         * lib/config.charset: Change the Linux/glibc rules so they become empty
88927         on glibc-2.1 or newer.
88928
88929 2000-06-02  Jim Meyering  <meyering@lucent.com>
88930
88931         * lib/mountlist.c: Back out last change.  Instead, do this...
88932         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88933         me_dummy member using the same `ignore'-testing code.
88934         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88935         fs_type strings.
88936         From Mark D. Roth.
88937
88938 2000-05-29  Jim Meyering  <meyering@lucent.com>
88939
88940         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88941         mounts with the `ignore' attribute.  Based on a patch from
88942         Mark D. Roth.
88943
88944 2000-05-28  Jim Meyering  <meyering@lucent.com>
88945
88946         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88947         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88948         * m4/stat.m4: Likewise.
88949         * m4/lstat.m4: Likewise.
88950         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88951
88952         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88953         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88954
88955 2000-05-26  Jim Meyering  <meyering@lucent.com>
88956
88957         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88958
88959 2000-05-24  Jim Meyering  <meyering@lucent.com>
88960
88961         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88962         autoconf requires that.
88963         * m4/lib-check.m4: Likewise.
88964         * m4/jm-macros.m4: Likewise.
88965         * m4/strftime.m4: Likewise.
88966
88967         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88968         AC_CHECK_DECLS, now that autoconf requires that.
88969
88970 2000-05-22  Jim Meyering  <meyering@lucent.com>
88971
88972         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88973         * m4/lstat.m4: Likewise.
88974
88975 2000-05-22  Jim Meyering  <meyering@lucent.com>
88976
88977         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88978
88979 2000-05-20  Jim Meyering  <meyering@lucent.com>
88980
88981         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88982         (jm_PREREQ): Use it.
88983
88984 2000-05-18  Jim Meyering  <meyering@lucent.com>
88985
88986         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88987         back, too, since it may have been modified by allocate_entry.
88988         (hash_delete): Rewrite to use neither the assignment operator
88989         nor the comma operator in an if-expression.
88990
88991 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88992
88993         * lib/closeout.c:
88994         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88995         Remove; no longer needed.
88996         "quotearg.h": Add include.
88997         (file_name): Do not bother to explicitly initialize to NULL; it's less
88998         efficient on some hosts.
88999         (close_stdout_status): Remove test as to whether stdout was already
89000         closed; it breaks for the case "echo x | sort >&-".
89001         Quote file name colons.
89002         Do not assume that _("write error") lacks format strings.
89003
89004 2000-05-15  Jim Meyering  <meyering@lucent.com>
89005
89006         * lib/version-etc.c (version_etc_copyright): Update the copyright
89007         string used in all --version output.
89008
89009 2000-05-14  Jim Meyering  <meyering@lucent.com>
89010
89011         * lib/closeout.c (close_stdout_set_file_name): New function.
89012         (close_stdout_status): Use new file-scoped global.
89013         Return right away if fstat says the stdout file descriptor is invalid.
89014         * lib/closeout.h (close_stdout_set_file_name): Declare.
89015
89016 2000-05-10  Jim Meyering  <meyering@lucent.com>
89017
89018         * lib/closeout.c [default_exit_status]: New file-scoped variable.
89019         (close_stdout_set_status): New function.
89020         * lib/closeout.h (close_stdout_set_status): Declare.
89021
89022 2000-05-09  Jim Meyering  <meyering@lucent.com>
89023
89024         * m4/gettext.m4: Rename this...
89025         * m4/libintl.m4: ...to this.
89026
89027 2000-05-08  Jim Meyering  <meyering@lucent.com>
89028
89029         * lib/long-options.c: Don't include closeout.h.
89030         (parse_long_options): Don't call close_stdout for --version.
89031
89032 2000-05-06  Paul Eggert  <eggert@twinsun.com>
89033
89034         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
89035         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
89036         2.1.3 bug.  This avoids a clash when files like regex.c define
89037         _GNU_SOURCE.
89038
89039 2000-05-06  Jim Meyering  <meyering@lucent.com>
89040
89041         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
89042         (AC_REPLACE_FUNCS): Add strnlen.
89043
89044         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
89045         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
89046
89047         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
89048         AC_SEARCH_LIBS call for nanosleep.
89049         (LIB_NANOSLEEP): Set and AC_SUBST.
89050
89051 2000-05-06  Jim Meyering  <meyering@lucent.com>
89052
89053         * lib/strnlen.c: Undefine __strnlen and strnlen.
89054         [!weak_alias]: Define __strnlen to strnlen.
89055
89056         * lib/atexit.c: New file, from libiberty.
89057
89058 2000-05-06  Jim Meyering  <meyering@lucent.com>
89059
89060         * lib/closeout.c (close_stdout_status): Also check for errors on the
89061         stderr stream.
89062
89063 2000-05-05  Jim Meyering  <meyering@lucent.com>
89064
89065         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
89066         AC_SEARCH_LIBS call for clock_gettime.
89067         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
89068
89069         * m4/search-libs.m4: Update from autoconf.
89070
89071         su doesn't work on Solaris 2.6.
89072         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
89073         <shadow.h>.  Reported by Dragos Harabor.
89074
89075 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
89076
89077         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
89078         memcpy instead of xmalloc, xrealloc, path_concat.
89079         (locale_charset): Treat empty environment variables as absent.
89080         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
89081
89082 2000-05-04  Jim Meyering  <meyering@lucent.com>
89083
89084         * lib/getopt.c: Update from glibc.
89085         * lib/obstack.c: Likewise.
89086         * lib/obstack.h: Likewise.
89087         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
89088         file
89089
89090         * lib/regex.h: Likewise.
89091         * lib/strndup.c: Likewise.
89092         * lib/strnlen.c: New file, from glibc.
89093
89094 2000-05-03  Jim Meyering  <meyering@lucent.com>
89095
89096         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
89097
89098 2000-05-02  Paul Eggert  <eggert@twinsun.com>
89099
89100         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
89101         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
89102         compile-time test, rather than inspecting host and OS, to
89103         decide whether to define _LARGEFILE_SOURCE.
89104
89105 2000-05-01  Jim Meyering  <meyering@lucent.com>
89106
89107         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
89108
89109         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
89110         Based on a patch from Bruno Haible.
89111
89112 2000-05-01  Jim Meyering  <meyering@lucent.com>
89113
89114         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
89115
89116 2000-04-29  Jim Meyering  <meyering@lucent.com>
89117
89118         * lib/path-concat.c: Declare strdup only if it's not defined.
89119         * lib/canon-host.c: Likewise.
89120
89121 2000-04-28  Jim Meyering  <meyering@lucent.com>
89122
89123         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
89124         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
89125         is included first, then limits.h is included by locale.h by libintl.h.
89126         From John David Anglin.
89127
89128 2000-04-25  Jim Meyering  <meyering@lucent.com>
89129
89130         * lib/makepath.c (S_IRWXUGO): Define.
89131         (make_path): Always perform explicit chmod if MODE specifies any
89132         of the `special' permission bits.  Prompted by a bug report against
89133         install from Mate Wierdl and Joost van Baal.
89134
89135 2000-04-18  Jim Meyering  <meyering@lucent.com>
89136
89137         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
89138         (jm_PREREQ): Use it.
89139
89140 2000-04-18  Jim Meyering  <meyering@lucent.com>
89141
89142         * lib/README: New file.
89143
89144         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
89145         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
89146
89147 2000-04-17  Jim Meyering  <meyering@lucent.com>
89148
89149         Get it right :-)
89150         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
89151         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
89152         Suggestion from Akim Demaille.
89153
89154 2000-04-17  Jim Meyering  <meyering@lucent.com>
89155
89156         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
89157         the definition of it to rpl_strftime also defined-away the system's
89158         declaration.
89159
89160 2000-04-15  Jim Meyering  <meyering@lucent.com>
89161
89162         Use `C' to denote so-called `contiguous' files, the same way
89163         that tar does.
89164         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
89165         (ftypelet): Use S_ISCTG.
89166         From Michael Deutschmann.
89167
89168 2000-04-14  Jim Meyering  <meyering@lucent.com>
89169
89170         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
89171         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
89172         clobbered.
89173
89174 2000-04-14  Jim Meyering  <meyering@lucent.com>
89175
89176         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
89177
89178 2000-04-13  Jim Meyering  <meyering@lucent.com>
89179
89180         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
89181         AH_VERBATIM to insert required #ifndef into config.h.in.
89182         Suggestion from Akim Demaille.
89183
89184 2000-04-12  Jim Meyering  <meyering@lucent.com>
89185
89186         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
89187         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
89188         Christian Krackowizer.
89189
89190         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
89191         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
89192         (AC_SYS_LARGEFILE): Require.
89193         (AM_C_PROTOTYPES): Require.
89194
89195 2000-04-08  Jim Meyering  <meyering@lucent.com>
89196
89197         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
89198         names don't conflict.  Reported by Eli Zaretskii.
89199
89200 2000-04-07  Jim Meyering  <meyering@lucent.com>
89201
89202         * lib/putenv.c: Move inclusion of errno.h so it follows that of
89203         sys/types.h, to work around system header problems on AIX 3.2.5.
89204         From Bruno Haible.
89205
89206 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
89207
89208         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
89209         bug.  Deal with the different error behavior of Irix iconv.
89210
89211 2000-04-05  Paul Eggert  <eggert@twinsun.com>
89212
89213         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
89214         IRIX if the installer said otherwise.
89215
89216 2000-04-05  Jim Meyering  <meyering@lucent.com>
89217
89218         Portability tweaks required for ultrix4.3.
89219         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
89220         (jm_CHECK_DECLS): Add getutent to the list of functions.
89221         (_jm_DECL_HEADERS): Add utmpx.h.
89222         From John David Anglin.
89223
89224         * m4/strftime.m4: Back out the 2000-04-02 change.
89225         Instead of that change, simply undefine putenv in the test program.
89226
89227 2000-04-05  Jim Meyering  <meyering@lucent.com>
89228
89229         Portability tweaks required for ultrix4.3.
89230         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
89231         getutent.
89232         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
89233         * lib/canon-host.c: Declare strdup.
89234         * lib/path-concat.c: Likewise.
89235         From John David Anglin.
89236
89237 2000-04-04  Jim Meyering  <meyering@lucent.com>
89238
89239         Be more DOS 8.3-friendly.
89240         * lib/ref-add.sin: Renamed from ref-add.sed.in.
89241         * lib/ref-del.sin: Renamed from ref-del.sed.in.
89242         * lib/Makefile.am: Reflect renaming.
89243         Reported by Eli Zaretskii.
89244
89245         Use a temporary file name that won't clash with `charset.alias'
89246         in the DOS 8.3 name space.
89247         * lib/Makefile.am (charset_tmp): Define.
89248         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
89249         (uninstall-local): Likewise.
89250         Reported by Eli Zaretskii.
89251
89252 2000-04-03  Jim Meyering  <meyering@lucent.com>
89253
89254         * m4/gettext.m4: Fix typo in comment.
89255
89256         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
89257         textutils/configure.in).  Suggestion from Paul Eggert.
89258         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
89259
89260 2000-04-02  Paul Eggert  <eggert@twinsun.com>
89261
89262         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
89263         variable in the shell rather than using putenv, which isn't
89264         portable.  This avoids the configure-time inter-test dependency
89265         on the potentially-renamed putenv function.
89266
89267 2000-03-30  Paul Eggert  <eggert@twinsun.com>
89268
89269         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
89270         before checking struct stat.st_blksize, so that
89271         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
89272
89273 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89274
89275         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
89276         since strftime.c uses HAVE_STRFTIME to decide whether to use
89277         the underlying strftime.
89278
89279 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89280
89281         * lib/time/strftime.c (my_strftime): Make sure we call the system
89282         strftime, not ourselves, when invoking the underlying strftime.
89283
89284 2000-03-24  Jim Meyering  <meyering@lucent.com>
89285
89286         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
89287         (charset_alias): Define.
89288         (install-exec-local): Factor out common code.
89289         (uninstall-local): Split lines longer than 80.
89290         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
89291         (SUFFIXES): Define.
89292         (.sed.in.sed): New rule.  Don't redirect directly to $@.
89293         (CLEANFILES): Add ref-add.sed and ref-del.sed.
89294
89295 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
89296
89297         * lib/config.charset: Output a line containing "Packages using this
89298         file".
89299         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
89300         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
89301         ref-del.sed): New rules.
89302
89303 2000-03-17  Jim Meyering  <meyering@lucent.com>
89304
89305         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
89306         Otherwise, include <strings.h>
89307
89308 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
89309
89310         * lib/unicodeio.c (utf8_wctomb): New function.
89311         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
89312         format instead of in UCS-4 with platform dependent endianness.
89313
89314 2000-03-10  Jim Meyering  <meyering@lucent.com>
89315
89316         * m4/lib-check.m4: Look for getspnam in -lgen, too.
89317         From Marco Franzen.
89318
89319 2000-03-07  Paul Eggert  <eggert@twinsun.com>
89320
89321         * lib/savedir.c (savedir): Work even if directory size is
89322         negative; this can happen with some screwy NFS configurations.
89323
89324 2000-03-06  Jim Meyering  <meyering@lucent.com>
89325
89326         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
89327         if it's NULL (because we ran out of memory).  From Bruno Haible.
89328
89329 2000-03-05  Jim Meyering  <meyering@lucent.com>
89330
89331         * lib/localcharset.c ("path-concat.h"): Include.
89332         (get_charset_aliases): Use path_concat instead of ANSI string
89333         concatenation.
89334
89335         * lib/unicodeio.h (PARAMS): Define.
89336         Use it to guard prototype.
89337
89338 2000-03-04  Jim Meyering  <meyering@lucent.com>
89339
89340         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
89341         for lib/localcharset.c.
89342
89343 2000-03-04  Jim Meyering  <meyering@lucent.com>
89344
89345         * lib/Makefile.am (install-exec-local): Create $(libdir) before
89346         installing into it.
89347         (uninstall-local): Uncomment this rule so `make distcheck' works
89348         once again.
89349
89350         * lib/unicodeio.c (<errno.h>): Include it.
89351         (errno): Declare if not defined.
89352
89353         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
89354
89355         * lib/config.charset: New version, incorporating remarks from a linux
89356         i18n mailing list.  From Bruno Haible.
89357
89358 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89359
89360         * m4/codeset.m4: New file.
89361         * m4/iconv.m4: New file.
89362         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89363
89364 2000-03-03  Jim Meyering  <meyering@lucent.com>
89365
89366         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89367
89368 2000-03-02  Jim Meyering  <meyering@lucent.com>
89369
89370         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89371         the messages come out on separate lines.
89372
89373         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89374         rather than jm_CHECK_DECLARATIONS.
89375         * m4/decl.m4: Remove now-unused file.
89376
89377         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89378         geteuid.
89379
89380 2000-03-02  Jim Meyering  <meyering@lucent.com>
89381
89382         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89383
89384 2000-03-01  Jim Meyering  <meyering@lucent.com>
89385
89386         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
89387         * lib/unicodeio.c: Likewise.
89388
89389 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89390
89391         * lib/config.charset: New file.
89392         * lib/localcharset.c: New file.
89393         * lib/unicodeio.h, lib/unicodeio.c: New files.
89394         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
89395         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
89396         (noinst_HEADERS): Add unicodeio.h.
89397         (all-local, install-exec-local, charset.alias): New targets.
89398
89399 2000-02-28  Paul Eggert  <eggert@twinsun.com>
89400
89401         * lib/quotearg.c (ALERT_CHAR): New macro.
89402         (quotearg_buffer_restyled): Use it.
89403
89404 2000-02-27  Jim Meyering  <meyering@lucent.com>
89405
89406         * m4/check-decl.m4: Add getenv to the list.
89407
89408 2000-02-27  Jim Meyering  <meyering@lucent.com>
89409
89410         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
89411         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
89412
89413         * lib/backupfile.c: Guard inclusion of stdlib.h with
89414         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
89415         Declare malloc if needed.
89416
89417         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
89418         `#ifndef HAVE_DECL..'
89419         now that autoconf always defines the HAVE_DECL_ symbols.
89420         * lib/human.c: Likewise.
89421         * lib/same.c: Likewise.
89422         * lib/strtoumax.c: Likewise.
89423
89424         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
89425         declaration check was not run.
89426         * lib/hash.c: Likewise.
89427         * lib/human.c: Likewise.
89428         * lib/same.c: Likewise.
89429         * lib/strtoumax.c: Likewise.
89430
89431         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
89432         `.', then first look up the entire `.'-containing string as a login
89433         name.
89434
89435 2000-02-23  Jim Meyering  <meyering@lucent.com>
89436
89437         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
89438         in place of my hack.
89439
89440 2000-02-18  Paul Eggert  <eggert@twinsun.com>
89441
89442         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
89443         (textint): New typedef.
89444         (parser_control): Member year changed from int to textint.
89445         All uses changed.
89446         (YYSTYPE): Removed; replaced by %union with int and textint members.
89447         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
89448         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
89449         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
89450         (tSNUMBER, tUNUMBER): Now of type <textintval>.
89451         (date, number, to_year): Use width of number in digits, not its value,
89452         to determine whether it's a 2-digit year, or a 2-digit time.
89453         (yylex): Store number of digits of numeric tokens.
89454         Reported by John Kendall.
89455
89456         (parser_control): Changed from struct parser_control to typedef (for
89457         consistency).  All uses changed.
89458
89459         (tID): Removed; not used.
89460         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
89461
89462 2000-02-14  Paul Eggert  <eggert@twinsun.com>
89463
89464         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
89465         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
89466
89467 2000-02-12  Jim Meyering  <meyering@lucent.com>
89468
89469         * lib/userspec.c (ISDIGIT): Define it.
89470         (isdigit): Remove definition.
89471         (is_number): Use ISDIGIT, not isdigit.
89472         <libintl.h>: Include.
89473         (_ and N_): Define.
89474         (parse_user_spec): Mark translatable strings.
89475
89476 2000-02-10  Jim Meyering  <meyering@lucent.com>
89477
89478         With these changes, nanosleep.[ch] are finally enough like the other
89479         lib/* replacement files to compile on a few more losing systems.
89480
89481         * lib/nanosleep.h: Don't include config.h.
89482         Remove prototype from declaration of nanosleep.
89483         (PARAMS): Remove now-unneeded definition.
89484         * lib/nanosleep.c: #undef nanosleep.
89485         (rpl_nanosleep): Rename from nanosleep.
89486
89487 2000-02-10  Jim Meyering  <meyering@lucent.com>
89488
89489         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89490         gnu_nanosleep to rpl_nanosleep.
89491
89492 2000-02-09  Jim Meyering  <meyering@lucent.com>
89493
89494         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89495         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89496
89497 2000-02-08  Akim Demaille  <akim@epita.fr>
89498
89499         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89500         `[' and `]' and remove uses of `changequote'.
89501         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89502         (AC_SYS_LARGEFILE): Likewise.
89503         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89504         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89505         of changequote.
89506         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89507         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89508         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89509         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89510
89511 2000-02-05  Jim Meyering  <meyering@lucent.com>
89512
89513         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89514         Remove explicit use of AC_HEADER_TIME.  It is required by
89515         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89516         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89517         in autoconf whereby the expansion of the latter ended up preceding
89518         the expansion of its prerequisite, AC_HEADER_TIME.
89519         Reported by Volker Borchert.
89520
89521 2000-02-03  Jim Meyering  <meyering@lucent.com>
89522
89523         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89524
89525 2000-02-03  Jim Meyering  <meyering@lucent.com>
89526
89527         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89528         rather than with `#if HAVE_UTMPNAME'.
89529
89530 2000-02-02  Jim Meyering  <meyering@lucent.com>
89531
89532         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89533         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89534         Reported by Eli Zaretskii.
89535
89536 2000-02-01  Jim Meyering  <meyering@lucent.com>
89537
89538         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89539
89540 2000-01-31  Jim Meyering  <meyering@lucent.com>
89541
89542         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89543         functions.  Add the time.h and sys/time.h headers along with the
89544         AC_REQUIRE'ment of AC_HEADER_TIME.
89545
89546 2000-01-31  Jim Meyering  <meyering@lucent.com>
89547
89548         * lib/nanosleep.h (nanosleep): Guard declaration with
89549         `#if ! HAVE_DECL_NANOSLEEP'.
89550         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89551         the declaration in that vendor's sys/timers.h.
89552         Reported by Christian Krackowizer.
89553
89554         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89555         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89556         (ISPRINT): Likewise.
89557         Reported by Tom Tromey.
89558
89559 2000-01-30  Jim Meyering  <meyering@lucent.com>
89560
89561         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89562
89563         * m4/prereq.m4 (utmp_includes): Define.
89564         Check for ut_user and ut_name members in both struct utmpx
89565         and struct utmp.
89566
89567 2000-01-30  Jim Meyering  <meyering@lucent.com>
89568
89569         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89570         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89571         header files where only utmpx.ut_user is declared.
89572
89573         * lib/readutmp.h (UT_USER): Define.
89574
89575 2000-01-29  Jim Meyering  <meyering@lucent.com>
89576
89577         * m4/lib-check.m4: New file containing library-related checks from
89578         fileutils and sh-utils (textutils had none).
89579
89580 2000-01-28  Jim Meyering  <meyering@lucent.com>
89581
89582         * m4/perl.m4: Change format of warning message to look more like that
89583         from the missing script.  Suggestion from François Pinard.
89584
89585 2000-01-25  Jim Meyering  <meyering@lucent.com>
89586
89587         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89588         well as time.h in the compile check.
89589         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89590         Fix typo in cross-compiling case: s/yes/no/.
89591
89592 2000-01-23  Jim Meyering  <meyering@lucent.com>
89593
89594         * m4/jm-macros.m4: Move df-related tests here from
89595         fileutils/configure.in
89596
89597         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89598         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89599
89600         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89601         s/space/ac_fsusage_space/.
89602         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89603
89604         * m4/ftruncate.m4: New file (derived from part of
89605         fileutils/configure.in).
89606         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89607         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89608
89609         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89610         AC_SUBST these here, rather than just in sh-util/configure.in, so
89611         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89612         all the same.
89613         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89614         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89615         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89616         (AC_SUBST(POW_LIBM)): Likewise.
89617         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89618
89619 2000-01-23  Jim Meyering  <meyering@lucent.com>
89620
89621         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89622         obstack.c.
89623
89624 2000-01-22  Jim Meyering  <meyering@lucent.com>
89625
89626         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89627
89628         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89629
89630         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89631         configure.in
89632         (AC_CHECK_HEADERS): Likewise for sh-utils.
89633         (AC_CHECK_HEADERS): Likewise for textutils.
89634         Merge the three lists of headers.
89635
89636         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89637         from fileutils' configure.in.
89638
89639         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89640         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89641         check-decl.m4.
89642
89643         * m4/check-decl.m4: Use #if rather than #ifdef.
89644         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89645         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89646         (_jm_DECL_HEADERS): Define new function.
89647         (jm_CHECK_DECLARATIONS): Require it.
89648
89649 2000-01-22  Jim Meyering  <meyering@lucent.com>
89650
89651         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89652         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89653         Required for some AIX systems.  Reported by Christian Krackowizer.
89654         [TESTING] (main): New function.
89655
89656         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89657         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89658         letters.
89659
89660         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89661         iswprint.
89662
89663         * lib/strverscmp.c (ISDIGIT): Define.
89664         (strverscmp): Use ISDIGIT, not isdigit.
89665
89666 2000-01-19  Jim Meyering  <meyering@lucent.com>
89667
89668         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89669         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89670         defines `struct timespec' in <sys/time.h>
89671
89672         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89673         Thanks to Akim for explaining.
89674
89675 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89676
89677         * lib/nanosleep.c (nanosleep):
89678         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89679         POSIX.1 doesn't require SA_INTERRUPT and some systems
89680         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89681         it's been part of POSIX.1 since day 1 (in 1988).
89682
89683 2000-01-17  Jim Meyering  <meyering@lucent.com>
89684
89685         * lib/interlock: Remove unused file.  Reported by François Pinard.
89686
89687 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89688
89689         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89690         alert, backslash, formfeed, and vertical tab unnecessarily in
89691         shell quoting style.
89692
89693 2000-01-16  Jim Meyering  <meyering@lucent.com>
89694
89695         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89696         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89697         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89698         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89699
89700 2000-01-16  Jim Meyering  <meyering@lucent.com>
89701
89702         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89703         because the latter didn't work.
89704
89705 2000-01-15  Jim Meyering  <meyering@lucent.com>
89706
89707         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89708         (AC_REPLACE_FUNCS): Add memcpy and memset.
89709         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89710         Add strpbrk.
89711         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89712
89713 2000-01-12  Jim Meyering  <meyering@lucent.com>
89714
89715         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89716         (jm_PREREQ): Use it.
89717         (jm_PREREQ_READUTMP): New macro.
89718         (jm_PREREQ): Use it.
89719
89720 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89721
89722         Quote multibyte characters correctly.
89723         * m4/c-bs-a.m4: New file.
89724         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89725         (jm_PREREQ): Use it.
89726
89727 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89728
89729         * m4/uintmax_t.m4: Port to autoconf 2.13.
89730
89731 2000-01-08  Jim Meyering  <meyering@ascend.com>
89732
89733         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89734         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89735
89736 2000-01-04  Jim Meyering  <meyering@ascend.com>
89737
89738         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89739         jm_STRUCT_DIRENT_D_TYPE.
89740         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89741         jm_STRUCT_DIRENT_D_INO.
89742         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89743         jm_STRUCT_UTIMBUF.
89744         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89745         renamings.
89746         * m4/utime.m4: Likewise.
89747
89748         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89749         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89750
89751 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89752
89753         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89754         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89755
89756 2000-01-02  Jim Meyering  <meyering@ascend.com>
89757
89758         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89759         remember if this is necessary.
89760
89761 1999-12-26  Jim Meyering  <meyering@ascend.com>
89762
89763         * m4/jm-macros.m4: Use it here.
89764         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89765
89766 1999-12-23  Jim Meyering  <meyering@ascend.com>
89767
89768         * m4/jm-macros.m4: Check for clock_gettime (moved from
89769         fileutils/configure.in)
89770         Check for gettimeofday.
89771
89772 1999-12-20  Jim Meyering  <meyering@ascend.com>
89773
89774         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89775         autoconf-2.14a-1999-12-20.
89776
89777 1999-12-19  Jim Meyering  <meyering@ascend.com>
89778
89779         * m4/lstat-slash.m4: New file.
89780         * m4/jm-macros.m4: Use the new macro:
89781         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89782
89783 1999-12-07  Jim Meyering  <meyering@ascend.com>
89784
89785         * m4/perl.m4: Require that File::Compare be available, too.
89786         Too many systems seem to lack it.
89787
89788         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89789         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89790
89791 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89792
89793         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89794         problem with the QNX 4.25 shell, which doesn't propagate exit
89795         status of failed commands inside shell assignments.
89796
89797 1999-11-17  Jim Meyering  <meyering@ascend.com>
89798
89799         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89800
89801 1999-11-07  Jim Meyering  <meyering@ascend.com>
89802
89803         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89804
89805 1999-11-06  Jim Meyering  <meyering@ascend.com>
89806
89807         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89808         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89809
89810 1999-11-05  Jim Meyering  <meyering@ascend.com>
89811
89812         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89813         configure.in of textutils, fileutils, and sh-utils into this one
89814         (shared between those packages) file.
89815         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89816         AC_STRUCT_ST_BLKSIZE.
89817
89818 1999-11-03  Jim Meyering  <meyering@ascend.com>
89819
89820         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89821         of AC_CHECK_TYPE checks includes unistd.h.
89822         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89823         Suggestion from Akim Demaille.
89824
89825 1999-10-30  Jim Meyering  <meyering@ascend.com>
89826
89827         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89828         m4-quoted string.
89829         * m4/ls-mntd-fs.m4: Likewise.
89830         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89831         * m4/jm-winsz1.m4: Likewise.
89832
89833         * m4/const.m4: Remove file, since the fix made it into the experimental
89834         version of autoconf.
89835         * m4/mktime.m4: Likewise.
89836
89837         * m4/check-type.m4: Remove file, now that the latest version of
89838         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89839
89840         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89841         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89842         AC_CHECK_TYPE.
89843
89844 1999-10-04  Jim Meyering  <meyering@ascend.com>
89845
89846         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89847
89848 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89849
89850         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89851         2.95.1 bug with HP-UX 10.20.
89852
89853 1999-09-17  Jim Meyering  <meyering@ascend.com>
89854
89855         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89856         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89857         due to missing strdup (against sh-utils-2.0).
89858
89859 1999-08-29  Jim Meyering  <meyering@ascend.com>
89860
89861         * m4/jm-macros.m4: Require jm_BISON.
89862         * m4/bison.m4: New file.
89863
89864 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89865
89866         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89867         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89868
89869 1999-08-05  Jim Meyering  <meyering@ascend.com>
89870
89871         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89872         to avoid conflicts with `conftest' on 8+3 filesystems.
89873         Suggestion from Eli Zaretskii.
89874
89875 1999-08-04  Jim Meyering  <meyering@ascend.com>
89876
89877         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89878         fileutils and sh-utils (textutils's getline test was inadequate).
89879         (AM_FUNC_GETLINE): Run this test.
89880         (AC_CHECK_FUNCS): Check for getdelim.
89881         Reported by Bob Proulx.
89882
89883 1999-08-02  Jim Meyering  <meyering@ascend.com>
89884
89885         * m4/jm-macros.m4: Add a comment.
89886
89887 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89888
89889         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89890         <inttypes.h> defines strtoumax as a macro (and not as a
89891         function).
89892
89893 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89894
89895         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89896         that we can shift, multiply and divide unsigned long long
89897         values; Ultrix cc can't do it.
89898
89899 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89900
89901         * m4/mktime.m4: New file, which is a preview of what should appear
89902         in the next public autoconf release.
89903
89904 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89905
89906         * m4/lfs.m4: Remove this file.
89907         * m4/largefile.m4: New file.  It contains the old contents of
89908         lfs.m4, except that all names with prefix AC_LFS have been
89909         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89910         compatible with future autoconf versions.  Also, some minor m4
89911         quoting problems have been fixed.
89912
89913 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89914
89915         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89916         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89917         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89918         and simplify the shell code.
89919
89920 1999-08-01  Jim Meyering  <meyering@ascend.com>
89921
89922         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89923         m4.
89924
89925 1999-07-20  Jim Meyering  <meyering@ascend.com>
89926
89927         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89928
89929 1999-07-15  Jim Meyering  <meyering@ascend.com>
89930
89931         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89932
89933 1999-05-22  Jim Meyering  <meyering@ascend.com>
89934
89935         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89936
89937 1999-05-20  Jim Meyering  <meyering@ascend.com>
89938
89939         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89940         Add a colon after each `then' in case $4 is empty.
89941
89942 1999-05-16  Jim Meyering  <meyering@ascend.com>
89943
89944         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89945
89946 1999-05-10  Jim Meyering  <meyering@ascend.com>
89947
89948         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89949
89950         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89951         AC_FUNC_MKTIME.
89952
89953 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89954
89955         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89956
89957 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89958
89959         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89960         not CPPFLAGS, so that linking works correctly in IRIX.
89961
89962 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89963
89964         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89965
89966 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89967
89968         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89969         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89970         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89971         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89972         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89973
89974         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89975
89976 1999-04-20  Jim Meyering  <meyering@ascend.com>
89977
89978         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89979         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89980         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89981
89982 1999-04-18  Jim Meyering  <meyering@ascend.com>
89983
89984         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89985         * m4/jm-macros.m4: Use it.
89986
89987 1999-04-06  Jim Meyering  <meyering@ascend.com>
89988
89989         * m4/strftime.m4: Remove test for %f.
89990
89991 1999-03-29  Jim Meyering  <meyering@ascend.com>
89992
89993         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89994         superset of the AC_TYPE_* checks in the textutils, fileutils,
89995         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89996         AC_TYPE_PID_T.
89997
89998 1999-03-28  Jim Meyering  <meyering@ascend.com>
89999
90000         * m4/jm-macros.m4: Define GNU_PACKAGE here.
90001         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
90002         replaced e.g., in the *.sh files of the sh-utils.
90003
90004 1999-03-20  Jim Meyering  <meyering@ascend.com>
90005
90006         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
90007         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
90008         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
90009
90010 1999-03-19  Jim Meyering  <meyering@ascend.com>
90011
90012         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
90013
90014 1999-03-12  Jim Meyering  <meyering@ascend.com>
90015
90016         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
90017
90018 1999-03-07  Jim Meyering  <meyering@ascend.com>
90019
90020         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
90021         declared.
90022
90023 1999-02-17  Jim Meyering  <meyering@ascend.com>
90024
90025         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
90026         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
90027
90028 1999-02-07  Jim Meyering  <meyering@ascend.com>
90029
90030         * m4/group-member.m4: New file -- extracted from sh-utils'
90031         configure.in.
90032
90033         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
90034         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
90035
90036 1999-02-06  Jim Meyering  <meyering@ascend.com>
90037
90038         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
90039         * m4/fnmatch.m4: Likewise.
90040         * m4/getgroups.m4: Likewise.
90041         * m4/lstat.m4: Likewise.
90042         * m4/malloc.m4: Likewise.
90043         * m4/putenv.m4: Likewise.
90044         * m4/realloc.m4: Likewise.
90045         * m4/regex.m4: Likewise.
90046         * m4/stat.m4: Likewise.
90047         * m4/strftime.m4: Likewise.
90048         Suggestion from Alain Magloire.
90049
90050         * m4/chown.m4: Use `.$ac_objext', not `.o'.
90051         * m4/fnmatch.m4: Likewise.
90052         * m4/getgroups.m4: Likewise.
90053         * m4/getline.m4: Likewise.
90054         * m4/lstat.m4: Likewise.
90055         * m4/malloc.m4: Likewise.
90056         * m4/memcmp.m4: Likewise.
90057         * m4/putenv.m4: Likewise.
90058         * m4/realloc.m4: Likewise.
90059         * m4/regex.m4: Likewise.
90060         * m4/stat.m4: Likewise.
90061         * m4/strftime.m4: Likewise.
90062         Suggestion from Alain Magloire.
90063
90064         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
90065         an argument.
90066
90067         * m4/regex.m4: Add a run-time Test for proper operation of
90068         re_compile_pattern.
90069
90070 1999-01-31  Jim Meyering  <meyering@ascend.com>
90071
90072         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
90073
90074 1999-01-30  Jim Meyering  <meyering@ascend.com>
90075
90076         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
90077
90078         * m4/jm-mktime.m4: Make this a wrapper around the official
90079         AM_FUNC_MKTIME rather than my private copy, now that the official one
90080         is up to date.
90081         * m4/mktime.m4: Remove file.
90082
90083         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
90084         * m4/uptime.m4: Likewise.
90085         * m4/uintmax_t.m4: Likewise.
90086
90087 1999-01-28  Jim Meyering  <meyering@ascend.com>
90088
90089         * m4/jm-macros.m4: Use jm_AFS.
90090         * m4/afs.m4: New file (from fileutils' configure.in).
90091
90092         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
90093         * m4/chown.m4: Likewise.
90094         * m4/d-ino.m4: Likewise.
90095         * m4/d-type.m4: Likewise.
90096         * m4/fnmatch.m4: Likewise.
90097         * m4/getgroups.m4: Likewise.
90098         * m4/gettext.m4: Likewise.
90099         * m4/jm-mktime.m4: Likewise.
90100         * m4/jm-winsz2.m4: Likewise.
90101         * m4/lcmessage.m4: Likewise.
90102         * m4/ls-mntd-fs.m4: Likewise.
90103         * m4/malloc.m4: Likewise.
90104         * m4/memcmp.m4: Likewise.
90105         * m4/putenv.m4: Likewise.
90106         * m4/realloc.m4: Likewise.
90107         * m4/st_mtim.m4: Likewise.
90108         * m4/strftime.m4: Likewise.
90109
90110 1999-01-16  Jim Meyering  <meyering@ascend.com>
90111
90112         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
90113         (ARGMATCH_DIE_DECL): Define.
90114
90115 1999-01-12  Jim Meyering  <meyering@ascend.com>
90116
90117         * m4/Makefile.am.in: Rewrite to avoid using fmt.
90118         Reported by Lars Hecking.
90119
90120 1999-01-10  Jim Meyering  <meyering@ascend.com>
90121
90122         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
90123         gross kludge.
90124         * m4/inttypes_h.m4: Likewise.
90125         * m4/lstat.m4: Likewise.
90126         * m4/malloc.m4: Likewise.
90127         * m4/readdir.m4: Likewise.
90128         * m4/realloc.m4: Likewise.
90129         * m4/st_dm_mode.m4: Likewise.
90130         * m4/stat.m4: Likewise.
90131         * m4/utimbuf.m4: Likewise.
90132         * m4/utimes.m4: Likewise.
90133
90134         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
90135         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
90136         comments in config.h.in are meaningful.
90137
90138         * m4/jm-macros.m4: Require autoconf-2.13 here.
90139
90140         * m4/regex.m4: By default, don't use the included regex.c on systems
90141         with glibc 2.  Suggestion from Uli Drepper.
90142
90143 1999-01-02  Jim Meyering  <meyering@ascend.com>
90144
90145         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
90146
90147 1998-12-18  Jim Meyering  <meyering@ascend.com>
90148
90149         * m4/Makefile.am.in (Makefile.am): Simplify rule.
90150         Based on a suggestion from Lars Hecking.
90151
90152 1998-11-16  Paul Eggert  <eggert@twinsun.com>
90153
90154         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
90155
90156 1998-11-16  Jim Meyering  <meyering@ascend.com>
90157
90158         * m4/lfs.m4: Double-quote the `uname...` expression.
90159
90160 1998-11-14  Jim Meyering  <meyering@ascend.com>
90161
90162         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
90163         * m4/stat.m4: Likewise.
90164
90165 1998-11-03  Jim Meyering  <meyering@ascend.com>
90166
90167         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
90168         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
90169
90170 1998-10-18  Jim Meyering  <meyering@ascend.com>
90171
90172         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
90173
90174 1998-10-17  Jim Meyering  <meyering@ascend.com>
90175
90176         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
90177         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
90178         calls for those previously hard-coded headers.  Instead, take a new
90179         parameter.
90180         (jm_CHECK_DECLARATIONS): Reflect interface change.
90181         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
90182         (jm_CHECK_DECL_LOCALTIME_R): New macro.
90183
90184         * m4/mktime.m4: Test for spring-forward gap before long-running test.
90185
90186 1998-10-14  Jim Meyering  <meyering@ascend.com>
90187
90188         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
90189         instead of "TZ=America/Vancouver".  From Paul Eggert.
90190
90191 1998-10-11  Jim Meyering  <meyering@ascend.com>
90192
90193         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
90194         This adds a test for a recently added compatibility fix for mktime.c.
90195         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
90196
90197 1998-09-27  Jim Meyering  <meyering@ascend.com>
90198
90199         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
90200
90201         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
90202         ../configure.in, including a change from Gordon Matzigkeit to allow
90203         cross-compiling for the Hurd.
90204
90205         * m4/glibc.m4: New file/macro to test for the GNU C Library
90206         versions 1 and 2.  From Gordon Matzigkeit.
90207         Indent.
90208
90209 1998-09-21  Jim Meyering  <meyering@ascend.com>
90210
90211         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
90212
90213 1998-08-18  Paul Eggert  <eggert@twinsun.com>
90214
90215         Port nanosecond-resolution times to UnixWare 2.1.2 and
90216         pedantic Solaris 2.6.
90217
90218         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
90219         AC_STRUCT_ST_MTIM.
90220         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
90221         Generate name of ns member, instead of just 1 or undef.
90222         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
90223
90224 1998-08-15  Jim Meyering  <meyering@ascend.com>
90225
90226         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
90227         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
90228         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
90229         instead of jm_TYPE_SSIZE_T.
90230
90231 1998-08-12  Jim Meyering  <meyering@ascend.com>
90232
90233         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
90234
90235 1998-08-02  Jim Meyering  <meyering@ascend.com>
90236
90237         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
90238         in acconfig.h manually.
90239
90240 1998-07-31  Paul Eggert  <eggert@twinsun.com>
90241
90242         * m4/st_mtim.m4: New file.
90243
90244 1998-07-28  Jim Meyering  <meyering@ascend.com>
90245
90246         * m4/utimes.m4: Undef stat.
90247
90248 1998-07-25  Jim Meyering  <meyering@ascend.com>
90249
90250         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
90251         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
90252
90253 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
90254
90255         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
90256         uid and gid actually remain unchanged.
90257
90258 1998-07-07  Jim Meyering  <meyering@ascend.com>
90259
90260         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
90261
90262 1998-07-04  Jim Meyering  <meyering@ascend.com>
90263
90264         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
90265         to prove that this macro can be used in packages without regex.c.
90266
90267 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
90268
90269         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
90270         is to be used.
90271
90272 1998-07-03  Jim Meyering  <meyering@ascend.com>
90273
90274         * m4/gettext.m4: Add -lintl if it's found to be necessary.
90275
90276         * m4/gettext.m4: New file -- from gettext-0.10.35.
90277         * m4/lcmessage.m4: Likewise.
90278         * m4/progtest.m4: Likewise.
90279
90280         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
90281         * m4/jm-macros.m4: Require the new macro.
90282
90283 1998-06-29  Jim Meyering  <meyering@ascend.com>
90284
90285         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
90286         for the definition of NGROUPS (used in a system header included
90287         by sys/mount.h).
90288
90289 1998-06-28  Jim Meyering  <meyering@ascend.com>
90290
90291         * m4/ls-mntd-fs.m4: New file.
90292         * m4/fstypename.m4: New file.
90293
90294         * m4/jm-macros.m4: Require the new macro.
90295         * m4/jm-glibc-io.m4: New file.
90296
90297 1998-05-19  Jim Meyering  <meyering@ascend.com>
90298
90299         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
90300         * m4/lchown.m4: New file.
90301
90302         * m4/Makefile.am.in: New file.
90303         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
90304
90305 1998-05-14  Jim Meyering  <meyering@ascend.com>
90306
90307         * m4/Makefile.am (EXTRA_DIST): Add them.
90308         * m4/jm-macros.m4: New file.
90309         * m4/utimbuf.m4: New file.
90310
90311 1998-05-12  Jim Meyering  <meyering@ascend.com>
90312
90313         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
90314
90315 1998-05-11  Jim Meyering  <meyering@ascend.com>
90316
90317         * m4/isc-posix.m4: New file.
90318
90319 1998-05-10  Jim Meyering  <meyering@ascend.com>
90320
90321         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
90322
90323 1998-05-09  Jim Meyering  <meyering@ascend.com>
90324
90325         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
90326         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
90327         with automake.
90328
90329         * m4/ssize_t.m4: New file.
90330         * m4/mktime.m4: Remove file -- the new automake has this now.
90331
90332 1998-04-26  Jim Meyering  <meyering@ascend.com>
90333
90334         * m4/assert.m4: New file.
90335         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
90336
90337 1998-04-05  Jim Meyering  <meyering@ascend.com>
90338
90339         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
90340         (jm_PREREQ): Use it here.
90341
90342 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
90343
90344         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
90345         in acconfig.h.
90346
90347 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
90348
90349         * m4/prereq.m4: New file.
90350         * m4/error.m4: New file.
90351         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
90352
90353 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
90354
90355         * m4/getline.m4: Don't set am_cv_func_working_getline before the
90356         cache-check for the same variable -- that defeated the purpose of
90357         the test; the test program was never run.  This was a problem only
90358         on systems with losing getline functions -- HP-UX 10.20 is one.
90359         Reported by Bjorn Helgaas.
90360
90361 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90362
90363         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90364
90365 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90366
90367         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90368
90369         * m4/const.m4: New file.  Use an initializer in this declaration
90370         typedef int charset[2]; const charset x;
90371         Reported by Bob Glickstein.
90372
90373 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90374
90375         * m4/chown.m4: Fix reversed types on -1 args to chown.
90376         From Kaveh Ghazi.
90377
90378 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90379
90380         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90381         Add lseek and memchr.
90382
90383         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90384         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90385         have a 20-character limit on names.
90386
90387 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90388
90389         * m4/inttypes_h.m4: New file.
90390         * m4/uintmax_t.m4: New file.
90391         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
90392
90393
90394         -----
90395
90396         Local Variables:
90397         coding: utf-8
90398         End:
90399
90400         Copyright (C) 1997-2011 Free Software Foundation, Inc.
90401
90402         Copying and distribution of this file, with or without
90403         modification, are permitted provided the copyright notice
90404         and this notice are preserved.